发布网友 发布时间:2022-04-08 04:52
共2个回答
懂视网 时间:2022-04-08 09:14
实验内容:
操作过程记录如下:(已经将多余的结果进行过滤)
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表空间数据文件自增长的一些默认选项
标签:
热心网友 时间:2022-04-08 06:22
create tablespace iep logging datafile 'd:\bk\iep.dbf' size 64M autoextend on next 32M maxsize 256M;