Cannot drop a database link after changing the global_name ORA-02024 (文档 ID 382994.1)
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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 (文档 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)的主要内容,如果未能解决你的问题,请参考以下文章
ORA-01940: cannot drop a user that is currently connected
ORA-01940: cannot drop a user that is currently connected 问题解析
删除oracle用户报ORA-01940: cannot drop a user that is current
Cannot attach the file as database
EF架构~Cannot attach the file as database
Cannot attach the file 'E:TeamWorkFidoFido.WebSiteApp_DataFidoData.mdf' as database