The RAC environment handles the problem of excessive undo tablespace.

Source: Internet
Author: User

In the RAC environment, the undo tablespace is too large:

  1. SQL> conn/AsSysdba
  2. Connected.
  3. SQL>SelectInstance_number, instance_nameFromGv $ instance;
  4. INSTANCE_NUMBER INSTANCE_NAME
  5. -------------------------------
  6. 1 unipsms1
  7. 2 unipsms2
  8. SQL>SelectInstance_number, instance_nameFromV $ instance;
  9. INSTANCE_NUMBER INSTANCE_NAME
  10. -------------------------------
  11. 2 unipsms2
  12. SQL> show parameter undo_tablespace
  13. NAMETYPE VALUE
  14. -----------------------------------------------------------------------------
  15. Undo_tablespace string UNDOTBS2
  16. SQL>SelectTs #,Name FromV $ tablespaceWhere Name='Dotbs2';
  17. TS #NAME
  18. ----------------------------------------
  19. 4 UNDOTBS2
  20. SQL>SelectTs #,Name, BYTES/1024/1024/1024, CREATE_BYTES/1024/1024/1024FromV $ DATAFILEWhereTs # = 4;
  21. TS #NAMEBYTES/1024/1024/1024 CREATE_BYTES/1024/1024/1024
  22. ---------------------------------------------------------------------------------------------------------------------
  23. 4 + DG01R10/unipsms/datafile/undotbs2.267.746473789 7887.5791 4
  24. SQL>CreateBigfile undo tablespace UNDOTBS3 datafile'+ Dg01r10' Size500g autoextendOn Next1g maxsize unlimited;
  25. The tablespace has been created.
  26. SQL>AlterSystemSetUndo_tablespace = UNDOTBS3 scope = both sid ='Unipsms2';
  27. The system has been changed.
  28. SQL> show parameter undo_tablespace;
  29. NAMETYPE VALUE
  30. -----------------------------------------------------------------------------
  31. Undo_tablespace string UNDOTBS3
  32. SQL>SelectSEGMENT_NAME, TABLESPACE_NAME, STATUSFromDba_rollback_segsWhereTABLESPACE_NAME ='Dotbs2' AndStatus ='Online';
  33. No RowsSelected
  34. SQL>SelectTs #,Name FromV $ tablespaceWhere Name='Dotbs2';
  35. TS #NAME
  36. ----------------------------------------------------------------------
  37. 4 UNDOTBS2
  38. SQL>SelectTs #,Name, BYTES/1024/1024/1024, CREATE_BYTES/1024/1024/1024FromV $ DATAFILEWhereTs # = 4;
  39. TS #NAMEBYTES/1024/1024/1024 CREATE_BYTES/1024/1024/1024
  40. ---------------------------------------------------------------------------------------------------------------------
  41. 4 + DG01R10/unipsms/datafile/undotbs2.267.746473789 7887.5791 4
  42. SQL>DropTablespace UNDOTBS2 including contentsAndDatafiles;
  43. Tablespace dropped.
  44. SQL>SelectTs #,Name FromV $ tablespaceWhere Name='Dotbs2';
  45. No RowsSelected
  46. SQL>SelectTs #,Name, BYTES/1024/1024/1024, CREATE_BYTES/1024/1024/1024FromV $ DATAFILEWhereTs # = 4;
  47. No RowsSelected

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.