当前位置:网站首页>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
边栏推荐
- 单片机如何从上电复位执行到main函数?
- Elk project monitoring platform deployment + deployment of detailed use (II)
- Summary of May training - from a Guang
- 发生OOM了,你知道是什么原因吗,又该怎么解决呢?
- May brush question 26 - concurrent search
- Release of the sample chapter of "uncover the secrets of asp.net core 6 framework" [200 pages /5 chapters]
- 【深度學習】語義分割-源代碼匯總
- June brush question 02 - string
- Random notes
- [one click] it only takes 30s to build a blog with one click - QT graphical tool
猜你喜欢
Une grande vague d'attaques à la source ouverte
Mapreduce实例(九):Reduce端join
DCDC power ripple test
Listen to my advice and learn according to this embedded curriculum content and curriculum system
手把手教您怎么编写第一个单片机程序
Popularization of security knowledge - twelve moves to protect mobile phones from network attacks
[Yu Yue education] Wuhan University of science and technology securities investment reference
Elk project monitoring platform deployment + deployment of detailed use (II)
嵌入式开发比单片机要难很多?谈谈单片机和嵌入式开发设计经历
Interview shock 62: what are the precautions for group by?
随机推荐
A wave of open source notebooks is coming
大学C语言入门到底怎么学才可以走捷径
Some thoughts on the study of 51 single chip microcomputer
[one click] it only takes 30s to build a blog with one click - QT graphical tool
There are software load balancing and hardware load balancing. Which one to choose?
Cooperative development in embedded -- function pointer
018. Valid palindromes
[Yu Yue education] reference materials of power electronics technology of Jiangxi University of science and technology
Some thoughts on the study of 51 single chip microcomputer
Solve the problem of too many small files
Segmentation sémantique de l'apprentissage profond - résumé du code source
Counter attack of noodles: redis asked 52 questions in a series, with detailed pictures and pictures. Now the interview is stable
Selection of software load balancing and hardware load balancing
How does the single chip microcomputer execute the main function from power on reset?
听哥一句劝,按这套嵌入式的课程内容和课程体系去学习
发生OOM了,你知道是什么原因吗,又该怎么解决呢?
单片机实现模块化编程:思维+实例+系统教程(实用程度令人发指)
美疾控中心:美国李斯特菌疫情暴发与冰激凌产品有关
Interview shock 62: what are the precautions for group by?
Oom happened. Do you know the reason and how to solve it?