Oracle 视图 GLOBAL_CONTEXT 官方解释,作用,如何使用详细说明
本站中文解释
Oracle的视图,GLOBAL_CONTEXT,表示它是创建模块存储有关对象的全局上下文信息的系统视图,用于在数据库层访问数据库模块中定义的全局变量。它允许查询来查询在模块中定义的全局上下文变量,并获取其值。
可以使用以下语句查询GLOBAL_CONTEXT视图:
SELECT * FROM GLOBAL_CONTEXT;
此外,可以在SQL中使用此视图来查询模块定义的全局上下文变量。
例如,假设一个名为USERS的全局上下文变量已定义在模块中,我们可以使用以下语句查询此变量:
SELECT CONTEXT_VALUE
FROM GLOBAL_CONTEXT
WHERE MODULE = ‘USERS’;
官方英文解释
GLOBAL_CONTEXT
displays the values of global context attributes, which are accessible for the current session, based on the CLIENT_IDENTIFIER
value.
GLOBAL_CONTEXT
is similar to SESSION_CONTEXT
, which lists the values of session (or local) context attributes set under the current session.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
Namespace of the globally accessible context |
|
|
|
Attribute of the globally accessible context |
|
|
|
Value of the attribute of the globally accessible context |
|
|
|
Username for which globally accessible context value is applicable |
|
|
|
Client identifier of the globally accessible context |
See Also:
-
“SESSION_CONTEXT”
-
Oracle Database Security
Guide for more information about using global application contexts