本文从两大部分分别介绍了如何静默创建数据库以及如何静默安装配置OEM 13C。
一、OEM数据库创建
1、Oracle官方下载OEM13c,文件列表如下:
12.1.0.2.0_Database_Template_for_EM13_1_0_0_0_Linux_x64.zip em13100_linux64.bin em13100_linux64-2.zip em13100_linux64-3.zip em13100_linux64-4.zip em13100_linux64-5.zip
2、解压oem数据库模板:
[oracle@odb~]$cd$ORACLE_HOME/assistants/dbca/templates [oracle@odbtemplates]$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静默文件内容 [oracle@odb~]$vidb_12c.rsp [GENERAL] RESPONSEFILE_VERSION="12.1.0" OPERATION_TYPE="createDatabase" #-----------------------***EndofGENERALsection***------------------------ [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=FS DATAFILEDESTINATION=/u02/oradata RECOVERYAREADESTINATION=/u02/oradata/flash_recovery_area CHARACTERSET="ZHS16GBK" NATIONALCHARACTERSET="AL16UTF16" AUTOMATICMEMORYMANAGEMENT="TRUE" TOTALMEMORY="8192" #-----------------------***EndofCREATEDATABASEsection***------------------------ //创建数据库实例 [oracle@odb~]$dbca-silent-responsefile/home/oracle/db_12c.rsp Copyingdatabasefiles 1%complete 3%complete 10%complete 16%complete 23%complete 30%complete 33%complete CreatingandstartingOracleinstance 35%complete 40%complete 44%complete 49%complete 50%complete 53%complete 55%complete CompletingDatabaseCreation 58%complete 62%complete 65%complete 75%complete 85%complete 88%complete RunningCustomScripts 100%complete Lookatthelogfile"/u01/app/oracle/cfgtoollogs/dbca/emrep/emrep.log"forfurtherdetails. //netca静默文件 [oracle@odb~]$vinetca_12c.rsp [GENERAL] RESPONSEFILE_VERSION="12.1" CREATE_TYPE="CUSTOM" [oracle.net.ca] INSTALLED_COMPONENTS={"server","net8","javavm"} INSTALL_TYPE=""typical"" LISTENER_NUMBER=1 LISTENER_NAMES={"LISTENER"} LISTENER_PROTOCOLS={"TCP;1521"} LISTENER_START=""LISTENER"" NAMING_METHODS={"TNSNAMES","ONAMES","HOSTNAME"} NSN_NUMBER=1 NSN_NAMES={"EXTPROC_CONNECTION_DATA"} NSN_SERVICE={"PLSExtProc"} NSN_PROTOCOLS={"TCP;HOSTNAME;1521"} //创建监听 [oracle@odb~]$netca-silent-responsefile/home/oracle/netca_12c.rsp Parsingcommandlinearguments: Parameter"silent"=true Parameter"responsefile"=/home/oracle/netca_12c.rsp Doneparsingcommandlinearguments. OracleNetServicesConfiguration: Profileconfigurationcomplete. OracleNetListenerStartup: RunningListenerControl: /u01/app/oracle/product/12.0.2/db_1/bin/lsnrctlstartLISTENER ListenerControlcomplete. Listenerstartedsuccessfully. Listenerconfigurationcomplete. OracleNetServicesconfigurationsuccessful.Theexitcodeis0
到此,OEM的数据库实例创建完成。
二、安装配置OEM13c
1、安装OEM13c软件
//创建OEM静默文件software_only.rsp [oracle@odb~]$visoftware_only.rsp RESPONSEFILE_VERSION=2.2.1.0.0 UNIX_GROUP_NAME=oinstall INVENTORY_LOCATION=/u01/app/oraInventory SECURITY_UPDATES_VIA_MYORACLESUPPORT=false DECLINE_SECURITY_UPDATES=false MYORACLESUPPORT_USERNAME=abc@125.com MYORACLESUPPORT_PASSWORD= INSTALL_UPDATES_SELECTION=skip STAGE_LOCATION= MYORACLESUPPORT_USERNAME_FOR_SOFTWAREUPDATES= MYORACLESUPPORT_PASSWORD_FOR_SOFTWAREUPDATES= ORACLE_MIDDLEWARE_HOME_LOCATION=/u01/app/oracle/Middleware AGENT_BASE_DIR=/u01/app/oracle/Agent ORACLE_HOSTNAME=odb b_upgrade=false EM_INSTALL_TYPE=NOSEED CONFIGURATION_TYPE=LATER [oracle@odboem13c]$./em13100_linux64.bin-silent-responseFile/home/oracle/software_only.rsp 0%...............................................................100% Launcherlogfileis/tmp/OraInstall2016-06-28_11-01-38AM/launcher2016-06-28_11-01-38AM.log. StartingOracleUniversalInstaller Checkingifcpuspeedisabove300MHz.Actual1400.000MHzPassed Checkingswapspace:mustbegreaterthan512MB.Actual32263MBPassed Checkingifthisplatformrequiresa64-bitJVM.Actual64Passed(64-bitnotrequired) Checkingtempspace:mustbegreaterthan300MB.Actual43236MBPassed PreparingtolaunchtheOracleUniversalInstallerfrom/tmp/OraInstall2016-06-28_11-01-38AM ====PrereqConfigLocationmain=== /tmp/OraInstall2016-06-28_11-01-38AM/stage/prereq EMGCInstallerargs-scratchPath EMGCInstallerargs/tmp/OraInstall2016-06-28_11-01-38AM EMGCInstallerargs-sourceType EMGCInstallerargsnetwork EMGCInstallerargs-timestamp EMGCInstallerargs2016-06-28_11-01-38AM EMGCInstallerargs-paramFile EMGCInstallerargs/tmp/sfx_AMC1wA/Disk1/install/linux64/oraparam.ini EMGCInstallerargs-silent EMGCInstallerargs-responseFile EMGCInstallerargs/home/oracle/new_install.rsp EMGCInstallerargs-nocleanUpOnExit DiskLocinsideSourceLoc/u02/oem13c EMFileLoc:/tmp/OraInstall2016-06-28_11-01-38AM/oui/em/ ScratchPathValue:/tmp/OraInstall2016-06-28_11-01-38AM EMGCInstallUpdatesInfoOnNext::callingactionOnClickofNext NowinEMGCInstallUpdatesInfoOnNext.actionsOnClickofNext EMGCInstallUpdatesInfoOnNext::EndofactionOnClickofNext Sessionlogfileis/tmp/OraInstall2016-06-28_11-01-38AM/install2016-06-28_11-01-38AM.log Installationinprogress Installsuccessful Linkinginprogress Linksuccessful Setupinprogress Setupsuccessful Sessionlogfileis/tmp/OraInstall2016-06-28_11-01-38AM/install2016-06-28_11-01-38AM.log Installationinprogress Installsuccessful Linkinginprogress Linksuccessful Setupinprogress Setupsuccessful OMSOracleHome:/u01/app/oracle/Middleware Applyingtherequiredone-offpatches. Warning:Thefollowingconfigurationscriptsneedtobeexecutedasthe"root"user /u01/app/oraInventory/orainstRoot.sh /u01/app/oracle/Middleware/oms/allroot.sh Toexecutetheconfigurationscripts: 1.Openanewterminalwindow 2.Logininas"root" 3.Runthescripts EnterpriseManagerCloudControlInstallationhasfinished. [root@odb~]#/u01/app/oraInventory/orainstRoot.sh [root@odb~]#/u01/app/oracle/Middleware/allroot.sh
2、配置OEM
//静默文件new_install.rsp [oracle@odb~]$vinew_install.rsp RESPONSEFILE_VERSION=2.2.1.0.0 UNIX_GROUP_NAME=oinstall INVENTORY_LOCATION=/u01/app/oraInventory SECURITY_UPDATES_VIA_MYORACLESUPPORT=false DECLINE_SECURITY_UPDATES=false MYORACLESUPPORT_USERNAME=abc@125.com MYORACLESUPPORT_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/Middleware ORACLE_HOSTNAME=jxhisdb AGENT_BASE_DIR=/u01/app/oracle/Agent WLS_ADMIN_SERVER_USERNAME=weblogic WLS_ADMIN_SERVER_PASSWORD=abcABC12 WLS_ADMIN_SERVER_CONFIRM_PASSWORD=abcABC12 NODE_MANAGER_PASSWORD=abcABC12 NODE_MANAGER_CONFIRM_PASSWORD=abcABC12 ORACLE_INSTANCE_HOME_LOCATION=/u01/app/oracle/gc_inst CONFIGURE_ORACLE_SOFTWARE_LIBRARY=true SOFTWARE_LIBRARY_LOCATION=/u02/swlib DATABASE_HOSTNAME=jxhisdb LISTENER_PORT=1521 SERVICENAME_OR_SID=emrep SYS_PASSWORD=abcABC12 SYSMAN_PASSWORD=abcABC12 SYSMAN_CONFIRM_PASSWORD=abcABC12 DEPLOYMENT_SIZE=MEDIUM MANAGEMENT_TABLESPACE_LOCATION=/u02/oradata/emrep/mgmt.dbf CONFIGURATION_DATA_TABLESPACE_LOCATION=/u02/oradata/emrep/mgmt_ecm_depot.dbf JVM_DIAGNOSTICS_TABLESPACE_LOCATION=/u02/oradata/emrep/mgmt_ad4j.dbf AGENT_REGISTRATION_PASSWORD=abcABC12 AGENT_REGISTRATION_CONFIRM_PASSWORD=abcABC12 STATIC_PORTS_FILE= PLUGIN_SELECTION= b_upgrade=false EM_INSTALL_TYPE=NOSEED CONFIGURATION_TYPE=ADVANCED CONFIGURE_SHARED_LOCATION_BIP=false CONFIG_LOCATION= CLUSTER_LOCATION= [oracle@odb~]$cd/u01/app/oracle/Middleware/sysman/install [oracle@odbinstall]$./ConfigureGC.sh-silent-responseFile/home/oracle/new_install.rsp ====PrereqConfigLocationmain=== EMGCInstallerargs-onlyconfig EMGCInstallerargs-oh EMGCInstallerargs/u01/app/oracle/Middleware EMGCInstallerargs-scratchPath EMGCInstallerargs/u01/app/oracle/Middleware EMGCInstallerargs-sourceLoc EMGCInstallerargs/u01/app/oracle/Middleware EMGCInstallerargs-silent EMGCInstallerargs-responseFile EMGCInstallerargs/home/oracle/new_install.rsp DiskLocinsideSourceLoc/u01/app/ EMFileLoc:/u01/app/oracle/Middleware/oui/em/ ScratchPathValue:/u01/app/oracle/Middleware ............................. AgentConfiguration:agentconfigurationhasbeenstarted ValidatingOMS_HOSTandEM_UPLOAD_PORT Performingfreeportdetection.. AgentConfiguration:Executingemctldeployagentcommand... AgentConfiguration:Executingemctlconfigagentcommand... AgentConfiguration:agentconfigurationfinishedwithstatus=true 2016-06-28_03-53-36PM:ConfigurationAssistant"AgentConfigurationAssistant"hasSucceeded. ***TheInstallationwasSuccessful.*** Thisinformationisalsoavailableat: /u01/app/oracle/Middleware/install/setupinfo.txt SeethefollowingforinformationpertainingtoyourEnterpriseManagerinstallation: UsethefollowingURLtoaccess: 1.EnterpriseManagerCloudControlURL:https://odb:7802/em 2.AdminServerURL:https://odb:7102/console 3.BIPublisherURL:https://odb:9803/xmlpserver ThefollowingdetailsneedtobeprovidedwhileinstallinganadditionalOMS: 1.AdminServerHostName:odb 2.AdminServerPort:7102 Youcanfindthedetailsonportsusedbythisdeploymentat:/u01/app/oracle/Middleware/install/portlist.ini NOTE: AnencryptionkeyhasbeengeneratedtoencryptsensitivedataintheManagementRepository.Ifthiskeyislost,allencrypteddataintheRepositorybecomesunusable. AbackupoftheOMSconfigurationisavailablein/u01/app/oracle/gc_inst/em/EMGC_OMS1/sysman/backuponhostodb.SeeCloudControlAdministratorsGuidefordetailsonhowtobackupandrecoveranOMS. NOTE:ThisbackupisvalidonlyfortheinitialOMSconfiguration.Forexample,itwillnotreflectplug-insinstalledlater,topologychangesliketheadditionofaloadbalancer,orchangestootherpropertiesmadeusingemctloremcli.BackupsshouldbecreatedonaregularbasistoensuretheycapturethecurrentOMSconfiguration.UsethefollowingcommandtobackuptheOMSconfiguration: /u01/app/oracle/Middleware/bin/emctlexportconfigoms-dir<backupdir>
到此,oem13c的安装配置已完成。
原文链接:https://www.f2er.com/oracle/213812.html