Oracle Error PLS-00902: A READ-ONLY bind variable used in OUT or IN-OUT context

Oracle Error Message

PLS-00902: A READ-ONLY bind variable used in OUT or IN-OUT context

Reason for the Error

A host variable that is protected from update was used in a context that allows an update.

Solution

Check the context and change the use of the host variable, or assign the value of the host variable to a PL/SQL local variable, then use the local variable instead.