Where does global_name come from?

Source: Internet
Author: User

We should all be familiar with the word global_name, which usually needs to be focused on global_name when it comes to the creation of DB link.
Note that what I'm talking about here is not initialization parameter global_names.

The settings for the current parameter can be obtained through view global_name:
Sql> select * from Global_name;

Global_name
--------------------------------------------------
Wapdb. Regress. Rdbms. DEV. US. Oracle.com

So where does the data from the Global_name view come from?
By creating statements from the Global_name view, we can get the following information:
Create or Replace view Global_name
(Global_name)
As
Select value$ from sys.props$ where name = ' Global_db_name '

We see that the information in the Global_name is actually from the props$ internal table, and the information obtained is the Global_db_name field.
Sql> Select value$ from sys.props$ where name = ' Global_db_name ';

value$
--------------------------------------------------
Wapdb. Regress. Rdbms. DEV. US. Oracle.com

Sql> select * from Global_name;

Global_name
--------------------------------------------------
Wapdb. Regress. Rdbms. DEV. US. Oracle.com

Here is the default setting that is usually created by the database, and in a production environment we can modify the Global_name with the following command:
sql> ALTER DATABASE rename Global_name to wapdb. Eygle.com;

Database Altered

Sql> select * from Global_name;

Global_name
--------------------------------------------------
Wapdb. Eygle.com

Why is this global_name important?
Because the final format of DB link is associated with the creation of DB link, the global_name is actually made up of two parts, Db_name and Db_domain. When you create DB link, Oracle automatically adds the db_domain as a suffix. And it's hard to change once you join.

Therefore, in the advanced replication, streams replication configuration, it is best to first of the multiple nodes global_name planning.


-the end-

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.