Database exception due to insufficient disk space on Oracle

Source: Internet
Author: User

Oracle a database exception was caused by insufficient disk space. The size of the data file needs to be reduced to resolve.

1 , check the name and number of the data file

Select File#,name from V$datafile;

2 , see which data file occupies the largest space, according to the data file number to view the maximum number of blocks of data file

Select Max (block_id) from dba_extents where file_id=8;

Query results

3 , and calculates the actual space occupied by the table space. ( not the size of the physical file )

To view the size of each data block

Show parameter db_block_size;

Query results

8192 is that 8k

Calculate the physical space occupied by all data blocks

Select 7680*8/1024 from dual;

result is 60M

so now it's actually used 60M of space. We can change the size of the data file to a reasonable size larger than 60M.

ALTER DATABASE datafile ' D:\APP\ADMINISTRATOR\ORADATA\ORCL\DATAFILE\O1_MF_UNDOTBS1_9OWSBMYH_. DBF ' RESIZE 100M;



From for notes (Wiz)



Database exception due to insufficient disk space on Oracle

Related Article

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.