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;