Skip Headers
Oracle® Database System Administration Guide
10g Release 2 (10.2.0.5) for IBM z/OS on System z

B25398-04
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
PDF · Mobi · ePub

13 Oracle Enterprise Manager Management Agent

This chapter introduces Oracle Enterprise Manager Management Agent, and provides configuration information.

The following topics are included:

13.1 Overview

Oracle Management Agent runs jobs and events sent by Oracle Enterprise Manager and can start and shut down a database. It can function regardless of the status of the network connection, and it can run even if the database is down. It enables the database administrator to monitor and control a database from a central location on the network.

Oracle Management Agent is controlled using a command in the z/OS UNIX System Services shell environment. Currently, it is the only component of Oracle Enterprise Manager that is implemented for Oracle Database for z/OS. For more information about Oracle Management Agent, refer to the Oracle Enterprise Manager documentation set.

13.2 Configuring Oracle Management Agent

Oracle Management Agent is installed with Oracle Database for z/OS. Oracle Universal Installer also configures most of the required parameters.

For Oracle Management Agent to work correctly on z/OS, the following changes must be made to the system:

To complete the configuration, the following three files need additional customization:

<?xml version="1.0" encoding="IBM-1047"?>
<Targets AGENT_SEED="agent_seed">
 <Target TYPE="oracle_emd" NAME="local_host:local_port" VERSION="1.0"
 <Target TYPE="host" NAME="local_host" VERSION="1.0"/>
 <Target TYPE="oracle_database" NAME="DB_sid" VERSION="1.0">
  <Property NAME="MachineName" VALUE="local_host"/>
  <Property NAME="Port" VALUE="DB_port"/>
  <Property NAME="SID" VALUE="DB_sid"/>
  <Property NAME="ConnectDescriptor" VALUE="(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=local_host)(PORT=DB_port))(CONNECT_DATA=(SID=DB_sid)))"/>
  <Property NAME="OracleHome" VALUE="oracle_home"/>
  <Property NAME="UserName" VALUE="DBSNMP"/>
  <Property NAME="password" VALUE="password" ENCRYPTED="FALSE"/>
  <Property NAME="Role" VALUE="NORMAL"/>
 </Target>
</Targets>

Variables for the previous example are defined as follows:

Table 13-1 Variable Descriptions for Code Example

Variable Description

agent_seed

The value of this parameter should be the same as that of the agentSeed parameter in the emd.properties file

local_host

Local host name of z/OS

The value of the local_host parameter in the emd.properties file and targets.xml file must be the same.

local_port

Value of the local_port

oracle_database

Oracle instance on the local system or a remote system

DB_port

Port on which the instance is listening

DB_sid

External SID specified in the OSDI database service definition

oracle_home

Location of the Oracle database software

UserName

DBSNMP database user account

password

DBSNMP database user account password

Once Oracle Management Agent starts, it alters the targets.xml file to encrypt this password.


13.3 Controlling Oracle Management Agent

You use the emctl command to control Oracle Management Agent. For a description of this and other Management Agent commands, refer to Oracle Enterprise Manager Advanced Configuration manual.

To issue this command, first log in to the z/OS UNIX System Services environment as the user who owns Oracle Management Agent code. This user also needs DBA privileges.

Set up environment variables in the ENV file located in the Oracle home directory.

To start Oracle Management Agent, use the following command:

$ emctl start agent

To query the status of agent, use the following command:

$ emctl status agent

To upload the information of Oracle Management Agent to the Management Service, use the following command:

$ emctl upload

The host information appears at the Management Service location. you must upload the information only if the status of the agent is not automatically updated.

To stop Oracle Management Agent, use the following command:

$ emctl stop agent

The log files and tracing information will be written to the ORACLE_HOME/sysman/log file.