Oracle Enterprise Manager Configuration Guide Release 1.5.0 A57696-01 |
|
This chapter discusses getting started with Oracle Enterprise Manager and configuring the Console when it is running under Microsoft Windows NT or Windows 95.
Before you start the Enterprise Manager, you must set up the repository user account. A repository is a set of tables in an Oracle database which stores data and information required by the OEM Console. The tables are owned by the account that creates them.
You need to have an Oracle user account with DBA (Database Administrator) privileges set up on the database where the repository will be created. Each DBA must have their own repository for the nodes they are responsible for. The repository account can be located in any Oracle database that is accessible on the network.
Please check the Oracle Enterprise Manager Readme for the compatibility matrix. The readme
is located in the ORACLE_HOME/ADMIN
directory.
To set up a user account with DBA (Database Administrator) privileges on the database where the repository is created, follow the procedure below:
or
CREATE TABLESPACE reposit_tablespace DATAFILE '<datafile with complete
pathname>' size;
An NT example:
create tablespace repos_tbsp datafile 'e:\orant\database\repos.dbf' size 9 M;
or
CREATE USER username IDENTIFIED BY password
DEFAULT TABLESPACE reposit_tablespace
TEMPORARY TABLESPACE temp_tablespace;
Oracle Enterprise Manager places its repository in the default tablespace of the user account where you are connected when the repository is created.
If necessary, decrease the INITIAL extent size of the user's default tablespace or increase the overall tablespace size by adding another datafile. Oracle Enterprise Manager does not explicitly specify the size of the tables and indexes it creates. These objects are created using the default storage parameters for the tablespace in which they are to be stored. As a result, if the tablespace runs out of space before all of the schema objects are created, an error occurs.
You can use Server Manager or SQL Worksheet to type the following command:
GRANT DBA to username, %;
When you start Oracle Enterprise Manager, connect to the repository database with this user account. The repository will automatically be generated.
Note: Beginning with Oracle Enterprise Manager version 1.3.5, a new repository will be created for every new user login. One user can use one repository at one time. |
The Repository Manager Wizard is launched by selecting Repository Manager in the Oracle Enterprise Manager program group. The Repository Manager allows you to choose from the following operations:
You can choose the repository components that you want to create, validate, or drop. The Performance Pack is dependent on the Enterprise Manager repository. Because of this dependency, a selection may be automatically checked and grayed out when another option is selected. For example, if you choose to create a Performance Pack repository, the Enterprise Manager option is automatically selected because it is required.
When you choose Drop, Enterprise Manager is selected by default. The Performance Pack is also selected because that repository cannot exist without the Enterprise Manager repository. If you want to drop only the Performance Pack repository, remove the check on the Enterprise Manager repository; then, check the Performance Pack option.
The last page of the wizard allows you to enter the login information for the repository where the operation you have requested will be performed. The process takes a few minutes to complete.
All repository objects which are required by a particular tool will be created the first time the tool is started. Alternatively, the user can go into the repository and create all the repository objects at once.
If you have an existing repository from a previous release of Oracle Enterprise Manager, check for compatibility:
If there is an unexpected failure during a repository upgrade, the repository will need to be created. To prevent having to recreate repositories at a future date, Oracle recommends that you save your repository. Saving the repository protects the user's manually entered information, such as events, jobs, and preferred credentials, as well as collected information for products such as Oracle Expert and Trace.
First, set up a repository, discover all the nodes, make some basic jobs, and then save your repository by doing a full cold backup (take the database off-line and copy datafiles to storage) or by exporting the user.
To start the Enterprise Manager Console, select Oracle Enterprise Manager from the Oracle Enterprise Manager folder on the Start Menu.
Oracle Enterprise Manager requires unique usernames across all repositories whether or not the repositories are in different databases, because:
The process for connecting to a repository is outlined below.
If the repository does not exist, it is automatically created and a dialog box informs you of the operation.
The Oracle Enterprise Manager Console must discover network services, such as databases, listeners, and nodes, to populate the Navigator tree, in order to manage these services for the Job Scheduling and Event Management systems.
The Navigator's Service Discovery feature provides wizards for identifying network services and populating the Navigator tree.
To begin discovering services, your Oracle networking system must be properly installed. Methods of discovering services are listed below:
To discover services:
If this in a new install, the discovery wizard will appear.
If this is not a new install, launch the wizard by selecting from the Main menu, Navigator->Service Discovery->Discover New Services, and clicking the Next button.
To enter nodes in the wizard, type the node name into the "New Node" field and click the Add button. Repeat for each node.
If you have many nodes, you may want to construct two text files containing their names. The file should contain each node name on its own line. Name the text file *.text so that Oracle Enterprise Manager may find it.
When requested through the Navigator Discovery menu option, the agent passes information from the services.ora file to the Enterprise Manager Console to populate the Navigator tree.
If you could not discover the database(s) in question, please refer to your platform-specific agent. For NT users, please refer to Troubleshooting the NT Agent If It Did Not Start Up on page 1-8. For UNIX users, please refer to Troubleshooting the UNIX Agent If It Did Not Start Up on page 1-18.
Since Oracle Enterprise Manager (beginning with version 1.4.0) no longer uses a topology.ora
file for Pre-7.3.3 agents, the databases which do not have a 7.3.3 or higher agent running must be manually added to the navigator.
TNSNAMES.ORA
file on local box and on the server. The entries should match on both systems.
Oracle Enterprise Manager Console and database applications can resolve service names via Oracle Names like any other Oracle Console application.
For more information on how to configure a client with Oracle Names, see the Oracle Names Administrator's Guide.
Note: Before attempting to discover these services or to run jobs, please test the Net8 connectivity. Please refer to Testing the Connectivity to Any SID on page C-5. |
You can launch an Enterprise Manager database administration tool in the following ways:
Note: The database administration tools can be launched without having the console running. The only exceptions are Backup Manager and Data Manager which use the job system. |
When a tool executes, it attempts to connect to an Oracle database. For information on connecting to an Oracle database, see the online help.
When you select a database in the Console before launching a tool, you are connected to the database according to the preferred credentials that have been set up for the database or the credentials you used to log on to the Console. If connection to the database fails for any reason, the Login Information dialog box displays.
In order for the agent to execute jobs on a managed node, you must specify valid credentials in the Console.
Note: Jobs will be submitted using the repository owner login account unless the user sets the preferred credentials for the specific service (database, node, listener). |
To set the preferred credentials, perform the following steps:
For NT users, you must set the preferred credentials for the node (where the NT Agent resides) to be the same as the user that is set up to "Logon as a batch job." The Agent authenticates the user name and password for all owners of jobs that it runs. If you have not set the preferences correctly, the "Failed to authenticate user" error occurs when you submit a job.
For UNIX users, you must specify a valid UNIX operating system user for the node (not db user for database). The user must have operating system privileges to run programs like sqlplus, import/export on the UNIX server. The privilege can be assigned to an existing local or domain user. The "Failed to authenticate user" error will occur if the preferred credentials do not match the account which started the agent.
Before submitting an administration task, such as database shutdown or startup, through the Oracle Enterprise Manager Job system, you need to set up the database password file on the UNIX node where the database and agent are located.
orapwd file=$ORACLE_HOME/dbs/orapw$ORACLE_SID password=manager
REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE
Note: When you log in to Oracle Enterprise Manager, connect with the SYSDBA role to have the privileges to start up and shut down databases. |
Refer to the operating system-specific documentation for your Oracle database for the exact name of the password file creation utility for your system.
The recovery catalog is a repository of information that is used and maintained by Recovery Manager. Recovery Manager uses the information in the recovery catalog to determine how to execute requested backup and restore actions.
To use Oracle8 Recovery Manager with a recovery catalog, you must first install the recovery catalog and then register your database. No setup is required if you are using the control file.
Your Oracle Enterprise Manager Job system must be functioning properly before attempting to install the recovery catalog. You will need the Job system to register the target database in the recovery catalog.
spool create_rman.logconnect / as sysdba
create tablespace rcvcat datafile 'c:\orant\database\rcvcat_1.ora' size 10m;
create user rman identified by rman
temporary tablespace temporary
default tablespace rcvcat quota unlimited on rcvcat;
grant recovery_catalog_owner to rman;
connect rman/rman
@?/rdbms/admin/catrman
To set up the Recovery Catalog, follow the steps listed below.
Note: Skip the next section "Configuring a Database for Remote SYSDBA Access" if your database is already set up for remote administration. |
In order to run the backup subsystem, you must have remote SYSDBA access to your target database(s). The following procedure outlines the operations you need to perform on both the server and client. You can skip this section if your database(s) are already set up for remote operation. The examples used in the following procedure are for a UNIX environment. Windows NT directories, system variables, and conventions will differ.
setenv ORACLE_HOME your_oracle_home
setenv ORACLE_SID your_oracle_sid
cd $ORACLE_HOME/dbs
$ORACLE_HOME/bin/orapwd file=orapw<SID> password=your_password entries=10
The file name has to be orapw<SID>. Entries = 10 is the maximum number of distinct DBAs and OPERs.
There should be an orapw<SID> created in $ORACLE_HOME/dbs
remote_login_passwordfile=exclusive
in the init<SID>.ora file.
create user remote identified by remote;
grant connect, resource to remote;
grant sysdba to remote;
c:\ORANT\Database\config<SID>.ora.
When the job completes successfully, your backup and recovery environment is configured. For more information on recovery catalog maintenance, Recovery Manager, and backup and recover strategies, see the Oracle8 Backup and Recovery Guide.
A registry key is available for enabling the encoding of Japanese characters when you are sending email.
To set the registry key
Please refer to the troubleshooting section below if you should experience any problems during the setup of Oracle Enterprise Manager.
"Failed to authenticate user" error occurs when the user submits a job. Use the following hints listed below:
Job fails and the job output window shows:
output from job # lost
Use the following hints listed below:
$ORACLE_HOME/network/agent
directory.
On NT, the account must have "Logon as a batch job."
If the Oracle partition is formatted as NTFS (NT File System which allows for local security of files and directories) then you should also grant locally the permission set "Full Control" to the user assigned "Logon as a batch job."
To grant the local file permissions:
Check to see if the agent can access the Console.
Try pinging the Console from the server machine. If you are not sure about your IP address, please check by running the start button-> settings-> control panel-> network-> protocol-> TCP/IP and clicking the properties button.
If you cannot ping the Console, configure the Daemon Manager host address to the TCP/IP address.
Ensure that the DNS Host entry is set to the node name in the listener.ora and tnsnames.ora files.