Website Design, Website Development, Shopping Carts, Content Management Systems, Custom Programming, Custom Applications Appsdba: How to clear temporary tablespace !!!!!!!

Oracle Applications, Middleware, Database, DB RAC & HA

It is place where anyone grab more knowledge about Oracle Applications, middleware etc.

 
APPS R12
  • File System
  • Tech Stack
  • Admin Scripts
  • Forms Mode
  • APPS 11i
  • Know more
  • Maintenance Mode
  • Maintenance Mode(New)
  • Patching
  • APPS Scripts
  • Database Scripts
  • Protect APPS Password
  • Concurrent Manager
  • Database Refersh
  • Patchset Utility
  • Forms Data Loader
  • Web Server
  • Space Required
  • Responsibilities Of APPSDBA
  • OAS 9i/10gR2
  • Software Load Balancer
  • OAS 10gR3
  • Components
  • HTTP Server as Port 80
  • Database
  • Enable Archive
  • Clear Temp Tablespace
  • Drop DB (New in 10g)
  • Database Performance
  • Oracle Process
  • Advanced Topic
  • Database RAC

  • Do you know
  • Clusterware
  • Manage RAC Environment
  • High Availability
  • Certifications
  • EBS R12 Beta Exam
  • APPS 11i - 1z0-233
  • RAC 10gR2 - 1z0-048
  • Oracle Certifications
  • DBA Tools
  • TOAD
  • KEEP TOOL
  • ORACLE's SQL DEVELOPER
  • Spotlight on Oracle E-Business
  • DBDiff For Oracle

  • How to clear temporary tablespace !!!!!!!
    Wednesday, June 25, 2008
    If the tablespace is a default temporary tablespace when you are greeted with the following exception:

    SQL> DROP TABLESPACE temp;
    drop tablespace temp
    *
    ERROR at line 1:
    ORA-12906: cannot drop default temporary tablespace

    Steps to clear the temporary tablespace:

    The first step you need to perform is creating another temporary tablespace (let’s call it TEMP2). The next step would be to remove the temporary tablespace you want to resize from being the default temporary tablespace (in our example, this will be a tablespace named TEMP) by making TEMP2 the default. Drop / recreate the TEMP tablespace to the size you want. Finally, make the newly created TEMP tablespace your default temporary tablespace for the database and drop the TEMP2 tablespace.

    1) SQL>CREATE TEMPORARY TABLESPACE temp2
    TEMPFILE '/u02/oracle/oradata/TESTDB/temp2_01.dbf' SIZE 5M REUSE
    AUTOEXTEND ON NEXT 1M MAXSIZE unlimited
    EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M;

    Tablespace created.

    2) SQL>ALTER DATABASE DEFAULT TEMPORARY TABLESPACE temp2;

    Database altered.

    3) SQL>DROP TABLESPACE temp INCLUDING CONTENTS AND DATAFILES;

    Tablespace dropped.

    4) SQL>CREATE TEMPORARY TABLESPACE temp
    TEMPFILE '/u02/oracle/oradata/TESTDB/temp01.dbf' SIZE 500M REUSE
    AUTOEXTEND ON NEXT 100M MAXSIZE unlimited
    EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M;

    Tablespace created.

    5) SQL>ALTER DATABASE DEFAULT TEMPORARY TABLESPACE temp;

    Database altered.

    6) SQL>DROP TABLESPACE temp2 INCLUDING CONTENTS AND DATAFILES;

    Tablespace dropped.
    posted by Jaswinder Singh @ 1:36 AM  
    2 Comments:
    • At Wednesday, November 05, 2008, Blogger Unknown said…

      Will Autoextend on can cause same problems of temp tablespace exhausted in near future?

       
    • At Tuesday, December 22, 2009, Anonymous ceylon tee said…

      Create a temporary tablespace.
      Syntax:
      CREATE TEMPORARY TABLESPACE tablespace_name
      TEMPFILE Tempfile_Options
      [EXTENT MANAGEMENT LOCAL]
      [UNIFORM [SIZE int K | M] ];
      Tempfile_Options:
      'filespec' [AUTOEXTEND OFF]
      'filespec' [AUTOEXTEND ON [NEXT int K | M] [MAXSIZE int K | M]]

       
    Post a Comment
    << Home
     
    About Me

    Name: Jaswinder Singh
    Home: Bangalore, Karnataka, India
    Certifications: RAC Certified Expert, OCP 9i, 10g & 11i
    About Me: I am working as APPSDBA, have hands on experience on DB RAC, HA on OAS 10g and Oracle Applications.
    See my complete profile
    Previous Post
    Archives
    Links
    Powered by

    Free Blogger Templates

    BLOGGER

    ADVERTISEMENT
    click here
    © 2006 Appsdba .