In Oracle, you can use the "select file_name,autoextensible,increment_by from dba_data_files" statement to determine whether the table space is automatically expanded. If the autoextensible result is yes, it means automatic expansion.
The operating environment of this tutorial: Windows 10 system, Oracle 11g version, Dell G3 computer.
Use a user with dba permissions to execute:
select file_name,autoextensible,increment_by from dba_data_files
If autoextensible is yes, it will be automatically expanded, if it is no, it will not be automatically expanded. .
As shown:
Expand knowledge:
How to set up table space automatic expansion
1 , Check the table space situation
SQL>select tablespace_name,file_name,autoextensible from dba_data_files where tablespace_name = '表空间名称';
2. Modify the table space data file to achieve automatic expansion of the table space
SQL>alter database datafile '/u01/app/oracle/oradata/orcl/user01.dbf' autoextend on;
3. Verify the modification results
SQL>select tablespace_name,file_name,autoextensible from dba_data_files where tablespace_name = '表空间名称';
Syntax summary
Syntax to turn on the automatic expansion function:
alter database datafile '对应的数据文件路径信息' autoextend on;
Syntax to turn off the automatic expansion function:
alter database datafile '对应的数据文件路径信息' autoextend off;
Recommended tutorial: "Oracle Video Tutorial"
The above is the detailed content of How does Oracle determine whether a table space is automatically expanded?. For more information, please follow other related articles on the PHP Chinese website!