Oracle Enterprise Manager Configuration Guide Release 2.2 Part Number A85247-01 |
Library | Service | Contents | Index

# 2
Creating a Release 2.2 Repository

In Oracle Enterprise Manager, a repository contains state information for the managed environment and information about the management packs. The repository is used as a back-end store by the Oracle Management Servers, providing distributed control between clients and managed nodes.

In Release 2.0, the Enterprise Manager Configuration Assistant only created the repository for the base Oracle Enterprise Manager product. Additional parts of the repository were only created when they were required.

In Release 2.1 and later, it now creates the repository for all Oracle Enterprise Manager products. No additional components need to be added to the repository later. The Oracle Enterprise Manager repository is treated by the Enterprise Manager Configuration Assistant as a single entity. Regardless of whether you have additional products installed, creating a repository will create all parts of a repository.

Note: For information on the recommended init.ora settings for the repository database, refer to "Recommended init.ora Settings for the Repository Database" on page 2-19. You can change the settings before or after repository creation.

The Enterprise Manager Configuration Assistant provides a database administrator with repository creation, removal, upgrade, and configuration parameter maintenance. A repository is a schema, and several repositories can exist in one database since each repository is a different schema.

If you are using a Release 2.0 or 2.1 repository and want to upgrade your repository to Release 2.2, refer to "Upgrade a Release 2.0 or 2.1 Repository to a Release 2.2 Repository" on page B-1. Existing pre-2.2 repositories are not upgraded automatically during installation.

Note: You should not schedule any repository upgrades until all Oracle Enterprise Manager components other than the Intelligent Agent have been upgraded to Oracle Enterprise Manager Release 2.2. For guidelines to upgrading your Oracle Enterprise Manager framework and Management Packs from previous 2.x releases to Release 2.2, refer to "Upgrading Your Oracle Enterprise Manager Framework and Management Packs" on page 1-19.

If you are using a previous Enterprise Manager Release 1.x and want to migrate your 1.x repository or repositories directly to a Release 2.2 repository, you will need to perform additional steps using the Enterprise Manager Migration Assistant after creating your Release 2.2 repository. Refer to Chapter 7, "Migrating a Release 1.x Repository to a Release 2.2 Repository" for information about migrating one or more Release 1.x repositories into the shared Release 2.2 repository schema.

Important: The Enterprise Manager Console, DBA Management Pack, separately licensable Packs, Management Server and repository must all be of the same release. For example, you cannot use a Release 2.1 Management Server and repository with a Release 2.2 Console nor can you use a Release 2.2 Management Server and repository with a Release 2.1 Pack. Any Enterprise Manager Release 2.2 product must use a Release 2.2 Management Server and repository, where product refers to any of the following: Oracle Enterprise Manager Console Oracle DBA Management Pack (in Management Server mode) Oracle Tuning Pack Oracle Diagnostics Pack Oracle Change Management Pack Oracle Management Pack for Oracle Applications Oracle Management Pack for SAP R/3 Oracle Standard Management Pack If the existing Management Server and repository are of a previous version, then you can migrate or upgrade them to the most recent version. In the case of migrating or upgrading a Management Server and repository to Release 2.2, ensure that all Enterprise Manager products you intend to use with the repository are of Release 2.2. For instance, do not upgrade the Management Server and repository to Release 2.2 if you are still using Diagnostics Pack Release 2.1 or Change Management Pack Release 2.1. If you upgrade your Management Server and repository to Release 2.2 before obtaining the Release 2.2 Pack software you intend to use, you will not be able to use the older Pack product(s).

## Creating a New Release 2.2 Repository

The Oracle Enterprise Manager Release 2.2 repository is not the same as a Release 1.x repository. In Enterprise Manager Release 1.x, each administrator has his own repository schema, which contains a current view of the network and user-specific information. In Enterprise Manager Release 2.2, administrators have individual accounts and preferences within a single "shared" repository schema. Because all administrative data is stored in a central repository, administrators can share job definitions and obtain status on all machines in the network, including those monitored by other database administrators.

The Enterprise Manager Configuration Assistant will launch automatically during the post install configuration phase if you are performing one of the following installation scenarios:

- Oracle8i Enterprise Edition 8.1.7.0.0-> Custom

- Oracle8i Management and Integration 8.1.7.0.0-> Oracle Management Server

- Oracle8i Management and Integration 8.1.7.0.0-> Custom

The Enterprise Manager Configuration Assistant will not launch automatically if you are performing an Oracle8i Enterprise Edition-> Typical installation. In this type of installation, you must manually launch the Enterprise Manager Configuration Assistant in order to create, delete, edit, or update your repository.

Whenever you start the Enterprise Manager Configuration Assistant to create a new 2.2 repository (whether during a post install configuration or from the standalone mode), it will perform the following tasks for you:

- creates a new database user who will own the Enterprise Manager and management packs repository

- assigns proper privileges and roles to the new database user

- creates a new tablespace for the Enterprise Manager and management packs repository or uses an existing tablespace if available

- sets up default and temporary tablespaces for the user

- loads information, which is required when running Oracle Enterprise Manager, into the repository

- creates and/or updates the local Management Server's configuration file: `ORACLE_HOME\sysman\config\omsconfig.properties`

- enters the necessary information into the client registry so that any Console which runs on the system has the Management Server already in its list of those to which it can connect

- check if an Oracle Management Service already exists (Windows NT and Windows 2000 only). If one does not already exist, it will create the Oracle Management Server service. If one does exist, it will not create another.

- starts your Management Server service and sets the service to Manual (Windows NT and Windows 2000 only)

### Starting the Enterprise Manager Configuration Assistant

Note: A database must be installed and running before you can create the Oracle Enterprise Manager repository schema.

To start the Enterprise Manager Configuration Assistant, perform the following steps:

- On Windows NT and Windows 2000:

  You can start the Enterprise Manager Configuration Assistant from the Windows Start Menu->Programs->Oracle-<Oracle_Home_Name>-> Enterprise Manager->Configuration Assistant.

  You can also start the Enterprise Manager Configuration Assistant from the command line using the command:

      emca

- On UNIX:

  You can start the Enterprise Manager Configuration Assistant from the command line using the command:

      emca

Note: You must be logged in as the owner of the `omsconfig.properties` file (have permission on the file) to execute the `emca` command.

### Step 1 "Configuration Operation"

When you start the Enterprise Manager Configuration Assistant as a standalone application, the "Configuration Operation" page appears.

When the Configuration Assistant is launched from an installation session and you have selected to create a new repository from the install dialog, the Configuration Operation screen will not appear. The screen will be "Select Database for Repository." In this case, proceed to Step 2 of 5.

Select "Create a new repository" from the list of repository operations and press Next. The "Select Database for Repository" page appears.

#### Figure 2-1 Configuration Operation
Text description of the illustration rep1.gif

### Step 2 "Select Database for Repository"

Log in to the database where you want to create the repository.

#### Figure 2-2 Select Database for Repository
Text description of the illustration rep2.gif

When configuring your repository, choose a database that meets the following criteria:

- the database is always available.

- the database will not be shut down by other administrators.

- the database does not compete for resources on the machine where it is running.

User name and Password: You must connect to the database as a user with DBA privileges. The Enterprise Manager Configuration Assistant asks for a DBA account in case a new user needs to be created in the database to contain the repository and to allow the Configuration Assistant to make queries about the database/repository.

This is an individual database user account, not an Oracle Enterprise Manager administrator account.

For example, system/manager.

Service: The service may be specified using the form:

    <host>:<port>:<sid>

where

host is the machine name where the database is located

port is the database listener port address, usually 1521 or 1526

SID is the database system identifier

An example:

    my_em_machine:1521:em22

which connects to the `em22` database using port 1521 on the my_em_machine machine.

Note: Specifying the service as <host>:<port>:<sid> is the preferred method, but you may also use Net8 names if your Net8 client is properly configured.

Press Next to continue.

Refer to "Troubleshooting the Enterprise Manager Configuration Assistant" on page D-19 for information about error messages.

### Step 3 "Repository Login Information"

An Enterprise Manager repository is owned by a database user. During repository creation, a database user (repository schema user) who owns the repository will be created by the Enterprise Manager Configuration Assistant with the username and password you enter on this page.

#### Figure 2-3 Repository Login Information
Text description of the illustration rep3.gif

User name: Enter the repository's user name that will be used to create a database user that will own the repository. The repository's user name must be unique across the network. The TCP/IP hostname of the machine is assumed to be unique; therefore it is used by default. If you choose another name, you must ensure that it is unique.

The Intelligent Agent identifies each Management Server by its repository name. If two repositories existed with the same name in different databases, the Intelligent Agent would have difficulty contacting the Management Server.

Password: Enter the password for that user.

Confirm: Verify the password by typing it again.

You can choose whether to save the user name and encrypted password in the `omsconfig.properties` file, which is read by the Management Server on startup. If these repository credentials are stored in the file, the Management Server uses them to login to the repository.

On Windows NT and Windows 2000, if they are not saved, you can enter them in the Control Panel's Startup Parameters field when you start the Management Server. If you do not enter the repository credentials in the Startup Parameters field, you will be prompted for them in a dialog.

On UNIX, if they are not saved, the Management Server will prompt you for a user name and password before it starts up.

If you do not want to store the user name and encrypted password in the `omsconfig.properties` file, check the "Do not save username and password" checkbox. The option of not storing your repository credentials is referred to as the secure Management Server mode.

The repository account information will be used to perform the maintenance operations in the repository schema like create, upgrade, or drop.

The roles and privileges required by the repository schema user are listed below:

- Roles: CONNECT

- Privileges: CREATE TRIGGER, CREATE PROCEDURE, EXECUTE ANY PROCEDURE, and SELECT ANY TABLE

To avoid potential security issues and unnecessary access to objects outside of Oracle Enterprise Manager, do not grant more privileges to your repository schema user than is absolutely necessary.

### Step 4 "Select Repository User Tablespaces"

The Select Repository User Tablespaces page does not appear:

- If the repository user already exists and contains a complete and up-to-date Enterprise Manager repository

  or

- If the Enterprise Manager Configuration Assistant is run from an installation session and:

  - If the OEM_REPOSITORY tablespace already exists, and:

  - If the OEM_REPOSITORY tablespace has the appropriate size attributes

Note: Do not install the Oracle Enterprise Manager repository into the SYSTEM (especially the SYSTEM tablespace of your production database), ROLLBACK, or TEMPORARY tablespaces. The tablespace parameter settings used for the SYSTEM tablespace are not appropriate for Oracle Enterprise Manager use. You should only use the SYSTEM tablespace for "system" entities. Tools, users, and management products such as Oracle Enterprise Manager should be placed in other tablespaces. ROLLBACK tablespaces are used for creating rollback segments. Rollback segments are used by Oracle user processes to store rollback information. TEMPORARY tablespaces, which are assigned as TEMPORARY tablespaces for users, are used by Oracle user processes as a "scratch pad." Both of these tablespaces fluctuate in tablespace usage when the database is up and running. The TEMPORARY tablespace can be used as the user's temporary tablespace. The Configuration Assistant does not allow you to use the SYSTEM tablespace either as a temporary tablespace or as a default tablespace. For more details, refer to the Oracle8i Concepts Guide.

In standalone mode, if the OEM_REPOSITORY tablespace already exists and you have enter the name of a different repository user than the one managing the repository in the "Repository Login Information" page, an error message appears, saying, "Do you wish to change it to manage the repository owned by user '<user>' on service '<service>'?" If you click the "Yes" or the "No" button, the following screen appears.

#### Figure 2-4 Select Repository User Tablespaces if OEM_REPOSITORY Exists
Text description of the illustration rep4.gif

Select the default and temporary tablespaces for the Enterprise Manager repository to use.

If the OEM_REPOSITORY tablespace does not exist, the following screen appears:

#### Figure 2-5 Select Repository User Tablespaces if OEM_REPOSITORY Does Not Exist
Text description of the illustration rep3_2.gif

Default Tablespace:

- Create a new OEM_REPOSITORY tablespace (recommended).

  Select this option if you want to create the OEM_REPOSITORY tablespace, which has specific characteristics for the Enterprise Manager repository, and use it as the repository user's default tablespace.

- Override default datafile name.

  Select the checkbox if you want to change the default name of the datafile for the OEM_REPOSITORY tablespace. This is not normally recommended.

- Use an existing tablespace

  Select an existing tablespace from the pull-down list.

Temporary Tablespace

Select a temporary tablespace from the pull-down list.

Click Next to continue.

If the Enterprise Manager Configuration Assistant detects that the default tablespace for the repository contains the required amount of free space, the "Create Repository Summary" page appears. Otherwise, errors will appear.

### Step 5 "Create Repository Summary"

The "Create Repository Summary" page appears, showing a summary of the processing to be performed. Verify that all of the information supplied during the create repository wizard operation is accurate.

#### Figure 2-6 Create Repository Summary
Text description of the illustration rep5.gif

Click Finish to initiate repository creation or click Back to return to previous pages to make modifications.

When you click the Finish button, the Configuration Assistant Progress window appears, showing the processing performed and the processing steps that comprise the operation being performed.

### Step 6 "Configuration Assistant Progress Window"

If you want to view detailed information about what is happening during the processing, including any errors that might occur, click the "Show Details" button to expand the dialog to show a text area. You can hide the detailed information by clicking the "Hide Details" button.

#### Figure 2-7 Configuration Assistant Progress
Text description of the illustration rep6.gif

The Cancel button changes to a Close button when processing is completed, whether it is successful or not.

When all of the steps have been completed without error, the "Processing completed." message appears.

You can cancel the requested operation before it completes by clicking the Cancel button.

Note: If you cancel the repository creation while it is in progress, the state of the repository is in doubt. In these circumstances, you should drop the repository using the Enterprise Manager Configuration Assistant.

You must click the Close button to exit the Configuration Assistant.

If the repository creation fails, drop the repository, turn on tracing for the Management Server by adding the appropriate tracing properties to the `omsconfig.properties` file, and perform the repository creation procedure again. For information on Management Server tracing and logging, refer to "Tracing and Logging for the Management Server" on page D-5.

For information on dropping the repository, refer to "Drop an Existing Repository" on page B-6.

## Recommended init.ora Settings for the Repository Database

You can change the settings before or after repository creation.

The following are recommended init.ora settings for the repository database. They are recommended particularly if you are using the Oracle Enterprise Manager Events system.

- `sessions = 200`

- `open_cursors = 200`

- `db_block_buffers = 23040`

- `log_buffer = 524288`

- `sort_area_size = 262144`

- `sort_area_retailed_size = 262144`

- `shared_pool_reserved_size = 0`

- `db_block_lru_latches = 2`

After editing the init.ora file with these settings, you must stop and restart the database in order for the changes to take effect.

Tuning for specific sites may be necessary, and using Oracle Expert included as part of the separately licensable Oracle Tuning Pack for these cases is recommended.

| Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
Library | Service | Contents | Index