|
|
|
|
Re: DB link issue in cloned databases on same host [message #679006 is a reply to message #679004] |
Tue, 28 January 2020 06:53   |
 |
EdStevens
Messages: 1375 Registered: September 2013
|
Senior Member |
|
|
aloksk wrote on Tue, 28 January 2020 01:59On DB 1:
select * from dba_db_links where DB_LINK like 'TRAINING%' order by 2;SQL> SQL> SQL> SQL>
OWNER DB_LINK USERNAME HOST CREATED
------------------------------ ------------------------------ ------------------------------ ------------------------------ ---------
PUBLIC TRAINING.domain.COM ****** trainING.WORLD 20-DEC-19
SQL> select sysdate from dual@TRAINING.domain.COM;
select sysdate from dual@TRAINING;
SYSDATE
---------
28-JAN-20
SQL>
SYSDATE
---------
28-JAN-20
On DB 2(clone of DB1)
select * from dba_db_links where DB_LINK like 'TRAINING%' order by 2;SQL> SQL> SQL> SQL>
OWNER DB_LINK USERNAME HOST CREATED
------------------------------ ------------------------------ ------------------------------ ------------------------------ ---------
PUBLIC TRAINING.domain.COM ********* trainING.WORLD 20-DEC-19
SQL> select sysdate from dual@TRAINING.domain.COM;
select sysdate from dual@TRAINING;
SYSDATE
---------
28-JAN-20
SQL>
select sysdate from dual@TRAINING
*
ERROR at line 1:
ORA-02019: connection description for remote database not found
Both DB's are on same host, have same OH and TNS_ADMIN.
It appears you are selectively copying bits and pieces from your 'proof' session. There are simply too many anomolies. For instance, on the first server, you show two results, but only one query. On the second, you show two queries that are identical except one is properly terminated with ';' and the second is not. And the error ORA-02019 is inconsistent with a query that is not properly terminated.
Bottom line - I can't trust what you show to be reflective of reality.
[Updated on: Tue, 28 January 2020 06:54] Report message to a moderator
|
|
|
Re: DB link issue in cloned databases on same host [message #679007 is a reply to message #679002] |
Tue, 28 January 2020 07:00   |
John Watson
Messages: 8805 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
Historically, there were zillions of issues (even bugs... Can you believe it...) with database domains, database global names, and database links. The contents of your sqlnet.ora file(s) is also relevant. Eventually I concluded that domains cause nothing but trouble and that it is best never to use them. Your release, 11.1.0.7, is old but should be new enough not to introduce new bugs with this but if the databases have been upgraded from previous releases you may have problems. The use of that .WORLD domain (which dates back to release 9i) suggests upgrades.
One hack that I have had to use is to delete the rows from sys.link$ and start again, with all domains removed everywhere. There is probably a better solution.
|
|
|
|
|
|