Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> ORA-02018 problem with closing dblink after data were selected
Hello,
I've got problem with dropping dblink after some data selection was
executed,
simple workflow can be found below:
DBLINK1 is actually defined for local database link (here Oracle 9.2)
and DBLINK2 for remote one
(Oracle 10.2). Even no data were selected I cannot drop database link
for remote database within
current session - ORA-02018 always appears.
Drop can be executed only if current session will be closed or from
different connection.
Can you help me??
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production With the Partitioning, OLAP and Oracle Data Mining options JServer Release 9.2.0.1.0 - Production
SQL> CREATE DATABASE LINK DBLINK1 CONNECT TO paris IDENTIFIED BY a USING 'PROM1'; Database link created.
SQL> CREATE DATABASE LINK DBLINK2 CONNECT TO paris IDENTIFIED BY a USING 'DEIMOS'; Database link created.
SQL> INSERT INTO TASK_INFO_at_DBLINK1(ID, PROJECT_ID, DESCRIPTION,
CLASS_ID, INST_ID, USER_ID,
EXECUTION_DATE, INTERVAL, ISEXECUTED) SELECT ID, 1000, DESCRIPTION,
CLASS_ID, INST_ID, USER_ID,
EXECUTION_DATE, INTERVAL, ISEXECUTED FROM TASK_INFO_at_DBLINK2 WHERE
PROJECT_ID = 1640;
0 rows created.
SQL> COMMIT; Commit complete.
SQL> DROP DATABASE LINK DBLINK1; Database link dropped.
SQL> DROP DATABASE LINK DBLINK2;
DROP DATABASE LINK DBLINK2
*
![]() |
![]() |