Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我看到在 PL/SQL 中,可以在会话生命周期的剩余时间内设置特定变量的会话状态。例如:
ALTER SESSION SET CURRENT_SCHEMA=<schema>
如何查询此架构的当前状态,以便在执行其他一些语句后恢复到它?
SELECT SYS_CONTEXT( 'USERENV', 'CURRENT_SCHEMA' ) FROM dual;