Skip Headers
Oracle® Configuration Manager Installation and Administration Guide
Release 10.3.6

Part Number E24182-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
PDF · Mobi · ePub

B OCM Data Collection in Enterprise Manager and Ops Center Environments

My Oracle Support provides a key set of features and functionality that greatly enhance the customer's interaction with Oracle Support. My Oracle Support streamlines the Service Request submission process by providing in-context information specific to a customer's configurations, as well as proactive support. To enable these features within My Oracle Support, the customer's configuration information must be uploaded to Oracle. When the configuration data is uploaded on a regular basis, customer support representatives can analyze this data and provide better service to customers.

The following mechanisms are provided to customers for collecting and uploading configuration data to Oracle.

In particular:

Note: If you use Enterprise Manager or Ops Center to manage targets in your enterprise, we recommend that you use Oracle Harvester or Ops Center Harvester respectively to upload the configurations managed by them to Oracle. Otherwise, use OCM.

B.1 Oracle Configuration Manager

OCM is installed as part of the Oracle product installation. It is installed in the product Home and collects configuration data for all targets installed in that Home.

The OCM setup requires specifying the My Oracle Support account and password, or My Oracle Support account and Customer Support Identifier (CSI). Configuration data will be uploaded using this information and can be viewed by logging in to My Oracle Support using the same credentials.

OCM must be installed in every Oracle Home from which you want to upload configuration data to Oracle. In addition to being part of the product installation, OCM can also be downloaded from My Oracle Support. The Mass Deployment tool is available to help with deploying OCM across data centers. The OCM kit is available from the Collector tab on My Oracle Support.

Once OCM is installed, no additional work is required. By default, automatic updates are enabled and you are encouraged to use this feature to ensure you are always running the latest version of OCM. This feature can be disabled if required, for example, for security reasons. If you disable the feature, you can turn it on by executing the following command:

<ocm_install_root>/ccr/bin/emCCR automatic_update on

Note: If you use Enterprise Manager or Ops Center to manage your applications, we recommend that you use Oracle Harvester or Ops Center Harvester respectively to upload your configurations to Oracle. Otherwise, use OCM.

B.2 The Harvesters

Note: The harvesters only harvest data for targets that are managed by Enterprise Manager and Ops Center.

Uploading the configuration data through a harvester removes the requirement of having OCM installed in each product home.

The available harvesters are: Oracle Harvester which collects configuration data in the Enterprise Manager environment and Ops Center Harvester which collects configuration data in the Ops Center environment.

The Ops Center Harvester and Oracle Harvester have the same OCM dependencies. Each harvester enables the gathering of target configuration data by leveraging Enterprise Manager and Ops Center collection methods thus precluding the need to install OCM on target homes managed by each harvester.

Details shared by the harvesters:

B.2.1 Oracle Harvester

When you install Enterprise Manager, Oracle Harvester and Oracle Configuration Manager are automatically installed as are all the necessary subcomponents. The Oracle Harvester will run as long as the OCM in the OMS home is configured and running.

For Enterprise Manager releases 11.1 and later, OCM must be enabled in the Oracle Home of the OMS and configured (and running in connected mode) in the Instance Home of the OMS. For example:

  1. Locate the OMS instance home.

    In the $ORACLE_HOME/sysman/config/emInstanceMapping.properties file (where ORACLE_HOME is the Oracle Home of the OMS), there is an entry referencing a file called emgc.properties.

    The directory in which the emgc.properties file is located is the "instance home" of the OMS. In the following example, /u01/app/oracle/product/gc_inst/em/EMGC_OMS1 is the instance home of the OMS:

    EMGC_OMS1=/u01/app/oracle/product/gc_inst/em/EMGC_OMS1/emgc.properties

  2. Set the environment variable ORACLE_CONFIG_HOME to the directory of this emgc.properties file.

    Example:$export ORACLE_CONFIG_HOME=/u01/app/oracle/product/gc_inst/em/EMGC_OMS1

  3. Configure OCM.

For Enterprise Manager release 10.2.0.5, OCM must be installed and configured in the Oracle Home.

In Enterprise Manager releases 11.1 and earlier, Oracle Harvester can only upload configuration data against the same credentials with which OCM in the OMS home is configured.

New For Enterprise Manager Release 12.1

By default, all targets are uploaded using the credentials used to register Oracle Configuration Manager in the OMS Home. In Enterprise Manager release 12.1, you have the option of assigning a Customer Support Identifier (CSI) to each target home.

The Oracle Harvester supports uploading configuration data to different CSIs for each different Oracle Home.

The steps include:

  1. Ensuring that the Oracle Harvester has run. This job runs automatically.

  2. Setting My Oracle Support preferred credentials. From the Enterprise Manager home page, select Setup, then select My Oracle Support. From the menu, select Set credentials and supply the preferred credentials.

  3. Assigning the Support Identifier.

    1. From the Enterprise Manager home page, select Setup, then select My Oracle Support. Select Support Identifier Assignment and provide the correct user name and password. Select Set credentials.

    2. Select Home. Click Assign button. Select CSI and click OK.

  4. Ensuring the message displays indicating the assignment was successful.

Viewing CSIs in Enterprise Manager

You can see the CSI associated with a target by viewing the target property or by doing a configuration search with CSI set as the search criteria. A Super Administrator can assign a CSI for any Oracle Home. Administrators can assign CSIs to Oracle Homes for which they have operator privilege on all the targets.

Refer to the help in the Enterprise Manager interface on how to access this information.

B.2.1.1 Supported Targets in Oracle Harvester

Oracle Harvester collects configuration data from Enterprise Manager releases 10.2.0.5, 11.1, and 12.1. Depending on the version of Enterprise Manager that Oracle Harvester is running on, Oracle collects the configuration data from a different set of target types. Only configuration data from the target types represented in the following table is collected by Oracle Harvester.

Table B-1 Supported Targets in Enterprise Manager (EM)

Target EM 10.2.0.5 EM 11.1 EM 12.1

Host

Yes

Yes

Yes

Oracle Application Server

Yes

Yes

Yes

Oracle Database

Yes

Yes

Yes

Oracle Home

Yes

Yes

Yes

Oracle Exadata Storage Server

No

Yes

Yes

Oracle Virtual Manager

No

Yes

Yes

Oracle WebLogic Server

No

Yes

Yes

Management Agent

No

No

Yes

Management Repository

No

No

Yes

Oracle Database Machine

No

No

Yes

Oracle Fusion Applications

No

No

Yes

Oracle Fusion Middleware

No

No

Yes

Oracle Management Service

No

No

Yes

Oracle SOA Suite

No

No

Yes


B.2.1.2 Configuration Data Not Available in My Oracle Support

Configuration data for targets collected from Oracle Harvester running in Enterprise Manager releases 10.2.0.5 and 11.1 will show up in My Oracle Support only if one of the following conditions is met:

  • OCM collector is not installed in the product home where the target is present and is not uploading the configuration for the target that is collected from Oracle Harvester in Enterprise Manager releases 10.2.0.5 or 11.1.

  • Thirty days have passed since the OCM collector last uploaded the configuration data for the target.

Configuration data for targets collected from Oracle Harvester running in Enterprise Manager release 12.1 display in My Oracle Support immediately.

In Enterprise Manager release 11.1, if you do not want to wait for 30 days for Oracle Harvester collected configuration data to display in My Oracle Support, you can execute the following SQL script against the Management Repository:

sql> insert into mgmt_ocm_upl_props (name,str_value) values('is_gc_force','true');
sql> commit;

Bounce the OMS after executing the SQL script.

B.2.2 Ops Center Harvester

The Ops Center Harvester leverages the scale of Ops Center manageability by providing OCM collection capabilities for all systems managed by the Ops Center starting with release 11.1.

Ops Center Harvester collects configuration data from the Management Repository creating a host target for each managed asset and an Ops Center target containing summary information about the Ops Center instance.

OCM and the Ops Center Harvester are bundled with Ops Center, and are installed in a fixed location on the Ops Center Enterprise Controller. Ops Center Harvester requires OCM to be installed in: /var/opt/sun/xvm/ocm/ which is governed by the Ops Center Installer.

The Ops Center Harvester utilizes the credentials entered during the OCM setup for uploading configuration data. You must explicitly configure OCM during the overall Ops Center install process, that is, you must complete the OCM configuration. Otherwise the Ops Center Harvester will not run.

Host targets collected by the Ops Center Harvester should appear in My Oracle Support with a Source of "Oracle Enterprise Manager Ops Center Harvester".

Additional information on Ops Center Harvester is available at:

http://download.oracle.com/docs/cd/E11857_01/nav/management.htm

B.3 Additional Information

To find additional information about My Oracle Support, see:

https://support.oracle.com

To find more information about OCM, perform the following steps:

  1. Log into My Oracle Support at https://support.oracle.com

  2. Access the Collector tab. The What, Why, How, Using It, and Additional Resources sections all contain useful information.

B.4 Troubleshooting Configuration Data Collection Tools

The following sections describe how to resolve issues with the configuration data collections.

In Enterprise Manager releases 10.2.0.5 and 11.1, ensure that collection data is uploaded to Oracle by using the emccr status command. Look at the last uploaded date and time.

Note: This emccr status command shows that collected data was uploaded, but does not ensure the Oracle Harvester collections were successful and uploaded.

Location of error logs:

B.4.1 Oracle Harvester Collection Fails If the state/upload/external Directory Is Missing

If the Oracle Harvester collection fails with the following error, the required directory named external is missing.

[JobWorker 75210:Thread-61] ERROR gcharvester.GcCollectionMgr initOcm.? - GC OCM
Harvester: Caught GC Harvester exception from GCInit.init(): The installed version
of Oracle Configuration Manager in the ORACLE_HOME
(/scratch/aime/work/midlwre8937/oms11g) is prior to 10.3.1. The Grid Control
Configuration harvesting requires at a minimum, 10.3.1

The external directory is missing in one of the following:

  • $ORACLE_HOME/ccr/hosts/<local_host_name>/state/upload directory (Enterprise Manager release 10.2.0.5)

  • $ORACLE_INSTANCE_HOME/ccr/state/upload directory (Enterprise Manager releases 11.1 and later).

To resolve this issue:

  • In Enterprise Manager release 10.2.0.5, create the directory $ORACLE_HOME/ccr/hosts/<local_host_name>/state/upload/external.

  • In Enterprise Manager releases 11.1 and later, create the directory $ORACLE_INSTANCE_HOME/ccr/state/upload/external.

(Bug 12795503)

B.4.2 Oracle Configuration Manager Is Not Running

When OCM is not running, you may see the following error:

2011-08-29 16:34:20,709 [JobWorker 97285:Thread-60] WARN
gcharvester.HarvesterJobUtils performOCMCollections.? - GC OCM Harvester: OCM was
stopped and is not running 

To resolve this issue, verify that the OCM is correctly installed and configured in the appropriate directories. In particular:

  • For Enterprise Manager release 10.2.0.5, OCM must be installed and configured (and running in connected mode) in the Oracle Home of the targets it is managing.

  • For Enterprise Manager releases 11.1 and later, OCM must be installed in the OMS Oracle Home and configured (and running in connected mode) in the OMS Instance Home.

B.4.3 Configuration Data Not Available in My Oracle Support

When you look at My Oracle Support and do not find configuration data, it could be that the Oracle Harvester collection did not run.

To resolve this issue, verify that the OCM was installed and configured in the appropriate directories (execute emCCR status). In particular:

  • For Enterprise Manager release 10.2.0.5, OCM must be installed and configured (in connected mode) in the Oracle Home of the OMS. To verify that OCM is running, execute the following command:

    $ORACLE_HOME/ccr/bin/emCCR status
    
  • For Enterprise Manager releases 11.1 and later, OCM must be installed in the OMS Oracle Home and configured (and running in connected mode) in the OMS Instance Home. To verify that OCM is running, perform the following steps:

    1. Set ORACLE_CONFIG_HOME to the INSTANCE HOME

    2. Execute $ORACLE_HOME/ccr/bin/emCCR status

B.4.4 Only a Subset of the Targets Is Collected by the Oracle Harvester

If many targets are uploaded to the Management Repository but only a subset of the targets is collected by the Oracle Harvester, it could be because the same error was encountered 10 times during a collection, causing the Oracle Harvester to stop collecting. Look at the appropriate log file to verify that this error has occurred.

Resolve the issue by running the following SQL script against the Management Repository. This script forces the Oracle Harvester to ignore this collection error and continue collecting the remaining target information.

sql> insert into mgmt_ocm_upl_props (name,str_value) values('ignore_errors','true');
sql> commit;

Bounce the OMS after executing the SQL script.

(Bug 11734389)