oracle 12c silent install

好久没安装oracle了,正好下了12c安装一下,还是遇到一些问题
下载了企业版 oracle12c
系统级别的环境变量,以及内核参数这里不再列举
sed -n '/^[^#]/p' ~/database/response/db_install.rsp     ---抽取参数信息
新建一个参数文件

oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v12.1.0 oracle.install.option=INSTALL_DB_SWONLY ORACLE_HOSTNAME=readerlogdb.sky-mobi.com.hz UNIX_GROUP_NAME=oinstall INVENTORY_LOCATION=/app/oracle/oraInventory SELECTED_LANGUAGES=en ORACLE_HOME=/app/oracle/product/12.0.1/db_1 ORACLE_BASE=/app/oracle oracle.install.db.InstallEdition=EE oracle.install.db.DBA_GROUP=dba oracle.install.db.OPER_GROUP=dba oracle.install.db.BACKUPDBA_GROUP=dba oracle.install.db.DGDBA_GROUP=dba oracle.install.db.KMDBA_GROUP=dba oracle.install.db.rac.configurationType= oracle.install.db.CLUSTER_NODES= oracle.install.db.isRACOneInstall= oracle.install.db.racOneServiceName= oracle.install.db.rac.serverpoolName= oracle.install.db.rac.serverpoolCardinality= oracle.install.db.config.starterdb.type= oracle.install.db.config.starterdb.globalDBName= oracle.install.db.config.starterdb.SID= oracle.install.db.ConfigureAsContainerDB= oracle.install.db.config.PDBName= oracle.install.db.config.starterdb.characterSet= oracle.install.db.config.starterdb.memoryOption= oracle.install.db.config.starterdb.memoryLimit= oracle.install.db.config.starterdb.installExampleSchemas= oracle.install.db.config.starterdb.password.ALL= oracle.install.db.config.starterdb.password.SYS= oracle.install.db.config.starterdb.password.SYSTEM= oracle.install.db.config.starterdb.password.DBSNMP= oracle.install.db.config.starterdb.password.PDBADMIN= oracle.install.db.config.starterdb.managementOption= oracle.install.db.config.starterdb.omsHost= oracle.install.db.config.starterdb.omsPort= oracle.install.db.config.starterdb.emAdminUser= oracle.install.db.config.starterdb.emAdminPassword= oracle.install.db.config.starterdb.enableRecovery= oracle.install.db.config.starterdb.storageType= oracle.install.db.config.starterdb.fileSystemStorage.dataLocation= oracle.install.db.config.starterdb.fileSystemStorage.recoveryLocation= oracle.install.db.config.asm.diskGroup= oracle.install.db.config.asm.ASMSNMPPassword= MYORACLESUPPORT_USERNAME= MYORACLESUPPORT_PASSWORD= SECURITY_UPDATES_VIA_MYORACLESUPPORT= DECLINE_SECURITY_UPDATES=true PROXY_HOST= PROXY_PORT= PROXY_USER= PROXY_PWD= PROXY_REALM= COLLECTOR_SUPPORTHUB_URL= oracle.installer.autoupdates.option=SKIP_UPDATES oracle.installer.autoupdates.downloadUpdatesLoc= AUTOUPDATES_MYORACLESUPPORT_USERNAME= AUTOUPDATES_MYORACLESUPPORT_PASSWORD=

加粗的就是设置的相关参数,其他的都不需要设置。

INFO: Adding ExitStatus VAR_VALIDATION_FAILURE to the exit status set WARNING: A log of this session is currently saved as: /tmp/OraInstall2013-11-15_02-29-20PM/installActions2013-11-15_02-29-20PM.log. Oracle recommends that if you want t o keep this log, you should move it from the temporary location. INFO: Finding the most appropriate exit status for the current application INFO: Exit Status is -2 INFO: Shutdown Oracle Database 12c Release 1 Installer INFO: Unloading Setup Driver

由于之前设置DECLINE_SECURITY_UPDATES=false,所以一直到这里就自己退出了,没能完成安装
静默安装:

./runInstaller -silent -ignoreSysPrereqs -ignorePrereq -responseFile /home/oracle/oracle12c.rsp

按提示运行root.sh

oracle@readerlogdb-> sh root.sh Check /app/oracle/product/12.0.1/db_1/install/root_readerlogdb.sky-mobi.com.hz_2013-11-15_15-00-29.log for the output of root script

后面建库,以及网络监听等配置不再介绍。

你可能感兴趣的:(oracle 12c silent install)