Monday, August 26, 2013

Installation of Oracle 12c Cloud Control over OEL6.4

Installation of Oracle Enterprise Manager 12c Cloud Control

Software Location:
1. OEM 12c Cloud Control
2. Oracle Database 11203

Cnfigure the EM repository for Cloud Control.

I installed the Oracle 11203 database 'orcl' over OEL6. I would use this database for cloud repository. 

Follow the below steps to configure for repo.
 
[oracle@test bin]$ cd /u01/app/oracle/product/11.2.0/db_1/bin/
[oracle@test bin]$ ./emca -deconfig dbcontrol db -repos drop -SYS_PWD Oracle12 -SYSMAN_PWD Oracle12

STARTED EMCA at Aug 25, 2013 3:11:54 AM
EM Configuration Assistant, Version 11.2.0.3.0 Production
Copyright (c) 2003, 2011, Oracle.  All rights reserved.

Enter the following information:
Database SID: orcl
Listener port number: 1521

----------------------------------------------------------------------
WARNING : While repository is dropped the database will be put in quiesce mode.
----------------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: Y
Aug 25, 2013 3:12:06 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/app/oracle/cfgtoollogs/emca/orcl/emca_2013_08_25_03_11_54.log.
Aug 25, 2013 3:12:06 AM oracle.sysman.emcp.util.DBControlUtil stopOMS
INFO: Stopping Database Control (this may take a while) ...
Aug 25, 2013 3:12:27 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Dropping the EM repository (this may take a while) ...
Aug 25, 2013 3:14:35 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully dropped
Enterprise Manager configuration completed successfully
FINISHED EMCA at Aug 25, 2013 3:14:37 AM

[oracle@test bin]$ ps -aef |grep pmon
oracle    6575     1  0 02:42 ?        00:00:00 ora_pmon_orcl
oracle   12451  2805  0 03:16 pts/0    00:00:00 grep pmon

[oracle@test bin]$ echo $ORACLE_HOME
/u01/app/oracle/product/11.2.0/db_1/
[oracle@test bin]$ echo $ORACLE_SID
orcl
[oracle@test bin]$ sqlplus "/as sysdba"

SQL*Plus: Release 12.1.0.1.0 Production on Sun Aug 25 03:16:46 2013

Copyright (c) 1982, 2013, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> select name,open_mode from v$database;

NAME      OPEN_MODE
--------- --------------------
ORCL      READ WRITE

Perform the following changes into the repository database.

SQL> ALTER SYSTEM SET processes=300 SCOPE=SPFILE;

System altered.

SQL> ALTER SYSTEM SET session_cached_cursors=200 SCOPE=SPFILE;

System altered.

SQL> ALTER SYSTEM SET sga_target=2G SCOPE=SPFILE;

System altered.

SQL> ALTER SYSTEM SET shared_pool_size=600M SCOPE=SPFILE;

System altered.

SQL> ALTER SYSTEM SET pga_aggregate_target=1G SCOPE=SPFILE;

System altered.

SQL> ALTER SYSTEM SET job_queue_processes=20 SCOPE=SPFILE;

System altered.

SQL> SHUTDOWN IMMEDIATE
Database closed.
Database dismounted.
ORACLE instance shut down.

[oracle@test admin]$ sqlplus "/as sysdba"

SQL*Plus: Release 12.1.0.1.0 Production on Sun Aug 25 03:25:31 2013

Copyright (c) 1982, 2013, Oracle.  All rights reserved.

Connected to an idle instance.

SQL> startup
ORACLE instance started.

Total System Global Area 2142679040 bytes
Fixed Size                  1346140 bytes
Variable Size             671090084 bytes
Database Buffers         1459617792 bytes
Redo Buffers               10625024 bytes
Database mounted.
Database opened.

[oracle@test ~]$ mkdir -p /u01/app/oracle/oms12c/ /u01/app/oracle/agent12c/

Unzip the OEM setup.

[oracle@test 12c_cloud]$ unzip em12103_linux64_disk1.zip
[oracle@test 12c_cloud]$ unzip em12103_linux64_disk2.zip
[oracle@test 12c_cloud]$ unzip em12103_linux64_disk3.zip

 Lets run the Cloud Control Installer.
[oracle@test 12c_cloud]$ ./runInstaller


















     







































Lets check the OMS and Agent status. 

[oracle@test oracle]$ cd /u01/app/oracle/oms12c/oms/bin/
[oracle@test bin]$ ./emctl status oms
Oracle Enterprise Manager Cloud Control 12c Release 3 
Copyright (c) 1996, 2013 Oracle Corporation.  All rights reserved.
WebTier is Up
Oracle Management Server is Up



[oracle@test bin]$ cd ../../../agent12c/agent_inst/bin/
[oracle@test bin]$ ./emctl status agent
Oracle Enterprise Manager Cloud Control 12c Release 3 
Copyright (c) 1996, 2013 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent Version     : 12.1.0.3.0
OMS Version       : 12.1.0.3.0
Protocol Version  : 12.1.0.1.0
Agent Home        : /u01/app/oracle/agent12c/agent_inst
Agent Binaries    : /u01/app/oracle/agent12c/core/12.1.0.3.0
Agent Process ID  : 32660
Parent Process ID : 32612
Agent URL         : https://test.oracle.com:3872/emd/main/
Repository URL    : https://test.oracle.com:4904/empbs/upload
Started at        : 2013-08-26 19:39:38
Started by user   : oracle
Last Reload       : (none)
Last successful upload                       : 2013-08-26 21:20:20
Last attempted upload                        : 2013-08-26 21:20:20
Total Megabytes of XML files uploaded so far : 1.25
Number of XML files pending upload           : 0
Size of XML files pending upload(MB)         : 0
Available disk space on upload filesystem    : 66.99%
Collection Status                            : Collections enabled
Heartbeat Status                             : Ok
Last attempted heartbeat to OMS              : 2013-08-26 21:19:55
Last successful heartbeat to OMS             : 2013-08-26 21:19:55
Next scheduled heartbeat to OMS              : 2013-08-26 21:20:55

---------------------------------------------------------------
Agent is Running and Ready



Thanks for your time. :)

No comments:

Post a Comment