Search notes:

/etc/oratab

The /etc/oratab file is a registry of installed databases and Oracle homes on a machine. The main purpose of this file is to automate
The file is created by $ORACLE_HOME/root.sh and updated by the
Each non empty line in this file is an entry.
Lines can be commented with #.
An entry consists of three parts that are separated by a colon (:)
ora12c:/opt/Ora12/product/12.2.0/dbhome_1:N

Show SIDs on a machine

$ cat /etc/oratab | awk -F: '{print $1}' | grep -v "#"

See also

The shell scripts dbhome, dbstart, dbstop and oraenv.
Another places where oratab may be found is /var/opt/oracle/oratab.
On Solaris servers, the oratab file is located in /var/etc/oratab.
The file oratab is created by $ORACLE_HOME/install/utl/rootinstall.sh

Index