Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Oracle Cmd to list all Databases

Status
Not open for further replies.

Japskunk72

Programmer
Joined
Feb 19, 2003
Messages
64
Location
US
I was wondering if you where the admin to an oracle db server what is the command to list all the DB's on the system? is there an SQL command that will display all databases?
Thanks
JT
 
THere isn't a reliable one. Most depend on the databases being active - they cannot find the ones shut down

Alex
 
Your best clue would probably be the listener.ora file.
 
Carp - only if its up to date :-)

Alex
 
Hi,
If you have access to the server itself, (and it is Windows-based) then looking in the services list will show you which instances are created on that box...

( In Unix you can probably find some info somewhere under /etc or in $ORACLE_HOME )

If there is an Oracle Agent running on the server, then Enterprise Manager can 'discover' the instances...

[profile]

 
there isnt a select statement or a SQL command to run in the SQL Plus tool? I am running Windows 2000 on a windows 2000 server with SQL 2000 running on it. can i get to it from SQL2000?
Thanks

BTW
SQL 2000 is on a different computer then ORACLE and doesnt have Oracle instance of anything on it.

Thanks again
JT
 
Hi,
No, a SqlPlus query can only tell you about the database instance it is connected to ( either directly or by a db link)... As a SqlServer person you may be confusing databases( in SqlServer terms) with schemas ( which is what an commonly-owned set of objects [tables,views etc] is called in Oracle-speak).

As to part 2 of your question, in almost all cases ( except using some 3rd-party thin-client ODBC drivers) you need to have SqlNet client software on any server or workstation that needs to connect to a remote Oracle instance...


[profile]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top