enterprise manager cloud control 12c release 4 - installation

30
Enterprise Manager Cloud Control 12c Release 4 Installation Ivica Arsov http://iarsov.com Before installation validate zip files cksum. Download the complete files em12104_linux64_disk1.zip (2,195,693,096 bytes) (cksum - 4176170445) em12104_linux64_disk2.zip (1,877,449,643 bytes) (cksum - 3219437597) em12104_linux64_disk3.zip (2,727,123,784 bytes) (cksum - 2554054536) [root@em12c em12cr4]# ll total 6640888 -rw-r--r--. 1 root root 2195693096 Jul 22 11:17 em12104_linux64_disk1.zip -rw-r--r--. 1 root root 1877449643 Jul 22 10:54 em12104_linux64_disk2.zip -rw-r--r--. 1 root root 2727123784 Jul 22 12:35 em12104_linux64_disk3.zip [root@em12c em12cr4]# [root@em12c em12cr4]# cksum em12104_linux64_disk1.zip 4176170445 2195693096 em12104_linux64_disk1.zip [root@em12c em12cr4]# cksum em12104_linux64_disk2.zip 3219437597 1877449643 em12104_linux64_disk2.zip [root@em12c em12cr4]# cksum em12104_linux64_disk3.zip 2554054536 2727123784 em12104_linux64_disk3.zip [root@em12c em12cr4]#

Upload: iarsov

Post on 12-Apr-2017

2.744 views

Category:

Education


4 download

TRANSCRIPT

Page 1: Enterprise Manager Cloud Control 12c Release 4 - Installation

Enterprise Manager Cloud Control 12c Release 4 Installation

Ivica Arsovhttp://iarsov.com

Before installation validate zip files cksum.

Download the complete files  em12104_linux64_disk1.zip (2,195,693,096 bytes) (cksum - 4176170445)

  em12104_linux64_disk2.zip (1,877,449,643 bytes) (cksum - 3219437597)

  em12104_linux64_disk3.zip (2,727,123,784 bytes) (cksum - 2554054536)

[root@em12c em12cr4]# lltotal 6640888-rw-r--r--. 1 root root 2195693096 Jul 22 11:17 em12104_linux64_disk1.zip-rw-r--r--. 1 root root 1877449643 Jul 22 10:54 em12104_linux64_disk2.zip-rw-r--r--. 1 root root 2727123784 Jul 22 12:35 em12104_linux64_disk3.zip[root@em12c em12cr4]#[root@em12c em12cr4]# cksum em12104_linux64_disk1.zip4176170445 2195693096 em12104_linux64_disk1.zip[root@em12c em12cr4]# cksum em12104_linux64_disk2.zip3219437597 1877449643 em12104_linux64_disk2.zip[root@em12c em12cr4]# cksum em12104_linux64_disk3.zip2554054536 2727123784 em12104_linux64_disk3.zip[root@em12c em12cr4]#

Page 2: Enterprise Manager Cloud Control 12c Release 4 - Installation
Page 3: Enterprise Manager Cloud Control 12c Release 4 - Installation
Page 4: Enterprise Manager Cloud Control 12c Release 4 - Installation
Page 5: Enterprise Manager Cloud Control 12c Release 4 - Installation

Fix:

Change ulimit value in vi /etc/security/limits.conf from 1024 to 4096 for oracle soft nofileoracle soft nofile 4096

[root@em12c ~]# yum install glibc-devel.i686Loaded plugins: refresh-packagekit, securitySetting up Install ProcessResolving Dependencies--> Running transaction check---> Package glibc-devel.i686 0:2.12-1.132.el6_5.2 will be installed--> Processing Dependency: libthread_db.so.1 for package: glibc-devel-2.12-1.132 .el6_5.2.i686--> Processing Dependency: libnss_files.so.2 for package: glibc-devel-2.12-1.132 .el6_5.2.i686--> Processing Dependency: libnsl.so.1 for package: glibc-devel-2.12-1.132.el6_5 .2.i686--> Processing Dependency: libm.so.6 for package: glibc-devel-2.12-1.132.el6_5.2 .i686--> Processing Dependency: libresolv.so.2 for package: glibc-devel-2.12-1.132.el

Page 6: Enterprise Manager Cloud Control 12c Release 4 - Installation

6_5.2.i686--> Processing Dependency: libdl.so.2 for package: glibc-devel-2.12-1.132.el6_5. 2.i686--> Processing Dependency: libnss_dns.so.2 for package: glibc-devel-2.12-1.132.e l6_5.2.i686--> Processing Dependency: libnss_nisplus.so.2 for package: glibc-devel-2.12-1.1 32.el6_5.2.i686--> Processing Dependency: libnss_nis.so.2 for package: glibc-devel-2.12-1.132.e l6_5.2.i686--> Processing Dependency: libnss_compat.so.2 for package: glibc-devel-2.12-1.13 2.el6_5.2.i686--> Processing Dependency: libcrypt.so.1 for package: glibc-devel-2.12-1.132.el6 _5.2.i686--> Processing Dependency: libcidn.so.1 for package: glibc-devel-2.12-1.132.el6_ 5.2.i686--> Processing Dependency: librt.so.1 for package: glibc-devel-2.12-1.132.el6_5. 2.i686--> Processing Dependency: libanl.so.1 for package: glibc-devel-2.12-1.132.el6_5 .2.i686--> Processing Dependency: libutil.so.1 for package: glibc-devel-2.12-1.132.el6_ 5.2.i686--> Processing Dependency: libnss_hesiod.so.2 for package: glibc-devel-2.12-1.13 2.el6_5.2.i686--> Processing Dependency: libBrokenLocale.so.1 for package: glibc-devel-2.12-1. 132.el6_5.2.i686--> Running transaction check---> Package glibc.i686 0:2.12-1.132.el6_5.2 will be installed--> Processing Dependency: libfreebl3.so for package: glibc-2.12-1.132.el6_5.2.i 686--> Processing Dependency: libfreebl3.so(NSSRAWHASH_3.12.3) for package: glibc-2 .12-1.132.el6_5.2.i686--> Running transaction check---> Package nss-softokn-freebl.i686 0:3.14.3-10.el6_5 will be installed--> Finished Dependency Resolution

Dependencies Resolved

================================================================================ Package Arch Version Repository Size================================================================================Installing: glibc-devel i686 2.12-1.132.el6_5.2 public_ol6_latest 978 kInstalling for dependencies: glibc i686 2.12-1.132.el6_5.2 public_ol6_latest 4.3 M nss-softokn-freebl i686 3.14.3-10.el6_5 public_ol6_latest 147 k

Transaction Summary================================================================================

Page 7: Enterprise Manager Cloud Control 12c Release 4 - Installation

Install 3 Package(s)

Total download size: 5.4 MInstalled size: 14 MIs this ok [y/N]: yDownloading Packages:(1/3): glibc-2.12-1.132.el6_5.2.i686.rpm | 4.3 MB 00:09(2/3): glibc-devel-2.12-1.132.el6_5.2.i686.rpm | 978 kB 00:02(3/3): nss-softokn-freebl-3.14.3-10.el6_5.i686.rpm | 147 kB 00:00--------------------------------------------------------------------------------Total 432 kB/s | 5.4 MB 00:12Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning TransactionWarning: RPMDB altered outside of yum. Installing : glibc-2.12-1.132.el6_5.2.i686 1/3 Installing : nss-softokn-freebl-3.14.3-10.el6_5.i686 2/3 Installing : glibc-devel-2.12-1.132.el6_5.2.i686 3/3 Verifying : nss-softokn-freebl-3.14.3-10.el6_5.i686 1/3 Verifying : glibc-2.12-1.132.el6_5.2.i686 2/3 Verifying : glibc-devel-2.12-1.132.el6_5.2.i686 3/3

Installed: glibc-devel.i686 0:2.12-1.132.el6_5.2

Dependency Installed: glibc.i686 0:2.12-1.132.el6_5.2 nss-softokn-freebl.i686 0:3.14.3-10.el6_5

Complete![root@em12c ~]#

Page 8: Enterprise Manager Cloud Control 12c Release 4 - Installation
Page 9: Enterprise Manager Cloud Control 12c Release 4 - Installation
Page 10: Enterprise Manager Cloud Control 12c Release 4 - Installation
Page 11: Enterprise Manager Cloud Control 12c Release 4 - Installation
Page 12: Enterprise Manager Cloud Control 12c Release 4 - Installation
Page 13: Enterprise Manager Cloud Control 12c Release 4 - Installation
Page 14: Enterprise Manager Cloud Control 12c Release 4 - Installation

Fix:

[oracle@em12c ~]$ emca -deconfig dbcontrol db -repos drop -SYS_PWD ********** -SYSMAN_PWD **********

STARTED EMCA at Jul 22, 2014 3:01:15 PMEM Configuration Assistant, Version 11.2.0.3.0 ProductionCopyright (c) 2003, 2011, Oracle. All rights reserved.

Enter the following information:Database SID: em12cListener 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)]: yesJul 22, 2014 3:01:27 PM oracle.sysman.emcp.EMConfig performINFO: This operation is being logged at

Page 15: Enterprise Manager Cloud Control 12c Release 4 - Installation

/u01/app/oracle/cfgtoollogs/emca/em12c/emca_2014_07_22_15_01_15.log.Jul 22, 2014 3:01:28 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngineLoaclyWARNING: ORA-28000: the account is locked

Jul 22, 2014 3:01:28 PM oracle.sysman.emcp.ParamsManager checkListenerStatusForDBControlWARNING: Error initializing SQL connection. SQL operations cannot be performedJul 22, 2014 3:01:28 PM oracle.sysman.emcp.EMDBPreConfig performDeconfigurationWARNING: EM is not configured for this database. No EM-specific actions can be performed. Some of the possible reasons may be: 1) EM is configured with different hostname then physical host. Set environment variable ORACLE_HOSTNAME=<hostname> and re-run EMCA script 2) ORACLE_HOSTNAME is set. Unset it and re-run EMCA scriptJul 22, 2014 3:01:28 PM oracle.sysman.emcp.EMReposConfig invokeINFO: Dropping the EM repository (this may take a while) ...Jul 22, 2014 3:02:52 PM oracle.sysman.emcp.EMReposConfig invokeINFO: Repository successfully droppedEnterprise Manager configuration completed successfullyFINISHED EMCA at Jul 22, 2014 3:02:52 PM[oracle@em12c ~]$

Page 16: Enterprise Manager Cloud Control 12c Release 4 - Installation

Choose Yes for automatic fix.

Page 17: Enterprise Manager Cloud Control 12c Release 4 - Installation

Fix redo log size:

[oracle@em12c ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.4.0 Production on Tue Jul 22 15:09:42 2014Copyright (c) 1982, 2013, Oracle. All rights reserved.

Connected to:Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit ProductionWith the Partitioning, Automatic Storage Management and Real Application Testing options

SQL> col member format a50SQL> r 1* select group#,status,member from v$logfile

GROUP# STATUS MEMBER---------- ------- -------------------------------------------------- 3 +DATA/em12c/onlinelog/group_3.263.853594669 3 +FRA/em12c/onlinelog/group_3.259.853594669 2 +DATA/em12c/onlinelog/group_2.262.853594667

Page 18: Enterprise Manager Cloud Control 12c Release 4 - Installation

2 +FRA/em12c/onlinelog/group_2.258.853594669 1 +DATA/em12c/onlinelog/group_1.261.853594667 1 +FRA/em12c/onlinelog/group_1.257.853594667

6 rows selected.

SQL> select group#,bytes from v$log;

GROUP# BYTES---------- ---------- 1 52428800 2 52428800 3 52428800

SQL>SQL> alter database add logfile '+DATA' size 500M;

Database altered.

SQL> select group#,bytes from v$log;

GROUP# BYTES---------- ---------- 1 52428800 2 52428800 3 52428800 4 524288000

SQL> select group#,status,member from v$logfile;

GROUP# STATUS MEMBER---------- ------- -------------------------------------------------- 3 +DATA/em12c/onlinelog/group_3.263.853594669 3 +FRA/em12c/onlinelog/group_3.259.853594669 2 +DATA/em12c/onlinelog/group_2.262.853594667 2 +FRA/em12c/onlinelog/group_2.258.853594669 1 +DATA/em12c/onlinelog/group_1.261.853594667 1 +FRA/em12c/onlinelog/group_1.257.853594667 4 +DATA/em12c/onlinelog/group_4.266.853600259

7 rows selected.

SQL> alter database add logfile member '+FRA' to group 4;

Database altered.

SQL> select group#,status,member from v$logfile;

Page 19: Enterprise Manager Cloud Control 12c Release 4 - Installation

GROUP# STATUS MEMBER---------- ------- -------------------------------------------------- 3 +DATA/em12c/onlinelog/group_3.263.853594669 3 +FRA/em12c/onlinelog/group_3.259.853594669 2 +DATA/em12c/onlinelog/group_2.262.853594667 2 +FRA/em12c/onlinelog/group_2.258.853594669 1 +DATA/em12c/onlinelog/group_1.261.853594667 1 +FRA/em12c/onlinelog/group_1.257.853594667 4 +DATA/em12c/onlinelog/group_4.266.853600259 4 INVALID +FRA/em12c/onlinelog/group_4.266.853600365

8 rows selected.

SQL>SQL> alter database add logfile ('+DATA','+FRA') size 500M;

Database altered.

SQL> select group#,status,member from v$logfile;

GROUP# STATUS MEMBER---------- ------- -------------------------------------------------- 3 +DATA/em12c/onlinelog/group_3.263.853594669 3 +FRA/em12c/onlinelog/group_3.259.853594669 2 +DATA/em12c/onlinelog/group_2.262.853594667 2 +FRA/em12c/onlinelog/group_2.258.853594669 1 +DATA/em12c/onlinelog/group_1.261.853594667 1 +FRA/em12c/onlinelog/group_1.257.853594667 4 +DATA/em12c/onlinelog/group_4.266.853600259 4 INVALID +FRA/em12c/onlinelog/group_4.266.853600365 5 +DATA/em12c/onlinelog/group_5.267.853600417 5 +FRA/em12c/onlinelog/group_5.267.853600425

10 rows selected.

SQL> alter database add logfile ('+DATA','+FRA') size 500M;

Database altered.

SQL> select group#,status,member from v$logfile;

GROUP# STATUS MEMBER---------- ------- -------------------------------------------------- 3 +DATA/em12c/onlinelog/group_3.263.853594669 3 +FRA/em12c/onlinelog/group_3.259.853594669 2 +DATA/em12c/onlinelog/group_2.262.853594667 2 +FRA/em12c/onlinelog/group_2.258.853594669 1 +DATA/em12c/onlinelog/group_1.261.853594667

Page 20: Enterprise Manager Cloud Control 12c Release 4 - Installation

1 +FRA/em12c/onlinelog/group_1.257.853594667 4 +DATA/em12c/onlinelog/group_4.266.853600259 4 INVALID +FRA/em12c/onlinelog/group_4.266.853600365 5 +DATA/em12c/onlinelog/group_5.267.853600417 5 +FRA/em12c/onlinelog/group_5.267.853600425 6 +DATA/em12c/onlinelog/group_6.268.853600443

GROUP# STATUS MEMBER---------- ------- -------------------------------------------------- 6 +FRA/em12c/onlinelog/group_6.268.853600451

12 rows selected.

SQL> select group#,status from v$log;

GROUP# STATUS---------- ---------------- 1 INACTIVE 2 INACTIVE 3 CURRENT 4 UNUSED 5 UNUSED 6 UNUSED

6 rows selected.

SQL> alter system switch logfile;

System altered.

SQL> select group#,status from v$log;

GROUP# STATUS---------- ---------------- 1 INACTIVE 2 INACTIVE 3 ACTIVE 4 CURRENT 5 UNUSED 6 UNUSED

6 rows selected.

SQL> select group#,status,member from v$logfile;

GROUP# STATUS MEMBER---------- ------- -------------------------------------------------- 3 +DATA/em12c/onlinelog/group_3.263.853594669

Page 21: Enterprise Manager Cloud Control 12c Release 4 - Installation

3 +FRA/em12c/onlinelog/group_3.259.853594669 2 +DATA/em12c/onlinelog/group_2.262.853594667 2 +FRA/em12c/onlinelog/group_2.258.853594669 1 +DATA/em12c/onlinelog/group_1.261.853594667 1 +FRA/em12c/onlinelog/group_1.257.853594667 4 +DATA/em12c/onlinelog/group_4.266.853600259 4 +FRA/em12c/onlinelog/group_4.266.853600365 5 +DATA/em12c/onlinelog/group_5.267.853600417 5 +FRA/em12c/onlinelog/group_5.267.853600425 6 +DATA/em12c/onlinelog/group_6.268.853600443

GROUP# STATUS MEMBER---------- ------- -------------------------------------------------- 6 +FRA/em12c/onlinelog/group_6.268.853600451

12 rows selected.

SQL> alter system checkpoint;

System altered.

SQL> select group#,status from v$log;

GROUP# STATUS---------- ---------------- 1 INACTIVE 2 INACTIVE 3 INACTIVE 4 CURRENT 5 UNUSED 6 UNUSED

6 rows selected.

SQL> alter database drop logfile group 1;

Database altered.

SQL> alter database drop logfile group 2;

Database altered.

SQL> alter database drop logfile group 3;

Database altered.

SQL> select group#,status,member from v$logfile;

Page 22: Enterprise Manager Cloud Control 12c Release 4 - Installation

GROUP# STATUS MEMBER---------- ------- -------------------------------------------------- 4 +DATA/em12c/onlinelog/group_4.266.853600259 4 +FRA/em12c/onlinelog/group_4.266.853600365 5 +DATA/em12c/onlinelog/group_5.267.853600417 5 +FRA/em12c/onlinelog/group_5.267.853600425 6 +DATA/em12c/onlinelog/group_6.268.853600443 6 +FRA/em12c/onlinelog/group_6.268.853600451

6 rows selected.

SQL>

Page 23: Enterprise Manager Cloud Control 12c Release 4 - Installation
Page 24: Enterprise Manager Cloud Control 12c Release 4 - Installation
Page 25: Enterprise Manager Cloud Control 12c Release 4 - Installation
Page 26: Enterprise Manager Cloud Control 12c Release 4 - Installation
Page 27: Enterprise Manager Cloud Control 12c Release 4 - Installation

[root@em12c ~]# /u01/app/oracle/product/em12cr4/oms12cr4/oms/allroot.sh

Starting to execute allroot.sh .........

Starting to execute /u01/app/oracle/product/em12cr4/oms12cr4/oms/root.sh ......Running Oracle 11g root.sh script...

The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /u01/app/oracle/product/em12cr4/oms12cr4/oms

Enter the full pathname of the local bin directory: [/usr/local/bin]:The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n)[n]:The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)[n]:The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)[n]:

Entries will be added to the /etc/oratab file as needed by

Page 28: Enterprise Manager Cloud Control 12c Release 4 - Installation

Database Configuration Assistant when a database is createdFinished running generic part of root.sh script.Now product-specific root actions will be performed./etc exist

Creating /etc/oragchomelist file.../u01/app/oracle/product/em12cr4/oms12cr4/omsFinished execution of /u01/app/oracle/product/em12cr4/oms12cr4/oms/root.sh ......

Starting to execute /u01/app/oracle/product/em12cr4/agent12cr4/core/12.1.0.4.0/root.sh ......Finished product-specific root actions./etc existFinished execution of /u01/app/oracle/product/em12cr4/agent12cr4/core/12.1.0.4.0/root.sh ......[root@em12c ~]#

Page 29: Enterprise Manager Cloud Control 12c Release 4 - Installation

After you install (basic checks):

Check OMS status

$<OMS_HOME>/bin/emctl status oms

Check Management Agent status

$<AGENT_HOME>/bin/emctl status agent

$<AGENT_HOME>/bin/emctl upload agent

More detail checks that you should perform can be found in the documentation: http:// docs.oracle.com/cd/E24628_01/install.121/e22624/install_em_exist_db.htm#CHDDEFHJ