Control file Size - Page 2
DBAsupport.com Forums - Powered by vBulletin
Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Control file Size

  1. #11
    Join Date
    Mar 2001
    Posts
    131
    Dear Friends,

    You can use this script to find the controlfile size,

    set termout off
    column value new_value BlkSz

    select
    value
    from
    sys.v_$parameter
    where
    name = 'db_block_size'
    /
    set termout on
    set verify off

    select
    &BlkSz * (1 + 2 * sum(ceil(record_size * records_total / (&BlkSz - 24)))) "controlfile size"
    from
    sys.v_$controlfile_record_section

    OutPut will look like this,

    VALUE
    ----------------------
    8192

    1 row selected.


    controlfile size
    ----------------
    7806976

    1 row selected.

    This script returns blocksize also.

    Bye,

    UpeshP

  2. #12
    Join Date
    Dec 2002
    Location
    Bangalore ( India )
    Posts
    2,434
    Even this returns < os file size, however the ressult is pretty near.

    could you please let us know, why is such cmplx cumputation required.
    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"

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