本文共 2142 字,大约阅读时间需要 7 分钟。
/oracle2。2.將Oracle資料目錄移動至/oracle2:$ mv /oracle/ /oracle2/
3.將目錄重新掛載至/oracle:
$ mv /oracle2/ /oracle/
1.配置SFTP,並將EM檔案上傳至/var/sftp/。2.下載EM,注意Oracle 12c R2本身不支援EM 13的DatabaseTemplate,需參考外部文檔案進行下載與解壓。
1.準備靜默文件:
$ cp /oracle/product/12.2.0.1/assistants/dbca/dbca.rsp /home/oracle/
2.填寫響應文件:
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
3.修改模板文件em132_template_for_rdbms_122_small.dbt,並進行靜默安裝:
oracle$ dbca -silent -createDatabase -responsefile /home/oracle/db_12c.rsp
1.創建靜默文件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"} 2.靜默安裝NetCA:
oracle$ netca -silent -responsefile /home/oracle/netca_12c.rsp
1.創建靜默文件software_only.rsp,並填寫相關參數:
ESPONSEFILE_VERSION=2.2.1.0.0UNIX_GROUP_NAME=oinstall
2.靜默安裝OEM13c:
oracle$ ./em13100_linux64.bin -silent -responseFile /home/oracle/software_only.rsp
3.執行後續安裝指令:
root$ /oracle/oraInventory/orainstRoot.shroot$ /oracle/Middleware/allroot.sh
1.創建靜默文件new_install.rsp,並填寫相關參數:
ESPONSEFILE_VERSION=2.2.1.0.0UNIX_GROUP_NAME=oinstall
2.靜默安裝:
cd /oracle/Middleware/sysman/installoracle$ ./ConfigureGC.sh -silent -responseFile /home/oracle/new_install.rsp
1.啟動OMS:
$OMS_HOME/bin/emctl start oms
2.啟動Agent:
$AGENT_HOME/bin/emctl start agent
以上步驟需根據實際環境條件進行調整,確保所有配置與環境相匹配。
转载地址:http://lxefk.baihongyu.com/