标签:cannot drop a database link after changing the global_name ora-02024
Cannot drop a database link after changing the global_name ORA-02024 (文档 ID 382994.1) APPLIES TO:Oracle Database - Enterprise Edition - Version 9.2.0.6 and laterInformation in this document applies to any platform. ***Checked for relevance on 14-Nov-2014*** SYMPTOMSNot able to drop a database link after changing the global_name of the database The newly added global_name has a domain name attached to it. SQL> select * from global_name; SQL> create database link l1 connect to scott identified by tiger; SQL> select db_link from user_db_links; DB_LINK ERROR at line 1: CAUSEInitially when a database is created without domain in the global name, null will used from domain as opposed to .world in earlier releases SQL> select * from global_name;
SOLUTIONThere are two solutions: 1. Update sys.link$ and rename the name column to make it match so that the command to drop public database link works. $sqlplus /nolog
alter system flush SHARED_POOL; 1.3.3. If step b doesn‘t help, you need to bounce your database and try to drop the database link. 1.3.4. Once the database link is dropped, the global_name can be changed back to the desired name containing domain part using the alter database rename global_name statement
2. The second solution consists on deleting the database link directly from sys.link$: 2.1. Take a complete consistent backup of the database or use CTAS can be used to backup sys.link$: $sqlplus /nolog 2.2. Delete the DBLINK as follows: $sqlplus /nolog
select db_link, username, host from user_db_links;
Reference Bug 3675157 - ORA-02024: CANNOT DROP DBLINK AFTER THE GLOBAL_NAME PARAMETER IS CHANGED. To discuss this information further with Oracle experts and industry peers, we encourage you to review, join or start a discussion in the My Oracle Support Streams and Distributed Database Community REFERENCESBUG:3675157 - ORA-02024: CANNOT DROP DBLINK AFTER THE GLOBAL_NAME PARAMETER IS CHANGED. |
本文出自 “技术成就梦想!” 博客,请务必保留此出处http://369day.blog.51cto.com/845412/1976816
Cannot drop a database link after changing the global_name ORA-02024 (文档 ID 382994.1)
标签:cannot drop a database link after changing the global_name ora-02024
原文地址:http://369day.blog.51cto.com/845412/1976816