Oracle Error ORA-38815: ALTER SESSION SET EDITION must be a top-level SQL statement

Oracle Error Message

ORA-38815: ALTER SESSION SET EDITION must be a top-level SQL statement

Reason for the Error

An edition switch failed because it was executed from a PL/SQL block or using recursive SQL.

Solution

Execute the statement from a top-level OCI call, or use dbms_session.set_edition if its deferred effect is appropriate.

Share:

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

Oracle Error Message ORA-24328: illegal attribute value Reason for the Error The attribute value passed in is illegal. Solution Consult...
Oracle Error Message ORA-01346: LogMiner processed redo beyond specified reset log scn Reason for the Error LogMiner has detected a...
Oracle Error Message ORA-13241: specified dimensionality does not match that of the data Reason for the Error An error occurred...