Ask the Expert

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. Your help will be greatly appreciated.

    Requires Free Membership to View

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

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
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
Sort by: OldestNewest

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: