Home > Database > Oracle > body text

How does Oracle determine whether a table space is automatically expanded?

WBOY
Release: 2022-05-25 10:39:02
Original
10651 people have browsed it

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.

How does Oracle determine whether a table space is automatically expanded?

The operating environment of this tutorial: Windows 10 system, Oracle 11g version, Dell G3 computer.

How does oracle determine whether the table space is automatically expanded?

Use a user with dba permissions to execute:

select file_name,autoextensible,increment_by from dba_data_files
Copy after login

If autoextensible is yes, it will be automatically expanded, if it is no, it will not be automatically expanded. .

As shown:

How does Oracle determine whether a table space is automatically expanded?

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 = '表空间名称';
Copy after login
Copy after login

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;
Copy after login

3. Verify the modification results

SQL>select tablespace_name,file_name,autoextensible from dba_data_files where tablespace_name = '表空间名称';
Copy after login
Copy after login

Syntax summary

Syntax to turn on the automatic expansion function:

alter database datafile '对应的数据文件路径信息' autoextend on;
Copy after login

Syntax to turn off the automatic expansion function:

alter database datafile '对应的数据文件路径信息' autoextend off;
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template