niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » Oracle » Server
Database link cannot be dropped
Post new topic   Reply to topic Page 1 of 1 [6 Posts] View previous topic :: View next topic
Author Message
Forte Agent
*nix forums beginner


Joined: 15 Dec 2005
Posts: 5

PostPosted: Thu Jul 13, 2006 1:50 am    Post subject: Database link cannot be dropped Reply with quote

Dumb question . . . . .

I have an Oracle database 10.2.0.2 where I cannot drop database links.
When I do "drop database link XXX", database link named
"XXX.domainname.com" is dropped, but not "XXX". What should I do?
Thank you in advance.
Back to top
gazzag
*nix forums Guru Wannabe


Joined: 08 Jun 2005
Posts: 277

PostPosted: Thu Jul 13, 2006 9:45 am    Post subject: Re: Database link cannot be dropped Reply with quote

Forte Agent wrote:
Quote:
Dumb question . . . . .

I have an Oracle database 10.2.0.2 where I cannot drop database links.
When I do "drop database link XXX", database link named
"XXX.domainname.com" is dropped, but not "XXX". What should I do?
Thank you in advance.

What do you get from the following query?

SELECT * FROM DBA_DB_LINKS;

Additionally, post your sqlnet.ora file so we can see that.

HTH

-g
Back to top
Mark D Powell
*nix forums Guru


Joined: 23 Apr 2005
Posts: 701

PostPosted: Thu Jul 13, 2006 1:54 pm    Post subject: Re: Database link cannot be dropped Reply with quote

gazzag wrote:
Quote:
Forte Agent wrote:
Dumb question . . . . .

I have an Oracle database 10.2.0.2 where I cannot drop database links.
When I do "drop database link XXX", database link named
"XXX.domainname.com" is dropped, but not "XXX". What should I do?
Thank you in advance.

What do you get from the following query?

SELECT * FROM DBA_DB_LINKS;

Additionally, post your sqlnet.ora file so we can see that.

HTH


Forte, the DDL you posted would drop a private database link owned by
the connected Oracle username. Who does the link you are trying to
drop belong to? The query gazzag posted will provide the necessary
information.

drop public database link xxx.whatever;

HTH -- Mark D Powell --
Back to top
Forte Agent
*nix forums beginner


Joined: 15 Dec 2005
Posts: 5

PostPosted: Wed Jul 19, 2006 8:13 pm    Post subject: Re: Database link cannot be dropped Reply with quote

Thank you all for help. My SQLNET.ORA has followings only:
NAMES.DIRECTORY_PATH=(TNSNAMES, ONAMES, HOSTNAME)
SQLNET.EXPIRE_TIME= 10



Output from DBA_DB_LINKS is below:
OWNER DB_LINK USERNAME HOST CREATED
------------------------ -------- ------- -------------------
USER1 TESTDB5.DOMAIN.COM USER1 testdb5 15-06-2006 10:58:02
USER1 TESTDB5 USER1 testdb5 25-05-2006 21:37:32
USER2 DBLINK1.DOMAIN.COM USER3 devdb1 15-06-2006 11:06:25
USER2 DBLINK1 USER3 proddb1 20-02-2002 09:05:39






On 13 Jul 2006 06:54:23 -0700, "Mark D Powell" <Mark.Powell@eds.com>
wrote:

Quote:

gazzag wrote:
Forte Agent wrote:
Dumb question . . . . .

I have an Oracle database 10.2.0.2 where I cannot drop database links.
When I do "drop database link XXX", database link named
"XXX.domainname.com" is dropped, but not "XXX". What should I do?
Thank you in advance.

What do you get from the following query?

SELECT * FROM DBA_DB_LINKS;

Additionally, post your sqlnet.ora file so we can see that.

HTH


Forte, the DDL you posted would drop a private database link owned by
the connected Oracle username. Who does the link you are trying to
drop belong to? The query gazzag posted will provide the necessary
information.

drop public database link xxx.whatever;

HTH -- Mark D Powell --
Back to top
Anurag Varma
*nix forums Guru Wannabe


Joined: 25 Mar 2005
Posts: 194

PostPosted: Thu Jul 20, 2006 9:29 pm    Post subject: Re: Database link cannot be dropped Reply with quote

Forte Agent wrote:
Quote:
Dumb question . . . . .

I have an Oracle database 10.2.0.2 where I cannot drop database links.
When I do "drop database link XXX", database link named
"XXX.domainname.com" is dropped, but not "XXX". What should I do?
Thank you in advance.


You might have global_names = true and have a domain specified.

You might need to set global_names to false to accomplish what you
are doing (However, understand the replication repurcussions of doing
that).

Anurag
Back to top
Brian Peasland
*nix forums Guru


Joined: 04 Apr 2006
Posts: 301

PostPosted: Thu Jul 20, 2006 10:19 pm    Post subject: Re: Database link cannot be dropped Reply with quote

Anurag Varma wrote:
Quote:
Forte Agent wrote:
Dumb question . . . . .

I have an Oracle database 10.2.0.2 where I cannot drop database links.
When I do "drop database link XXX", database link named
"XXX.domainname.com" is dropped, but not "XXX". What should I do?
Thank you in advance.


You might have global_names = true and have a domain specified.

You might need to set global_names to false to accomplish what you
are doing (However, understand the replication repurcussions of doing
that).

Anurag


It may be worth a try, but did you enclose the link name in double quotes?

DROP DATABASE LINK "XXX";

It might not work, but it's worth a shot...

Cheers,
Brian


--
===================================================================

Brian Peasland
dba@nospam.peasland.net
http://www.peasland.net

Remove the "nospam." from the email address to email me.


"I can give it to you cheap, quick, and good.
Now pick two out of the three" - Unknown
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [6 Posts] View previous topic :: View next topic
The time now is Mon Dec 01, 2008 9:05 pm | All times are GMT
navigation Forum index » Databases » Oracle » Server
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Move Oracle 10g database to another location Selt Server 0 Fri Jul 21, 2006 2:14 pm
No new posts database Share Memory Limit (2 GB ) in a Instance is tota... sadanjan@gmail.com IBM DB2 0 Fri Jul 21, 2006 12:57 pm
No new posts A webserver (PHP 5) with a few database server (MySQL) ¥|¥J PHP 2 Fri Jul 21, 2006 1:43 am
No new posts database back up Joko Siswanto MySQL 3 Thu Jul 20, 2006 4:19 pm
No new posts Help: Design the database for a school emdproduction@hotmail.com Server 3 Thu Jul 20, 2006 3:17 pm

Credit Report | Charity | Shopping 2007 | Internet Advertising | Mobile Phones
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 1.4425s ][ Queries: 16 (1.3549s) ][ GZIP on - Debug on ]