[20181116]SYS_CONTEXT函式的使用(12c).txt
[20181116]SYS_CONTEXT函式的使用(12c).txt
--//工作中有時候需要使用SYS_CONTEXT 函式,查手冊有一些慢,做一個記錄:
--//以前記錄的連結:http://blog.itpub.net/267265/viewspace-1807805/
--//12c有加入許多功能,順便記錄一下:
--//參考連結:
--//僅僅記錄引數USERENV的情況:
select
SYS_CONTEXT ('USERENV','ACTION') ACTION ,
SYS_CONTEXT ('USERENV','AUDITED_CURSORID') AUDITED_CURSORID,
SYS_CONTEXT ('USERENV','AUTHENTICATED_IDENTITY') AUTHENTICATED_IDENTITY,
SYS_CONTEXT ('USERENV','AUTHENTICATION_DATA') AUTHENTICATION_DATA,
SYS_CONTEXT ('USERENV','AUTHENTICATION_METHOD') AUTHENTICATION_METHOD,
SYS_CONTEXT ('USERENV','BG_JOB_ID') BG_JOB_ID,
SYS_CONTEXT ('USERENV','CDB_NAME') CDB_NAME,
SYS_CONTEXT ('USERENV','CLIENT_IDENTIFIER') CLIENT_IDENTIFIER,
SYS_CONTEXT ('USERENV','CLIENT_INFO') CLIENT_INFO,
SYS_CONTEXT ('USERENV','CLIENT_PROGRAM_NAME') CLIENT_PROGRAM_NAME,
SYS_CONTEXT ('USERENV','CON_ID') CON_ID,
SYS_CONTEXT ('USERENV','CON_NAME') CON_NAME,
SYS_CONTEXT ('USERENV','CURRENT_BIND') CURRENT_BIND,
SYS_CONTEXT ('USERENV','CURRENT_EDITION_ID') CURRENT_EDITION_ID,
SYS_CONTEXT ('USERENV','CURRENT_EDITION_NAME') CURRENT_EDITION_NAME,
SYS_CONTEXT ('USERENV','CURRENT_SCHEMA') CURRENT_SCHEMA,
SYS_CONTEXT ('USERENV','CURRENT_SCHEMAID') CURRENT_SCHEMAID,
SYS_CONTEXT ('USERENV','CURRENT_SQL') CURRENT_SQL,
SYS_CONTEXT ('USERENV','CURRENT_SQLn') CURRENT_SQLn,
SYS_CONTEXT ('USERENV','CURRENT_SQL_LENGTH') CURRENT_SQL_LENGTH,
SYS_CONTEXT ('USERENV','CURRENT_USER') CURRENT_USER,
SYS_CONTEXT ('USERENV','CURRENT_USERID') CURRENT_USERID,
SYS_CONTEXT ('USERENV','DATABASE_ROLE') DATABASE_ROLE,
SYS_CONTEXT ('USERENV','DB_DOMAIN') DB_DOMAIN,
SYS_CONTEXT ('USERENV','DB_NAME') DB_NAME,
SYS_CONTEXT ('USERENV','DB_SUPPLEMENTAL_LOG_LEVEL') DB_SUPPLEMENTAL_LOG_LEVEL,
SYS_CONTEXT ('USERENV','DB_UNIQUE_NAME') DB_UNIQUE_NAME,
SYS_CONTEXT ('USERENV','DBLINK_INFO') DBLINK_INFO,
SYS_CONTEXT ('USERENV','ENTRYID') ENTRYID,
SYS_CONTEXT ('USERENV','ENTERPRISE_IDENTITY') ENTERPRISE_IDENTITY,
SYS_CONTEXT ('USERENV','FG_JOB_ID') FG_JOB_ID,
SYS_CONTEXT ('USERENV','GLOBAL_CONTEXT_MEMORY') GLOBAL_CONTEXT_MEMORY,
SYS_CONTEXT ('USERENV','GLOBAL_UID') GLOBAL_UID,
SYS_CONTEXT ('USERENV','HOST') HOST,
SYS_CONTEXT ('USERENV','IDENTIFICATION_TYPE') IDENTIFICATION_TYPE,
SYS_CONTEXT ('USERENV','INSTANCE') INSTANCE,
SYS_CONTEXT ('USERENV','INSTANCE_NAME') INSTANCE_NAME,
SYS_CONTEXT ('USERENV','IP_ADDRESS') IP_ADDRESS,
SYS_CONTEXT ('USERENV','IS_APPLY_SERVER') IS_APPLY_SERVER,
SYS_CONTEXT ('USERENV','IS_DG_ROLLING_UPGRADE') IS_DG_ROLLING_UPGRADE,
SYS_CONTEXT ('USERENV','ISDBA') ISDBA,
SYS_CONTEXT ('USERENV','LANG') LANG,
SYS_CONTEXT ('USERENV','LANGUAGE') LANGUAGE,
SYS_CONTEXT ('USERENV','MODULE') MODULE,
SYS_CONTEXT ('USERENV','NETWORK_PROTOCOL') NETWORK_PROTOCOL,
SYS_CONTEXT ('USERENV','NLS_CALENDAR') NLS_CALENDAR,
SYS_CONTEXT ('USERENV','NLS_CURRENCY') NLS_CURRENCY,
SYS_CONTEXT ('USERENV','NLS_DATE_FORMAT') NLS_DATE_FORMAT,
SYS_CONTEXT ('USERENV','NLS_DATE_LANGUAGE') NLS_DATE_LANGUAGE,
SYS_CONTEXT ('USERENV','NLS_SORT') NLS_SORT,
SYS_CONTEXT ('USERENV','NLS_TERRITORY') NLS_TERRITORY,
SYS_CONTEXT ('USERENV','ORACLE_HOME') ORACLE_HOME,
SYS_CONTEXT ('USERENV','OS_USER') OS_USER,
SYS_CONTEXT ('USERENV','PLATFORM_SLASH') PLATFORM_SLASH,
SYS_CONTEXT ('USERENV','POLICY_INVOKER') POLICY_INVOKER,
SYS_CONTEXT ('USERENV','PROXY_ENTERPRISE_IDENTITY') PROXY_ENTERPRISE_IDENTITY,
SYS_CONTEXT ('USERENV','PROXY_USER') PROXY_USER,
SYS_CONTEXT ('USERENV','PROXY_USERID') PROXY_USERID,
SYS_CONTEXT ('USERENV','SCHEDULER_JOB') SCHEDULER_JOB,
SYS_CONTEXT ('USERENV','SERVER_HOST') SERVER_HOST,
SYS_CONTEXT ('USERENV','SERVICE_NAME') SERVICE_NAME,
SYS_CONTEXT ('USERENV','SESSION_DEFAULT_COLLATION') SESSION_DEFAULT_COLLATION,
SYS_CONTEXT ('USERENV','SESSION_EDITION_ID') SESSION_EDITION_ID,
SYS_CONTEXT ('USERENV','SESSION_EDITION_NAME') SESSION_EDITION_NAME,
SYS_CONTEXT ('USERENV','SESSION_USER') SESSION_USER,
SYS_CONTEXT ('USERENV','SESSION_USERID') SESSION_USERID,
SYS_CONTEXT ('USERENV','SESSIONID') SESSIONID,
SYS_CONTEXT ('USERENV','SID') SID,
SYS_CONTEXT ('USERENV','STATEMENTID') STATEMENTID,
SYS_CONTEXT ('USERENV','TERMINAL') TERMINAL,
SYS_CONTEXT ('USERENV','UNIFIED_AUDIT_SESSIONID') UNIFIED_AUDIT_SESSIONID
from dual ;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/267265/viewspace-2220378/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- sys_context函式的用法Context函式
- [20200213]函式nullif使用.txt函式Null
- [20211112]SYS_CONTEXT ('USERENV','DBID').txtContext
- sys_context 獲取環境上下文的函式Context函式
- [20181116]18c DML 日誌優化.txt優化
- [20191002]函式dump的bug.txt函式
- [20181006]12c使用toad連線問題.txt
- [20180509]函式索引問題.txt函式索引
- [20211231]函式索引測試.txt函式索引
- 函式: 函式是怎麼使用的?函式
- [20190401]關於semtimedop函式呼叫.txt函式
- [20181002]DBMS_FLASHBACK與函式.txt函式
- [20180531]函式呼叫與遞迴.txt函式遞迴
- [20231123]函式與bash shell呼叫.txt函式
- [20190728]分析函式LAST_VALUE.txt函式AST
- Shell 函式的使用函式
- Thunk函式的使用函式
- Generator 函式的使用函式
- [20220811]奇怪的隱式轉換問題(12c補充測試).txt
- [20190423]簡單測試user和SYS_CONTEXT ('USERENV','CURRENT_USER').txtContext
- [20180925]共享池中的NETWORK BUFFER(12c).txt
- 如何使用函式指標呼叫類中的函式和普通函式函式指標
- [20190827]函式索引與選擇率.txt函式索引
- [20190918]關於函式索引問題.txt函式索引
- 高階函式的使用函式
- tap函式的日常使用函式
- python函式的基本使用Python函式
- [20181026]12c Attribute Clustering特性.txt
- 12C SQL Translation Framework.txtSQLFramework
- [20181010]12c clone pdb.txt
- [20190524]DISABLE TABLE LOCK(12c).txt
- [20190703]12c Hybrid histogram.txtHistogram
- [20190624]12c group by優化 .txt優化
- [20210119]sqlplus 12c LOBPREFETCH.txtSQL
- 第五篇 匿名函式、內建函式、import的使用、包的使用函式Import
- 何時使用函式表示式與函式宣告函式
- Python hasattr() 函式 // python中hasattr()、getattr()、setattr()函式的使用Python函式
- [20190402]關於semtimedop函式呼叫2.txt函式