Linux Oracle OCM安装、配置、使用一小记

本文详细介绍了在Linux环境下安装、配置并使用Oracle OCM的过程,包括解压缩安装包、设置环境变量、安装核心组件、配置CCR等关键步骤,并提供了安装后的基本操作指南,如测试、状态查看、配置更新、目标禁用等。
Linux Oracle OCM安装、配置、使用
将Linux 版本OCM p5567658_1037_LINUX.zip解压至$ORACLE_HOME/
oracle@linux-u72z:~> cd /opt/oracle/product/10.2.0/db_1/ccr
oracle@linux-u72z:~/product/10.2.0/db_1/ccr> cd bin
oracle@linux-u72z:~/product/10.2.0/db_1/ccr/bin> ls -l
total 168
-rw-r--r-- 1 oracle dba  3539 Mar  7  2012 OCMJarUtil.class
-rwxr----- 1 oracle dba 19169 Mar  7  2012 common
-rw-r--r-- 1 oracle dba 47285 Mar  7  2012 deployPackages
-rw-r--r-- 1 oracle dba  5881 Mar  7  2012 emSnapshotEnv
-rwxr----- 1 oracle dba  9063 Nov 26  2009 emocmrsp
-rw-r--r-- 1 oracle dba  6116 Mar  7  2012 lockfile
-rwxr----- 1 oracle dba  1630 Mar  7  2012 ocmJarUtil
-rwxr----- 1 oracle dba 58374 Mar  7  2012 setupCCR
-rw-r--r-- 1 oracle dba   903 Mar  7  2012 strip_path.awk
#安装OCM setupCCR
oracle@linux-u72z:~/product/10.2.0/db_1/ccr/bin> ./setupCCR -s -d
** Installing base package **
Deploying core - Version 10.3.7.0.0
Deploying engines - Version 10.3.7.0.0
Deploying metricdata - Version 10.3.7.0.0
Deploying rda - Version 4.26.12.1.6
Deploying rdacelin - Version 4.26.12.1.6
Deploying scripts - Version 10.3.7.0.0
Oracle Configuration Manager has been configured in disconnected mode. If the
target ORACLE_HOME is running a database, please refer to the
"Post-installation Database Configuration" section of the OCM Installation
and Administration Guide
( http://www.oracle.com/technology/documentation/ocm.html) to complete the
installation.
View configuration data reports and access valuable configuration best
practices by going to My Oracle Support.
oracle@linux-u72z:~/product/10.2.0/db_1/ccr/bin> ./configCCR
Provide your email address to be informed of security issues, install and
initiate Oracle Configuration Manager. Easier for you if you use your My
Oracle Support Email address/User Name.
Visit http://www.oracle.com/support/policies.html for details.
Email address/User Name: xxxxxx @oracle.com
Provide your My Oracle Support password to receive security updates via your My Oracle Support account.
Password (optional):          
** Validating configuration changes with Oracle Configuration Manager server(s) **
** Starting the Oracle Configuration Manager Scheduler **
Oracle Configuration Manager - Release: 10.3.7.0.0 - Production
Copyright (c) 2005, 2012, Oracle and/or its affiliates.  All rights reserved.
------------------------------------------------------------------
Starting Oracle Configuration Manager...
Waiting for status from Oracle Configuration Manager....
Start Date               21-Oct-2012 21:07:40
Last Collection Time     -
Next Collection Time     22-Oct-2012 21:06:00
Collection Frequency     Daily at 21:06
Collection Status        scheduled collection running
Log Directory            /opt/oracle/product/10.2.0/db_1/ccr/hosts/linux-u72z/log
Registered At            21-Oct-2012 21:07:36
Automatic Update         On
Collector Mode           Connected
Oracle Configuration Manager successfully started.
#测试OCM
oracle@linux-u72z:~/product/10.2.0/db_1/ccr/bin> ./emCCR test
Oracle Configuration Manager - Release: 10.3.7.0.0 - Production
Copyright (c) 2005, 2012, Oracle and/or its affiliates.  All rights reserved.
------------------------------------------------------------------
Verifying Proxy settings...
No Proxy host set.
Oracle Configuration Manager Server is: ccr.oracle.com
Resolving Oracle Configuration Manager Server address...
Connecting to Oracle Configuration Manager server...
Command successfully completed.
#状态
oracle@linux-u72z:~/product/10.2.0/db_1/ccr/bin> ./emCCR status
Oracle Configuration Manager - Release: 10.3.7.0.0 - Production
Copyright (c) 2005, 2012, Oracle and/or its affiliates.  All rights reserved.
------------------------------------------------------------------
Start Date               21-Oct-2012 21:07:40
Last Collection Time     -
Next Collection Time     22-Oct-2012 21:06:00
Collection Frequency     Daily at 21:06
Collection Status        scheduled collection running
Log Directory            /opt/oracle/product/10.2.0/db_1/ccr/hosts/linux-u72z/log
Registered At            21-Oct-2012 21:07:36
Automatic Update         On
Collector Mode           Connected
#installCCRSQL.sh
oracle@linux-u72z:~/product/10.2.0/db_1/ccr/bin> ../admin/scripts/installCCRSQL.sh collectconfig -s CMCCWAP -r sys
Provide password for the SYSDBA user "sys":
Successfully installed collectconfig in the database with SID=CMCCWAP.
# OCM collect
oracle@linux-u72z:~/product/10.2.0/db_1/ccr/bin> ./emCCR collect
Oracle Configuration Manager - Release: 10.3.7.0.0 - Production
Copyright (c) 2005, 2012, Oracle and/or its affiliates.  All rights reserved.
------------------------------------------------------------------
Collection is currently in progress, please try after some time.
oracle@linux-u72z:~/product/10.2.0/db_1/ccr/bin> ./emCCR set collection_interval="FREQ=MONTHLY; BYMONTHDAY=1; BYHOUR=0; BYMINUTE=0"
Oracle Configuration Manager - Release: 10.3.7.0.0 - Production
Copyright (c) 2005, 2012, Oracle and/or its affiliates.  All rights reserved.
------------------------------------------------------------------
Collection interval set successfully.
# disable_target
oracle@linux-u72z:~/product/10.2.0/db_1/ccr/bin> ./emCCR disable_target
Oracle Configuration Manager - Release: 10.3.7.0.0 - Production
Copyright (c) 2005, 2012, Oracle and/or its affiliates.  All rights reserved.
------------------------------------------------------------------
No.        Category                     Target Name
0          Host                         linux-u72z
1          Database Instance            CMCCWAP
2          Oracle Home                  OraDb10g_home1
3          Listener                     LISTENER_linux-u72z
4          Oracle Configuration Manager Oracle Configuration Manager
Press Enter to exit the command.
Use Comma to separate multiple target numbers.
Enter the number(s) corresponding to the target(s) you wish to disable:
# OCM register
oracle@linux-u72z:~/product/10.2.0/db_1/ccr/bin> ./emCCR register
Oracle Configuration Manager - Release: 10.3.7.0.0 - Production
Copyright (c) 2005, 2012, Oracle and/or its affiliates.  All rights reserved.
------------------------------------------------------------------
REGISTER command completed successfully.
# OCM stop
oracle@linux-u72z:~/product/10.2.0/db_1/ccr/bin> ./emCCR stop
Oracle Configuration Manager - Release: 10.3.7.0.0 - Production
Copyright (c) 2005, 2012, Oracle and/or its affiliates.  All rights reserved.
------------------------------------------------------------------
Cannot perform. this operation, stop pending.
# OCM getupdates
oracle@linux-u72z:~/product/10.2.0/db_1/ccr/bin> ./emCCR getupdates
Oracle Configuration Manager - Release: 10.3.7.0.0 - Production
Copyright (c) 2005, 2012, Oracle and/or its affiliates.  All rights reserved.
------------------------------------------------------------------
Cannot perform. this operation, stop pending.
# OCM start
oracle@linux-u72z:~/product/10.2.0/db_1/ccr/bin> ./emCCR start
Oracle Configuration Manager - Release: 10.3.7.0.0 - Production
Copyright (c) 2005, 2012, Oracle and/or its affiliates.  All rights reserved.
------------------------------------------------------------------
Deploying rdacelin.jar at 10-21-2012_18:48:52
Starting Oracle Configuration Manager...
Waiting for status from Oracle Configuration Manager....
Start Date               21-Oct-2012 18:48:53
Last Collection Time     -
Next Collection Time     01-Nov-2012 00:00:00
Collection Frequency     Monthly, on the 1 at 00:00
Collection Status        scheduled collection running
Log Directory            /opt/oracle/product/10.2.0/db_1/ccr/hosts/linux-u72z/log
Registered At            21-Oct-2012 21:29:44
Automatic Update         On
Collector Mode           Connected
Oracle Configuration Manager successfully started.
# OCM getupdates
oracle@linux-u72z:~/product/10.2.0/db_1/ccr/bin> ./emCCR getupdates
Oracle Configuration Manager - Release: 10.3.7.0.2 - Production
Copyright (c) 2005, 2012, Oracle and/or its affiliates.  All rights reserved.
------------------------------------------------------------------
Another operation is in progress. Please wait...

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/17252115/viewspace-747031/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/17252115/viewspace-747031/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值