ORACLE EMCC 12.1.0.5 installation configuration

1. Linux 6 + emcc12.1.0.5 installation environment introduction

l this set of environment is based on rhel6.10 + Oracle 11.2.0.4 single node database

L java development kit (JDK)1.6.0.43.0

L Oracle WebLogic Server 11g version 1 (10.3.6)

Orac l e Management Office 12c 5th Edition (12.1.0.5)

1.1 check users, groups

$  more /etc/oraInst.loc

inventory_loc=/u01/app/oracle/oraInventory

inst_group=oinstall
$ id  oracle

uid=501(oracle)  gid=501(oinstall) groups=502(dba),503(oper)

2. Install jdk

$ chmod  +x jdk-6u45-linux-x64.bin 

$ ./jdk-6u45-linux-x64.bin  

$ mv  jdk1.6.0_45/ /u01/weblogic/

Modifying oracle user environment variables

$ su  - oracle

$ vim  ~/.bash_profile
export  JAVA_HOME=/u01/weblogic/jdk1.6.0_45

PATH=$PATH:/u01/weblogic/jdk1.6.0_45/bin:/u01/weblogic/jdk1.6.0_45/jre/bin

Modify the oracle user.bashrc file and add:

export  JAVA_HOME=/u01/weblogic/jdk1.6.0_45

export  PATH=$JAVA_HOME/bin:$PATH

Perform tests

$  source ~/.bashrc 

$  java -version

java  version "1.6.0_45"

Java(TM)  SE Runtime Environment (build 1.6.0_45-b06)

Java  HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)

3. Install web

Upload installation package and grant execution permission

chmod  +x wls1036_generic.jar

Use oracle user to perform the installation: (Note: if the memory setting is too small, the installation will be stuck)

$  java -Xmx2048m -jar wls1036_generic.jar       

Enter  [Exit][Next]>  'Enter, next step'

Enter  new Middleware Home OR [Exit][Previous][Next]>  /u01/Middleware  'Enter installation directory'

Enter  option number to select OR [Exit][Previous][Next]>  'enter'

/weblogic  directory is not empty. Proceed with installation?

Enter  [Exit][Previous][Next]>  enter

   1|Email:[]

   2|Support Password:[]

   3|Receive Security Update:[Yes]

Enter  index number to select OR [Exit][Previous][Next]> 3 'Security upgrade'

Provide  your email address for security updates and   to initiate configuration manager.

​    "Receive Security Update:" =  [Enter new value or use default "Yes"]

Enter  [Yes][No]? No 

​    "Receive Security Update:" =  [Enter new value or use default "Yes"]

​    ** Do you wish to bypass initiation of the  configuration manager and

​    **   remain uninformed of critical security issues in your configuration?

Enter  [Yes][No]? Yes 

   1|Email:[]

   2|Support Password:[]

   3|Receive Security Update:[No]

Enter  index number to select OR [Exit][Previous][Next]> 'Enter: 3 options change to No'

Enter  index number to select OR [Exit][Previous][Next]> 1 '1 Typical 2 custom'

JDK(s)  chosen will be installed.  Defaults will  be used in script string-substitution if installed.

   1|Add Local Jdk

   2|/u01/weblogic/jdk1.6.0_45[x]

   *Estimated size of installation:  678.7 MB

Enter  1 to add or >= 2 to toggle selection   OR [Exit][Previous][Next]> 'Enter, the default is the second one'

Middleware  Home Directory: [/u01/weblogic]

Product  Installation Directories:

   1|WebLogic Server:  [/u01/weblogic/wlserver_10.3]

   2|Oracle Coherence:  [/u01/weblogic/coherence_3.7]

Enter  new WebLogic Server OR [Exit][Previous][Next]> 'enter'

​     WebLogic Platform 10.3.6.0

​    |_____WebLogic Server

​    |     |_____Core Application Server

​    |     |_____Administration Console

​    |     |_____Configuration Wizard and Upgrade Framework

​    |     |_____Web 2.0 HTTP Pub-Sub Server

​    |     |_____WebLogic SCA

​    |     |_____WebLogic JDBC Drivers

​    |     |_____Third Party JDBC Drivers

​    |     |_____WebLogic Server Clients

​    |     |_____WebLogic Web Server Plugins

​    |     |_____UDDI and Xquery Support

​    |     |_____Evaluation Database

​    |_____Oracle Coherence

​         |_____Coherence Product Files

​    *Estimated size of installation: 690.3 MB

​    *Estimated size of installation: 678.8 MB

Enter  [Exit][Previous][Next]>  enter

4. Installation management EMCC

4.1 installation of EMCC

Unzip the package and perform the installation:

unzip  em12105_linux64_disk1.zip

unzip em12105_linux64_disk2.zip

unzip em12105_linux64_disk3.zip

./runInstaller


Follow the prompts:

/u01/app/oracle/product/11gR2/db/bin/emca -deconfig dbcontrol db -repos drop -SYS_PWD <sys password> -SYSMAN_PWD <sysman password>
STARTED EMCA at May 29, 2020 6:33:25 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: moni

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)]: yes   

May 29, 2020 6:34:14 AM oracle.sysman.emcp.EMConfig perform

INFO: This operation is being logged at /u01/app/oracle/cfgtoollogs/emca/moni/emca_2020_05_29_06_33_25.log.

May 29, 2020 6:34:14 AM oracle.sysman.emcp.util.GeneralUtil initSQLEngineLoacly

WARNING: ORA-28000: the account is locked

May 29, 2020 6:34:14 AM oracle.sysman.emcp.ParamsManager checkListenerStatusForDBControl

WARNING: Error initializing SQL connection. SQL operations cannot be performed

May 29, 2020 6:34:14 AM 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

May 29, 2020 6:34:14 AM oracle.sysman.emcp.EMReposConfig invoke

INFO: Dropping the EM repository (this may take a while) ...

May 29, 2020 6:34:49 AM oracle.sysman.emcp.EMReposConfig invoke

INFO: Repository successfully dropped

Enterprise Manager configuration completed successfully

FINISHED EMCA at May 29, 2020 6:34:49 AM

4.2 OMS configuration management

View version:
$ <OMS_HOME>/emctl getversion oms

View status:
$ <OMS_HOME>/emctl status oms

To view oms details:
$ <OMS_HOME>/emctl status oms –details

Specify password to view details:
$ <OMS_HOME>/emctl status oms -details -sysman_pwd Oracle123

View properties:
$ <OMS_HOME>/emctl list properties

Start stop command:
$ <OMS_HOME>/emctl stop oms
$ <OMS_HOME>/emctl start oms
Modify memory (restart takes effect):

1. Command modification:

$ <OMS_HOME>/emctl get property -name OMS_HEAP_MAX -sysman_pwd Oracle11g

$ <OMS_HOME>/emctl set property -name OMS_HEAP_MAX -value 2048M -sysman_pwd Oracle11g

$ <OMS_HOME>/emctl get property -name OMS_HEAP_MIN -sysman_pwd Oracle11g

$ <OMS_HOME>/emctl set property -name OMS_HEAP_MIN -value 512M -sysman_pwd Oracle11g

2. Modify the attribute profile directly: emgc.properties

4.3 agent configuration management

View version:

$< agent > / emctl GetVersion agent (view version)

Start stop and check status:

$ <AGENT>/emctl status agent

$ <AGENT>/emctl stop agent

$ <AGENT>/emctl start agent

Test whether the agent is connected to OMS:

$ <AGENT>/emctl pingOMS

Upload agent to OMS of server

$ <AGENT>/emctl upload agent

5. Add host

Configure hosts resolution (source and target)

vim /etc/hosts
network.ip  hostname

Settings -- add target -- add target manually

6. Add database

Tags: Big Data Oracle Weblogic Database Java

Posted on Tue, 02 Jun 2020 12:54:47 -0400 by HavokDelta6