All technological notes.
The oraenv and coraenv scripts:
oratab file and provide:
oratab fileDBA can use the oraenv or coraenv script to ensure that user accounts are updated and to switch between databases.
file location: /usr/local/bin/oraenv
. oraenv
# or
. /usr/local/bin/oraenv
oratab file resides in different locations based on the host operating system| Host operating system | File location |
|---|---|
| Linux | /etc/oratab |
| Solaris | /var/opt/oracle/oratab |
| IBM AIX | /etc/oratab |

Linux command to return process of Oracle
| Command | Description |
|---|---|
pgrep -lf smon |
search for process like smon to verify the database is started |
pgrep -lf tns |
search for tns process like tns to verify the listener is started |

archive log view:
Also note that the VSARCHIVED LOG view contains historic information of prior database incarnations. The NAME column of the active database incarnation contains the path and name of the archive log; historic incarnations have a null value. The status A is for archived logs, D is for deleted ones.