標籤:oem
本文從兩大部分分別介紹了如何靜默建立資料庫以及如何靜默安裝配置OEM 13C。
一、OEM資料庫建立
1、Oracle官方下載OEM13c,檔案清單如下:
12.1.0.2.0_Database_Template_for_EM13_1_0_0_0_Linux_x64.zipem13100_linux64.binem13100_linux64-2.zipem13100_linux64-3.zipem13100_linux64-4.zipem13100_linux64-5.zip
2、解壓oem資料庫模板:
[[email protected] ~]$ cd $ORACLE_HOME/assistants/dbca/templates[[email protected] templates]$ unzip /oem13/oem13c/12.1.0.2.0_Database_Template_for_EM13_1_0_0_0_Linux_x64.zip Archive: /oem13/oem13c/12.1.0.2.0_Database_Template_for_EM13_1_0_0_0_Linux_x64.zip inflating: set_repo_param_12.1.0.2.0_Database_SQL_for_EM13_1_0_0_0_Large_deployment.sql inflating: set_repo_param_12.1.0.2.0_Database_SQL_for_EM13_1_0_0_0_Medium_deployment.sql inflating: set_repo_param_12.1.0.2.0_Database_SQL_for_EM13_1_0_0_0_Small_deployment.sql inflating: shpool_12.1.0.2.0_Database_SQL_for_EM13_1_0_0_0.sql inflating: 12.1.0.2.0_Database_Template_for_EM13_1_0_0_0_Large_deployment.dbc inflating: 12.1.0.2.0_Database_Template_for_EM13_1_0_0_0_Medium_deployment.dbc inflating: 12.1.0.2.0_Database_Template_for_EM13_1_0_0_0_Small_deployment.dbc inflating: 12.1.0.2.0_Database_Template_for_EM13_1_0_0_0.dfb inflating: 12.1.0.2.0_Database_Template_for_EM13_1_0_0_0.ctl
3、建立OEM資料庫執行個體:
//dbca靜默檔案內容[[email protected] ~]$ vi db_12c.rsp[GENERAL]RESPONSEFILE_VERSION = "12.1.0"OPERATION_TYPE = "createDatabase"#-----------------------*** End of GENERAL section ***------------------------[CREATEDATABASE]GDBNAME = "emrep"SID = "emrep"#############TEMPLATENAME = "12.1.0.2.0_Database_Template_for_EM13_1_0_0_0_Medium_deployment.dbc"SYSPASSWORD = "abcABC12"SYSTEMPASSWORD = "abcABC12"EMCONFIGURATION = "NONE"SYSMANPASSWORD = "abcABC12"DBSNMPPASSWORD = "abcABC12"STORAGETYPE=FSDATAFILEDESTINATION = /u02/oradataRECOVERYAREADESTINATION=/u02/oradata/flash_recovery_areaCHARACTERSET = "ZHS16GBK"NATIONALCHARACTERSET= "AL16UTF16"AUTOMATICMEMORYMANAGEMENT = "TRUE"TOTALMEMORY = "8192"#-----------------------*** End of CREATEDATABASE section ***------------------------//建立資料庫執行個體[[email protected] ~]$ dbca -silent -responsefile /home/oracle/db_12c.rsp Copying database files1% complete3% complete10% complete16% complete23% complete30% complete33% completeCreating and starting Oracle instance35% complete40% complete44% complete49% complete50% complete53% complete55% completeCompleting Database Creation58% complete62% complete65% complete75% complete85% complete88% completeRunning Custom Scripts100% completeLook at the log file "/u01/app/oracle/cfgtoollogs/dbca/emrep/emrep.log" for further details.//netca靜默檔案[[email protected] ~]$ vi netca_12c.rsp[GENERAL]RESPONSEFILE_VERSION="12.1"CREATE_TYPE="CUSTOM"[oracle.net.ca]INSTALLED_COMPONENTS={"server","net8","javavm"}INSTALL_TYPE=""typical""LISTENER_NUMBER=1LISTENER_NAMES={"LISTENER"}LISTENER_PROTOCOLS={"TCP;1521"}LISTENER_START=""LISTENER""NAMING_METHODS={"TNSNAMES","ONAMES","HOSTNAME"}NSN_NUMBER=1NSN_NAMES={"EXTPROC_CONNECTION_DATA"}NSN_SERVICE={"PLSExtProc"}NSN_PROTOCOLS={"TCP;HOSTNAME;1521"}//建立監聽[[email protected] ~]$ netca -silent -responsefile /home/oracle/netca_12c.rsp Parsing command line arguments: Parameter "silent" = true Parameter "responsefile" = /home/oracle/netca_12c.rspDone parsing command line arguments.Oracle Net Services Configuration:Profile configuration complete.Oracle Net Listener Startup: Running Listener Control: /u01/app/oracle/product/12.0.2/db_1/bin/lsnrctl start LISTENER Listener Control complete. Listener started successfully.Listener configuration complete.Oracle Net Services configuration successful. The exit code is 0
到此,OEM的資料庫執行個體建立完成。
二、安裝配置OEM13c
1、安裝OEM13c軟體
//建立OEM靜默檔案software_only.rsp[[email protected] ~]$ vi software_only.rspRESPONSEFILE_VERSION=2.2.1.0.0UNIX_GROUP_NAME=oinstallINVENTORY_LOCATION=/u01/app/oraInventorySECURITY_UPDATES_VIA_MYORACLESUPPORT=falseDECLINE_SECURITY_UPDATES=false[email protected]MYORACLESUPPORT_PASSWORD=INSTALL_UPDATES_SELECTION=skipSTAGE_LOCATION=MYORACLESUPPORT_USERNAME_FOR_SOFTWAREUPDATES=MYORACLESUPPORT_PASSWORD_FOR_SOFTWAREUPDATES=ORACLE_MIDDLEWARE_HOME_LOCATION=/u01/app/oracle/MiddlewareAGENT_BASE_DIR=/u01/app/oracle/AgentORACLE_HOSTNAME=odbb_upgrade=falseEM_INSTALL_TYPE=NOSEEDCONFIGURATION_TYPE=LATER[[email protected] oem13c]$ ./em13100_linux64.bin -silent -responseFile /home/oracle/software_only.rsp0%...............................................................100%Launcher log file is /tmp/OraInstall2016-06-28_11-01-38AM/launcher2016-06-28_11-01-38AM.log.Starting Oracle Universal InstallerChecking if CPU speed is above 300 MHz. Actual 1400.000 MHz PassedChecking swap space: must be greater than 512 MB. Actual 32263 MB PassedChecking if this platform requires a 64-bit JVM. Actual 64 Passed (64-bit not required)Checking temp space: must be greater than 300 MB. Actual 43236 MB PassedPreparing to launch the Oracle Universal Installer from /tmp/OraInstall2016-06-28_11-01-38AM====Prereq Config Location main=== /tmp/OraInstall2016-06-28_11-01-38AM/stage/prereqEMGCInstaller args -scratchPathEMGCInstaller args /tmp/OraInstall2016-06-28_11-01-38AMEMGCInstaller args -sourceTypeEMGCInstaller args networkEMGCInstaller args -timestampEMGCInstaller args 2016-06-28_11-01-38AMEMGCInstaller args -paramFileEMGCInstaller args /tmp/sfx_AMC1wA/Disk1/install/linux64/oraparam.iniEMGCInstaller args -silentEMGCInstaller args -responseFileEMGCInstaller args /home/oracle/new_install.rspEMGCInstaller args -nocleanUpOnExitDiskLoc inside SourceLoc/u02/oem13cEMFileLoc:/tmp/OraInstall2016-06-28_11-01-38AM/oui/em/ScratchPathValue :/tmp/OraInstall2016-06-28_11-01-38AMEMGCInstallUpdatesInfoOnNext:: calling actionOnClickofNextNow in EMGCInstallUpdatesInfoOnNext.actionsOnClickofNextEMGCInstallUpdatesInfoOnNext:: End of actionOnClickofNextSession log file is /tmp/OraInstall2016-06-28_11-01-38AM/install2016-06-28_11-01-38AM.logInstallation in progressInstall successfulLinking in progressLink successfulSetup in progressSetup successfulSession log file is /tmp/OraInstall2016-06-28_11-01-38AM/install2016-06-28_11-01-38AM.logInstallation in progressInstall successfulLinking in progressLink successfulSetup in progressSetup successfulOMS OracleHome :/u01/app/oracle/MiddlewareApplying the required one-off 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.[[email protected] ~]# /u01/app/oraInventory/orainstRoot.sh [[email protected] ~]# /u01/app/oracle/Middleware/allroot.sh
2、配置OEM
//靜默檔案new_install.rsp[[email protected] ~]$ vi new_install.rspRESPONSEFILE_VERSION=2.2.1.0.0UNIX_GROUP_NAME=oinstallINVENTORY_LOCATION=/u01/app/oraInventorySECURITY_UPDATES_VIA_MYORACLESUPPORT=falseDECLINE_SECURITY_UPDATES=false[email protected]MYORACLESUPPORT_PASSWORD=INSTALL_UPDATES_SELECTION=skipSTAGE_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=jxhisdbAGENT_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/gc_instCONFIGURE_ORACLE_SOFTWARE_LIBRARY=trueSOFTWARE_LIBRARY_LOCATION=/u02/swlibDATABASE_HOSTNAME=jxhisdbLISTENER_PORT=1521SERVICENAME_OR_SID=emrepSYS_PASSWORD=abcABC12SYSMAN_PASSWORD=abcABC12SYSMAN_CONFIRM_PASSWORD=abcABC12DEPLOYMENT_SIZE=MEDIUMMANAGEMENT_TABLESPACE_LOCATION=/u02/oradata/emrep/mgmt.dbfCONFIGURATION_DATA_TABLESPACE_LOCATION=/u02/oradata/emrep/mgmt_ecm_depot.dbfJVM_DIAGNOSTICS_TABLESPACE_LOCATION=/u02/oradata/emrep/mgmt_ad4j.dbfAGENT_REGISTRATION_PASSWORD=abcABC12AGENT_REGISTRATION_CONFIRM_PASSWORD=abcABC12STATIC_PORTS_FILE=PLUGIN_SELECTION=b_upgrade=falseEM_INSTALL_TYPE=NOSEEDCONFIGURATION_TYPE=ADVANCEDCONFIGURE_SHARED_LOCATION_BIP=falseCONFIG_LOCATION=CLUSTER_LOCATION=[[email protected] ~]$ cd /u01/app/oracle/Middleware/sysman/install[[email protected] install]$ ./ConfigureGC.sh -silent -responseFile /home/oracle/new_install.rsp ====Prereq Config Location main=== EMGCInstaller args -onlyconfigEMGCInstaller args -ohEMGCInstaller args /u01/app/oracle/MiddlewareEMGCInstaller args -scratchPathEMGCInstaller args /u01/app/oracle/MiddlewareEMGCInstaller args -sourceLocEMGCInstaller args /u01/app/oracle/MiddlewareEMGCInstaller args -silentEMGCInstaller args -responseFileEMGCInstaller args /home/oracle/new_install.rspDiskLoc inside SourceLoc/u01/app/EMFileLoc:/u01/app/oracle/Middleware/oui/em/ScratchPathValue :/u01/app/oracle/Middleware.............................AgentConfiguration:agent configuration has been startedValidating OMS_HOST and EM_UPLOAD_PORTPerforming free port detection..AgentConfiguration: Executing emctl deploy agent command...AgentConfiguration: Executing emctl config agent command...AgentConfiguration:agent configuration finished with status = true2016-06-28_03-53-36PM: Configuration Assistant "Agent Configuration Assistant" has Succeeded.*** The Installation was Successful. ***This information is also available at: /u01/app/oracle/Middleware/install/setupinfo.txtSee the following for information pertaining to your Enterprise Manager installation:Use the following URL to access: 1. Enterprise Manager Cloud Control URL: https://odb:7802/em 2. Admin Server URL: https://odb:7102/console 3. BI Publisher URL: https://odb:9803/xmlpserverThe following details need to be provided while installing an additional OMS: 1. Admin Server Host Name: odb 2. Admin Server Port: 7102You can find the details on ports used by this deployment at : /u01/app/oracle/Middleware/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/gc_inst/em/EMGC_OMS1/sysman/backup on host odb. 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/bin/emctl exportconfig oms -dir <backup dir>
到此,oem13c的安裝配置已完成。
本文出自 “candon123” 部落格,謝絕轉載!
Configure Oracle Enterprise Manager 13c In Silent Mode