Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Can we drop users database links as 'SYS' ?

JhilOct 26 2016 — edited Oct 26 2016

Hi all,

I tried to drop a database link as 'SYS' user

(but database link was already created by some database users).

SQL> show user;

USER is "SYS"

SQL> select owner, db_link, username, created from sys.dba_db_links;

OWNER                          DB_LINK                          USERNAME                       CREATED

------------------------------ -------------------------------- ------------------------------ ---------

SCOTT                          CRMSDB                           SCOTT                          26-OCT-16

SQL> select name , userID, PASSWORDX from sys.link$ where name='CRMSDB';

NAME                             USERID                         PASSWORDX

-------------------------------- ------------------------------ ----------------------

CRMSDB                           SCOTT                          05ADCE5EF92CF371CF5A33F9DB315012FD

SQL> drop database link crmsdb;

drop database link crmsdb

                   *

ERROR at line 1:

ORA-02024: database link not found

SQL> conn scott

Enter password: *****

Connected.

SQL> drop database link crmsdb;

Database link dropped.

DB : 11.2.0.4.0

This post has been answered by Russell Clay on Oct 26 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 23 2016
Added on Oct 26 2016
3 comments
979 views