diff --git a/CN/modules/ROOT/pages/6.4.1.adoc b/CN/modules/ROOT/pages/6.4.1.adoc index 3ad622cb..4c6ce158 100644 --- a/CN/modules/ROOT/pages/6.4.1.adoc +++ b/CN/modules/ROOT/pages/6.4.1.adoc @@ -71,14 +71,14 @@ $$ LANGUAGE plisql SECURITY INVOKER; |*参数名称*|*返回值* |IP_ADDRESS | 客户端的IP地址。 |HOST | 客户端主机的名称。 -|ISDBA | 如果当前用户是数据库管理员,则返回TRUE。 +|ISDBA | `current_user` 具有数据库超级用户属性时返回 `TRUE`,否则返回 `FALSE`。结果随当前活动角色变化。 |LANG | 语言的缩写名称,比现有的 “LANGUAGE ”参数更简短。 |LANGUAGE | 当前会话的使用的语言和地区,以及数据库字符集,格式为:language_territory.characterset。 |NLS_DATE_FORMAT | 当前session的日期格式。 |PLATFORM_SLASH | 在用户的平台上用作文件路径分隔符的斜线字符(Unix或Linux是’/’,Windows是’\’)。 |DB_NAME | 当前连接的CDB的名称。 -|SID | 当前会话的系统标识符。 -|SESSIONID | 审计会话标识符。不能在分布式 SQL 语句中使用此属性。 +|SID | 当前会话的后端进程 ID,与 `pg_backend_pid()` 相同。 +|SESSIONID | 本会话在 `sys.userenv_sessionid_sequence` 上的当前值。会话尚未取得值时,首次调用会分配一个值。 |CLIENT_INFO | 返回最多 64 字节的用户会话信息,应用程序可使用 DBMS_APPLICATION_INFO 包存储这些信息。 |ENTRYID | 当前审计条目编号。审计条目编号序列在细粒度审计记录和常规审计记录之间共享。不能在分布式 SQL 语句中使用此属性。只有通过标准或细粒度审计的审计处理程序才能看到正确的审计条目标识符。 |TERMINAL | 当前会话客户端的操作系统标识符。在分布式 SQL 语句中,该属性返回本地会话的标识符。在分布式环境中,仅支持远程 SELECT 语句,不支持远程 INSERT、UPDATE 或 DELETE 操作。(此参数的返回长度可能因操作系统而异)。 diff --git a/CN/modules/ROOT/pages/6.4.2.adoc b/CN/modules/ROOT/pages/6.4.2.adoc index d458b819..3c38b6fd 100644 --- a/CN/modules/ROOT/pages/6.4.2.adoc +++ b/CN/modules/ROOT/pages/6.4.2.adoc @@ -49,9 +49,9 @@ $$ LANGUAGE sql STRICT; [cols="2,8"] |==== |*参数名称*|*返回值* -|sid | 当前session的用户ID。 -|sessionid | 返回审计会话标识符。 +|sid | 当前会话的后端进程 ID,与 `pg_backend_pid()` 相同。 +|sessionid | 本会话在 `sys.userenv_sessionid_sequence` 上的当前值。会话尚未取得值时,首次调用会分配一个值。 |language | 返回数据库当前会话的语言、地域和字符集。 |lang | 返回ISO缩写语言名称。 -|isdba | 如果用户已经被认证为管理员;或者是通过操作系统或口令文件具有管理员特权的,返回“TRUE",否则返回"FALSE"。 +|isdba | `current_user` 具有数据库超级用户属性时返回 `TRUE`,否则返回 `FALSE`。结果随当前活动角色变化。 |==== diff --git a/EN/modules/ROOT/pages/6.4.1.adoc b/EN/modules/ROOT/pages/6.4.1.adoc index 0573360d..330653b1 100644 --- a/EN/modules/ROOT/pages/6.4.1.adoc +++ b/EN/modules/ROOT/pages/6.4.1.adoc @@ -71,15 +71,14 @@ $$ LANGUAGE plisql SECURITY INVOKER; |Parameter Name|Return Value |IP_ADDRESS | The IP address of the client. |HOST | Name of the host machine from which the client has connected. -|ISDBA | Returns TRUE if the user has been authenticated as having DBA privileges either through the operating system or through a password file. +|ISDBA | Returns `TRUE` when `current_user` has the database superuser attribute, and `FALSE` otherwise. The result follows the active role. |LANG | The abbreviated name for the language, 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 this form:language_territory.characterset |NLS_DATE_FORMAT | The date format for the session. |PLATFORM_SLASH | The slash character that is used as the file path delimiter for your platform. |DB_NAME | Name of the database as specified in the DB_NAME initialization parameter. -|SID | -The session ID. -|SESSIONID | The auditing session identifier. You cannot use this attribute in distributed SQL statements. +|SID | Backend process ID of the current session, as returned by `pg_backend_pid()`. +|SESSIONID | This session's current value of `sys.userenv_sessionid_sequence`. The first call allocates a value if this session has none. |CLIENT_INFO | Returns up to 64 bytes of user session information that can be stored by an application using the DBMS_APPLICATION_INFO package. |ENTRYID | The current audit entry number. The audit entryid sequence is shared between fine-grained audit records and regular audit records. You cannot use this attribute in distributed SQL statements. The correct auditing entry identifier can be seen only through an audit handler for standard or fine-grained audit. |TERMINAL | The operating system identifier for the client of the current session. In distributed SQL statements, this attribute 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.) diff --git a/EN/modules/ROOT/pages/6.4.2.adoc b/EN/modules/ROOT/pages/6.4.2.adoc index 13d98abd..900bb131 100644 --- a/EN/modules/ROOT/pages/6.4.2.adoc +++ b/EN/modules/ROOT/pages/6.4.2.adoc @@ -49,9 +49,9 @@ $$ LANGUAGE sql STRICT; [cols="3,7"] |==== |Parameter Name|Return Value -|sid | The user ID of the current session. -|sessionid | Returns the audit session identifier. +|sid | Backend process ID of the current session, as returned by `pg_backend_pid()`. +|sessionid | This session's current value of `sys.userenv_sessionid_sequence`. The first call allocates a value if this session has none. |language | Returns the language, territory, and character set of the current database session. |lang | Returns the ISO abbreviation of the language name. -|isdba | Returns "TRUE" if the user has been authenticated as an administrator or has administrator privileges through the operating system or password file; otherwise, returns "FALSE". +|isdba | Returns `TRUE` when `current_user` has the database superuser attribute, and `FALSE` otherwise. The result follows the active role. |====