Skip Headers
Oracle® Database Installation Guide
10g Release 2 (10.2) for hp OpenVMS

Part Number B25414-02
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

D Installing, Configuring, and Running EMAgent

This appendix describes Enterprise Manager Agent (EMAgent) for Oracle Database 10g release 2 (10.2). It includes information about the following topics:

D.1 Introduction to EM Framework

This release of EMAgent is different from the previous releases of Oracle Intelligent Agent in terms of architecture and implementation. EMAgent is part of the Enterprise Manager Framework. The DBConsole and Application Control components are not supported on Oracle Database 10g for OpenVMS. To use EMAgent for OpenVMS, it is necessary to install the Oracle Management Server (OMS) component of Grid Control Enterprise Manager on a UNIX-based or Microsoft Windows-based computer. EMAgent running on OpenVMS will register with and function in coordination with the OMS.

Starting with Release 10gR2 (10.2.0.2), the EMAgent is not shipped with the Oracle Database 10g Kit. It is shipped separately as a standalone Grid Control Enterprise Manager kit. The EMAgent in 10gR2 will not work with the Enterprise Manager shipped with release 9i and earlier.

EMAgent is implemented in C, Java, and Perl. Unlike earlier versions, TCL scripts are no longer used. These are replaced by Perl scripts. Perl version 5.8 is included in the kit along with the EMAgent. Oracle Universal Installer automatically installs Perl. It is not required to install a separate Perl kit. Note that this kit includes Oracle-specific DBD or DBI, and is therefore, the only supported Perl kit for use with Oracle Database. The logical name PERL_ROOT will be defined to the physical path ORA_ROOT:[PERL] as a job level logical name. To avoid potential conflict with Perl from any other kit, including any future versions supplied by Oracle, it is recommended not to convert this logical name to a GROUP or SYSTEM logical name.

The Job model supported in previous releases is still available in this release in a similar, but not identical, fashion. Jobs can be submitted, their status can be monitored, and their output checked. The Event model, as it existed in earlier versions, is no longer available. Instead, what is available is Targets. Refer to Section D.5, "Supported Targets and Jobs" for more information.

See Also:

For more details, refer to the README_VMS_10GR2.TXT file shipped with the Oracle Database Server Kit. The information in this file supersedes the information in this appendix

D.2 Installation Requirements

If you choose not to create a dedicated batch queue ORA_BATCH_QUEUE_hostname for EMagent,then you must define a logical name ORA_BATCH_QUEUE_hostname(a Process or Job logical is sufficient) to the name of the batch queue to be used for running EMAgent. In addition to running in the batch queue, EMAgent also submits a number of other tasks, typically related to actions required on other Oracle installations on the same host.

The hostname part of the logical name should be the same as the value of the TCPIP$INET_HOST logical name. The batch queue specified should run at the same priority level as all other general purpose processes on the system, typically 4.

For example,the following qualifiers would be typical for creating the batch queue that is used for EMAgent.:

/BASE_PRIORITY=4 /CPUDEFAULT=INFINITE /CPUMAXIMUM=INFINITE /JOB_LIMIT=100 /OWNER=[SYSTEM] /PROTECTION=(S:M,O:RSD,G:S,W:S)

EMAgent internally spawns a number of subprocesses and detached processes to run a majority of its tasks. The type of actions performed in these processes ranges widely from running simple DCL commands to running Java applications. It is imperative that the account used to install and run EMAgent not modify the typical OpenVMS session environment in any way that would alter the expected output of normal DCL commands. The LOGIN.COM file of the account used to start or stop the agent should not have any such redefinitions. If the redefinitions are required for any reason, then it is recommended that they be disabled in the batch mode, because EMAgent runs in the batch mode.

D.3 Installation and Configuration

When you initially run Oracle Universal Installer, it instantiates certain files under the ORA_ROOT:[SYSMAN.EMD] and ORA_ROOT:[SYSMAN.CONFIG] directories. These are the Targets files and the Properties files. However, these cannot be used directly. EMAgent is configured correctly when Database Configuration Assistant is run. The configuration files are created under a separate directory structure (ORA_ROOT:[hostname_sid.SYSMAN...]). Because the DB Console is not supported on OpenVMS, it is necessary to make certain manual changes to the configuration file or files before starting EMAgent.

Manual Changes Required Before Attempting to Start EMAgent

You must manually change the following properties in the ORA_ROOT:[Hostname_SID.SYSMAN.CONFIG]EMD.PROPERTIES file before starting EMAgent.

  1. REPOSITORY_URL

    This property is required to allow EMAgent to upload data to a central Grid Control EM Repository. When EMAgent starts, it registers its targets and other host configuration information with the Oracle Management Server (OMS) so that they are displayed on the Grid Control EM Console. It is then possible to manage the targets from the EM Console. A sample REPOSITORY_URL property is as follows:

    REPOSITORY_URL=http://orclhost01.us.oracle.com:4889/em/upload
    
    
  2. agentTZRegion

    This property indicates the time zone in which EMAgent is running. To update this property in the EMD.PROPERTIES file, run the following command:

    $ EMCTL CONFIG AGENT UPDATETZ
    
    

    A sample agentTZRegion property for Pacific Standard Time is as follows:

    agentTZRegion=-08:00
    

D.4 Management and Maintenance

This section describes the procedures to manage and maintain EMAgent.

D.4.1 Startup, Shutdown, and Status

Perform the following steps to start, shut down, or view the status of EMAgent:

  • After the manual configuration is complete, run the following command to start EMAgent:

    $ EMCTL START AGENT
    
    
  • To shut down EMAgent, run the following command:

    $ EMCTL STOP AGENT
    
    
  • To query the status of EMAgent at any time, run the following command:

    $ EMCTL STATUS AGENT
    

Note:

EMAgent is the only mechanism of communication between the Oracle Management Server and targets or applications running on the host. Therefore, it is not possible to start up or shut down EMAgent from the EM Console.

D.4.2 Troubleshooting and Maintenance

Perform the following tasks to manage or troubleshoot EMAgent:

D.4.2.1 EMAgent Fails to Start

If EMAgent fails to start, check the following files for typical error messages:

Batch Job Log File

EMAgent is submitted as a batch job into the agent batch queue whenever it is started. Each time EMAgent starts, a fresh batch log file is created, which is available at ORA_ROOT:[SYSMAN.LOG]START_AGENT_HOST.LOG. Refer to the latest version of this log file. If it is readable (not locked by a running EMAgent process), look through the file to see if there are any failure messages. Typical errors would be Failure to launch the EMAgent because of some issues with related shared libraries.

EMAgent Log and Trace Files

If there are no errors in ORA_ROOT:[SYSMAN.LOG]START_AGENT_HOST.LOG, look at the emagent.trc and emagent.log files. These are located in the ORA_ROOT:[host_sid.SYSMAN.LOG] directory. A common error is Address already in use, when the port number on which EMAgent is listening is being used by some other application.

Note:

If you are not able to restart the Agent, please make sure that there are no processes on the system that start with ORA_EM*.

You can stop all the process by entering the command $ STOP/ID=<process-id> on each one of them and then try to restart the agent.

D.4.2.2 Extended File Specification (EFS) Characteristics

EMAgent requires an extended file-specifications environment to handle files with multiple dots in their names, long file names, and so on. The default Oracle environment (after running ORAUSER.COM) does not provide this environment. Internally, EMAgent tools set up this extended environment when started, and reset the environment back to the original when completed. In a normal run, it is not necessary for an EMAgent administrator to require this environment for interactive use. However, in certain situations, when there are failures due to interruption in the host system, or due to lack of resources, it may be required to manually manipulate certain files, which in turn, would need the EFS environment.

There are two scripts included with EMAgent kit that provides the EFS environment:

  • ORA_ROOT:[SYSMAN.BIN]EFS.COM

    Enables the EFS environment..

  • ORA_ROOT:[SYSMAN.BIN]NOEFS.COM

    Resets the environment to non-EFS.

For convenience, two DCL symbols have been created to set and reset the EFS environment. Symbol EMDEFS sets the EFS environment, and symbol NOEMDEFS resets the EFS environment.

D.4.2.3 TMP Directory

EMAgent run time creates a number of temporary files during processing. All temporary files are created in a directory specified by the logical name ORA_AGENT_TMP. This logical name is automatically defined to the physical path, ORA_ROOT:[SYSMAN.host.TMP], when setting up the Oracle environment.

It is possible that certain temporary files may not be deleted due to interruptions or failures. It is recommended that this directory content be monitored on a periodic basis and files that are more than three hours old be deleted.

D.4.2.4 Monitoring the Batch Queue

As mentioned in Section D.2, "Installation Requirements", EMAgent runs as a batch job in a batch queue. EMAgent also submits a number of jobs to the batch queue for tasks such as monitoring, start up and shut down of databases and listeners running in other Oracle installations. There is a possibility that broken environments in these installations could cause these submitted jobs to stop responding. It is recommended that the batch queue be periodically monitored for any long-pending jobs (any job of more than three hours is long-pending) and such jobs be deleted.

D.4.2.5 Disk Space on EMAgent Install Area

There are two agent parameters listed in the EMD.PROPERTIES properties file related to disk space:

  • UploadMaxDiskUsedPct

  • UploadMaxDiskUsedPctFloor

Ensure that the agent parameters are set correctly at the required level. When the percentage of space used on the disk exceeds UploadMaxDiskUsedPct ,uploads will stop, as well as updates from the EMAgent to the Oracle Management Server. When uploads are stopped, EMAgent status will appear as up and running, but the line reporting Last Successful Upload will show a time stamp that remains the same over periods exceeding the value of UploadInterval in the EMD.PROPERTIES file. Uploads will be enabled again when the percentage of space used on the disk falls below the value of UploadMaxDiskUsedPctFloor, which should be less than UploadMaxDiskUsedPct.

D.4.2.6 Resetting EMAgent Environment

You can shut down EMAgent that is already running, and reconfigure it to point to a different Oracle Management Server. To reset EMAgent environment, it is recommended to perform the following tasks:

  1. Delete the ORA_ROOT:[host_sid.SYSMAN.EMD]LASTUPLD.XML;* file.

  2. Delete all files in the ORA_ROOT:[host_id.SYSMAN.EMD.UPLOAD] directory.

  3. Delete all files in the ORA_ROOT:[host_id.SYSMAN.EMD.STATE] directory.

  4. Delete all files in the ORA_ROOT:[host_id.SYSMAN.EMD.COLLECTION] directory.

  5. Delete all files in the ORA_ROOT:[host_sid.SYSMAN.EMD.RECV] directory.

  6. Rename or delete EMAgent log and trace files:

    ORA_ROOT:[host_sid.SYSMAN.LOG]EMAGENT.LOG
    ORA_ROOT:[host_sid.SYSMAN.LOG]EMAGENT.TRC
    

D.5 Supported Targets and Jobs

The following targets and jobs are supported by EMAgent.

Targets

EMAgent supports the following targets:

When EMAgent is started, EMAgent reads the TARGETS.XML file in the ORA_EMSTATE_EMD directory, and registers those targets with the Oracle Management Server. The status of each of the targets is reflected under the Targets tab of the EM Console. EMAgent monitors the registered targets on a periodic basis and uploads the status of the targets to the Oracle Management Server, which is reflected on the EM Console. In addition, a set of predefined metrics are also collected for each target and uploaded to the Oracle Management Server. Default thresholds are defined for each predefined metric on the Oracle Management Server. When a threshold is reached, an alert is generated and displayed on the console. This mechanism of automatic target monitoring replaces the Events model of earlier releases.

See Also:

For more information about targets, refer to Oracle Enterprise Manager Concepts 10g Release 2 (10.2)

Jobs

The following jobs are supported by EMAgent:

D.6 Known Limitations

EMAgent has the following known limitations:

  1. Jobs will always indicate a successful completion status, as long as the agent has been able to create a detached process and run the command specified for the job. The status of job completion is not a reflection of the completion status of the job command. If the command fails for some reason, then the job itself will not be indicated as a failure, but the output of the job needs to be checked to verify if the command has succeeded or not.

  2. The metric browser does not support all metrics. All metrics in the host metrics area are not applicable to Oracle Database. For more details, refer to the README_VMS_10GR2.TXT file shipped with the Oracle Grid Control EMAgent Kit.