本文共 4262 字,大约阅读时间需要 14 分钟。
基于阿里雲Oracle12cR2(Linux)實例靜默安装Cloud Control 13c 13.3
Oracle12cR2镜像(CentOS7 64位Java环境)
坑點1
1.不能安裝GNOME: 在阿里雲不能使用GNOME, 使用後系統不能正常啟動,只能使用靜默方案安裝EM;
2.該實例只有60G, 參考本案例需另購一個數據盤60G;
掛載數據盤/dev/xvdb
使用root新建目錄/oracle2再mount 到/oracle目錄
$mv /oracle/ /oracle2/
$mv /oracle2/ /oracle/
配置SFTP後上傳文件/var/sftp/
下載EM
坑點2: Oracle12cR2 連ORACLE本身都没有支持的EM13的DatabaseTemplate, 不能官方下載 參考下載
unzip至/oracle/product/12.2.0.1/assistants/dbca/templates
安裝EM數據庫
參考下述填寫responseFileVersion=/oracle/assistants/rspfmt_dbca_response_schema_v12.2.0gdbName=emrepsid=emreppdbName=emreppdbAdminPassword=emreptemplateName=em132_template_for_rdbms_122_small.dbtsysPassword=systemPassword=emExpressPort=5500dbsnmpPassword=datafileDestination=/oracle/oradatarecoveryAreaDestination=/oracle/flash_recovery_areatotalMemory=8192
$ cp /oracle/product/12.2.0.1/assistants/dbca/dbca.rsp /home/oracle/
本案例配置如下:
sga_max_size=2GBpga_aggregate_limit=2GBlock_sga=falsesga_target=2GBshared_pool_size=1536MBdb_cache_size=400MBdiagnostic_dest=/oracledb_recovery_file_dest_size=30000MBpga_aggregate_target=1GBSPfile=/oracle/product/12.2.0.1/dbs/spfile{SID}.ora
oracle$ dbca -silent -createDatabase -responsefile /home/oracle/db_12c.rsp
netca静默文件(參考
$ vim /home/netca_12c.rsp
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"}oracle$ netca -silent -responsefile /home/oracle/netca_12c.rsp
安装OEM13c软件(OMS)(參考
ESPONSEFILE_VERSION=2.2.1.0.0
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/oracle/oraInventory
SECURITY_UPDATES_VIA_MYORACLESUPPORT=falseDECLINE_SECURITY_UPDATES=falseMYORACLESUPPORT_USERNAME=123@abc.comMYORACLESUPPORT_PASSWORD=INSTALL_UPDATES_SELECTION=skipSTAGE_LOCATION=MYORACLESUPPORT_USERNAME_FOR_SOFTWAREUPDATES=MYORACLESUPPORT_PASSWORD_FOR_SOFTWAREUPDATES=ORACLE_MIDDLEWARE_HOME_LOCATION=/oracle/MiddlewareAGENT_BASE_DIR=/oracle/AgentORACLE_HOSTNAME=此行參考命令填寫$ cat /etc/hostname
b_upgrade=falseEM_INSTALL_TYPE=NOSEEDCONFIGURATION_TYPE=LATER
oracle$ ./em13100_linux64.bin -silent -responseFile /home/oracle/software_only.rsp
root$ /oracle/oraInventory/orainstRoot.sh
root$ /oracle/Middleware/allroot.sh
本案例配置如下:
RESPONSEFILE_VERSION=2.2.1.0.0UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/oracle/oraInventory
SECURITY_UPDATES_VIA_MYORACLESUPPORT=falseDECLINE_SECURITY_UPDATES=falseMYORACLESUPPORT_USERNAME=123@abc.comMYORACLESUPPORT_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=/oracle/MiddlewareORACLE_HOSTNAME=此行參考命令填寫$ cat /etc/hostname
AGENT_BASE_DIR=/oracle/AgentWLS_ADMIN_SERVER_USERNAME=weblogicWLS_ADMIN_SERVER_PASSWORD=WLS_ADMIN_SERVER_CONFIRM_PASSWORD=NODE_MANAGER_PASSWORD=NODE_MANAGER_CONFIRM_PASSWORD=ORACLE_INSTANCE_HOME_LOCATION=/oracle/gc_instCONFIGURE_ORACLE_SOFTWARE_LIBRARY=trueSOFTWARE_LIBRARY_LOCATION=/oracle/swlibDATABASE_HOSTNAME= 此行參考命令填寫$ cat /etc/hostname
LISTENER_PORT=1521SERVICENAME_OR_SID=emrepSYS_PASSWORD=SYSMAN_PASSWORD=SYSMAN_CONFIRM_PASSWORD=DEPLOYMENT_SIZE=MEDIUMMANAGEMENT_TABLESPACE_LOCATION=/oracle/oradata/emrep/mgmt.dbfCONFIGURATION_DATA_TABLESPACE_LOCATION=/oracle/oradata/emrep/mgmt_ecm_depot.dbfJVM_DIAGNOSTICS_TABLESPACE_LOCATION=/oracle/oradata/emrep/mgmt_ad4j.dbfAGENT_REGISTRATION_PASSWORD=AGENT_REGISTRATION_CONFIRM_PASSWORD=STATIC_PORTS_FILE=PLUGIN_SELECTION=b_upgrade=falseEM_INSTALL_TYPE=NOSEEDCONFIGURATION_TYPE=ADVANCEDCONFIGURE_SHARED_LOCATION_BIP=falseCONFIG_LOCATION=CLUSTER_LOCATION= cd /oracle/Middleware/sysman/install
oracle$ ./ConfigureGC.sh -silent -responseFile /home/oracle/new_install.rsp
$OMS_HOME/bin/emctl start oms
$AGENT_HOME/bin/emctl start agent
转载地址:http://vszfo.baihongyu.com/