13 March 2013

Step by step Oracle Enterprise Manger cloud OEM12C Installation on Linux OEL5.6

Step by step Oracle Enterprise Manger cloud 12C Installation on Linux OEL5.6

Install database 11..2.0.3 

[muthu@prithvi ~]$ export ORACLE_HOME=/u01/MUT/product/11.2.0/dbhome_1
[muthu@prithvi ~]$ export ORACLE_SID=MUT
[muthu@prithvi ~]$ export PATH=$ORACLE_HOME/bin:$PATH
[muthu@prithvi ~]$ sqlplus "/as sysdba"

SQL*Plus: Release 11.2.0.3.0 Production on Mon Mar 11 14:03:15 2013

Copyright (c) 1982, 2011, 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> 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> shut immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL>startup pfile=/u01/MUT/product/11.2.0/dbhome_1/dbs/initMUT.ora
ORACLE instance started.

Total System Global Area 1155035136 bytes
Fixed Size                  1344484 bytes
Variable Size             671091740 bytes
Database Buffers          469762048 bytes
Redo Buffers               12836864 bytes
Database mounted.
Database opened.
SQL>create spfile from pfile;

File created.

SQL>

[muthu@prithvi bin]$ emca -deconfig dbcontrol db -repos drop -SYS_PWD oracle -SYSMAN_PWD oracle

STARTED EMCA at Mar 11, 2013 3:10:14 PM
EM Configuration Assistant, Version 11.2.0.3.0 Production
Copyright (c) 2003, 2011, Oracle.  All rights reserved.

Enter the following information:
Database SID: MUT
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
Mar 11, 2013 3:10:22 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/MUT/cfgtoollogs/emca/MUT/emca_2013_03_11_15_10_14.log.
Mar 11, 2013 3:10:23 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngineLoacly
WARNING: ORA-01017: invalid username/password; logon denied

Mar 11, 2013 3:10:23 PM oracle.sysman.emcp.ParamsManager checkListenerStatusForDBControl
WARNING: Error initializing SQL connection. SQL operations cannot be performed
Mar 11, 2013 3:10:23 PM oracle.sysman.emcp.EMDBPreConfig performDeconfiguration
WARNING: 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 script
Mar 11, 2013 3:10:23 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Dropping the EM repository (this may take a while) ...



















Test the installation:

Access from the browser OEM CC URL https://muthu.com:7801/em


Enter username sysman and the password that you specified during OEM 12c installation with OUI.










Steps for Startup & shut down the OEM and agent:-

Shutdown OEM12C services :
[muthu@prithvi dbhome_1]$ export ORACLE_HOME=/u01/MUT/product/11.2.0/dbhome_1/
[muthu@prithvi dbhome_1]$ export OMS_HOME=/u01/MUT/Middleware/oms/
[muthu@prithvi dbhome_1]$ export AGENT_HOME=/u01/MUT/Middleware/agent/core/12.1.0.1.0
[muthu@prithvi dbhome_1]$ $OMS_HOME/bin/emctl stop oms -all
Oracle Enterprise Manager Cloud Control 12c Release 12.1.0.1.0 
Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.
Stopping WebTier...
WebTier Successfully Stopped
Stopping Oracle Management Server...
Oracle Management Server Successfully Stopped
AdminServer Successfully Stopped
Oracle Management Server is Down

Shutdown Agent services:-
[muthu@prithvi dbhome_1]$ $AGENT_HOME/bin/emctl stop agent
Oracle Enterprise Manager 12c Cloud Control 12.1.0.1.0 
Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.
Stopping agent ..... stopped.

Startup OEM12c services:-
[muthu@prithvi dbs]$ $OMS_HOME/bin/emctl start oms
Oracle Enterprise Manager Cloud Control 12c Release 12.1.0.1.0 
Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.
Starting WebTier...
WebTier Successfully Started
Starting Oracle Management Server...
Oracle Management Server Successfully Started
Oracle Management Server is Up

Startup Agent service:-

[muthu@prithvi dbs]$ $AGENT_HOME/bin/emctl start agent
Oracle Enterprise Manager 12c Cloud Control 12.1.0.1.0 
Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.
Starting agent .......................... started.
[muthu@prithvi dbs]$

No comments: