本站中文解释
RDBMS_SERVER_DN是数据库服务器的完整的DNS名,用于客户机和服务器之间的通信。RDBMS_SERVER_DN 的值保存在名为 _rnx_db_dn 数据库中的 _rfs_node 表中。RDBMS_SERVER_DN实际上是客户机在与服务器建立连接时使用的服务器端DNS名,它在服务器节点上未定义。这个参数只能在客户机-服务器环境下使用,服务器环境没有这个参数。正确设置RDBMS_SERVER_DN参数的步骤如下:
1. 登录 Oracle 数据库客户端,以系统管理员身份连接到 Oracle 数据库。
2. 创建和编译以下包:
CREATE OR REPLACE PACKAGE RDBMS_UTILS AS
FUNCTION UTIL_DN RETURN VARCHAR2;
END;
/
CREATE OR REPLACE PACKAGE BODY RDBMS_UTILS AS
FUNCTION UTIL_DN RETURN VARCHAR2 IS
DN VARCHAR2(100);
BEGIN
— Use the _rnx_db_dn view to get the db name
SELECT uname INTO DN FROM v$phys_dn;
RETURN DN;
END;
END;
/
3. 使用以下SQL语句设置RDBMS_SERVER_DN参数:
EXEC DBMS_UTILS.UTIL_DN;
4. 执行最后一条查询,并使用其结果设置RDBMS_SERVER_DN:
ALTER SYSTEM SET RDBMS_SERVER_DN = ‘’;
5. 提交对数据库的更改:
commit;
官方英文解释
RDBMS_SERVER_DN
specifies the Distinguished Name (DN) of the Oracle server. It is used for retrieving Enterprise Roles from an enterprise directory service.
Property | Description |
---|---|
Parameter type |
X.500 Distinguished Name |
Default value |
There is no default value. |
Modifiable |
No |
Modifiable in a PDB |
No |
Range of values |
All X.500 Distinguished Name format values |
Basic |
No |
Note:
The RDBMS_SERVER_DN
parameter is deprecated in Oracle Database 12c Release 1 (12.1.0.2). It is replaced by the LDAP_DIRECTORY_ACCESS
initialization parameter.
If you do not want to use a directory for enterprise user and privilege management, but prefer to use SSL authentication alone, do not set this parameter.
See Also:
-
Oracle Database Enterprise
User Security Administrator’s Guide for more information on enterprise roles and the enterprise directory service -
“LDAP_DIRECTORY_ACCESS”