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 last published in October 2006

Dig Deeper on Oracle database design and architecture

PRO+

Content

Find more PRO+ content and other member only offers, here.

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.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close