Name

dbhome

Use dbhome to get the Oracle Home directory for the given Oracle SID. dbhome reads the value of ORACLE_HOME from the oratab file.

Tip

dbhome is not available on Windows platforms.

Syntax

dbhome [SID]

Parameters

SID

Name of the Oracle SID. The parameter is optional. If not specified, the Oracle Home directory corresponding to the current setting of the ORACLE_SID environment variable is returned.

Examples

The following examples illustrate how to use dbhome with and without the optional parameter.

$ echo $ORACLE_SID
TEST9I
$ dbhome
/u01/app/oracle/product/9.2.0
$ dbhome TEST10G1
/u01/app/oracle/product/10.1.0

Get Oracle Utilities Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.