腾科 11g OCM
第 1 页 共 3 页
2: Grid Control Installation and Configuration
1. Install and Patch Enterprise Manager Grid Control software
1.1 Install database software
1.2 Create database EMREP.oracle.com
1.3 Install Weblogic Server
1.4 Install OEM Grid Control
2. Configure the Enterprise Manager repository
(NULL)
3. Create Enterprise Manager Grid Control users
3.1 Create a Grid Control super user called EMADMIN with the password EMADMIN
4. Use Enterprise Manager to modify a database configuration
4.1 Using Grid Control, change the PGA_AGGREGATE_TARGET on your PROD1 server to 300MB so that it will revert
when the instance is restarted.
4.2 Using Grid Control, configure the instance to ensure that it will take up to five(5) minutes to recover your instance
following an instance failure.
5. Configure Enterprise Manager to modify database availability
5.1 Using Grid Control, stop and start the database PROD1
5.2 Using Grid Control, enable the flashback database setting of database PROD1
5.3 Configure an alert on the SYSTEM tablespace of the PROD1 database. The alert should register as a warning at
87% and critical at 95% full.
5.4 Using Grid Control, create a new tablespace in the PROD1 database called REGISTRATION
5.4.1 Create with one 90MB datafile
5.4.2 Make sure this datafile can grow to 120MB if need be
6. Create and manage jobs
6.1 Create a job to run the OS command ”date >> /tmp/job_output.tmp” repeat 1 minutes on both hosts. Check the
result and then drop the job.
6.2 Create a job to block the ODD host’s agent. Check the result and then unblock the agent.
6.3 Create a job to run the SQL script ‘select column_does_not_exist from dual’ on EMREP database, if the SQL script
return error then run the OS command ‘date >> /tmp/job_output.tmp’ on the ODD host. Check the result of the job.
7. Create and monitor alerts
7.1 In EMREP database, set a warning alert when Tablespace Space Used > 10% after 5 minutes. Check the
tablespaces’ usage. Then reset to default setting (warning threshold to 85% and repeat time to 30 minutes).
7.2 Create a User-Defined Metrics
7.2.1 Use the following SQL query for threshold, set the warning>150,critical>200,repeat every 5 min:
SELECT MAX(A.VALUE) "MAXCURSORS"
FROM V$SESSTAT A, V$STATNAME B
WHERE A.STATISTIC# = B.STATISTIC# AND B.NAME='opened cursors current'
ORDER BY A.VALUE;
评论