当前位置:网站首页>oracle sys_ Context() function
oracle sys_ Context() function
2022-07-06 09:54:00 【wx5caecf2ed0645】
The first parameter is zero 'USERENV', Is constant , The second parameter is also fixed , But it's multiple choice fixed , The optional values are as follows :
select sys_context('USERENV','AUTHENTICATION_TYPE') from dual;-- User's authentication type
select sys_context('USERENV','AUTHENTICATION_DATA') from dual;-- Unknown
select sys_context('USERENV','BG_JOB_ID') from dual;-- Current assignment id Whether your session is oracle Background program establishment , If not, return to null
select sys_context('USERENV','CLIENT_INFO') from dual;-- adopt dbms_application_info Packages can store up to 64 Bytes of user session information
select sys_context('USERENV','CURRENT_SCHEMA') from dual;-- default schema Will be treated as the current schema. When used in the current session ALTER SESSION SET CURRENT_SCHEMA At the time of statement , Its query return value will be changed
select sys_context('USERENV','CURRENT_SCHEMAID') from dual;-- At present schema Of id
select sys_context('USERENV','CURRENT_USER') from dual;-- Current login user
select REPLACE(SUBSTR(sys_context('USERENV','HOST'),1,30),'\',':') from dual;-- Current session host operating system name
select sys_context('USERENV','CURRENT_USERID') from dual;-- Of the currently logged in user id
select sys_context('USERENV','DB_DOMAIN') from dual;-- Specify initialization parameters for the domain of the database
select sys_context('USERENV','DB_NAME') from dual;-- Database instance name
select sys_context('USERENV','ENTRYID') from dual;-- Available audit identifiers . No more sql Statement . Use USERENV Keyword must be set to AUDIT_TRAIL The initialization parameter of is true .
select sys_context('USERENV','EXTERNAL_NAME') from dual;-- The extension of the database user
select sys_context('USERENV','FG_JOB_ID') from dual;-- Return job id When this session is created by a client process . otherwise , return null
select sys_context('USERENV','INSTANCE') from dual;-- The identifier of the current database instance id
select sys_context('USERENV','ISDBA') from dual;-- Whether the current user is based on dba Identity login
select sys_context('USERENV','LANG') from dual;--iso Yes ‘LANGUAGE’ For short , The parameters of the query are smaller than “LANGUAGE” short
select sys_context('USERENV','LANGUAGE') from dual;-- The result is the storage language used by the current database , The meaning of the query above is the same
select sys_context('USERENV','NETWORK_PROTOCOL') from dual;-- Network protocol for communication
select sys_context('USERENV','NLS_CALENDAR') from dual;-- The current session uses , GMT
select sys_context('USERENV','NLS_CURRENCY') from dual;-- Localized currency symbols , If RMB is ¥, The dollar sign is $
select sys_context('USERENV','NLS_DATE_FORMAT') from dual;-- Current date format , Generally, China is dd-mon-rr
select sys_context('USERENV','NLS_DATE_LANGUAGE') from dual;-- The language of the date , Such as simplified Chinese SIMPLIFIED CHINESE
select sys_context('USERENV','NLS_TERRITORY') from dual;-- The region where the database server is located , Such as China CHINA
select sys_context('USERENV','OS_USER') from dual;-- The user name of the operating system
select sys_context('USERENV','PROXY_USER') from dual;-- Whether to use proxy user . No return null
select sys_context('USERENV','PROXY_USERID') from dual;-- Proxy user id
select sys_context('USERENV','SESSION_USER') from dual;-- The currently authenticated database user name
select sys_context('USERENV','SESSION_USERID') from dual;-- The currently authenticated database user name id
select sys_context('USERENV','SESSIONID') from dual;-- Current session id
select sys_context('USERENV','TERMINAL') from dual;-- Operating system user group
select sys_context('USERENV','IP_ADDRESS') from dual;-- Current session host ip
select sys_context('USERENV','HOST') from dual;-- Current session host operating system name
边栏推荐
- Segmentation sémantique de l'apprentissage profond - résumé du code source
- 112 pages of mathematical knowledge sorting! Machine learning - a review of fundamentals of mathematics pptx
- Automation sequences of canoe simulation functions
- The real future of hardware engineers may not be believed by you if I say so
- 竞赛vscode配置指南
- [deep learning] semantic segmentation - source code summary
- Defensive C language programming in embedded development
- Regular expressions are actually very simple
- Mapreduce实例(八):Map端join
- Mapreduce实例(六):倒排索引
猜你喜欢
一大波开源小抄来袭
MapReduce instance (IX): reduce end join
CANoe下载地址以及CAN Demo 16的下载与激活,并附录所有CANoe软件版本
Defensive C language programming in embedded development
CAPL脚本中关于相对路径/绝对路径操作的几个傻傻分不清的内置函数
Why can't TN-C use 2p circuit breaker?
Some thoughts on the study of 51 single chip microcomputer
A wave of open source notebooks is coming
[NLP] bert4vec: a sentence vector generation tool based on pre training
Selection of software load balancing and hardware load balancing
随机推荐
There are software load balancing and hardware load balancing. Which one to choose?
Nc17 longest palindrome substring
I2C summary (single host and multi host)
Mapreduce实例(五):二次排序
Segmentation sémantique de l'apprentissage profond - résumé du code source
Mapreduce实例(七):单表join
max-flow min-cut
[Yu Yue education] reference materials of power electronics technology of Jiangxi University of science and technology
[one click] it only takes 30s to build a blog with one click - QT graphical tool
Leetcode:608 tree node
Day 5 of MySQL learning
[NLP] bert4vec: a sentence vector generation tool based on pre training
C杂讲 动态链表操作 再讲
How does the single chip microcomputer execute the main function from power on reset?
Random notes
Some thoughts on the study of 51 single chip microcomputer
Processes of libuv
听哥一句劝,按这套嵌入式的课程内容和课程体系去学习
What you have to know about network IO model
解决小文件处过多