当前位置:网站首页>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
边栏推荐
- Processes of libuv
- Several silly built-in functions about relative path / absolute path operation in CAPL script
- 【深度学习】语义分割:论文阅读(NeurIPS 2021)MaskFormer: per-pixel classification is not all you need
- 在CANoe中通过Panel面板控制Test Module 运行(初级)
- [CV] target detection: derivation of common terms and map evaluation indicators
- Webrtc blog reference:
- 51单片机进修的一些感悟
- Nc29 search in two-dimensional array
- Redis distributed lock implementation redison 15 questions
- PR 2021 quick start tutorial, first understanding the Premiere Pro working interface
猜你喜欢

学习单片机对社会的帮助是很大的
![[deep learning] semantic segmentation - source code summary](/img/2c/50eaef4a11fe2ee9c53a5cebdd69ce.png)
[deep learning] semantic segmentation - source code summary

Une grande vague d'attaques à la source ouverte

Nc29 search in two-dimensional array

Segmentation sémantique de l'apprentissage profond - résumé du code source

I2C summary (single host and multi host)

C杂讲 浅拷贝 与 深拷贝

在CANoe中通過Panel面板控制Test Module 運行(初級)

Regular expressions are actually very simple

Research and implementation of hospital management inpatient system based on b/s (attached: source code paper SQL file)
随机推荐
学习单片机对社会的帮助是很大的
A wave of open source notebooks is coming
五月刷题26——并查集
Several ways of MySQL database optimization (pen interview must ask)
Configure system environment variables through bat script
068. Find the insertion position -- binary search
YARN组织架构
How can I take a shortcut to learn C language in college
May brush question 01 - array
MapReduce instance (IV): natural sorting
Yarn organizational structure
CANoe下载地址以及CAN Demo 16的下载与激活,并附录所有CANoe软件版本
Some thoughts on the study of 51 single chip microcomputer
Take you back to spark ecosystem!
I2C summary (single host and multi host)
嵌入式開發中的防禦性C語言編程
Function description of shell command parser
Single chip microcomputer realizes modular programming: Thinking + example + system tutorial (the degree of practicality is appalling)
[deep learning] semantic segmentation: thesis reading (neurips 2021) maskformer: per pixel classification is not all you need
[untitled]