Oracle 参数 GLOBAL_NAMES 官方解释,作用,如何配置最优化建议

本站中文解释

GLOBAL_NAMES参数用于指定两个以上数据库实例之间,数据库名称是否需要统一。

默认值为FALSE,表明并不强制要求不同的数据库实例其名字一定要统一。

设置为TRUE的话,则强制要求在不同的数据库实例中,其名字需要一致。通常情况下,我们在做数据库实例间的链接时,才会使用该参数,需要将其设置为TRUE。

正确设置GLOBAL_NAMES需要确认下面两个要素:

(1)准备数据库的实例名和数据库的全局名是否一致,比如数据库实例名为ORCL,全局名要为ORCL.CHINASOFT.COM,全局名的格式为 .。

(2)确认网络服务名的格式是否正确,正常情况下网络服务名的格式也应为 .。

如果要更改GLOBAL_NAMES参数,可以通过SQL*Plus登录数据库,首先切换到名称为SYSOPER用户,然后使用以下命令进行调整:

alter system set GLOBAL_NAMES=TRUE;

最后要记得,更改完GLOBAL_NAMES参数后,要重启数据库实例,参数调整才能生效。

官方英文解释

GLOBAL_NAMES specifies whether a database link is required to have the same name as the database to which it connects.

Property Description

Parameter type

Boolean

Default value

false

Modifiable

ALTER SESSION, ALTER SYSTEM

Modifiable in a PDB

Yes

Range of values

true | false

Basic

No

If the value of GLOBAL_NAMES is false, then no check is performed. If you use or plan to use distributed processing, then Oracle recommends that you set this parameter to true to ensure the use of consistent naming conventions for databases and links in a networked environment.

See Also:

Oracle Database
Administrator’s Guide
for more information on setting this parameter


数据运维技术 » Oracle 参数 GLOBAL_NAMES 官方解释,作用,如何配置最优化建议