Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Troubles with database link for local databases
TEST2 - is actually started and CONNECT username/password_at_TEST1 and CONNECT
username/password_at_TEST2 from SQLPlus is work. I have Oracle ver. 8.1.6 and
WinNT 4 Server (5 service pack). Listener.log and SqlNet.log after
connection attempt to TEST1 from TEST2 contain information:
----------------------Listener.log:----------------------------------------- -----------------
----------------------SqlNet.log:-------------------------------------------
VERSION INFORMATION:
TNS for 32-bit Windows: Version 8.1.6.0.0 - Production
Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 8.1.6.0.0 -
Production
Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version
8.1.6.0.0 - Production
Time: 11-MAR-2002 10:37:16
Tracing not turned on.
Tns error struct:
nr err code: 0
ns main err code: 12631
TNS-12631: Username retrieval failed
ns secondary err code: 0
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
----------------------My Listener.ora:---------------------------------------------------------- LISTENER =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = gvv)(PORT = 1521)) )
SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC = (SID_NAME = PLSExtProc) (ORACLE_HOME = c:\orantsrv) (PROGRAM = extproc) ) (SID_DESC= (GLOBAL_DBNAME=test1.world) (SID_NAME=test1) (ORACLE_HOME=c:\orantsrv) ) (SID_DESC= (GLOBAL_DBNAME=test2.world) (SID_NAME=test2) (ORACLE_HOME=c:\orantsrv) )
----------------------My tnsnames.ora----------------------------------------------------------test1.WORLD =
)
(CONNECT_DATA =
(SID = test1)
(GLOBAL_NAME = test1.WORLD)
)
)
test2.WORLD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (COMMUNITY = TCP.WORLD)(PROTOCOL = TCP)(HOST = gvv)(PORT =
1521))
)
(CONNECT_DATA =
(SID = test2)
(GLOBAL_NAME = test2.WORLD)
)
)
It seems to me that's all. Where is error ? Good luck. Vadim.
"Murali" <oraclems_at_hotmail.com> wrote in message news:22e6597b.0203071216.229477bd_at_posting.google.com...
> Hi, > > Make sure your TEST2 database is actually started. Try logging to > TEST2 using SQLPlus. Also make sure that your TNS entries are > configured properly. Try connecting to TEST2 using > username/password_at_connect_string from SQLPlus. If all of the above > works, but you still cannot connect using the dblink, I dont know > what's wrong and I cannot give you an answer based on the very small > amount of information you provided (no OS, version...) > > Murali > http://www.dbaquest.com/Received on Mon Mar 11 2002 - 03:30:04 CST
![]() |
![]() |