ORACLE 9I rebuild TEMP table space

Source: Internet
Author: User
Oracle 1.startup-Start the database

2.create temporary tablespace TEMP2 tempfile '/home2/oracle/oradata/sysmon/temp02.dbf ' SIZE 512M reuse autoextend on NEXT   640K MAXSIZE Unlimited; --Create transit temporary table space

3.alter database default temporary tablespace temp2; --Change the default temp table space to the new temporary table space just created TEMP2

4.drop tablespace temp including contents and datafiles;--deletes the original temporary tablespace

5.create temporary tablespace TEMP tempfile '/home2/oracle/oradata/sysmon/temp01.dbf ' SIZE 512M reuse autoextend on NEXT   640K MAXSIZE Unlimited; --Recreate temporary table space

6.alter database default temporary tablespace temp; --Resets the default temp table space to the newly created temp table space

7.drop tablespace temp2 including contents and datafiles;--Remove Transit temporary tablespace

8.alter User Roll Temporary tablespace temp; --Re-specify a temporary tablespace for the user table space as a rebuild





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.