The preparation method comprises the following steps: weighing
oleic acid and a catalyst, adding the weighed
oleic acid and catalyst into a reaction container, heating by stages by adopting a programmable
electric heating jacket, respectively dropwise adding a water carrying agent at 80-100 DEG C, dropwise adding
diethylenetriamine or triethylene
tetramine at 110-130 DEG C, controlling the
reaction temperature and time, and reacting for 2-4 hours to obtain the compound
corrosion inhibitor for the CO2
oil displacement produced liquid. After water is separated out, further reaction is carried out at 200-230 DEG C, then the
system is cooled to 60-70 DEG C, a quaternization
reagent is added for reaction, and a
corrosion inhibitor E and a
corrosion inhibitor S are prepared respectively; finally, the
corrosion inhibitor E and the
corrosion inhibitor S are compounded according to a certain proportion, and the compound
corrosion inhibitor for the CO2
oil displacement produced liquid is obtained. The preparation method is simple and easy to implement, and the cost can be reduced; when the prepared corrosion inhibitor is applied to CO2
oil displacement produced liquid corrosion inhibition, an excellent corrosion inhibition effect can be shown, and corrosion hazards in CO2 oil displacement application are greatly reduced.