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

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Linux/fh...', 1758205791, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Linux/fhs/etc/oratab(71): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78