We had a Database Link Set up to access an external database on a server I have no control over through our database (to run queries). This has stopped working within the last day or so, the code used to create the link was:
CREATE PUBLIC DATABASE LINK "LINKNAME"
CONNECT TO USERID
IDENTIFIED BY "PASSWORD"
USING 'DBNAME';
Testing the link:
SELECT * FROM DUAL@LINKNAME
Gives an error of "ORA-12541: TNS:no listener", however the database can be accessed directly (from our database server) using SQL-Plus (and the same details as in the Database link).
Our TNSNames.ORA file on the server contains the following entry for the DBLINK (IP address correct but masked by me):
DBLINK =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = xxx.xxx.xxx.xxx)(PORT = 1521))
)
(CONNECT_DATA =
(SID = TEST)
)
)
I'm not sure if they've changed anything there end which could have caused this or not, does anyone know anything which may shed some light on this, whether it is possible to restrict access like this?
We've tried restarting our server here and restarted our listener separately, plus recreated the link (on my PC and directly on the server).
Thanks
Ger
CREATE PUBLIC DATABASE LINK "LINKNAME"
CONNECT TO USERID
IDENTIFIED BY "PASSWORD"
USING 'DBNAME';
Testing the link:
SELECT * FROM DUAL@LINKNAME
Gives an error of "ORA-12541: TNS:no listener", however the database can be accessed directly (from our database server) using SQL-Plus (and the same details as in the Database link).
Our TNSNames.ORA file on the server contains the following entry for the DBLINK (IP address correct but masked by me):
DBLINK =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = xxx.xxx.xxx.xxx)(PORT = 1521))
)
(CONNECT_DATA =
(SID = TEST)
)
)
I'm not sure if they've changed anything there end which could have caused this or not, does anyone know anything which may shed some light on this, whether it is possible to restrict access like this?
We've tried restarting our server here and restarted our listener separately, plus recreated the link (on my PC and directly on the server).
Thanks
Ger