Select Value$ From Props$ Where Name = 'global_db_name'
Unable to drop a database link
Subject: | Unable to drop a database link |
Author: | Lauri, Netherlands |
Date: | Sep 27, 2006, 16:06, 5572 days ago |
Os info: | Sun Solaris |
Oracle info: | 9206 |
Message: | Hi, I am unable to drop some private database links. Yet, when I query the DBA_DB_LINKS view I find these database links. Any idea? Regards. |
Goto: | Reply - Top of page |
Subject: | Re: Unable to drop a database link |
Author: | Michel Cadot, France |
Date: | Sep 27, 2006, 16:09, 5572 days ago |
Message: | Hi, You can only drop your database links (and public ones if you are allowed to). Regards |
Your rating?: | This reply is Good Excellent |
Goto: | Reply - Top of page |
Subject: | Re-Unable to drop a database link |
Author: | Lauri, Netherlands |
Date: | Sep 27, 2006, 16:11, 5572 days ago |
Message: | Hi Michel, Yes, I agree. But I can not drop them when I am logged as the owner of the link. Regards. |
Your rating?: | This reply is Good Excellent |
Goto: | Reply - Top of page |
Subject: | Re: Re-Unable to drop a database link |
Author: | Michel Cadot, France |
Date: | Sep 27, 2006, 16:15, 5572 days ago |
Message: | Hi Laurent, And the error is? To better understand, copy and paste the select on dba_db_links and your drop statement. Regards |
Your rating?: | This reply is Good Excellent |
Goto: | Reply - Top of page |
Subject: | Re-Unable to drop a database link |
Author: | Lauri, Netherlands |
Date: | Sep 27, 2006, 16:25, 5572 days ago |
Message: | Hi, From dba_db_links: LPDB,DBOPBNLC,BOLUSER,(DESCRIPTION = (ADDRESS_LIST = logged under LPDB user: The global name has been changed before the attempt to drop the link. Could this be the reason?? If yes, how can I bypass that issue? Regards. |
Your rating?: | This reply is Good Excellent |
Goto: | Reply - Top of page |
Subject: | Re: Re-Unable to drop a database link |
Author: | Alessandro Deledda, Italy |
Date: | Sep 27, 2006, 16:32, 5572 days ago |
Score: | |
Message: | Are you sure this is not a public dblink? If it you need to supply public keyword to the drop statement Alessandro |
Your rating?: | This reply is Good Excellent |
Goto: | Reply - Top of page |
Subject: | Re: Re-Unable to drop a database link |
Author: | Bruno Vroman, Belgium |
Date: | Sep 27, 2006, 16:39, 5572 days ago |
Score: | |
Message: | Hi Laurent, you're right: Note:382994.1 ... Looks quite bad :-( Good luck, Bruno Vroman. |
Your rating?: | This reply is Good Excellent |
Goto: | Reply - Top of page |
Subject: | Re: Re-Unable to drop a database link |
Author: | Alessandro Deledda, Italy |
Date: | Sep 27, 2006, 16:44, 5572 days ago |
Message: | what about changing the global_name to the old value just the time to drop the db link? Alessandro |
Your rating?: | This reply is Good Excellent |
Goto: | Reply - Top of page |
Subject: | Re: Re-Unable to drop a database link |
Author: | Hemant Patel, United States |
Date: | Sep 28, 2006, 06:49, 5572 days ago |
Message: | Hi Alessandro, It is possible with some more pain of work. |
Your rating?: | This reply is Good Excellent |
Goto: | Reply - Top of page |
Subject: | Re: Re-Unable to drop a database link |
Author: | Alessandro Deledda, Italy |
Date: | Sep 28, 2006, 09:32, 5571 days ago |
Score: | |
Message: | i did it without problems in 8.1.7.4 but using this tecnique: UPDATE GLOBAL_NAME SET GLOBAL_NAME = '<OLDGLOBALNAME>'; note that i don't raise the commit after the update, the commit is raised implicitly by the alter database Laurent, can you test this in a non-production enviroment? Alessandro |
Your rating?: | This reply is Good Excellent |
Goto: | Reply - Top of page |
Subject: | Re: Re-Unable to drop a database link |
Author: | Hemant Patel, United States |
Date: | Sep 28, 2006, 09:38, 5571 days ago |
Message: | Hi Alessandro, Thanks for your update/interest in this thread. Hemant. |
Your rating?: | This reply is Good Excellent |
Goto: | Reply - Top of page |
Subject: | Re-Unable to drop a database link |
Author: | Lauri, Netherlands |
Date: | Sep 28, 2006, 09:52, 5571 days ago |
Message: | Hi, Thanks all for the answers!! Thanks and regards. |
Your rating?: | This reply is Good Excellent |
Goto: | Reply - Top of page |
Subject: | Re: Re-Unable to drop a database link |
Author: | Alessandro Deledda, Italy |
Date: | Sep 28, 2006, 11:01, 5571 days ago |
Score: | |
Message: | Hi Laurent, it is quite strange because i tested my solution in a 9i(9.2.0.6) non-production enviroment and works well, let me show: conn username/password Regards |
Your rating?: | This reply is Good Excellent |
Goto: | Reply - Top of page |
Subject: | Re-Unable to drop a database link |
Author: | Lauri, Netherlands |
Date: | Sep 28, 2006, 19:53, 5571 days ago |
Message: | Hi Alessandro, Yes, this is very good what you wrote and this is also what I have done. Yet I still can not drop the database link. |
Your rating?: | This reply is Good Excellent |
Goto: | Reply - Top of page |
Subject: | Re: Re-Unable to drop a database link |
Author: | Alessandro Deledda, Italy |
Date: | Sep 29, 2006, 12:39, 5570 days ago |
Message: | very strange, because i tested on 9.2.0.6 version of Oracle so the same that you are using but same OS too (Solaris) Alessandro |
Your rating?: | This reply is Good Excellent |
Goto: | Reply - Top of page |
Subject: | Re: Re-Unable to drop a database link |
Author: | Alessandro Deledda, Italy |
Date: | Sep 29, 2006, 13:28, 5570 days ago |
Message: | mmhhh, do you forget to change again the value on the prop$ table? Check if those values are identical: Alessandro |
Your rating?: | This reply is Good Excellent |
Goto: | Reply - Top of page |
Subject: | Re-Unable to drop a database link |
Author: | Lauri, Netherlands |
Date: | Sep 29, 2006, 13:53, 5570 days ago |
Message: | Hi Alessandro, Strange indeed. Regards. |
Your rating?: | This reply is Good Excellent |
Goto: | Reply - Top of page |
Subject: | Re: Re-Unable to drop a database link |
Author: | Alessandro Deledda, Italy |
Date: | Sep 29, 2006, 14:24, 5570 days ago |
Message: | Ok, but i suggest to start from a clean situation where global_name and GLOBAL_DB_NAME return exactly the same value, then at that point try to forget about sys.prop$ table and apply my solution Alessandro |
Your rating?: | This reply is Good Excellent |
Goto: | Reply - Top of page |
Select Value$ From Props$ Where Name = 'global_db_name'
Source: https://www.dba-village.com/village/dvp_forum.OpenThread?ThreadIdA=26011&DestinationA=RSS