The invention relates to a preparation method of acidizing
corrosion inhibitor in a high-temperature and concentrated acid environment. The preparation method is used for an acidification technology in
carbonate oil reservoir exploration and overcomes the problem that existing high-temperature acidification
corrosion inhibitor is poor in
solubility and dispersion in use and prone to coking. According to the technical scheme, firstly,
formaldehyde,
benzene methanamine, absolute ethyl
alcohol and concentrated
hydrochloric acid are added into a three-necked flask, and then the three-necked flask is placed into an
oil bath pan with the temperature being 110 DEG C for conducting a reaction for 2 hours; then,
acetophenone is added, the pH is adjusted to 4 through concentrated
hydrochloric acid, a reaction is conducted for 4 hours, and a coarse
mannich base is obtained; thirdly, a vacuum rotary
evaporation instrument is utilized for purification, separation is conducted, and a
mannich base intermediate is obtained; fourthly, after the intermediate obtained in step 3 is washed,
benzyl chloride is added, a reaction is conducted for 6 hours at the temperature of 110 DEG C,
evaporation and separation are conducted through the vacuum rotary
evaporation instrument, and
mannich base quaternary ammonium salt is obtained; finally,
potassium iodide is added in the mannich base
quaternary ammonium salt stirring process for conducting mixed distribution, and the high-temperature acidizing
corrosion inhibitor is obtained. The acidizing
corrosion inhibitor has good
solubility and dispersion, can further improve corrosion inhibition efficiency and is good in stability.