ORACLE EMCC 12.1.0.5安裝配置

1. Linux6+EMCC12.1.0.5安裝環境介紹

l 本套環境基於rhel6.10+Oracle11.2.0.4單節點數據庫java

l Java開發工具包(JDK)1.6.0.43.0linux

l Oracle WebLogic Server 11g第1版(10.3.6)web

l 甲骨文管理處12c第5版(12.1.0.5)數據庫

1.1 檢查用戶,組

$  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. 安裝jdk

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

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

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

修改oracle用戶環境變量vim

$ 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

修改oracle用戶.bashrc 文件,添加:安全

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

export  PATH=$JAVA_HOME/bin:$PATH

執行測試bash

$  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. 安裝web

上傳安裝包,授予執行權限oracle

chmod  +x wls1036_generic.jar

使用oracle用戶,執行安裝:(注:內存設置過小安裝會卡死)app

$  java -Xmx2048m -jar wls1036_generic.jar       

Enter  [Exit][Next]>  '回車,下一步'

Enter  new Middleware Home OR [Exit][Previous][Next]>  /u01/Middleware  '輸入安裝目錄'

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

/weblogic  directory is not empty. Proceed with installation?

Enter  [Exit][Previous][Next]>  回車

   1|Email:[]

   2|Support Password:[]

   3|Receive Security Update:[Yes]

Enter  index number to select OR [Exit][Previous][Next]> 3 '安全升級'

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]> '回車:3選項變爲No'

Enter  index number to select OR [Exit][Previous][Next]> 1 '1典型 2自定義'

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]> '回車,默認就是第二個'

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]> '回車'

​     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]>  回車

4. 安裝管理EMCC

4.1 安裝EMCC

解壓壓縮包,執行安裝:ide

unzip  em12105_linux64_disk1.zip

unzip em12105_linux64_disk2.zip

unzip em12105_linux64_disk3.zip

./runInstaller

ORACLE EMCC 12.1.0.5安裝配置

ORACLE EMCC 12.1.0.5安裝配置

ORACLE EMCC 12.1.0.5安裝配置

ORACLE EMCC 12.1.0.5安裝配置

ORACLE EMCC 12.1.0.5安裝配置
ORACLE EMCC 12.1.0.5安裝配置

ORACLE EMCC 12.1.0.5安裝配置

根據提示執行:

/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

ORACLE EMCC 12.1.0.5安裝配置

ORACLE EMCC 12.1.0.5安裝配置

ORACLE EMCC 12.1.0.5安裝配置

ORACLE EMCC 12.1.0.5安裝配置

ORACLE EMCC 12.1.0.5安裝配置

ORACLE EMCC 12.1.0.5安裝配置

ORACLE EMCC 12.1.0.5安裝配置

ORACLE EMCC 12.1.0.5安裝配置

4.2 OMS配置管理

查看版本:
$ <OMS_HOME>/emctl getversion oms

查看狀態:
$ <OMS_HOME>/emctl status oms

查看oms詳細信息:
$ <OMS_HOME>/emctl status oms –details

指定密碼查看詳細:
$ <OMS_HOME>/emctl status oms -details -sysman_pwd Oracle123

查看屬性:
$ <OMS_HOME>/emctl list properties

啓停命令:
$ <OMS_HOME>/emctl stop oms
$ <OMS_HOME>/emctl start oms
修改內存(重啓生效):

1.命令修改:

$ <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. 直接修改屬性配置文件:emgc.properties

4.3 agent配置管理

查看版本:

$ <AGENT>/emctl getversion agent(查看版本)

啓停與查看狀態:

$ <AGENT>/emctl status agent

$ <AGENT>/emctl stop agent

$ <AGENT>/emctl start agent

測試agent是否與OMS連通:

$ <AGENT>/emctl pingOMS

上傳agent至服務端OMS

$ <AGENT>/emctl upload agent

5. 添加主機

配置hosts解析(源端和目標端)

vim /etc/hosts
network.ip  hostname

設置 -- 添加目標 -- 手動添加目標

ORACLE EMCC 12.1.0.5安裝配置

ORACLE EMCC 12.1.0.5安裝配置

ORACLE EMCC 12.1.0.5安裝配置

ORACLE EMCC 12.1.0.5安裝配置

ORACLE EMCC 12.1.0.5安裝配置

ORACLE EMCC 12.1.0.5安裝配置

ORACLE EMCC 12.1.0.5安裝配置

6. 添加數據庫

ORACLE EMCC 12.1.0.5安裝配置

ORACLE EMCC 12.1.0.5安裝配置

ORACLE EMCC 12.1.0.5安裝配置

ORACLE EMCC 12.1.0.5安裝配置

ORACLE EMCC 12.1.0.5安裝配置

ORACLE EMCC 12.1.0.5安裝配置

相關文章
相關標籤/搜索