User Tools

Site Tools


how_to_find_what_sids_are_available_on_your_machine

From Unix

ps -ef | grep [[o]]ra_pmon | sed -e 's/.*_//' | sort | uniq

or

ps -ef | grep [[o]]ra_pmon | awk -F_ '{print $NF}'

From Windows

Look through list for services beginning with OracleService<SID>

services.msc

From the Windows command line

Note: Windows does not understand single quotes so the Perl one-liner has to use “

sc queryex state= all | find "SERVICE_NAME" | find "OracleService" | perl -ne "print \\"$1\
" if /OracleService(.+)$/"

How to see what databases have been defined (running or not)

cat /var/opt/oracle/oratab (Solaris)
cat /etc/oratab (others)
how_to_find_what_sids_are_available_on_your_machine.txt · Last modified: 2019/01/30 11:32 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki