国产成人精品久久免费动漫-国产成人精品天堂-国产成人精品区在线观看-国产成人精品日本-a级毛片无码免费真人-a级毛片毛片免费观看久潮喷

您的位置:首頁技術文章
文章詳情頁

Oracle 9i SYS_CONTEXT函數的使用方法

瀏覽:81日期:2023-11-23 11:38:34
此函數在寫一些觸發器和函數的時候非常有用處。

用法:

SELECT sys_context('USERENV', '') FROM dual;

第二個參數的可選值:

AUTHENTICATION_DATA

Data being used to authenticate the login user. For X.503 certificate authenticated sessions, this field returns the context of the certificate in HEX2 format.

Note: You can change the return value of the AUTHENTICATION_DATA attribute using the length parameter of the syntax. Values of up to 4000 are accepted. This is the only attribute of USERENV for which Oracle implements such a change.

AUTHENTICATION_TYPE

How the user was authenticated:

DATABASE: username/password authentication

OS: operating system external user authentication

NETWORK: network protocol or ANO authentication

PROXY: OCI proxy connection authentication

BG_JOB_ID

Job ID of the current session if it was established by an Oracle background process. Null if the session was not established by a background process.

CLIENT_INFO

Returns up to 64 bytes of user session information that can be stored by an application using the DBMS_APPLICATION_INFO package.

CURRENT_SCHEMA

Name of the default schema being used in the current schema. This value can be changed during the session with an ALTER SESSION SET CURRENT_SCHEMA statement.

CURRENT_SCHEMAID

Identifier of the default schema being used in the current session.

CURRENT_USER

The name of the user whose privilege the current session is under.

CURRENT_USERID

User ID of the user whose privilege the current session is under.

DB_DOMAIN

Domain of the database as specified in the DB_DOMAIN initialization parameter.

DB_NAME

Name of the database as specified in the DB_NAME initialization parameter.

ENTRYID

The available auditing entry identifier. You cannot use this option in distributed SQL statements. To use this keyword in USERENV, the initialization parameter AUDIT_TRAIL must be set to true.

EXTERNAL_NAME

External name of the database user. For SSL authenticated sessions using v.503 certificates, this field returns the distinguished name (DN) stored in the user certificate.

FG_JOB_ID

Job ID of the current session if it was established by a client foreground process. Null if the session was not established by a foreground process.

HOST

Name of the host machine from which the client has connected.

INSTANCE

The instance identification number of the current instance.

IP_ADDRESS

IP address of the machine from which the client is connected.

ISDBA

TRUE if you are logged on as SYS.

LANG

The ISO abbreviation for the language name, a shorter form than the existing 'LANGUAGE' parameter.

LANGUAGE

The language and territory currently used by your session, along with the database character set, in the form:language_territory.characterset.

NETWORK_PROTOCOL

Network protocol being used for communication, as specified in the 'PROTOCOL=protocol' portion of the connect string.

NLS_CALENDAR

The current calendar of the current session.

NLS_CURRENCY

The currency of the current session.

NLS_DATE_FORMAT

The date format for the session.

NLS_DATE_LANGUAGE

The language used for expressing dates.

NLS_SORT BINARY

or the linguistic sort basis.

NLS_TERRITORY

The territory of the current session.

OS_USER

Operating system username of the client process that initiated the database session.

PROXY_USER

Name of the database user who opened the current session on behalf of SESSION_USER.

PROXY_USERID

Identifier of the database user who opened the current session on behalf of SESSION_USER.

SESSION_USER

Database user name by which the current user is authenticated. This value remains the same throughout the duration of the session.

SESSION_USERID

Identifier of the database user name by which the current user is authenticated.

SESSIONID

The auditing session identifier. You cannot use this option in distributed SQL statements.

TERMINAL

The operating system identifier for the client of the current session. In distributed SQL statements, this option returns the identifier for your local session. In a distributed environment, this is supported only for remote SELECT statements, not for remote INSERT, UPDATE, or DELETE operations.

(The return length of this parameter may vary by operating system.)

標簽: Oracle 數據庫
主站蜘蛛池模板: 中文字幕日韩精品中文区 | 悟空影视大全免费影视 | 国产亚洲欧美日韩国产片 | 狠狠色狠狠色综合久久一 | 狠狠综合久久久久综合 | 国产a一级毛片含羞草传媒 国产a自拍 | 久久精品国产一区二区三区日韩 | 免费视频久久久 | 欧美亚洲日本视频 | 国产精品视频男人的天堂 | 欧美成人看片一区二区三区尤物 | 波多野结衣在线观看3人 | 日韩在线手机看片免费看 | 福利91| 97在线视频免费公开观看 | 亚洲欧美在线免费观看 | 男女同床爽爽视频免费 | 欧美一级片手机在线观看 | 亚洲系列第一页 | 日本欧美一区二区三区视频 | 亚洲欧美小视频 | 免费一级大毛片a一观看不卡 | 日本特一级毛片免费视频 | 国产精品免费看 | 亚洲欧美视频二区 | 亚洲一区二区三区国产精品 | 日韩在线国产 | 国产一二三区在线观看 | 中文字幕欧美一区 | 久久精品女人毛片国产 | 欧美激情欧美狂野欧美精品免费 | 91香蕉视频免费 | 亚洲综合第一页 | 欧美亚洲国产一区 | 亚洲黄色三级视频 | 一级毛片私人影院免费 | 欧美三级一区二区三区 | 亚洲第一中文字幕 | 美国欧美一级毛片 | 福利视频午夜 | 国产三级高清 |