本文共 7903 字,大约阅读时间需要 26 分钟。
OEM(Oracle Enterprise Manager) 12c在图形界面安装时容易出错,不好判断故障原因。通过静默安装可以实时观察日志文件,如果出现问题可快速定位。
环境介绍
主机名称 | IP | 角色 | 备注 |
oem | 172.16.120.13 | OEM服务器 | Oracle Linux 7.2 |
dbserver | 172.16.100.19 | 数据库服务器 | DB 11.2.0.4 For Oracle Linux 7.2 x86_64 |
1、数据库设置
根据实际环境,建议调整以下参数的值:
SQL> ALTER SYSTEM SET processes=300 SCOPE=SPFILE;SQL> ALTER SYSTEM SET session_cached_cursors=200 SCOPE=SPFILE;SQL> ALTER SYSTEM SET sga_target=2G SCOPE=SPFILE;SQL> ALTER SYSTEM SET shared_pool_size=600M SCOPE=SPFILE;SQL> ALTER SYSTEM SET pga_aggregate_target=1G SCOPE=SPFILE;SQL> ALTER SYSTEM SET job_queue_processes=20 SCOPE=SPFILE;SQL> ALTER SYSTEM SET processes=500 SCOPE=SPFILE;SQL> shutdown immediate;SQL> startup
2、静默安装OEM软件
在OEM安装包的response文件里,包含了静默文件的模板。software_only.rsp是指只安装OEM软件不配置OEM服务;而new_install.rsp则是配置OEM服务的静默文件模板。
静默文件内容
[root@oem ~]# cat /tmp/software_only.rsp RESPONSEFILE_VERSION=2.2.1.0.0UNIX_GROUP_NAME=oinstallINVENTORY_LOCATION=/u01/app/oraInventorySECURITY_UPDATES_VIA_MYORACLESUPPORT=falseDECLINE_SECURITY_UPDATES=falseMYORACLESUPPORT_USERNAME=abc@125.comMYORACLESUPPORT_PASSWORD=INSTALL_UPDATES_SELECTION="skip"STAGE_LOCATION=MYORACLESUPPORT_USERNAME_FOR_SOFTWAREUPDATES=MYORACLESUPPORT_PASSWORD_FOR_SOFTWAREUPDATES=ORACLE_MIDDLEWARE_HOME_LOCATION=/u01/app/oracle/MiddlewareAGENT_BASE_DIR=/u01/app/oracle/AgentORACLE_HOSTNAME=oemFROM_LOCATION="/mnt/linux/oem12c/oms/Disk1/stage/products.xml"DEINSTALL_LIST={"oracle.sysman.top.oms","12.1.0.5.0"}REMOVE_HOMES=b_upgrade=falseEM_INSTALL_TYPE="NOSEED"CONFIGURATION_TYPE="LATER"TOPLEVEL_COMPONENT={"oracle.sysman.top.oms","12.1.0.5.0"}
安装过程
[oracle@oem oem12c]$ ./runInstaller -silent -responseFile /tmp/software_only.rspStarting Oracle Universal Installer...Checking Temp space: must be greater than 400 MB. Actual 27375 MB PassedChecking swap space: must be greater than 150 MB. Actual 8191 MB PassedPreparing to launch Oracle Universal Installer from /tmp/OraInstall2016-05-30_03-20-58PM. Please wait ...[oracle@oem oem12c]$ Installing ORACLE_HOME /u01/app/oracle/Middleware/jdk16Installation in progress................Install successfulLinking in progressLink successfulSetup in progressSetup successfulInstalling Oracle WebLogic ServerInstalling ORACLE_HOME /u01/app/oracle/Middleware/Oracle_BI1Installation in progress.................Install successfulLinking in progressLink successfulSetup in progressSetup successfulInstalling ORACLE_HOME /u01/app/oracle/Middleware/omsInstallation in progress................Install successfulLinking in progressError in invoking target 'install' of makefile '/u01/app/oracle/Middleware/Oracle_WT/webcache/lib/ins_calypso.mk'. See '/tmp/OraInstall2016-05-30_03-20-58PM/cloneActions2016-05-30_03-54-54-PM.log' for details.Link successfulSetup in progressSetup successfulApplying the required oneoff patches.Warning: The following configuration scripts need to be executed as the "root" user /u01/app/oraInventory/orainstRoot.sh /u01/app/oracle/Middleware/oms/allroot.shTo execute the configuration scripts: 1. Open a new terminal window 2. Login in as "root" 3. Run the scripts Enterprise Manager Cloud Control Installation has finished.
执行root脚本
[root@oem ~]# /u01/app/oraInventory/orainstRoot.sh[root@oem ~]# /u01/app/oracle/Middleware/oms/allroot.sh
到此只成功安装了OEM软件,但未配置OEM服务。
3、配置OEM服务
默认执行ConfigureGC.sh文件,会使用图形界面安装。
静默文件内容
[root@oem ~]# more /tmp/new_install.rsp RESPONSEFILE_VERSION=2.2.1.0.0UNIX_GROUP_NAME=oinstallINVENTORY_LOCATION=/u01/app/oraInventorySECURITY_UPDATES_VIA_MYORACLESUPPORT=falseDECLINE_SECURITY_UPDATES=falseMYORACLESUPPORT_USERNAME=abc@125.comMYORACLESUPPORT_PASSWORD=INSTALL_UPDATES_SELECTION="skip"STAGE_LOCATION=MYORACLESUPPORT_USERNAME_FOR_SOFTWAREUPDATES=MYORACLESUPPORT_PASSWORD_FOR_SOFTWAREUPDATES=PROXY_USER=PROXY_PWD=PROXY_HOST=PROXY_PORT=ORACLE_MIDDLEWARE_HOME_LOCATION=/u01/app/oracle/MiddlewareORACLE_HOSTNAME=oemAGENT_BASE_DIR=/u01/app/oracle/AgentWLS_ADMIN_SERVER_USERNAME=weblogicWLS_ADMIN_SERVER_PASSWORD=abcABC12WLS_ADMIN_SERVER_CONFIRM_PASSWORD=abcABC12NODE_MANAGER_PASSWORD=abcABC12NODE_MANAGER_CONFIRM_PASSWORD=abcABC12ORACLE_INSTANCE_HOME_LOCATION=/u01/app/oracle/Middleware/gc_instCONFIGURE_ORACLE_SOFTWARE_LIBRARY=trueSOFTWARE_LIBRARY_LOCATION=/u01/app/oracle/swlibDATABASE_HOSTNAME=dbserverLISTENER_PORT=1521SERVICENAME_OR_SID=emrepSYS_PASSWORD=abcABC12SYSMAN_PASSWORD=abcABC12SYSMAN_CONFIRM_PASSWORD=abcABC12DEPLOYMENT_SIZE="MEDIUM"MANAGEMENT_TABLESPACE_LOCATION=/viros/oradata/emrep/mgmt.dbfCONFIGURATION_DATA_TABLESPACE_LOCATION=/viros/oradata/emrep/mgmt_ecm_depot1.dbfJVM_DIAGNOSTICS_TABLESPACE_LOCATION=/viros/oradata/emrep/mgmt_ad4j.dbfAGENT_REGISTRATION_PASSWORD=abcABC12AGENT_REGISTRATION_CONFIRM_PASSWORD=abcABC12STATIC_PORTS_FILE=#PLUGIN_SELECTION={}FROM_LOCATION="/mnt/linux/oem12c/oms/Disk1/stage/products.xml"DEINSTALL_LIST={"oracle.sysman.top.oms","12.1.0.5.0"}REMOVE_HOMES=b_upgrade=falseEM_INSTALL_TYPE="NOSEED"CONFIGURATION_TYPE="ADVANCED"TOPLEVEL_COMPONENT={"oracle.sysman.top.oms","12.1.0.5.0"}
配置过程
[oracle@oem ~]$ cd /u01/app/oracle/Middleware/oms/sysman/install[oracle@oem install]$ ./ConfigureGC.sh -silent -responseFile /tmp/new_install.rspStarting Oracle Universal Installer...Checking Temp space: must be greater than 400 MB. Actual 17148 MB PassedChecking swap space: must be greater than 150 MB. Actual 8191 MB Passed...............Installing plug-in /u01/app/oracle/Middleware/oms/install/tmp_installer/oracle.sysman.cfw/12.1.0.3.0/12.1.0.3.0_OMS_2000_0.zipYou can find the log of this install session at: /u01/app/oraInventory/logs/cloneActions2016-05-30_04-29-43-PM.logInstalling ORACLE_HOME /u01/app/oracle/Middleware/plugins/oracle.sysman.cfw.oms.plugin_12.1.0.3.0Installation in progressInstall successfulLinking in progressLink successfulSetup in progress..............orwarder proxy Port agent Mode execDeployAgentOnly AgentConfiguration:agent configuration has been startedValidating OMS_HOST and EM_UPLOAD_PORTPerforming free port detection..Getting Inet Addresses for host oem** Agent Port Check completed successfully.**Agent Mode is NoneAgentConfiguration: Executing emctl deploy agent command...Timeout value is:600AgentConfiguration: Executing emctl config agent command...AgentConfiguration:agent configuration finished with status = true2016-05-30_06-19-02-PM: Configuration assistant "Agent Configuration Assistant" has Succeeded.*** The Installation was Successful. ***This information is also available at: /u01/app/oracle/Middleware/oms/install/setupinfo.txtSee below for information pertaining to your Enterprise Manager installation:Use the following URL to access: 1. Enterprise Manager Cloud Control URL: https://oem:7803/em 2. Admin Server URL: https://oem:7102/consoleThe following details need to be provided during the additional OMS install: 1. Admin Server Hostname: oem 2. Admin Server Port: 7102You can find the details on ports used by this deployment at : /u01/app/oracle/Middleware/oms/install/portlist.ini NOTE: An encryption key has been generated to encrypt sensitive data in the Management Repository. If this key is lost, all encrypted data in the Repository becomes unusable. A backup of the OMS configuration is available in /u01/app/oracle/Middleware/gc_inst/em/EMGC_OMS1/sysman/backup on host oem. See Cloud Control Administrators Guide for details on how to back up and recover an OMS. NOTE: This backup is valid only for the initial OMS configuration. For example, it will not reflect plug-ins installed later, topology changes like the addition of a load balancer, or changes to other properties made using emctl or emcli. Backups should be created on a regular basis to ensure they capture the current OMS configuration. Use the following command to backup the OMS configuration:/u01/app/oracle/Middleware/oms/bin/emctl exportconfig oms -dir
由于篇幅原因,这里只贴出部分日志。到此,整个OEM服务配置完成,通过web界面访问即可。
Attention:
1、以上静默文件的参数根据实际情况进行调整;
2、每个参数的具体含义请参考安装包里的静默文件模板。
转载地址:http://ayxzx.baihongyu.com/