5. 建spfile后启动实例并开始建库
$ sqlplus '/as sysdba'
SQL> create spfile from pfile; (会自动读取pfile:$ORACLE_HOME/dbs/init$ORACLE_SID.ora)
SQL> startup nomount
SQL> create database dndn CONTROLFILE REUSE
MAXINSTANCES 8 MAXDATAFILES 100
MAXLOGHISTORY 1 MAXLOGFILES 16 MAXLOGMEMBERS 5
character set ZHS16GBK national character set AL16UTF16
logfile group 1 ('/u01/app/oracle/oradata/dndn/redo1.log') size 50M reuse,
group 2 ('/u01/app/oracle/oradata/dndn/redo2.log') size 50M reuse,
group 3 ('/u01/app/oracle/oradata/dndn/redo3.log') size 50M reuse
datafile '/u01/app/oracle/oradata/dndn/system.dbf' size 500M reuse autoextend on next 10M maxsize unlimited extent management local
sysaux datafile '/u01/app/oracle/oradata/dndn/sysaux.dbf' size 100M autoextend on next 10M maxsize unlimited
default temporary tablespace temp tempfile '/u01/app/oracle/oradata/dndn/temp01.dbf' size 100M reuse autoextend on next 10M maxsize unlimited
undo tablespace undotbs1 datafile '/u01/app/oracle/oradata/dndn/undotbs1.dbf' size 100M reuse autoextend on next 10M maxsize unlimited
USER SYS IDENTIFIED BY "runner" USER SYSTEM IDENTIFIED BY "runner";
建库还可以考虑如下参数:
SET TIMEZONE = 'time_zone_region'
SET TIMEZONE = '{+|-} hh:mm'
FORCE LOGGING