Q

List of databases installed on local machine

I am using Oracle 10g. How can I see the different databases installed on my local machine? Also I want to see a list of tables in a particular database. I want to use SQL*Plus to get this information.

I am using Oracle 10g. How can I see the different databases installed on my local machine? Also I want to see a list of tables in a particular database. I want to use SQL*Plus to get this information. Your help will be greatly appreciated.
To see the list of databases on your server, you need to follow one of the following procedures:

In Windows, go to Control Panel->Administrative Tools->Services and look for any service with a name similar to 'OracleServiceSID.' The SID is your instance name. There will be one instance for each database.

In Unix/Linux, look for a file called "oratab" in either the /var/opt/oracle directory or the /etc directory. This file will contain one entry for each instance.

Unfortunately, there is no native method in SQL*Plus to see the above information.

To see the list of tables in the database, you can query the DBA_TABLES Data Dictionary view, similar to the following:

SELECT owner,table_name FROM dba_tables;

The Data Dictionary views are fully described in the Oracle 10g Reference Guide.

This was first published in October 2006

Dig deeper on Oracle database design and architecture

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close