oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0
oracle.install.option=INSTALL_DB_SWONLY
DECLINE_SECURITY_UPDATES=true
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/opt/oraInventory
SELECTED_LANGUAGES=en
ORACLE_HOME=/opt/oracle/product/11.2.0
ORACLE_BASE=/opt/oracle
oracle.install.db.InstallEdition=EE
oracle.install.db.isCustomInstall=true
oracle.install.db.customComponents=oracle.rdbms.partitioning:11.2.0.1.0,oracle.oraolap:11.2.0.1.0,oracle.rdbms.lbac:11.2.0.1.0,oracle.rdbms.dm:11.2.0.1.0,oracle.rdbms.dv:11.2.0.1.0,oracle.rdbms.rat:11.2.0.1.0
oracle.install.db.DBA_GROUP=dba
oracle.install.db.OPER_GROUP=oinstall
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=true

将以上内容保存为db_install.rsp

静默安装

 ./runInstaller -silent -force -noconfig -responseFile /opt/software/database/db_install.rsp


静默创建数据库

dbca -silent -createDatabase -templateName General_Purpose.dbc -gdbname dbname -sid dbname -sysPassword password -systemPassword password -responseFile NO_VALUE -datafileDestination /opt/oracle/oradata/ -redoLogFileSize 50 -recoveryAreaDestination /opt/oracle/flash_recovery_area -storageType FS -characterSet AL32UTF8 -nationalCharacterSet AL16UTF16 -sampleSchema false -memoryPercentage 30 -totalMemory 4096 -databaseType OLTP -emConfiguration NONE


静默删除数据库

dbca -silent -deleteDatabase -sourcedb dbname -sysDBAUserName sys -sysDBAPassword password