dbca -silent -help數據庫
針對下面的項進行修改:
RESPONSEFILE_VERSION = "11.2.0" //不能更改
OPERATION_TYPE = "createDatabase"
GDBNAME = "hello.dlxg.gov.cn" //數據庫的名字
SID = "hello" //對應的實例名字
TEMPLATENAME = "General_Purpose.dbc" //建庫用的模板文件
SYSPASSWORD = "your_passwd" //SYS管理員密碼
SYSTEMPASSWORD = "your_passwd" //SYSTEM管理員密碼
DATAFILEDESTINATION = /oradata //數據文件存放目錄
RECOVERYAREADESTINATION=/oradata_back //恢復數據存放目錄
CHARACTERSET = "ZHS16GBK" //字符集,重要!!! 建庫後通常不能更改,因此建庫前要肯定清楚。
TOTALMEMORY = "5120" //oracle內存5120MB oracle
dbca -silent -createDatabase -templateName General_Purpose.dbc -gdbname oradb.example.com -sid oradb -responseFile NO_VALUE -characterSet AL32UTF8 -memoryPercentage 30 -emConfiguration LOCAL
dbca -silent -createDatabase -templateName General_Purpose.dbc -gdbname test -sid test -sysPassword your_passwd -systemPassword your_passwd -responseFile NO_VALUE -datafileDestination /oradata -redoLogFileSize 300 -recoveryAreaDestination /backup/dump_data -storageType FS -characterSet ZHS16GBK -nationalCharacterSet AL16UTF16 -sampleSchema false -memoryPercentage 40 -automaticMemoryManagement true -databaseType OLTP -emConfiguration NONE
dbca -silent -createDatabase -templateName General_Purpose.dbc -gdbname test -sid test -sysPassword your_passwd -systemPassword your_passwd -responseFile NO_VALUE -datafileDestination /oradata/ -recoveryAreaDestination /oradata_back -storageType FS -characterSet ZHS16GBK -nationalCharacterSet AL16UTF16 -sampleSchema true -memoryPercentage 40 -databaseType OLAP -emConfiguration NONE