DBCA采用裸设备建库时,Oracle提供一环境变量DBCA_RAW_CONFIG,其作用是就是批量指定其表空间对应数据文件的创建位置。DBCA_RAW_CONFIG使用方法如下:
1、使用vi编辑ascii文件,按照如下格式指定路径:
database_object=raw_device_file_path or database_object=soft_link
如
system1=/dev/rdb_name_system_400m
spfile1=/dev/rdb_name_spfile_5m
users1=/dev/rdb_name_users_120m
temp1=/dev/rdb_name_emp_100m
undotbs1=/dev/rdb_name_undotbs1_312m
undotbs2=/dev/rdb_name_undotbs2_312m
example1=/dev/rdb_name_example_160m
cwmlite1=/dev/rdb_name_cwmlite_100m
indx1=/dev/rdb_name_indx_70m
tools1=/dev/rdb_name_tools_12m
drsys1=/dev/rdb_name_drsys_90m
control1=/dev/rdb_name_cntrl1_110m
control2=/dev/rdb_name_cntrl2_110m
redo1_1=/dev/rdb_name_log11_120m
redo1_2=/dev/rdb_name_log12_120m
redo2_1=/dev/rdb_name_log21_120m
redo2_2=/dev/rdb_name_log22_120m
2、在oracle用户下,赋环境变量
bourne shell (sh) 或者 korn shell (ksh)
$ DBCA_RAW_CONFIG=/home/oracle/dbca_raw.map ; export DBCA_RAW_CONFIG
c shell (csh) :
% setenv DBCA_RAW_CONFIG /home/oracle/dbca_raw.map
1、使用vi编辑ascii文件,按照如下格式指定路径:
database_object=raw_device_file_path or database_object=soft_link
如
system1=/dev/rdb_name_system_400m
spfile1=/dev/rdb_name_spfile_5m
users1=/dev/rdb_name_users_120m
temp1=/dev/rdb_name_emp_100m
undotbs1=/dev/rdb_name_undotbs1_312m
undotbs2=/dev/rdb_name_undotbs2_312m
example1=/dev/rdb_name_example_160m
cwmlite1=/dev/rdb_name_cwmlite_100m
indx1=/dev/rdb_name_indx_70m
tools1=/dev/rdb_name_tools_12m
drsys1=/dev/rdb_name_drsys_90m
control1=/dev/rdb_name_cntrl1_110m
control2=/dev/rdb_name_cntrl2_110m
redo1_1=/dev/rdb_name_log11_120m
redo1_2=/dev/rdb_name_log12_120m
redo2_1=/dev/rdb_name_log21_120m
redo2_2=/dev/rdb_name_log22_120m
2、在oracle用户下,赋环境变量
bourne shell (sh) 或者 korn shell (ksh)
$ DBCA_RAW_CONFIG=/home/oracle/dbca_raw.map ; export DBCA_RAW_CONFIG
c shell (csh) :
% setenv DBCA_RAW_CONFIG /home/oracle/dbca_raw.map