This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
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)
[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
/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 ~]$
Choose Yes for automatic fix.
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
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
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 ~]#
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