Unable to rename global_name – ORA-01729:database link name expected

During the setup of a new database (Either by cloning or setup new DB), you will have the change the global_name of your database. You might hit this error ORA-01729:database link name expected.

SQL> select * from global_name;
GLOBAL_NAME
——————————————————————————————————————————————–
ODSA_INDACBET.DOMAIN.COM
SQL> alter database rename global_name to ‘ODSA_INDACBET.DOMAIN.COM’;
alter database rename global_name to ‘ODSA_INDACBET.DOMAIN.COM’
ERROR at line 1:
ORA-01729: database link name expected

There’s another way to modify the global_name for a database. This may work!

SQL> update global_name set global_name=’ODSA_INDACBET.DOMAIN.COM’;
1 row updated.
SQL> commit;
Commit complete.

SQL> select * from global_name;

GLOBAL_NAME
—————————————————————————————————————————————————-
ODSA_INDACBET.DOMAIN.COM
Advertisements

2 thoughts on “Unable to rename global_name – ORA-01729:database link name expected”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s