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

Thread: Need clarafication on temp tablespace

  1. #1
    Join Date
    Apr 2001
    Posts
    257

    Need clarafication on temp tablespace

    According to the doc: "The sort segment is created by the first statement that uses a temporary tablespace for sorting, after startup, and is released only at shutdown."

    So does that mean if there are more and more unique sorts coming in, the temporary tablespace will keep growing? Will the upcoming sorts reuse the space allocated for previous finished sorts? That is, once a sort finishes, is space allocated for it available to the future sorts?

    Thanks,

  2. #2
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253

    Re: Need clarafication on temp tablespace

    Originally posted by a128
    Will the upcoming sorts reuse the space allocated for previous finished sorts? That is, once a sort finishes, is space allocated for it available to the future sorts?

    Thanks,
    Yes, and yes. you can monitor "real" usage with the v$sort_usage (i hthink) system view
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

  3. #3
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    The space is reused.
    Jeff Hunter

  4. #4
    Join Date
    Dec 2001
    Location
    USA
    Posts
    620
    Hi,

    If space is reused, why we get ORA-1652 error.

    ORA-1652: unable to extend temp segment by 1280 in tablespace TEMP

    select sum(blocks*8192) from v$sort_usage is returning 2443182080 (2330 M).

    At present, in OEM, it shows that out of 3000M, 2990 M is used and so we are getting ORA-1652 error showing that it is not able to extend it by another 10M. (1280*8192).

    Little confuzed.
    Sam
    ------------------------
    To handle yourself, use your head. To handle others, use your heart

  5. #5
    Join Date
    Jul 2001
    Location
    Slovenia
    Posts
    422
    Look like temp tablespace is filled up.
    3000M-2990M is probably less then 10M in your case.
    2330M??? - would you select * from dba_segments where tablespace_name = 'TEMP'
    Tomaž
    "A common mistake that people make when trying to design something completely
    foolproof is to underestimate the ingenuity of complete fools" - Douglas Adams

  6. #6
    Join Date
    Feb 2003
    Location
    INDIA
    Posts
    96
    Try following

    1. ALTER TABLESPACE tablespace_name COALESCE;

    The above option may still fail if there is still not
    enough contigious space.
    2. Reevaluate the objects NEXT extent size and the percent increase
    or add a datafile
    or increase the size of same datafile.
    Dilip Patel
    OCP 8i

    Catch me online at Yahoo: ddpatel256

  7. #7
    Join Date
    Dec 2000
    Location
    Mumbai
    Posts
    38
    1. Check out the columns tablespace_name and contents from dba_tablespaces view.
    2. If the contents indicates that the tablespace is temporary then okay. Checkout the initial, next extents size and pctincrease parameters. Both should be equal.
    3. Check out the sort_area_size parameter. use the formula
    (multiples of sort_area_size + 1 oracle block size) as the size of the initial extent size.

    check out

  8. #8
    Join Date
    May 2003
    Posts
    46
    and pctincrease should always should be 0

  9. #9
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253
    Temp tablespaces are very simple

    i) Make them locally managed
    ii) Make them uniform extent size
    iii) Make the extent size 1M
    iv) Forget about them from then on.

    That's all there is to it.
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

  10. #10
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    Originally posted by slimdave
    Temp tablespaces are very simple

    i) Make them locally managed
    ii) Make them uniform extent size
    iii) Make the extent size 1M
    iv) Forget about them from then on.

    That's all there is to it.
    v) If you run out of TEMP space, that means you don't have enough TEMP to support your systems.
    Jeff Hunter

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