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
12c
dbca -silent -createDatabase -templateName General_Purpose.dbc -gdbname oradb.example.com -sid oradb -responseFile NO_VALUE -characterSet AL32UTF8 -memoryPercentage 30 -emConfiguration LOCAL
11g
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
10g
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