ORACLE Database Space Organization experience

Source: Internet
Author: User

Recently, due to insufficient hard disk space in the unit database, I checked many articles and tested them. I learned some experiences for your reference.

First, I saw an article on the internet, how to Shrink Undo tablespaces and release space that is overoccupied. I used the following command to read it, we found that the UNDO space on our hard disk also occupied 2 GB, so we thought of clearing the space first to solve the urgent problem, so we immediately conducted a test.

The test passed, but there was a problem: the drop tablespace undotbs1 including contents command above did not clear the undotbs1.dbf file, and the hard disk was full. (Later I thought, could I use drop tablespace undotbs1 including contents and datafiles? Simply delete the files on the hard disk .) As mentioned in the article, I have to wait for all undo SEGMENT offlines in the original UNDO tablespace. I don't know how to operate this table, nor can I understand the results of the preceding commands. However, run the command to check whether the UNDO tablespace has been transferred to undotbs2.

In order to delete the UNDO file, a test was conducted.

Selecct name from v $ datafile; this undotbs1.dbf file is no longer available in the listed data files.

Stop the ORACLE service and stop listening. Move the undotbs1.dbf file to another space. Open the ORACLE service and enable the listener. The service is normal. This file can be deleted.

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.