DBAsupport.com Forums - Powered by vBulletin
Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Temp space keeps increasing

  1. #1
    Join Date
    Sep 2003
    Location
    China
    Posts
    72

    Temp space keeps increasing

    I notice that the temporary tablespace has grown to almost 7GB. What constitutes to the increase? How can I reduce the size of it?

  2. #2
    Join Date
    Dec 2002
    Location
    Bangalore ( India )
    Posts
    2,434
    Set max size.
    funky...

    "I Dont Want To Follow A Path, I would Rather Go Where There Is No Path And Leave A Trail."

    "Ego is the worst thing many have, try to overcome it & you will be the best, if not good, person on this earth"

  3. #3
    Join Date
    Apr 2003
    Posts
    353
    Restart the server in restrict mode.
    Resize the temp ts to minimum required size.
    Give maximum size.

  4. #4
    Join Date
    Feb 2003
    Posts
    17
    Restarting the DB in restrict mode is good idea

  5. #5
    Join Date
    Feb 2003
    Posts
    40
    Hello,

    Restarting the database will release the space in Temp tablespace
    But in restricted mode ??

    If users cannot access the database ,what is the use of having a database ?

    Once users start using it ,might be again temp tablespace might increase depending on the type and number of transactions.

    So,
    Querying v$sort_segment to find out used and free blocks periodically.

    Query v$sort_usage,v$sqltext to find which user and sql statements are using it ,might help to solve the issues I guess.
    K.Chithra
    Oracle DBA

  6. #6
    Join Date
    Apr 2003
    Posts
    353
    restart in restrict mode.
    after resizing
    allow all.

  7. #7
    Join Date
    Aug 2001
    Location
    chennai,bangalore
    Posts
    840
    Hi All,
    Its always better to know what is causing the TEMP tablespace size is increasing, rather than decreasing or increase the size of the tablespace.It might happen that tomorrow you might need more TEMP space for SORTING activity and your SQL's might error out.

    So when ever any SORTING SQL's are being executed its always better to set the sort_area_size for that session.This would help in sorting being done in MEMORY and reducing I/O and improves the performance of the SQL's

    regards
    anandkl
    anandkl

  8. #8
    Join Date
    Dec 2002
    Location
    Bangalore ( India )
    Posts
    2,434
    Originally posted by anandkl
    Its always better to know what is causing the TEMP tablespace size is increasing, rather than decreasing or increase the size of the tablespace.
    But first you gotta limit it, wont u?
    funky...

    "I Dont Want To Follow A Path, I would Rather Go Where There Is No Path And Leave A Trail."

    "Ego is the worst thing many have, try to overcome it & you will be the best, if not good, person on this earth"

  9. #9
    Join Date
    Sep 2003
    Location
    China
    Posts
    72
    v$sort_segment's blocks are fully used.

    But what if I restrict the size to e.g. 2GB without extent but in the future more temp space is required in the SQL, will it cause any errors?

  10. #10
    Join Date
    Aug 2001
    Location
    chennai,bangalore
    Posts
    840
    If the SQL requires more TEMP space and if it does not find it, obviously it would error out.

    regards
    anandkl
    anandkl

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width