Wednesday, July 25, 2012

SQL Query to get SID from Oracle Database

Sometimes you need SID in JDBC URL to connect to an Oracle database.

If you already have Service Name and other connection detail, you can connect to the database and query instance_name which is SID using the following query :

select INSTANCE_NAME from V$INSTANCE

0 Comments:

Post a Comment

<< Home