一、静默安装软件
./runInstaller -responseFile /home/oracle/db-sofware.rsp -silent -ignorePrereq -showProgress
二、静默DBCA创建库
dbca -silent -createDatabase -responseFile /home/oracle/dbca.rsp
关键文件内容解释:
修改/u01/database/response/dbca.rsp,设置如下: vim/ue1/database/response/dbca.rsp responseFileversion=/oracle/assistants/rspfmt_dbca_response_schema_v12.2.0//21行不可更改 gdbName=cdb1//32 sid=cdb1//42 databaseConfigType=SI //52 policyManaged=false //74 createserverPool=false //88 force=false //127 createAsContainerDatabase=true //163 numberofPDBS=1 //172 pdbName=cdb1pdb //182 useLocalUndoForPDBS=true //192 templateName=/ue1/app/oracle/product/12.2.0.1/db 1/assistants/dbca/templates/General Purpose.dbc emExpressPort=5500 //273 runcvuChecks=false //284 omsPort=0//313 dvconfiguration=false //341 o1sconfiguration=false //391 datafileJarLocation={ORACLE_HOME}/assistants/dbca/templates ///401 datafileDestination={ORACLE BASE}/oradata/{DB UNIQUE NAME}/ //411 recoveryAreaDestination={ORACLE_BASE}/fast_recovery_area/{DB_UNIQUE_NAME} //421 storageType=FS //431 characterset=AL32UTF8/468字符集创建库之后不可更改 nationalcharacterset=AL16UTF16 //478 variables=DB_UNIQUE_NAME=Cdb1, ORACLE_BASE=/ue1/app/oracle, PDB_NAME=, DB_NAME=cdb1, ORACLE_HOME=/ue1. initParams=undo tablespace=UNDOTBS1, memory target-796MB, processes=300, db recovery file dest size=: sampleschema=false //565 memoryPercentage=40 //574 databaseType=MULTIPURPOSE //584 automaticMemoryManagement=true //594 totalMemory=0 //604
三、静默删除库
dbca -silent -deleteDatabase -sourceDB ods
三、应答文件
1、db软件应答文件
https://files.cnblogs.com/files/lkj371/db-sofware.zip
2、db创建库应答文件
https://files.cnblogs.com/files/lkj371/dbca.zip