How to see available SID’s in Oracle

Once you have installed Oracle database and rebooted the system you can go to a command line window and type the following:

C:\Users\hecperez>LSNRCTL SERVICES

The response should look like this:

LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 20-FEB-2014 10:23:51
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
 Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
 Handler(s):
 "DEDICATED" established:0 refused:0
 LOCAL SERVER
Service "PLSExtProc" has 1 instance(s).
 Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
 Handler(s):
 "DEDICATED" established:0 refused:0
 LOCAL SERVER
Service "XEXDB" has 1 instance(s).
 Instance "xe", status READY, has 1 handler(s) for this service...
 Handler(s):
 "D000" established:6 refused:0 current:0 max:1022 state:ready
 DISPATCHER <machine: 1MP8VY1, pid: 2888>
 (ADDRESS=(PROTOCOL=tcp)(HOST=1MP8VY1.gemalto.com)(PORT=49163))
Service "xe" has 1 instance(s).
 Instance "xe", status READY, has 1 handler(s) for this service...
 Handler(s):
 "DEDICATED" established:5 refused:0 state:ready
 LOCAL SERVER
The command completed successfully

This was useful for me when I was trying to connect to an ORCL SID and I was getting an error, I just executed this command and discovered the SID was not in my local database so I just used another available one.

Leave a comment