The oratab file located in /etc (/var/opt/oracle for Solaris) is used to identify the databases running on a server and their respective ORACLE_HOMEs. The information in this file is used by the dbhome script (which is called by running oraenv) to set your ORACLE_HOME, PATH and other variables. If you're curious about how this all works, I would recommend stepping through both the oraenv and dbhome scripts. You cannot keep listener information in this file. The listener.ora file located in $ORACLE_HOME/network/admin (unless you set $TNS_ADMIN to point elsewhere) is where you would configure your listener(s).
Search and Browse the Expert Answer Center Search and browse more than 25,000 question and
answer pairs from more than 250 TechTarget industry experts.
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.