时间:2021-07-01 10:21:17 帮助过:3人阅读
实验内容:
操作过程记录如下:(已经将多余的结果进行过滤)
SYS@orcl>CREATE TABLESPACE MYTEST DATAFILE ‘/ocp_data02/datafiles/MYTEST01.DBF‘ SIZE 10M AUTOEXTEND OFF;
Tablespace created.
SYS@orcl>select file_name,tablespace_name,bytes,autoextensible,increment_by from dba_data_files;
FILE_NAME TABLESPACE_NAME BYTES AUT INCREMENT_BY
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
/ocp_data02/datafiles/MYTEST01.DBF MYTEST 10485760 NO 0
SYS@orcl>ALTER TABLESPACE MYTEST ADD DATAFILE ‘/ocp_data02/datafiles/MYTEST02.DBF‘ SIZE 10M AUTOEXTEND ON;
Tablespace altered.
SYS@orcl>ALTER TABLESPACE MYTEST ADD DATAFILE ‘/ocp_data02/datafiles/MYTEST03.DBF‘ SIZE 10M AUTOEXTEND ON NEXT 10M;
Tablespace altered.
SYS@orcl>select file_name,tablespace_name,bytes,autoextensible,increment_by from dba_data_files;
FILE_NAME TABLESPACE_NAME BYTES AUT INCREMENT_BY
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
/ocp_data02/datafiles/MYTEST01.DBF MYTEST 10485760 NO 0
/ocp_data02/datafiles/MYTEST02.DBF MYTEST 10485760 YES 1
/ocp_data02/datafiles/MYTEST03.DBF MYTEST 10485760 YES 1280
?
结论:
关于Oracle表空间数据文件自增长的一些默认选项
标签: