Reclaim undo tablespace

Source: Internet
Author: User

UNDO space recycling:
1 Confirm undo
Selectfile_name, bytes/1024/1024 fromdba_data_fileswheretablespace_namelike 'undotbs1 ';
2. Check the UNDOSegment status
3 selectusn, xacts, rssize/1024/1024/1024, hwmsize/1024/1024/1024, shrinksfromv $ rollstatorderbyrssize;
4. Create a New UNDO tablespace
Createundotablespaceundotbs2datafile '/oradata/mlq/undotbs02.dbf' size20M;
5. Switch the UNDO tablespace to the new UNDO tablespace.
Altersystemsetundo_tablespace = undotbs2scope = both;
6. wait for all the undosegmentofflines in the original UNDO tablespace.
Selectusn, xacts, status, rssize/1024/1024/1024, hwmsize/1024/1024/1024, shrinksfromv $ rollstatorderbyrssize;
7. Delete the original UNDO tablespace
8. Check the space

Selecttablespace_name, sum (bytes)/1024/1024/second, sum (bytes)/1024/1024/1024GBfromdba_temp_filesgroupbytablespace_nameorderbyGB;

This article is from the "mlqiang" blog, please be sure to keep this source

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: 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.