Oracle on LinuxONE

Oracle on LinuxONE

3

Chapter 3.

Using Oracle Enterprise Manager

Cloud Control Agent to manage

Oracle Database 12c Release 1

This chapter describes how to deploy Oracle Enterprise Manager Cloud Control 13c Release

2 (13.2.0.0.0) agents on a LinuxONE environment to manage Oracle databases.

Enterprise Manager Cloud Control can monitor many databases that are running on multiple environments from a single console. In addition to databases monitoring, other applications, such as E-Business Suite, and support for monitoring certain non-Oracle products, for example, IBM WebSphere® Application Server, can be monitored from a single Cloud Control

Console. Although the Enterprise Manager Cloud Control does not run on LinuxONE, the agents and the Oracle Database run on the LinuxONE guests and they communicate with the

Enterprise Manager Cloud Control.

In this chapter, we share our experiences of installing Enterprise Manager Cloud Control on an x86 based Linux server and describe how the agents can be deployed from the server to monitor the Oracle databases on Linux that are running on LinuxONE. The agents can be deployed from the Enterprise Manager Cloud Control Console or by using the silent agent deployment option at the Linux guests. These procedures also are described in this chapter.

This chapter includes the following topics:

򐂰

3.1, “Basic Enterprise Manager Cloud Control Architecture” on page 24

򐂰

3.2, “Creating the Enterprise Manager Cloud Control Architectures” on page 25

򐂰

3.3, “Updating the agent at the Enterprise Manager Cloud Control to monitor Oracle

Databases on LinuxONE (online)” on page 29

򐂰

3.4, “Updating the agent at the Enterprise Manager Cloud Control to monitor Oracle

Databases on LinuxONE (offline)” on page 31

򐂰

3.5, “Deploying the agents from the Cloud Control console” on page 35

򐂰

3.6, “Deploying the agents in silent mode” on page 37

򐂰

3.7, “Adding the databases for monitoring” on page 40

© Copyright IBM Corp. 2017. All rights reserved.

23

3.1 Basic Enterprise Manager Cloud Control Architecture

The Enterprise Manager Cloud Control Architecture features the following components:

򐂰

Oracle Management Services (OMS)

The OMS is a web-based application that coordinates with the management agents and plug-ins, stores the collected information in a repository, and renders the user interface for

Enterprise Manager Cloud Control. The OMS is deployed to the Oracle Middleware home

(Middleware home), and also installs Oracle WebLogic Server if it does not exist in the environment.

򐂰

Oracle Management Repository

When the Enterprise Manager Cloud Control is installed, the Management Repository is configured in an Oracle database. The Management Repository is where all of the information that is collected by the Management Agent is stored.

򐂰

Plug-ins

Plug-ins are deployed to the OMS and the Management Agent. The Management Agent,

OMS, and the plug-ins work together to monitor all targets in the environment. By default, the plug-ins that are needed for Oracle Databases are installed automatically when the

Enterprise Manager Cloud Control is installed.

򐂰

Oracle JVMD Engine (Java virtual machine Diagnostics)

Starting with Oracle Enterprise Manager 13c, one JVMD Engine is installed and configured by default on the OMS as part of the Oracle Fusion Middleware Plug-in deployment. JVMD Engine enables that ability to diagnose performance problems in Java applications in the production environment.

򐂰

Oracle BI Publisher

Oracle Business Intelligence (BI) Publisher is Oracle’s reporting tool. Starting with Oracle

Enterprise Manager 13c, Oracle BI Publisher is installed and configured by default on the

OMS.

򐂰

Oracle Management Agents

The Management Agent is deployed to the hosts that are monitored by the Enterprise

Manager Cloud Control. It works with the plug-ins to monitor the targets that are running on that managed host. When OMS is installed, a Management Agent that is named the

Central Agent is installed by default and is used for monitoring the first OMS host, the first

OMS, and the other targets that are running on the first OMS host. To monitor other hosts and targets that are running on those hosts, you must install a separate Standalone

Management Agent on each of those hosts.

򐂰

Cloud Console

Cloud Console is the user interface and is the centralized location that is used to monitor and manage the systems and services.

24

Oracle on LinuxONE

Figure 3-1 shows the Enterprise Manager Cloud Control Architecture, which was originally

shown in the Oracle Enterprise Manager Cloud Control Introduction 13c Release 2

(E74226-03).

Figure 3-1 Cloud Control Architecture

3.2 Creating the Enterprise Manager Cloud Control

Architectures

Enterprise Manager Cloud Control must be created on a supported architecture, this may be

AIX or Linux on Intel.

Before you begin this task, see the following My Oracle support documents:

򐂰

Oracle Enterprise Manager 13c Configuration Best Practices

, Doc ID 2139083.1

򐂰

How to Install Enterprise Manager Cloud Control 12c on Linux

, Doc ID 1359176.1

The Enterprise Manager Cloud Control 13c and EM12c installation procedures are same. For more information, see

Experiences with Oracle Database 12c Release 1 on Linux on

System z

, SG24-8159.

In our example environment, we created Oracle Enterprise Manager Cloud Control on an x86-64 SLES 11 sp2 Linux server.

For more information about the hardware and software requirements for the server architecture where the Cloud Control is going to be installed, see Oracle Enterprise Manager

Cloud Control Basic Installation Guide 13c Release 2 (E73473-04).

Chapter 3. Using Oracle Enterprise Manager Cloud Control Agent to manage Oracle Database 12c Release 1

25

Note: Although the installation procedure is beyond the scope of this book, we used the database templates for Enterprise Manager 13.2.0.0 on Linux x86-64 (376,876,746 bytes, cksum 3941973314).

The DB templates are for the 12.1.0.2 version of Oracle database 12.1.0.2 only and are available at the Oracle Database Template website .

In the Linux server, we created the Oracle Enterprise Manager Cloud Control Architectures by completing the following steps:

1. Download the required installation files.

2. Start the installation in a graphical terminal, such as a VNC client.

3. Customize the Enterprise Manager Cloud Control during installation.

4. Run allrootot.sh

.

5. Ensure that Enterprise Manager Cloud Control Console is accessible.

3.2.1 Downloading the installation files

Download the following Enterprise Manager Cloud Control 13c Release 2 (13.2.0.0.0) for

Linux x86-64 files from the Oracle download site. Ensure that you are authorized to download the software:

򐂰 em13200_linux64.bin (554,607,894 bytes) (cksum - 2013200947)

򐂰 em13200_linux64-2.zip (2,118,110,455 bytes) (cksum - 1145259313)

򐂰 em13200_linux64-3.zip (553,563,556 bytes) (cksum - 2319677119)

򐂰 em13200_linux64-4.zip (2,084,299,941 bytes) (cksum - 4253735100)

򐂰 em13200_linux64-5.zip (2,128,070,240 bytes) (cksum - 4235966149)

򐂰 em13200_linux64-6.zip (474,441,637 bytes) (cksum - 2197985098)

Download all of the files (including .bin

files) in same directory. There is need to decompress the downloaded software. As the installation user (in our case, as oracle user) who is installing the product, set the execute permission for the .bin

file. For example: chmod +x em13200_linux64.bin

. The directory structure that is shown in Figure 3-2 is created.

Figure 3-2 Directory structure

3.2.2 Installing and configuring Enterprise Manager Cloud Control 13c

In general, the following operations are carried out by the installation wizard as part of the installation of an Enterprise Manager system:

򐂰 Install the following middleware components in the Middleware home (in our example,

/dl/mw ).

– Java Development Kit (JDK) 1.7.0_80

– Oracle WebLogic Server 12c Release 1 (12.1.3.0)

– Oracle Management Service 13c Release 2

– Oracle JRF 12c Release 1 (12.1.3.0), which includes the oracle common directory

26

Oracle on LinuxONE

– Oracle Web Tier 12c Release 1 (12.1.3.0)

– Oracle BI Publisher 12c Release 1 (12.1.3.0), which includes the /bi directory

򐂰 Install Oracle plug-ins (in the plug-ins directory):

– Oracle Database plug-in

– Oracle Fusion middleware plug-in

– Oracle Exadata Plug-in

– Oracle Cloud Framework Plug-in

– Oracle System Infrastructure Plug-in

– Any other plug-ins you choose to deploy

– One JVMD Engine

򐂰 Install Oracle Management Agent 13c Release 2 (13.2.0.0.0) in the agent base directory that is specified during installation (outside the Middleware home; in our case,

( /dl/agent ).

򐂰 Create an Oracle WebLogic domain that is called GCDomain, which is a default user account (weblogic) that is used as the administrative user, and a node manager account.

򐂰 Configure Oracle Management Service in the Instance Base location ( gc_inst ) in the

Middleware home for storing all configuration details that are related to Oracle

Management Service 13c (in our case, /dl/gc_inst ).

򐂰 Configure Oracle Management Repository in the Oracle Database. In our case, the database instance “orcl” was created by using the database template that is offered by

Oracle; therefore, this step was skipped.

򐂰 Configure the various installed components.

Complete the following steps:

1. The installer requires at least 10 GB of /tmp directory space. In our case, we created a directory with 10 GB space as /dl/tmp and passed that information as a parameter.

2. Start the installation wizard as the Oracle user in the directory location of the downloaded installation files from a graphical client, such as VNC, as shown in the following example:

./em13200_linux64.bin -J-Djava.io.tmpdir=/dl/tmp

3. The installation starts. You are prompted to specify the Oracle Support Credentials; in our example, we skipped the Software Updates option.

4. During the prerequisite checks, the installer verifies the requirements for installation. In our example, we ensured that all the steps are successful.

5. In the Installation Types window, select Create a new Enterprise System Manager

System and the Advanced option.

6. In the Installation Details window, specify the middleware home location, agent base directory location, and the host name where the installation is done.

7. In the Select Plug-ins window, the mandatory plug-ins are automatically disabled. You can select any other plug-ins that are needed. In our case, we used the default selections.

8. In the WebLogic Server Configuration Details window, specify the required information for the Oracle WebLogic Server configuration.

9. In the Database Connection Details window, specify the required information for the installed database connection in the server.

The Enterprise Manager Shared Location details are populated in the Enterprise Manager

Shared Location Details window.

In our example, we accepted the default port values in the Port Configuration Details.

10.Review the configuration values in the next window and click Install.

Chapter 3. Using Oracle Enterprise Manager Cloud Control Agent to manage Oracle Database 12c Release 1

27

11.The installation starts and you can see the progress in the Installation Progress Details window. When the installation and configuration is complete, run allroot.sh

as the root user. For more information, see the Postinstallation Configuration Tasks website .

In our example, the Enterprise Manager Cloud Control configuration and installation took approximately 100 minutes to complete. The status is displayed at the end of the process.

The Finish window shows the URL and port number access information for Enterprise

Manager Cloud Control and the Admin Server.

12.When you use the Enterprise Manager Cloud Control URL for the first time, you are prompted to trust, certify, and add the exception. Then, the Enterprise Manager Cloud

Control window opens, as shown in Figure 3-3. Now, you can log on as sysman by using

the assigned password.

Figure 3-3 Enterprise Manager Cloud Control 13c

13.Accept the license requirement, which completes the Enterprise Manager Cloud Control

13c Server installation process.

Also, at the Linux Server, you can use the

emctl

command to display the OMS status, as shown in the following example:

/dl/mw/bin/emctl status oms -details

28

Oracle on LinuxONE

The sample output is shown in Figure 3-4.

Figure 3-4 OMS status details

The steps in this section are for a simple configuration installation process. Enterprise

Manager Cloud Control offers multiple configurations. For more information about advanced installation and configuration, see the relevant Oracle manuals and documentation.

3.3 Updating the agent at the Enterprise Manager Cloud

Control to monitor Oracle Databases on LinuxONE (online)

Enterprise Manager Cloud Control 13c by default includes the Cloud Control Agent software installed for the operating system where Enterprise Manager Cloud Control 13c is installed. In our case, the agent for the Linux x86-64 is available when the Enterprise Manager Cloud

Control 13c is installed on the Linux x86-64 server. However, the agent to monitor the Oracle databases on LinuxONE architecture is not available in the base installation.

Management Agent software for LinuxONE architecture must be downloaded and applied by using the Self Update feature. The Self Update feature is a dashboard option that is used to obtain information about new updates. It provides a process flow to review, download, and apply those updates.

The Software Library is a repository that stores software entities, such as software patches and application software. The software library stores its repository on a file system that is accessible by the OMS. Depending on the usage, the size of this file can reach 50 GB. For more information about advanced features and the requirements of the Software Library, see the MOS document Understanding and Configuring Software Library In 12c Cloud Control, ID

1368035.1.

Chapter 3. Using Oracle Enterprise Manager Cloud Control Agent to manage Oracle Database 12c Release 1

29

3.3.1 Configuring the Software Library storage space

The storage location in the Software Library represents a repository of files. These files are uploaded by the Software Library, and you must add at least one upload file storage location.

This location can be an OMS Shared location or OMS Agent location. This step is the first step to be carried out, and in our case, we decided to use an OMS Shared location. We used the default location, which was configured in the system during the Enterprise Manager Cloud

Control 13c installation.

Click Setup

Provisioning and Patching

Software Library to configure the Software

Library. In our case, /dl/swlib was configured as a Software Library location for the OMS

Shared File System; therefore, we used that location.

3.3.2 Acquiring the LinuxONE agent in online mode

The Enterprise Manager Cloud Control is in online mode when it has access to My Oracle

Support through the internet. The example in this section shows how the Linux on LinuxONE agent is acquired in online mode on an Enterprise Manager Cloud Control running on an x86-64 Linux architecture. Oracle refers to this solution in certify for LinuxONE architecture as

“IBM Linux on System z”.

In general, the following tasks are completed:

򐂰 Set up My Oracle Support Credentials in Enterprise Manager Cloud Control.

򐂰

Verify that Enterprise Manager Cloud Control is in online mode.

򐂰 Update the available agents in Enterprise Manager Cloud Control by using the Self

Update feature.

򐂰 Download and applying the LinuxONE Management Agent Software (labeled as “IBM

Linux on System z”).

3.3.3 Setting up My Oracle Support Credentials

Complete the following steps to set up My Oracle Support Credentials in Enterprise Manager

Cloud Control:

1. Log on to Enterprise Manager Cloud Control 13c.

2. Click Setup

My Oracle Support

Set Credentials.

3. Enter the My Oracle Support Credentials and click Apply.

The My Oracle Support Preferred Credentials are set up in Cloud Control 13c.

3.3.4 Verifying that Enterprise Manager Cloud Control is in online mode

Complete the following steps to ensure that Cloud Control is set to the online mode:

1. Click Setup

Provisioning and Patching

Offline Patching. Then, change the setting for Connection to Online.

2. Update the available agents in Enterprise Manager Cloud Control by using the Self

Update feature. By default, only the Management Agent software for the OMS host platform is downloaded and applied. The other host agents’ availability must be checked by using the Self Update feature of the Enterprise Manager Cloud Control.

3. Click Setup

Extensibility

Self Update.

4. Click Check Updates to get the complete list of available updates for the Agent Software.

30

Oracle on LinuxONE

A background job is submitted to get the new updates from My Oracle Support.

3.3.5 Downloading and applying the LinuxONE Management Agent Software

After the list of available updates is populated in the system, you can download the required

Management Agent Software and then apply it to the OMS host.

Complete the following steps:

1. Click Setup

Extensibility

Self Update.

2. Select the entity type Agent Software and select Open from the Action menu. The entity type page shows agent software for different platforms.

In our example, we selected IBM: Linux on System z OS Platform and Oracle

Enterprise Manager Cloud Control Agent 13c Release 2 Version 13.2.0.0.0 from the list of available updates.

3. Click Download and schedule the download job for immediate execution.

You can monitor the job. After the job completes, the status is now “Downloaded”.

4. Click Apply for the Downloaded Agent.

This step stages the agent software in the Software Library and makes it available to the

Add Targets wizard, which we used to install the agent on the LinuxONE host machines.

After the job completes, the status is now Applied, as shown in Figure 3-5.

Figure 3-5 List of agents that are applied

The online update process for the Management Agent Software at the Enterprise Manager

Cloud Control is complete. Now, the agent is available to deploy and monitor the Oracle databases on Linux of System z hosts.

3.4 Updating the agent at the Enterprise Manager Cloud

Control to monitor Oracle Databases on LinuxONE (offline)

In section 3.3, “Updating the agent at the Enterprise Manager Cloud Control to monitor

Oracle Databases on LinuxONE (online)” on page 29, we described the steps to update the

Management Agent Software library in online mode. If the internet connection is not available on the OMS host server, you must follow the offline procedures that are outlined in this section to update the Management Agent Software library.

In the following example, we show how the LinuxONE agent is acquired in offline mode on an

Enterprise Manager Cloud Control running on an x86-64 Linux architecture.

Chapter 3. Using Oracle Enterprise Manager Cloud Control Agent to manage Oracle Database 12c Release 1

31

3.4.1 Acquiring the LinuxONE agent in offline mode

In the example that is shown in this section, we show how the Software Library can be updated in offline mode on an Enterprise Manager Cloud Control that is running on an x86-64

Linux architecture to get the management agent for LinuxONE. Oracle requires that you use the Enterprise Manager Command-Line Interface (emcli) to update the Enterprise Manager

Cloud Control Software updates.

In general, the following tasks are performed:

򐂰 Verify that Enterprise Manager Cloud Control is in offline mode.

򐂰

Update the available agents in Enterprise Manager Cloud Control by using the Self

Update feature.

򐂰 Use emcli to update the available software.

򐂰 Acquire Software Updates offline.

򐂰 Acquire Management Agent Software offline.

3.4.2 Verifying that Enterprise Manager Cloud Control is in offline mode

You must ensure that Cloud Control is set to the offline mode. Click Setup

Provisioning

and Patching

Offline Patching. Then, change the setting for Connection to Offline.

3.4.3 Updating the agents in Enterprise Manager Cloud Control using the Self

Update feature

By default, only the Management Agent software for the OMS host platform is downloaded and applied. The other host agents’ availability must be checked by using Enterprise Manager

Cloud Control by using the Self Update feature.

Complete the following steps:

1. To get the complete list of available updates for the agent software, click Setup

Extensibility

Self Update. Then, click Check Updates. A window opens and shows the URL that you use to download a catalog of all the updates for the agents (see

Figure 3-6).

Figure 3-6 Check updates in offline mode

32

Oracle on LinuxONE

2. From any computer that has an Internet connection, download the catalog file by using the following URL: https://updates.oracle.com/Orion/Download/download_patch/p9348486_112000_Generi c.zip

3. Log on with the oracle credentials for MOS.

4. Figure 3-7 shows the window for downloading the catalog updates. Copy the downloaded

compressed file to the Enterprise Manager Cloud Control Server where the OMS is running.

Figure 3-7 Saving the compressed file

The name of the compressed file in our example is p9348486_112000_Generic.zip

. That file is copied into the /dl/tmp location at the OMS server.

Using emcli to update the available software

Oracle provides the emcli command-line utility to perform some of the Enterprise Manager

Cloud Control functions. This utility is installed and configured during OMS installation.

Complete the following steps to update the available software by using emcli:

1. Run emcli to log in (from OMS home) (see Figure 3-8).

Figure 3-8 emcli login

2. Synchronize Enterprise Manager CLI by running emcli sync

(see Figure 3-9).

Figure 3-9 emcli sync

Chapter 3. Using Oracle Enterprise Manager Cloud Control Agent to manage Oracle Database 12c Release 1

33

3. Ensure that the Software Library is configured in the system by clicking Setup

Select

Provisioning and Patching

Software Library (in our case, /dl/swlib is used for

Software Library).

4. To import the downloaded compressed archive in to the Oracle Management Service instance, run emcli import_update_catalog

, as shown in Figure 3-10.

Figure 3-10 emcli import_update_catalog

5. After the command completes, you can see that the agents are shown as available in the

Self Update window. Click Setup

Extensibility

Self Update, select the entity type

Agent Software, and select Open from the Action menu. The entity type page shows agent software for different platforms.

Acquiring the Management Agent Software offline

To acquire the Management Agent Software offline, complete the following steps:

1. Select your OS platform and version. In our example, we select IBM: Linux on System z for the OS Platform and 13.2.0.0.0 for the version from the list of available updates.

2. A window opens and provides a link to download the selected agent and instructions about how to import the agent software updates into Enterprise Manager, as shown in

Figure 3-11. Using this link, download the compressed file to any computer with an

internet connection and copy the downloaded compressed file to the Enterprise Manager

Cloud Control Server where the OMS is running.

Figure 3-11 Offline download

3. Run emcli to log in (from OMS home).

4. Synchronize the Enterprise Manager CLI by running emcli sync .

34

Oracle on LinuxONE

5. Run emcli import_update to specify the absolute location for the downloaded patch file

and omslocal options, as shown in Figure 3-12.

Figure 3-12 emcli import_update

This step completes the Agent Updates in offline mode. Now, the status in the Self Update window is shown as “Downloaded” for the IBM: Linux on System z agent type.

6. Click Apply for the Downloaded Agent. This step stages the agent software in the

Software Library and makes it available to the Add Targets wizard, which we used to install the agent on the host machines in our example.

The agent is now available to deploy and monitor the Oracle databases on LinuxONE hosts.

3.5 Deploying the agents from the Cloud Control console

Oracle Management Agent 13c for LinuxONE hosts can be deployed from the Enterprise

Manager Cloud Control 13c console or by using the silent installation method. This section describes the processes to deploy the agents from the Enterprise Manager Cloud Control 13c console. Oracle recommends the use of the Add Host Targets wizard, which converts an unmanaged host to a managed host in the Enterprise Manager system by installing an Oracle

Management Agent 13c. For Oracle Real Application Clusters (RACs) with multiple nodes, the Management Agent must be installed on each of the nodes separately in the Add Host

Targets wizard by adding each node explicitly as a destination host.

For more information about the hardware and software requirements for installing the Cloud

Control Agent, see the Installing Oracle Management Agents website .

The network between the Cloud Control Server, where the OMS is running, and the destination hosts should be accessible.

In our example, we used the ping by host name method to ensure that the OMS Server and hosts can be reached.

To install Oracle Management Agent 13c for LinuxONE from Enterprise Manager Cloud

Control 13c, complete the following steps:

1. To add or install an agent on a host, the software distribution of the agent that corresponds to the host’s platform must be available in the Software Library. In our example, we verified the availability of LinuxONE agents’ availability in the Enterprise Manager Cloud Control

Server by completing the following steps: a. Log on to Enterprise Manager Cloud Control 13c.

b. Click Setup

Extensibility

Self Update in the Status section of the Self Update window. Click the Agent Software type.

You can see that the Agent Software for Linux on System z has a status of “Applied” in the

Agent Software Updates section. When we highlighted the rows, the bottom pane showed a status, such as when the agent software was available, downloaded, and applied.

2. Click Setup

Add Target

Add Targets Manually to deploy the agent.

3. In the Add Targets Manually window, select Add Host Targets and click Add Host. Then,

Install Agent on Host.

Chapter 3. Using Oracle Enterprise Manager Cloud Control Agent to manage Oracle Database 12c Release 1

35

4. In the Host and Platform window, we completed the following steps for our example: a. Accept the default name that is assigned for this session.

b. Click Add and enter the fully qualified name of the host. We select IBM: Linux on

System z as the platform of the host on which we wanted to install the Management

Agent and click Next.

5. In the Installation Details window (see Figure 3-13), complete the following steps:

a. In the Installation Details section, for Installation Base Directory, enter the absolute path to the base directory (the software binary files, security files, and inventory files of

Management Agent are copied here). In our case, it is /u01/app/oracle/agentHome .

b. For Instance Directory, enter the directory where you want all Management

Agent-related configuration files to be stored. We accepted the default instance directory location (in our case, /u01/app/oracle/agentHome/agent_inst ).

Note: Maintain the instance directory inside the installation base directory.

Figure 3-13 Installation information

c. From Named Credential list, add a profile whose credentials are used for setting up the

SSH connectivity between the OMS and the remote host, and for installing a

Management Agent.

d. In the Review window, review the details and then, click Deploy Agent to install the

Management Agent.

You can monitor the progress of the installation in the Add Hosts Status window.

e. If the deployment fails during the prerequisite check stage (as was the case with our installation), root.sh

authorization messages might be displayed. We continued the installation by selecting the Continue all Hosts option.

The Agent Deployment Summary message displays when the process completes.

f. Run root.sh

in the host location as recommended. Click Done.

36

Oracle on LinuxONE

6. To check the availability of the hosts, click Targets

Hosts in the Cloud Control window,

as shown in Figure 3-14.

Figure 3-14 Availability of hosts

Oracle Management Agent 13c for LinuxONE hosts is now deployed from Enterprise

Manager Cloud Control 13c console.

3.6 Deploying the agents in silent mode

Oracle Management Agent 13c for LinuxONE hosts can be deployed from the Enterprise

Manager Cloud Control 13c console or by the silent installation method. This section describes the processes to deploy it in silent mode.

Installing a Management Agent in silent mode requires the Enterprise Manager CLI utility.

Using this utility, you can install fresh Management Agents, install Shared Agents, and clone existing Management Agents.

To install Oracle Management Agent 13c for LinuxONE in silent mode, complete the following steps:

1. Run the emcli commands to determine the list of supported platforms.

2. Run

emcli

and to log in and then sync Enterprise Manager CLI by running

emcli sync

.

3. Ensure that the Software Library is configured and available in the system by running emcli

list_add_host_platforms

(see Figure 3-15). This command lists the platforms for

which the Management Agent software is available in Software Library.

Figure 3-15 emcli list add_host_platforms

From the displayed output, you can see that IBM: Linux on System z is available in the

Enterprise Manager Cloud Control Server.

4. Create named credentials for the “oracle” user on the target server, which are monitored by the emcli

create_named_credential

command with the parameters

-cred_name

,

-auth_target_type

,

-cred-type

, and

-attributes

, as shown in Example 3-1.

Example 3-1 emcli create_named_credential

bin/emcli create_named_credential -cred_name=orahost -auth_target_type=host

-cred_type=HostCreds -attributes="HostUserName:oracle;HostPassword:oracle"

Chapter 3. Using Oracle Enterprise Manager Cloud Control Agent to manage Oracle Database 12c Release 1

37

5. Run

submit_add_host

to submit the Add Host command, as shown in Example 3-2.

Example 3-2 submit_add_host

bin/emcli submit_add_host -host_names=zoral1g3.wsclab.washington.ibm.com

-platform=209 -installation_base_directory=/u01/app/oracle/agentHome

-credential_name=orahost

6. Now, you can track the running of the

submit_add_host

command, as shown in

Example 3-3.

Example 3-3 submit_add_host status command

bin/emcli get_add_host_status session_name=ADD_HOST_SYSMAN_Jan_24_2017_8:16:56_PM_CST

The results are shown in Figure 3-16.

Figure 3-16 submit_add_host status

After the job status is Succeeded, you can see that the host is added in the Enterprise

Manager Cloud Control.

The logs for the agent deployment at the target server can be found under the agent installation base directory /oracle/agentHome/agent_inst/install/logs .

You can also check the agent status by browsing to the Management Agent home at the target server and running the

status

command, as shown in Example 3-4.

Example 3-4 Agent status

agentHome/agent_13.2.0.0.0/bin/emctl status agent

38

Oracle on LinuxONE

The results are shown in Figure 3-17.

Figure 3-17 Agent status results

7. You can check that the EMD upload completed successfully by browsing to the

Management Agent home at the target server and running the upload agent, as shown in

Figure 3-18.

Figure 3-18 EMD Upload

8. To verify that the Management Agent is running, click Setup

Manage Cloud Control

Agents.

You can see that the Management Agent is running.

Chapter 3. Using Oracle Enterprise Manager Cloud Control Agent to manage Oracle Database 12c Release 1

39

3.7 Adding the databases for monitoring

After the agent for LinuxONE is deployed, complete the following steps to discover the Oracle databases on that host for monitoring:

1. In the Cloud Control window, click Targets

Databases, select Search List in the

Databases section, and then, click Add.

2. In the Add Database Instance Target window, specify the Host window. In the Host field in our example, we specify the following fully qualified host name: zoral1g3.wsclab.washington.ibm.com

Click Continue (see Figure 3-19).

Figure 3-19 Selecting target

The agent discovers the database oratest and the Listener.

3. Configure the database by selecting the Configure window at the oratest line and specifying the Database-related parameters. Ensure that you can connect to the

database, as shown in Figure 3-20.

Figure 3-20 Database Discovery: Results

4. Save the database configuration in the Database Discovery Review window, as shown in

Figure 3-21.

Figure 3-21 Database Discovery: Review

40

Oracle on LinuxONE

3.8 Summary

In this chapter, we shared our experiences with installing a Cloud Control Server on an x86-based Linux server. We deployed the agents from that server to monitor the databases that are running on LinuxONE.

Before deploying the agents, we also updated the Cloud Control Software Library with the required levels of agent software and plug-ins by connecting to the Oracle repository site online. Then, starting with Oracle Enterprise Manager Cloud Control 13c Release 2

(13.2.0.0.0), we showed how the command-line utility emcli can also be used to update the

Grid Control Software Library in offline mode.

The agents were deployed from the Cloud Control Console and by using the silent agent deployment option at the Linux guests. We concluded this chapter by showing how to enable the Cloud Control to monitor Oracle databases.

Chapter 3. Using Oracle Enterprise Manager Cloud Control Agent to manage Oracle Database 12c Release 1

41

42

Oracle on LinuxONE

Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertisement

Table of contents