Estimate the tablespace size

Hi,
I am expected to insert around 10580000 rows in a table. Based on this number will I be able to calculate the tablespace size.
Thanks
SC

Hello,
Simple math; excluding any overhead
db_block_size/avg_row_len = approx number of rows per block
Total no of rows / approx number rows per block = Approx number of blocks
Approx number of blocks * db_block_size = Approx number of bytes
Approx number of bytes / (1024*1024) = Size in MB
  8192 = db_block_size
  173  = avg_row_len
   select 8192/173 from dual;
   select ( (10580000/47)*8192) / ( 1024 *1024) from dual;
  Regards

Similar Messages

  • How to estimate undo tablespace size in 11g?

    I found someone document said, use this sql to estimate undo tablespace:
    select (UR*(UPS*DBS))+(DBS*24) as "bytes" from (select value as UR from v$parameter where name='undo_retention'),(select (sum(undoblks)/sum(((end_time-begin_time)*86400))) as UPS from v$undostat),(select value as DBS from v$parameter where name='db_block_size');
    but in my 11g database, the "select value as UR from v$parameter where name='undo_retention'" is 0. so above sql is always get 196608(8192*24)
    How to estimate undo tablespace size in 11g?
    Thanks very much!

    for undo segments size you should turn it to be autoextend on as well undo management set to be AUTO
    i.e
    undo_managment='AUTO'
    for retention see that link
    Ora-01555, snapshot too old: rollback segment number 2 with name "_SYSSMU1
    BTW as hemant stated leave it to be auto which is good approach but make sure enough space on disk has been
    dedicated for undo segments are allowed to grow to the size they need to be based on the requested undo_retention.
    Khurram                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to see the tablespace size

    hi
    how to get the tablespace size??
    thx

    Hello,
    select SUM(bytes)/1024/1024 MB from dba_data_files
    where tablespace_name = 'xxxxxx';
    works fine.
    I am trying to build a function for that:
    select SUM(bytes)/1024/1024 MB
    from dba_data_files
    where tablespace_name=upper('&user')
    However, I need to make some enhancements:
    1. how to make comments in sql files?Refer to the REM statement in the sqlplus reference manual
    2. a lot of outputs are generated:
    SQL> @get_size
    Enter value for user: tts1
    old 3: where tablespace_name=upper('&user')
    new 3: where tablespace_name=upper('tts1')
    MB
    2048
    how to avoid that so that only the size is
    displayed.
    for example:
    SQL> @get_size
    Enter value for user: tts1
    MB
    2048
    Refer to set verify off in the sqlplus reference manual.
    >
    3. how to let the function accept a parameter such
    as:
    SQL> @get_size tts1
    Refer to the define command in the sqlplus reference manual.
    >
    4. how to include a usage (help) to that function
    such as:
    SQL> @get_size
    usage: get_size <tablespace name>
    Many thanksRefer to the prompt statement in the sqlplus reference manual.
    Sybrand Bakker
    Senior Oracle DBA

  • How to query the tablespace size increment speed?

    Hello,
    Do you have any directions or ideas on how to know the tablespace size increments history. or how to know the frequency of tablespace size increment.
    when I went into new database, I never managed this database before, i want to know the tabelspace size increments speed for do the reasonable space extend.
    so could you please give us a guide thanks!

    RLUO wrote:
    Hello,
    Do you have any directions or ideas on how to know the tablespace size increments history. or how to know the frequency of tablespace size increment.
    when I went into new database, I never managed this database before, i want to know the tabelspace size increments speed for do the reasonable space extend.
    so could you please give us a guide thanks!Hi, there good way is using DBMS_SPACE.OBJECT_GROWTH_TREND as Rajesh mentioned that.But also you can use some AWR views to getting this information.Seee below link.
    tablespaces' growth trend

  • Alert, if the tablespace size reached 80%

    Hi friends,
    Can i get the alert, if the tablespace used size reached to 80%.
    Because i handles 25 Databases, going to each databases and checking the tablespace size is really painfull.
    Is there any third party free tool available to check the tablespace size OR can we do it in database itself...pls help
    Rgds,
    Pravin...

    >
    Can i get the alert, if the tablespace used size reached to 80%.
    Because i handles 25 Databases, going to each databases and checking the tablespace size is really painfull.
    Is there any third party free tool available to check the tablespace size OR can we do it in database itself...pls help
    >
    1 Best option is using Grid Control. It may cost.
    2 Another option is to write a check space procedure on your favorite language - PL/SQL, Java, Perl .... that will send an alert to you.
    3 Another option is to use some generic monitoring framework like Sysmon.
    If you do not already have one, and you do not have money for #1 and #3, and time for #2 you can use a free monitoring framework like Nagios.
    There are couple of Oracle plugins for Nagios that you can download for free from Internet. They check not only tablespace free space, but also other important Oracle metrics and alert log. Also you can write your own checker on any language and plug it into Nagios.

  • How can I estimate the final size of my .ipa?

    Hello there,
    As far as I know there is no "scietific method" to find out how many megabytes will be added to an application after it was uploaded to the Apple Store.
    For example, my app in origin was 14.680.351 bytes and just when I've finished to upload it I got this email from the Apple Store:
    "Dear developer,
    The app binary listed below was 14 MB when you submitted it, but will be 21 MB once processed for the App Store. This exceeds the cellular network download size limit and would require your app to be downloaded over Wi-Fi".
    bla bla bla
    Obviously seen that the limit is 20 MB I worked a bit on my app and I managed to lower his size to 11.236.336 bytes.
    Then I uploaded it again and this time I got no warning.
    So in details my app, the firt time was 14.680.351 byes and has a lot of assets (external images, about 700 for 9.1MB in size).
    The main swf was about 900K in size.
    I have also a database of 1MB in size.
    The air runtime I think is about 4MB
    The second time the app was 11.236.336 bytes and I resampled the 700 images for a final size of 5.3MB.
    The main swf was again about 900K in size.
    The database still 1MB in size.
    Plus the 4MB of the air runtime.
    However, it is obvious that it would be better to know the final size  before putting it on the Apple Store, or at least it would be good to estimate it.
    So please reply to this thread by posting your experience.
    Thanks a lot
    P.S. I forgot to mention that I've done all in Flash CS5.5

    Hi therabbitwindfall,
    I know that apps over 20MB are allowed to be downloaded over wi-fi, however, if I can, i prefeer to make the app available also to 3g.
    So, in a nutshell, your equation is:
    finalSize = application.ipa size   -    4,5MB  Compressed Air Runtime   +   10MB Uncompressed Air Runtime
    I apply it now to my first upload:
    finalSize = 14.680.351 bytes - 4.608.000 bytes + 10.240.000 byes  = 20312351 byes that is not 21 MB however I do not know exactly the size of the compressed air runtime and the uncompressed one.
    mmmh, you can be right, thank you.
    Anyone from Adobe can confirm this?

  • How to estimate the database size?

    Hello. I have a database model in SQL data modeler. Also I've created it on the test server, but it is empty now.
    Now I need to estimate the size of the database for understanding the requirements to production hardware.
    For, example how many gigabytes I need in two years for my database. How can I do it?
    Thank you in advance.

    It is called "volumetrics" in ErWIN.

  • Reduce the tablespace size

    Hi,
    In my database, one tablespace used 5% and it's size is 8GB when i try to shrink the tablespace it gives the error that you can not shrink the tablespace.
    So can you please tell me that how can i reduce the size of that tablespace.
    Thanks in advance.

    1) Export the tables of that tablepsace
    2) Create a new tablespace and dump those tables into new tablespace
    3) Drop the 8GB tablespace.
    OR
    1) Move online the tables of 8 GB tablespace into another tablespace. Rebuild the indexes.

  • Reclaim the tablespace size...

    Hi Friends,
    Now i have joined as DBA in new company. After ananyzing my database i came to know my databases system tablespace had lot of user objects that around 9GB. I moved all the tables to another one tablespace now i want to reclaim that 9GB of space from my system tablespace. Bacause due to space constraint my company is not allowing me to keep that 9GB of space wastly. can you please any one let me know any effective procedure for reclaim that 9GB from my system tablespace?
    Data base Relaease : 9.2.0.4.0
    OS release: Suse linux 2.4.21-198-smp
    Thanks for your effort and help
    Regards,
    Karthik

    Hi Karthik
    Looking at the situation which you have mentioned, the only solution which looks feasible to me is :
    1. Export the entire user data.
    2. Drop the database
    3. Create and new database
    4. Import the user data
    Note : Keep in mind that the database shouldn't be of production.
    Please keep in mind the following:
    1. In NON SYSTEM tablespaces, usually the content of the entire TABLESPACE concerned is exported, then the tablespace is dropped including content and datafiles, the tablespace is newly created and data is imported back.
    2. We have an option of resizing the database using alter system .. command but it usually works only if the datafile has not been used after increasing its size or if it has been added recently.
    3. Do not create user data in SYSTEM tablespace. Use separate tablespace for users. SYSTEM tablespaces are used for data-dictionary data.

  • Reducing the tablespace size

    Hi,
    My database size has been grown upto 20GB. So we thought of dropping the users after taking the backup. The problem is even after dropping the user, the size has not been decreased. But when i see the datafile, there it is showing that the percentage of memory occupied is reduced from 99% to 10%.
    How can i free up the space.
    Regards,
    Alok Dubey

    This is not the correct forum to deal with your question. This forum deal with the languages SQL and PL/SQL. You have a general database (use & administration) question.
    Please ask this question in the [url http://forums.oracle.com/forums/forum.jspa?forumID=61]Database - General forum.
    Simple answer to your question. Dropping a user/schema/table/index frees up space in the tablespace (depending on the size of that being dropped).
    It does not decrease the size of the tablespace. (and a tablespace occupies disk space and not memory).
    Reducing the size of a tablespace is not a trivial task as it cannot be simply shrunk as there can be data blocks in use at the high-end of the tablespace. Thus the answer to your question is also not trivial and more than one approach can be considered.. which is why you would be best served asking this in the proper forum.

  • How can I estimate the table size?

    Hi guys,
    how can I estimate tabel size? I have a table, which contains char, numc, string, dec and so on.
    And the table will contain about 1 millon data. How much size does this table has?
    How can I calculate it? Is there any ABAP command to get it?
    Any hint is appreciated!
    Regards,
    Youyou

    Hi
    Perhaps this part of statament DESCRIBE TABLE from SAP help can be usefull for you:
    DESCRIBE TABLE
    Syntax
    DESCRIBE TABLE itab [KIND knd] [LINES lin] [OCCURS n].
    Extras:
    1. ... KIND knd
    2. ... LINES lin
    3. ... OCCURS n
    Effect
    This statement determines some properties of the internal table itab and assigns them to the specified variables. The various additions enable you to determine the table type, the number of currently filled rows and the initial memory requirement.
    In addition, the system fields sy-tfill and sy-tleng are filled with the current number of table rows and the length of a table row in bytes.
    So the system field sy-tleng has the size of a single line in bytes, it should mean the total table size can be calculated multiplying that field for the total of the record of the table:
    parameters: p_rec type i.
    DATA: T_BSEG TYPE TABLE OF BSEG.
    data: size type sy-tleng.
    SELECT * UP TO p_rec rows into table t_bseg
      FROM bseg where bukrs = 'MAAB'.
    describe table  t_bseg LINES sy-tabix.
    sy-tleng = sy-tleng * sy-tabix.
    write:   'Nr. records:', sy-tfill, sy-tabix,
           / 'Nr. bytes:',   sy-tleng.
    Max

  • HOW to find out the tablespace space utilized by a patch after applying the

    someone has already applied the patch in test env before recording the tablespace size , so I cannot find out the figure in test env.
    So is there any general practice or general guidelines on it?
    hOW to find out the tablespace space utilized by a patch after applying the patch?
    Thanks & Regards,
    Sree.
    Edited by: 846579 on Mar 22, 2011 10:50 PM

    I think there is no direct way to determine what tablespace is utilized by a patch from the README file. You could check the content of the patch file and see what modules are affected (assuming there are changes and the database level), then query DBA_USERS (DEFAULT_TABLESPACE column) for those schemas which are updated by a patch. Or, you could check the size of the tablespaces before and after applying the patch and you will determine what tablespaces have been utilized (provided that the application services are down, and none of the application users is connected to the application).
    Thanks,
    Hussein

  • Updates/Inserts to the Tablespace

    We have this centralized database called CONSOLE running in Oracle Database 10.2.0.5. We have site databases (150 small database from different towns). All of these inserts data into the CONSOLE database every 4 hours. I was tasked to monitor the console database. Part of my plan is to make sure that no tablespaces will be full and I need to address this issue before it occurs. The problem is we only have limited storage in the CONSOLE database and the upgrade in storage is scheduled in the 3rd week of June.
    Is there a way to find out when was a tablespace (datafile) was last written to? (And from which table this data (row) belongs?)
    The concept that I would like to find out is the same in the dba_tables view where you can check when was the table last analyzed.

    With this script you can monitor the tablespace size and take action:
    ==========================================
    set linesize 150
    column tablespace_name format a20 heading 'Tablespace'
    column sumb format 999,999,999
    column extents format 9999
    column bytes format 999,999,999,999
    column largest format 999,999,999,999
    column Tot_Size format 999,999 Heading 'Total| Size(Mb)'
    column Tot_Free format 999,999,999 heading 'Total Free(MB)'
    column Pct_Free format 999.99 heading '% Free'
    column Chunks_Free format 9999 heading 'No Of Ext.'
    column Max_Free format 999,999,999 heading 'Max Free(Kb)'
    set echo off
    PROMPT FREE SPACE AVAILABLE IN TABLESPACES
    select a.tablespace_name,sum(a.tots/1048576) Tot_Size,
    sum(a.sumb/1048576) Tot_Free,
    sum(a.sumb)*100/sum(a.tots) Pct_Free,
    sum(a.largest/1024) Max_Free,sum(a.chunks) Chunks_Free
    from
    select tablespace_name,0 tots,sum(bytes) sumb,
    max(bytes) largest,count(*) chunks
    from dba_free_space a
    group by tablespace_name
    union
    select tablespace_name,sum(bytes) tots,0,0,0 from
    dba_data_files
    group by tablespace_name) a
    group by a.tablespace_name
    order by pct_free;
    =========
    regards
    Shanoj

  • How to set the sga size in Windows NT Oracle Database

    Hi,
    Can any one tell me how to estimate the appropriate sizes for SGA and sorts..etc, Any estimate based on the total database size..?
    Regards,
    G. Rajakumar.

    Hi All,
    Got the answer. How I wish this can be define declaratively.
    Code below for the soln.
    OATableBean table01 = (OATableBean)webBean.findChildRecursive("table01RN");
    table01.queryData(pageContext, true);
    table01.prepareForRendering(pageContext);
    DataObjectList aColFormat01 = table01.getColumnFormats() ;
    oracle.cabo.ui.data.DictionaryData ColFormat01 =(oracle.cabo.ui.data.DictionaryData)aColFormat01.getItem(pageContext.findChildIndex(table01, "ColLabel"));
    //Column Width
    ColFormat01.put(WIDTH_KEY, "30%");
    //Column Format - Right-aligned varchar
    ColFormat01.put(COLUMN_DATA_FORMAT_KEY,NUMBER_FORMAT);cheers,
    Elmer
    Edited by: Elmer on Mar 8, 2010 2:46 AM

  • How to see tablespace size in data dictionary

    How can I see the tablespace size, and used tablespace size in data dictionary view?
    it is not in dba_tablespaces, and v$tablespace
    Thanks.

    I like this little piece of code of mine:
    SQL> SELECT
      2          TABLESPACE_NAME,
      3          RPAD(RPAD('|',100-PCT_FREE,'X'),100) || '|' USED
      4  FROM (SELECT TABLESPACE_NAME,
      5    100 -
      6      ROUND(100 -(SUM(BYTES)/1024/1024/1024)*100/
      7                  (SELECT SUM(BYTES)/1024/1024/1024
      8                   FROM DBA_DATA_FILES DF
      9                   WHERE DF.TABLESPACE_NAME=FS.TABLESPACE_NAME),2
    10            ) PCT_FREE,
    11    ROUND(SUM(BYTES)/1024/1024/1024,2) GIBFREE
    12  FROM DBA_FREE_SPACE FS
    13  GROUP BY TABLESPACE_NAME) TABLESPACE_SPACE
    14* ORDER BY TABLESPACE_NAME;
    TABLESPACE_NAME                USED
    ARCHDATA                       |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX      |
    DATBIGGX                       |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX                  |
    DATGX                          |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX                                                      |
    DATLOWGX                       |XXXXXXXXXXXXXXXXXXXXXX                                                                             |
    IDXBIGGX                       |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX                 |
    IDXLGX                         |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX                |
    IDXGX                          |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX          |
    LOGMNRTS                       |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX                                           |
    SYSTEM                         |XXXXXXXXXXXXXXXX                                                                                   |
    TOOLS                          |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX                                                   |
    UNDOGX                         |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX                                         |Yoann.

Maybe you are looking for

  • How can I transfer my data from my internal hard drive to my internal ssd on my macbook pro?

    A few days ago, I replaced my optical drive with an internal ssd. Now I want to transfer my operating programs from my hard drive to my new ssd. How do I have to do that?

  • Re-connecting files chooses wrong path

    I had to reconnnect all my files after a complete reinstall. And PSE organizer selected C:\Documents and Settings\<user> as root path, instead of C:\Users\<user> Why does it do such a stupid thing, and what can i do to remap all the paths? Search and

  • How can I find my contract date and length online?

    I've searched everywhere and can't find anywhere online in MyBT that has the actual details of my contract date and length. I know I renewed my  line rental in advance and have Option 3 phone and broadband. I need to know, if I have paid a year's lin

  • OWB repository

    Hi all, I'm doing a fresh installation of OWB. I have 2 servers and I want to install the OWB in one server and OWB Repository in the other. There is any way to do this? I'm using 11g R2. Thanks!

  • App update description is missing - iTunes 12

    I am using iTunes 12 with Yosemite.  A clean install.  Now App updates show up but the description of what was updated in the app is not there.  So I know an App needs updating but no longer know what they are updating in the App itself unless I go t