The results show that inhibitor solutions containing both multivalent ions such as calcium and a heat sensitive pH increasing substance such as urea makes possible a much higher retention of inhibitor in a porous structure and a subsequent release of inhibitor during the passage of a much larger volume of produced brines, than the use of an inhibitor solution not containing these additives.