Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Oracle > changing global_name

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-03-08, 14:59
tjay83 tjay83 is offline
Registered User
 
Join Date: Feb 2008
Posts: 28
changing global_name

Despite the value of the db_domain is null.I still cannot change global_name.
What should I do?

SQL> SELECT * FROM GLOBAL_NAME;

GLOBAL_NAME
--------------------------------------------------------------------------------
ORATEMP.REGRESS.RDBMS.DEV.US.ORACLE.COM

SQL> ALTER DATABASE RENAME GLOBAL_NAME TO oratemp ;

SQL> SELECT * FROM GLOBAL_NAME;

GLOBAL_NAME
--------------------------------------------------------------------------------
ORATEMP.REGRESS.RDBMS.DEV.US.ORACLE.COM
Reply With Quote
  #2 (permalink)  
Old 07-03-08, 15:11
anacedent anacedent is offline
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 3,564
GLOBAL_NAME is a "table".
The proper way to change data in a table is via UPDATE

Be warned that changing GLOBAL_NAME will break any previously created DATABASE LINKS.
__________________
You can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
Reply With Quote
  #3 (permalink)  
Old 07-03-08, 15:14
LKBrwn_DBA LKBrwn_DBA is offline
Registered User
 
Join Date: Jun 2003
Location: West Palm Beach, FL
Posts: 1,951
Talking Rename

Try:
Code:
ALTER DATABASE RENAME GLOBAL_NAME TO NEW.GLOBAL.NAME;
__________________
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
Reply With Quote
  #4 (permalink)  
Old 07-03-08, 18:03
tjay83 tjay83 is offline
Registered User
 
Join Date: Feb 2008
Posts: 28
so in my example how can I change global name to
instance name which is oratemp?
Reply With Quote
  #5 (permalink)  
Old 07-03-08, 18:12
anacedent anacedent is offline
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 3,564
Code:
14:09:55 SQL> create table id10t (global_name varchar2(96)); Table created. 14:10:09 SQL> insert into id10t values('ORATEMP.REGRESS.RDBMS.DEV.US.ORACLE.COM'); 1 row created. 14:10:17 SQL> commit; Commit complete. 14:10:21 SQL> select * from id10t; GLOBAL_NAME -------------------------------------------------------------------------------- ORATEMP.REGRESS.RDBMS.DEV.US.ORACLE.COM 14:10:29 SQL> update id10t set global_name = 'oratemp'; 1 row updated. 14:11:10 SQL> commit; Commit complete. 14:11:13 SQL> select * from id10t; GLOBAL_NAME -------------------------------------------------------------------------------- oratemp
__________________
You can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
Reply With Quote
  #6 (permalink)  
Old 07-04-08, 05:18
outrider outrider is offline
Registered User
 
Join Date: Feb 2005
Posts: 10
Reply With Quote
  #7 (permalink)  
Old 07-04-08, 11:07
tjay83 tjay83 is offline
Registered User
 
Join Date: Feb 2008
Posts: 28
Quote:
Originally Posted by anacedent
GLOBAL_NAME is a "table".
The proper way to change data in a table is via UPDATE

Be warned that changing GLOBAL_NAME will break any previously created DATABASE LINKS.


thanks a lot this worked for me:
update global_name set global_name='ORATEMP';
Reply With Quote
  #8 (permalink)  
Old 07-04-08, 11:11
tjay83 tjay83 is offline
Registered User
 
Join Date: Feb 2008
Posts: 28
Quote:
Originally Posted by anacedent
GLOBAL_NAME is a "table".
The proper way to change data in a table is via UPDATE

Be warned that changing GLOBAL_NAME will break any previously created DATABASE LINKS.


I have one last question.
During the installation of a database, what things should I consider, inorder not to see global_name like below.


SQL> select * from global_name;

GLOBAL_NAME
--------------------------------------------------------------------------------
ATM.REGRESS.RDBMS.DEV.US.ORACLE.COM
Reply With Quote
  #9 (permalink)  
Old 07-04-08, 11:22
anacedent anacedent is offline
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 3,564
I am not aware of anything which controls GLOBAL_NAME during installation.
You can always issue the UPDATE as first step after OUI completes.
__________________
You can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On