Linux Oracle OCM安裝、配置、使用一小記

swq618發表於2016-05-30
Linux Oracle OCM安裝、配置、使用
將Linux 版本OCM p5567658_1037_LINUX.zip解壓至$ORACLE_HOME/
:~> cd /opt/oracle/product/10.2.0/db_1/ccr
> cd 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
> ./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.
> ./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 for details.
Email address/User Name: xxxxxx
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
> ./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.
#狀態
> ./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
> ../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
> ./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.
> ./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
> ./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
> ./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
> ./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
> ./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
> ./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
> ./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/29674916/viewspace-2109408/,如需轉載,請註明出處,否則將追究法律責任。

相關文章