th83
09-27-2003, 07:26 AM
People i am having problem conecting to datbases in oracle 8i using SqlpPlus
i use the command
lsnrctl status
there was no listener running
so i us the command
lsnrctl start
then i again test the listener status and it listed all my database
(c) Copyright 1998 Oracle Corporation. All rights reserved.
Connecting to (DESCRIPTION=(PROTOCOL_STACK=(PRESENTATION=TTC)(SESSION=NS))(ADDRE
SS=(PROTOCOL=IPC)(KEY=ORCL)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 8.1.5.0.0 - Produc
tion
Start Date 27-SEP-03 13:22:45
Uptime 0 days 0 hr. 15 min. 24 sec
Trace Level off
Security OFF
SNMP OFF
Listener Parameter File E:\Oracle\Ora81\network\admin\listener.ora
Listener Log File E:\Oracle\Ora81\network\log\listener.log
Services Summary...
GLOBALDB has 1 service handler(s)
TESTDB has 1 service handler(s)
ORCL has 1 service handler(s)
Now when i try to connect to the GlobalDB
D:\>sqlplus username/pass@GlobalDB
It gives me error
ERROR:
ORA-12154: TNS:could not resolve service name
i want to connect to particular database (e.g TestDB or GlobalDB) not to my default database
i use the command
lsnrctl status
there was no listener running
so i us the command
lsnrctl start
then i again test the listener status and it listed all my database
(c) Copyright 1998 Oracle Corporation. All rights reserved.
Connecting to (DESCRIPTION=(PROTOCOL_STACK=(PRESENTATION=TTC)(SESSION=NS))(ADDRE
SS=(PROTOCOL=IPC)(KEY=ORCL)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 8.1.5.0.0 - Produc
tion
Start Date 27-SEP-03 13:22:45
Uptime 0 days 0 hr. 15 min. 24 sec
Trace Level off
Security OFF
SNMP OFF
Listener Parameter File E:\Oracle\Ora81\network\admin\listener.ora
Listener Log File E:\Oracle\Ora81\network\log\listener.log
Services Summary...
GLOBALDB has 1 service handler(s)
TESTDB has 1 service handler(s)
ORCL has 1 service handler(s)
Now when i try to connect to the GlobalDB
D:\>sqlplus username/pass@GlobalDB
It gives me error
ERROR:
ORA-12154: TNS:could not resolve service name
i want to connect to particular database (e.g TestDB or GlobalDB) not to my default database