ORA-01653: Problem with table space expansion failure

Source: Internet
Author: User

Today found that the original equipment data sheet space only 5 m, has been full, the Internet to find to expand space.

One, the script modifies the way:

----query Table space usage---
Log on with DBA authority
Select UPPER (f.tablespace_name) "Table space name",
D.TOT_GROOTTE_MB "Table space size (M)",
D.tot_grootte_mb-f.total_bytes "used Space (M)",
To_char (ROUND (d.tot_grootte_mb-f.total_bytes)/d.tot_grootte_mb * 100,2), ' 990.99 ') "Use ratio",
F.total_bytes "free Space (M)",
F.max_bytes "Max Block (M)"
From (SELECT Tablespace_name,
ROUND (SUM (BYTES)/(1024 * 1024), 2) Total_bytes,
ROUND (MAX (BYTES)/(1024 * 1024), 2 max_bytes
From SYS. Dba_free_space
GROUP by Tablespace_name) F,
(SELECT DD. Tablespace_name,
ROUND (SUM (DD). BYTES)/(1024 * 1024), 2 TOT_GROOTTE_MB
From SYS. Dba_data_files DD
GROUP by DD. Tablespace_name) D
WHERE D.tablespace_name = F.tablespace_name
Order by 4 DESC;
Table space Name table space Size (m) used space (m) to use more than free space (m) maximum block (m)
------------------------------ ------------- ------------- ------- ----------- ----------
...
Ccen 10 8.5 85.00 1.5.94
...
found that the table space is only 1.5M idle, guessing may be the problem of automatic expansion of tablespace (table space is too high, Oracle default is 50%), modify the table space file expansion mode:


Sql>alter DATABASE
DataFile '/u01/oracle/oradata/orcl/ccen01.dbf ' autoextend
On NEXT 50M MAXSIZE Unlimited
Solve the problem.


Ability to see if a table space has automatic expansion
SELECT T.tablespace_name,d.file_name,
D.autoextensible,d.bytes,d.maxbytes,d.status
From Dba_tablespaces t,dba_data_files D
WHERE T.tablespace_name =d.tablespace_name
Order BY Tablespace_name,file_name;

Second, the use of the console mode:

Open Oracle's Enterprise Manager to the table space to select the tablespace to modify, double-click on the table to open the editing interface, click on the pen icon, in the editing data file Interface Storage tab can modify the "data file is full after automatic expansion" modify the desired increment, and maximum value after the point of application to save.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.