There was a discussion in oracle forums about the SIDvs Service name...
After going through the thread i just realised that
in 10g on a Dynamic registered instance we will be able to connect only using SERVICE_NAME and not using the SID_NAME..
C:\WINDOWS\system32>lsnrctl status
LSNRCTL for 32-bit Windows: Version 10.2.0.4.0 - Production on 29-DEC-2009 10:43
:35
Copyright (c) 1991, 2007, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=pc-44.)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.4.0 - Produ
ction
Start Date 29-DEC-2009 10:14:38
Uptime 0 days 0 hr. 28 min. 57 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File D:\ORACLE\PRODUCT\10.2.0\DB_1\network\admin\listener.o
ra
Listener Log File D:\ORACLE\PRODUCT\10.2.0\DB_1\network\log\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=pc-44)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
C:\WINDOWS\system32>tnsping test
TNS Ping Utility for 32-bit Windows: Version 10.2.0.4.0 - Production on 29-DEC-2
009 10:43:53
Copyright (c) 1997, 2007, Oracle. All rights reserved.
Used parameter files:
D:\ORACLE\PRODUCT\10.2.0\DB_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (SOURCE_ROUTE=yes) (ADDRESS
=(PROTOCOL=tcp)(HOST=pc-44)(PORT=1630)) (ADDRESS=(PROTOCOL=TCP)(HOST = PC-44)(PO
RT = 1522))) (CONNECT_DATA = (SID = TEST)))
TNS-12541: TNS:no listener
C:\WINDOWS\system32>tnsping test
TNS Ping Utility for 32-bit Windows: Version 10.2.0.4.0 - Production on 29-DEC-2
009 10:44:16
Copyright (c) 1997, 2007, Oracle. All rights reserved.
Used parameter files:
D:\ORACLE\PRODUCT\10.2.0\DB_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (SOURCE_ROUTE=yes) (ADDRESS
=(PROTOCOL=tcp)(HOST=pc-44)(PORT=1630)) (ADDRESS=(PROTOCOL=TCP)(HOST = PC-44)(PO
RT = 1521))) (CONNECT_DATA = (SID = TEST)))
TNS-12541: TNS:no listener
C:\WINDOWS\system32>tnsping test
TNS Ping Utility for 32-bit Windows: Version 10.2.0.4.0 - Production on 29-DEC-2
009 10:45:58
Copyright (c) 1997, 2007, Oracle. All rights reserved.
Used parameter files:
D:\ORACLE\PRODUCT\10.2.0\DB_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS=(PROTOCOL=TCP)(HOS
T = PC-44)(PORT = 1521))) (CONNECT_DATA = (SSERVICE_NAME = TEST)))
OK (60 msec)
C:\WINDOWS\system32>