dbTalk Databases Forums  

Regarding Oracle Instances

comp.database.oracle comp.database.oracle


Discuss Regarding Oracle Instances in the comp.database.oracle forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Vikash Kumar
 
Posts: n/a

Default Regarding Oracle Instances - 09-13-2004 , 03:56 AM






Are there tools API's provided by Oracle that allows us to
1) Find list of all oracle instances on a server like "db2list"
command in "DB2".
2) Get Configuration parameters for an Oracle Instance.

I wanted to do it programmatically so that my program is OS
independent.

Thanx & Regards
Vikash Kumar

Reply With Quote
  #2  
Old   
Sunil
 
Posts: n/a

Default Re: Regarding Oracle Instances - 09-14-2004 , 12:10 AM






vikash_kumar (AT) persistent (DOT) co.in (Vikash Kumar) wrote in message news:<75444dd.0409130056.900ee61 (AT) posting (DOT) google.com>...
Quote:
Are there tools API's provided by Oracle that allows us to
1) Find list of all oracle instances on a server like "db2list"
command in "DB2".
2) Get Configuration parameters for an Oracle Instance.

I wanted to do it programmatically so that my program is OS
independent.

Thanx & Regards
Vikash Kumar
Hi,
There are API's provided by various database driver specifications
like OLEDB/JDBC.
For example u can use OLEDB , you can call
IDBSchemaRowset::GetRowset() by setting DBSCHEMA_SCHEMATA. It will
list all table schemas.

Using JDBC, you can get database metadata by calling getSchemas() in
java.sql package. Ex: After getting the connection u can call
Connection.getMetaData() which returns DatabaseMetadata. Then using
that call
DatabaseMetadata.getSchemas() which returns a Resultset containing all
schemas.


Oracle also stores the information in system tables. You can query the
tables o get information

Regards
Zunil
Cordys


Reply With Quote
  #3  
Old   
Vikash Kumar
 
Posts: n/a

Default Re: Regarding Oracle Instances - 09-14-2004 , 07:09 AM



Quote:
There are API's provided by various database driver specifications
like OLEDB/JDBC.
For example u can use OLEDB , you can call
IDBSchemaRowset::GetRowset() by setting DBSCHEMA_SCHEMATA. It will
list all table schemas.

Using JDBC, you can get database metadata by calling getSchemas() in
java.sql package. Ex: After getting the connection u can call
Connection.getMetaData() which returns DatabaseMetadata. Then using
that call
DatabaseMetadata.getSchemas() which returns a Resultset containing all
schemas.


Oracle also stores the information in system tables. You can query the
tables o get information

Regards
Zunil
Cordys


Hi sunil,

First of all let me thank u for your help. And actually i needed
a bit more, see i can get the details of the schema its fine that also
i needed but before that i need to know which INSTANCE of Oracle to
connect and query for schemas on the server.

My first n foremost need is to find out all instances running on a
server. So that i can query them for more information.

Ur valuable comment is awaited.

Regards,
Vikash


Reply With Quote
  #4  
Old   
Dick
 
Posts: n/a

Default Re: Regarding Oracle Instances - 09-15-2004 , 06:27 PM



Vikash Kumar wrote:

Quote:
There are API's provided by various database driver specifications
like OLEDB/JDBC.
For example u can use OLEDB , you can call
IDBSchemaRowset::GetRowset() by setting DBSCHEMA_SCHEMATA. It will
list all table schemas.

Using JDBC, you can get database metadata by calling getSchemas() in
java.sql package. Ex: After getting the connection u can call
Connection.getMetaData() which returns DatabaseMetadata. Then using
that call
DatabaseMetadata.getSchemas() which returns a Resultset containing all
schemas.


Oracle also stores the information in system tables. You can query the
tables o get information

Regards
Zunil
Cordys




Hi sunil,

First of all let me thank u for your help. And actually i needed
a bit more, see i can get the details of the schema its fine that also
i needed but before that i need to know which INSTANCE of Oracle to
connect and query for schemas on the server.

My first n foremost need is to find out all instances running on a
server. So that i can query them for more information.

Ur valuable comment is awaited.

Regards,
Vikash
Vikash,
Why don't you look at the "oratab" file or a "ps -ef | grep pmon "?

Dick.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.