Overview The following information will detail system management utilities that can be used to successfully manage Oracle products in a UNIX environment. As Oracle products have become increasingly complex the simple tasks managing these products has become more and more difficult. Each new release brings more details and options that must be handled in order to successfully manage the Oracle environment. Oracle has not made this any easier by consistently failing to deliver tools or scripts to address the problems that are caused by incorrectly set environments and multiple ORACLE_HOME installations. Oracle makes no provision for managing the environment requirements of most of the Oracle Server utilities like the Net listener, Intelligent Agent, Oracle Names server or Oracle Enterprise Manager. Oracle environment management is setup and management of the UNIX operating system environment in which Oracle processes run. This includes the setting of environment variables like ORACLE_HOME and ORACLE_SID, and adding PATH directories like $ORACLE_HOME/bin. It also includes the startup and shutdown of the Oracle database, and the other Oracle processes that run to support an Oracle system like the Net listener and Enterprise Manager. The need for a consistent and defined methodology for handling database, SQL*Net/Network listener, Intelligent Agent/OEM processes, and Oracle Applications processes is important. When combined with multiple ORACLE_HOME software the issues become even more complex. In complicated environments just getting a correct UNIX environment setup can be difficult since Oracle makes it difficult to know which ORACLE_HOME is associated with Oracle service other than the database. Oracle supplies several standard scripts to help with database environment, startup and shutdown, but does not provide any help with its other product offerings. The following is a summary of the issues that are affected by environment management and that this Guide will address: 1. Database startup and shutdown - These tasks must be performed from the correct userid (e.g. oracle) and must have the correct environment set (e.g. ORACLE_HOME, ORACLE_SID, PATH, LD_LIBRARY_PATH, NLS_LANG). Failure to do so can result in task failure and damage to the database. In addition, anyone with responsibility for these tasks must be aware of the correct procedures to follow.
2. The following processes all suffer from the problem that there is no process to associate the correct ORACLE_HOME and executables with the version of the process that is running:SQL*Net/Network listener(s) startup and shutdown. To further complicate the issue, dynamic registration works best if the listener is started before any databases. If running shared servers then the listener should also be running before the database is started in order for the dispatchers to start correctly. o Oracle Intelligent Agents o Oracle Names server o OEM 9i Oracle Management Server o 10g OEM dbconsole
3. Oracle Applications processes - The correct "applmgr" userid and APPL_TOP directory structure must be known and set before successful startup and shutdown of Oracle Application processes. This is made even more complex when multiple nodes are used. All of these issues are magnified when trying to set up automatic startup and shutdown during machine reboots.
Oracle Supplied Environment Setup Oracle supplies the utilities coraenv/oraenv and dbhome to help customers with environment setup. These utilities drive off the "oratab" file to obtain the correct ORACLE_HOME for the database SID being accessed. Unfortunately these utilities have limited functionality. Not all environment variables are set and no support is available for other utilities (e.g. SQL*Net listener(s), Intelligent Agent, etc.).
Oracle Supplied Database Startup and Shutdown Oracle supplies the scripts dbstart and dbshut to automate the startup and shutdown of all databases based on their "oratab" entry. These scripts can be run by hand or when the operating system is started or stopped. Unfortunately there is no mechanism for dealing with the SQL*Net listener, Intelligent Agents or Oracle Applications concurrent manager processes.
Oracle Environment Control Oracle environment control is maintained in two metadata files located in the /var/opt/oracle directory1. The oraInst.loc file is used by the Oracle Universal Installer to maintain the inventory directory location and installation group name. The oratab file is used 1 This will be the /etc directory on some platforms.
to maintain the database SIDs defined, their corresponding ORACLE_HOME directory and a Y or N flag to indicate whether the database should be started on boot. The following willdescribe these files in detail and the extensions made to them.
oraInst.loc File The oraInst.loc file is used by the Oracle Universal Installer to locate the oraInventory directory. The format of the file is as follows: #Oracle Installer Location File Location #Wed Feb 27 14:43:50 PST 2002 inventory_loc=/oracle/product/9.2.0/oraInventory inst_group=dba
By default the ‘oraInventory” directory is placed in the $ORACLE_BASE directory.
Cloning Considerations When cloning ORACLE_HOME directories we recommend that the “inventory_loc” parameter point to $ORACLE_HOME/oraInventory. This will locate the oraInventory directory in the $ORACLE_HOME directory. This facilitates copying the ORACLE_HOME directory structure and still allows it to be patched or upgraded. Thisrequires that the oraInst.loc file be reviewed before starting any Oracle Universal Installer (OUI) session when supporting multiple ORACLE_HOME installations on the same machine. Our standard, when there is more than one ORACLE_HOME being managed is to maintain all of the inventory locations in the file with comments, and then uncomment the inventory being maintained at any given point in time. The following shows an example of two ORACLE_HOME directories being maintained in one oraInst.loc file: #Oracle Installer Location File Location #Wed Feb 27 14:43:50 PST 2002 inventory_loc=/oracle/product/9.2.0/oraInventory #inventory_loc=/oracle/product/9.0.1/oraInventory inst_group=dba
oratab File The oratab file maintains information about the databases currently installed. It is created during installation by the root.sh script and updated by the Database Configuration Assistant (DBCA) when creating new databases. The format of an entry is: $ORACLE_SID:$ORACLE_HOME: where $ORACLE_SID is the database system identifier, $ORACLE_HOME is the Oracle Server software directory for the database, and the third field is used by the “dbstart” utility with a “Y” indicating that the database should be started at system boot and a “N” indicating that it shouldn’t. A colon terminates a field and comment lines are ignored by the Oracle utilities.
oratab Extensions The oratab file has been extended through the use of comments that allow it to be used to maintain additional information for other Oracle Server utilities as well. By using additional comments, Oracle provides commented information in this file as well, the integrity of the file is maintained and no Oracle supplied utilities that use this file are affected. The standard Oracle supplied utilities provide no ability to handle the additional server utilities, their locations, and additional options that must be known in order to start them. A good example is the SQL*Net listener. A single SQL*Net listener can support multiple Oracle databases, and each of these databases can have a unique ORACLE_HOME. In addition, there can be multiple listeners defined for a given ORACLE_HOME, or again for multiple ORACLE_HOMEs. In order to support these additional Oracle Server utilities the oratab file is modified with additional comment lines to define the Oracle utilities available, their locations and any options. The following lists the current oratab format recommendations, and these do not interfere with Oracle supplied tools and scripts and do not violate Oracle’s syntax for this file: :: <== Oracle standard format #::
nice blog good information about oracle fusion hcm training in Kuwait Thanks for posting this weblog i absolutely cherished it and submit a few specific blogs approximately oracle........visit our website related to oracle fusion hcm training in Kuwait for more information please check the site oracle cloud fusion online trainings
Name: Srinivasan .R Home: Chennai, India About Me: I am working as an Oracle Applications DBA specializing in EBS 11i/R12 with Over 14+ years of experience, mainly in different versions of Oracle Database & Application administration on various platforms like HP-UX, SOLARIS, AIX, Red hat Linux & Windows See my complete profile
nice blog good information about oracle fusion hcm training in Kuwait
Thanks for posting this weblog i absolutely cherished it and submit a few specific blogs approximately oracle........visit our website related to oracle fusion hcm training in Kuwait for more information please check the site
oracle cloud fusion online trainings