How to fix the Oracle error OCI-22275: invalid LOB locator specified?
In this post, you’ll learn more about the Oracle ErrorOCI-22275: invalid LOB locator specified with the details on why you receive this error and the possible solution to fix it.
Oracle Error Description
OCI-22275: invalid LOB locator specified
Reason for the Error OCI-22275: invalid LOB locator specified
There are several causes: (1) the LOB locator was never initialized; (2) the locator is for a BFILE and the routine expects a BLOB/CLOB/NCLOB locator; (3) the locator is for a BLOB/CLOB/NCLOB and the routine expects a BFILE locator; (4) trying to update the LOB in a trigger body — LOBs in trigger bodies are read only.
How to fix the Error OCI-22275: invalid LOB locator specified ?
You can fix this error in Oracle by following the below steps
For (1), initialize the LOB locator by selecting into the locator variable or by setting the LOB locator to empty. For (2) and (3), pass the correct type of locator into the routine. For (4), remove the trigger body code that updates the LOB value.
Leave Your Comment