How do I query the state of a session variable in PL / SQL?

I see that in PL / SQL it is possible to set the session state of a specific variable for the rest of the session lifetime. For example:

ALTER SESSION SET CURRENT_SCHEMA=<schema>

      

How do I query the current state of this schema so that I can revert to it after some other statements have been executed?

+1


source to share


1 answer


SELECT SYS_CONTEXT( 'USERENV', 'CURRENT_SCHEMA' ) FROM dual;

      



+2


source







All Articles