How to view sid oracle of

1, how to view the Oracle database sid name
with sysdba log on such conn sys / password as sysdba anonymous administrator login
to perform select name form V $ database; (common method) or execute select * from V $ database;
however, implementation of the contents of two display too much easy to find the results you want
you can first use desc V $ database; statements look V $ database are what field then select the field you want to select

Check the instance name (sid):
the SELECT instance_name from V $ instance;
general default sid with the name of your database is the same!

2.D: \ oracle \ product \ 10.2.0 \ oradata \ SID folder ... 
or D: \ oracle \ product \ 10.2.0 \ db_1 \ dbs \ SPFILESID name .ORA

Under 3.Unix can look like this: 
$ PS -ef | grep ORA_ 
last few letters of the process is sid

Guess you like

Origin www.cnblogs.com/caodneg7/p/11269001.html