Oracle Error Message
OCI-31158: schema “string” currently being referenced
Reason for the Error
The specified schema URL is currently being referenced by the same session. This could happen because of PLSQL XMLType variables still in scope.
Solution
Ensure all references to this schema in this session are released and try the operation again.