When I type hostname it returns me this localhost.localdomain. So what should be my global database name if SID is ora9i?

    Requires Free Membership to View

The global database name is made up of the values set for the initialization parameters db_name plus db_domain for each database. If db_domain is not set, then the global database name is simply the value set for db_name.

You can find out what the global name is for your database by executing the following query from SQL*Plus:

select * from global_name;

It is also possible to alter the global name of an existing database with the following command:

alter database rename global_name to <db_name.db_domain>;

In your case, if the parameter db_domain is set, then the global name for your database would be db_name.db_domain. If you do not have db_domain set, then the global_name would just be set to the value of db_name (which is usually the SID).

This was first published in April 2007

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: