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
- setting environment variables
- starting and stopping Oracle databases (instances)
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 (
:
)
- The first part is the Oracle SID.
- The second part is the path to the Oracle Home directory.
- The third part is either an
N
or a Y
to indicate if the respective database should be started when the system is booted.
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
On Solaris servers, the oratab
file is located in /var/etc/oratab
.