DBAsupport.com Forums - Powered by vBulletin
Results 1 to 7 of 7

Thread: User Space-used script

  1. #1
    Join Date
    Mar 2002
    Location
    Mesa, Arizona
    Posts
    1,204
    I want to figure out how much space I'll need for an export of a specific schema.

    I need a script to query how much space a user's tables (only) are using.

    If you've got one in your cache of scripts, please share.

    Thanks you.

    "I do not fear computers. I fear the lack of them." Isaac Asimov
    Oracle Scirpts DBA's need

  2. #2
    Join Date
    Mar 2001
    Posts
    314
    won't the

    select sum(bytes) from user_segments where segment_type='TABLE';

    query give you a ballpark figure when issued from the user whose tables you want to export ?

    -amar


  3. #3
    Join Date
    Mar 2002
    Location
    Mesa, Arizona
    Posts
    1,204
    I ran the query after exporting one schema. The .dmp file is 968,275,968. The query shows 787,906,560 bytes.

    This gives me a ball-park estimate (well, within 25%). Thank you.

    I wonder if there's something that'll get a little closer? I'm also curious about the variance. Any Ideas?
    "I do not fear computers. I fear the lack of them." Isaac Asimov
    Oracle Scirpts DBA's need

  4. #4
    Join Date
    Mar 2001
    Posts
    314
    Refer to metalink doc 106465.1 to find out the exact dump file size. It's a pain - but you will get the exact figure.

    As for the variance, maybe refer to doc 61949.1?

    -amar

  5. #5
    Join Date
    Mar 2002
    Location
    Mesa, Arizona
    Posts
    1,204
    Will do Amar. Thank you for your time and the references.
    "I do not fear computers. I fear the lack of them." Isaac Asimov
    Oracle Scirpts DBA's need

  6. #6
    Join Date
    May 2002
    Location
    California, USA
    Posts
    175
    Ken,

    Here is a way to get this info. It will show you the HWM for each table in selected schema and with little twisting could get the SUM as well.

    Here is the link:
    http://www.dbaclick.com/cgi-bin/ib3/...=ST;f=15;t=190


    Check the latest Oracle DBA forums at:
    http://www.dbaclick.com/cgi-bin/ib3/ikonboard.cgi

    Hope that helps,

    --clio_usa

  7. #7
    Join Date
    Mar 2002
    Location
    Mesa, Arizona
    Posts
    1,204
    Thanks Clio
    "I do not fear computers. I fear the lack of them." Isaac Asimov
    Oracle Scirpts DBA's need

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