How to estimate average row size without populating data

hi all
I have a work of estimating the average row size of some tables. Because I don't want to populate these tables with data(It's alot work to do it),so I am not able to get the arerage row size from dba_tables by analyzing these tables.
Is there other way around to do my job easily?
Thanks alot.

Hi,
I am not a coder,I am a DBA.Do you think that it's coder's responsibility to do such kind of works?Still i think it part of the dba role to suppport the developers or to provide guidance, the easiet way would be the using package DBMs_SPACE, perhaps if you take the help of developer, ask him to populate the single record with full length or say max length in each table and generate the 10053 trace with basic select clauses, You can the information from the trace too...
- Pavan Kumar N

Similar Messages

  • How to find Tuple(row) size in a Data Block

    hi,
    I want to find out the size of 1 row and total size of a table in a data block in Oracle 11g. For Example I've a Employee table with 300 rows. I want to find out how much space these rows are occupying in a data block (8192 default) and also the size of 1 individual row.
    I'll appreciate the valuable suggestions.
    Thanks alot.
    Regards,
    Kamran

    Hi,
    Welcome to the forum!
    See [Calculating Oracle average row length|http://www.dba-oracle.com/t_average_row_length.htm], I hope it helps
    Regards,

  • 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 find Average transaction size and average number of transactions/sec

    Would like to know
    1. how to find average transaction size
    2. number of transactions per sec
    using SQL queries. We also have statspack installed.
    Regards,
    Anirban

    SQL> select maxval,minval,average from SYS.V_$SYSMETRIC_SUMMARY where metric_name in ('User Transaction Per Sec');
    MAXVAL MINVAL AVERAGE
    .7 0 .149170735
    SYS.V_$SYSMETRIC_SUMMARY have to many other metrics check the one you need. (10G and above)
    Coskan Gundogar
    http://coskan.wordpress.com
    Edited by: coskan on Mar 31, 2009 12:42 PM

  • How do i pgrade my os without loosing data or using extra hdd? Thanks

    How do i pgrade my os without loosing data or using extra hdd? Thanks

    Yes, you can do that, but it is inadvisable to do so without a safety backup. But that's your choice, which means there is no guarantee you won't have a problem.
    First thing you should do:
    Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    Upgrading to Snow Leopard
    You can purchase Snow Leopard through the Apple Store: Mac OS X 10.6 Snow Leopard - Apple Store (U.S.). The price is $19.99 plus tax. You will be sent physical media by mail after placing your order.
    After you install Snow Leopard you will have to download and install the Mac OS X 10.6.8 Update Combo v1.1 to update Snow Leopard to 10.6.8 and give you access to the App Store. Access to the App Store enables you to download Mavericks if your computer meets the requirements.
         Snow Leopard General Requirements
           1. Mac computer with an Intel processor
           2. 1GB of memory
           3. 5GB of available disk space
           4. DVD drive for installation
           5. Some features require a compatible Internet service provider;
               fees may apply.
           6. Some features require Apple’s iCloud services; fees and
               terms apply.
    Upgrading from Snow Leopard to Lion or Mavericks
    To upgrade to Mavericks you must have Snow Leopard 10.6.8, Lion, or Mountain Lion installed. Purchase and download Mavericks (Free) from the App Store. Sign in using your Apple ID. The file is quite large, over 5 GBs, so allow some time to download. It would be preferable to use Ethernet because it is nearly four times faster than wireless.
         OS X Mavericks- System Requirements
           Macs that can be upgraded to OS X Mavericks
             1. iMac (Mid 2007 or newer) — Model Identifier 7,1 or later
             2. MacBook (Late 2008 Aluminum, or Early 2009 or newer) —
                 Model Identifier 5,1 or later
             3. MacBook Pro (Mid/Late 2007 or newer) — Model Identifier 3,1 or later
             4. MacBook Air (Late 2008 or newer) — Model Identifier 2,1 or later
             5. Mac mini (Early 2009 or newer) — Model Identifier 3,1 or later
             6. Mac Pro (Early 2008 or newer) — Model Identifier 3,1 or later
             7. Xserve (Early 2009) — Model Identifier 3,1 or later
    To find the model identifier open System Profiler in the Utilities folder. It's displayed in the panel on the right.
    Are my applications compatible?
             See App Compatibility Table — RoaringApps.
    Upgrading to Lion
    If your computer does not meet the requirements to install Mavericks, it may still meet the requirements to install Lion.
    You can purchase Lion at the Online Apple Store. The cost is $19.99 (as it was before) plus tax.  It's a download. You will get an email containing a redemption code that you then use at the Mac App Store to download Lion. Save a copy of that installer to your Downloads folder because the installer deletes itself at the end of the installation.
         Lion System Requirements
           1. Mac computer with an Intel Core 2 Duo, Core i3, Core i5, Core i7,
               or Xeon processor
           2. 2GB of memory
           3. OS X v10.6.6 or later (v10.6.8 recommended)
           4. 7GB of available space
           5. Some features require an Apple ID; terms apply.

  • How to computer the row size of a table

    Hi
    How can i compute the row size of a table. My general Idea is
    create table emp(
    empno number(4),
    ename varchar2(10),
    hire_date date,
    update_yn timestamp);
    the character set is UFT8
    how can i compute the size of this table
    thanks

    Hi,
    for Avg. row length see this
    SQL> desc dba_tables
    Name                                      Null?    Type
    OWNER                                     NOT NULL VARCHAR2(30)
    TABLE_NAME                                NOT NULL VARCHAR2(30)
    TABLESPACE_NAME                                    VARCHAR2(30)
    CLUSTER_NAME                                       VARCHAR2(30)
    IOT_NAME                                           VARCHAR2(30)
    PCT_FREE                                           NUMBER
    PCT_USED                                           NUMBER
    INI_TRANS                                          NUMBER
    MAX_TRANS                                          NUMBER
    INITIAL_EXTENT                                     NUMBER
    NEXT_EXTENT                                        NUMBER
    MIN_EXTENTS                                        NUMBER
    MAX_EXTENTS                                        NUMBER
    PCT_INCREASE                                       NUMBER
    FREELISTS                                          NUMBER
    FREELIST_GROUPS                                    NUMBER
    LOGGING                                            VARCHAR2(3)
    BACKED_UP                                          VARCHAR2(1)
    NUM_ROWS                                           NUMBER
    BLOCKS                                             NUMBER
    EMPTY_BLOCKS                                       NUMBER
    AVG_SPACE                                          NUMBER
    CHAIN_CNT                                          NUMBER
    AVG_ROW_LEN NUMBER
    AVG_SPACE_FREELIST_BLOCKS                          NUMBER
    NUM_FREELIST_BLOCKS                                NUMBER
    DEGREE                                             VARCHAR2(10)
    INSTANCES                                          VARCHAR2(10)
    CACHE                                              VARCHAR2(5)
    TABLE_LOCK                                         VARCHAR2(8)
    SAMPLE_SIZE                                        NUMBER
    LAST_ANALYZED                                      DATE
    PARTITIONED                                        VARCHAR2(3)
    IOT_TYPE                                           VARCHAR2(12)
    TEMPORARY                                          VARCHAR2(1)
    SECONDARY                                          VARCHAR2(1)
    NESTED                                             VARCHAR2(3)
    BUFFER_POOL                                        VARCHAR2(7)
    ROW_MOVEMENT                                       VARCHAR2(8)
    GLOBAL_STATS                                       VARCHAR2(3)
    USER_STATS                                         VARCHAR2(3)
    DURATION                                           VARCHAR2(15)
    SKIP_CORRUPT                                       VARCHAR2(8)
    MONITORING                                         VARCHAR2(3)
    CLUSTER_OWNER                                      VARCHAR2(30)
    DEPENDENCIES                                       VARCHAR2(8)
    SQL> Regards!

  • How to decrease PDF file size without losing quality of images and vector lines?

    I have several ai files that I saved as PDFs. Now I'm having problem with the size of this combine files. Can some one assist me with the proper way on decreasing file size without losing quality.
    Thank you.

    I am having the same problem with a different file that's in a different format mentioned above. I'm trying to convert a ".srf" file and turn it into a ".pdf." I was successful doing this but my image, once in a .pdf was also pixilated.
    I thought if I convert my ".srf" file to a ".jpeg" first, then bring this newly created ".jpeg" into a ".pdf," I would have more luck. But unfortunately the free download I got on my computer that's supposed to convert any file to any file, CANNOT convert ".srf" files to ANYTHING!
    Does anyone have any ideas? Or any specific programs I should get?
    Thanks!

  • How to increase the image size without losing resolution in iPhoto?

    Dear All
    I have pics i took with my phone which is not an iphone, just little sony ericsson phone.
    Is there a way to increase the image size without losing resolution in iPhoto please? Or cheap 3rd party software or shareware perhaps?
    thank you very much.
    veedeekay

    iPhoto has no way to do that. You'll need an external editor for the job. Not all have the capability. I know Photoshop has.
    You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.
    Regards
    TD

  • How to see inserted rows using load csv data

    Hey all...
    I am using apex 3.1 and I want to know how can I see non failed rows when I insert data from an CSV file.
    the failed rows that I can see are the the ones that shows in the next case: Uploading data that already exists and having a primary key violation. But what I really want to see is the description of the rows that had been succesfully loaded, not just a number of succesfully loaded rows.
    Thanks in advance.
    Luis.

    Try some thing like this
    select  Field, Filed2, ORA_ROWSCN, SCN_TO_TIMESTAMP(ORA_ROWSCN)  from Table Name
    You will get the recent  date of  insert/update of record

  • How to suppress a row based on current date -  at query level?

    In an Bex query report i have suppress rows based on current date.
    There is no current date available in query.
    there is a date field in the query.
    If by chance the date in that field is lesser than current date, I have to suppress that row.
    How can this be achieved?

    What is the code ofr creating a variable to get values >= to current date?
    I have implemented the following code which is not working.
    data L_S_range like line of E_T_range[].
    CLEAR L_S_RANGE.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'GE'.
    L_S_RANGE-LOW = SY-DATUM.
    APPEND L_S_RANGE TO E_T_RANGE[].
    Actually i have written in class, which will be inherited in superclass.
    Edited by: akshara20 on Feb 2, 2011 1:21 PM

  • How to calculate the row size

    Hi,
    I am having a table of 4 column. First column is varchar2(10), Second column is Number(5), Third column is char(10) and Fourth column is Number(12,2).
    Now how to calculate the size of each row. I want to know how much space it will take for each row.
    Thanx & Regards,
    Swarup

    For a complete discussion of storage requirements for different datatypes see the Oracle 8i Concepts manual.
    All Oracle documentation is available on-line via the 'Documentation' link on the OTN home page.
    Your Col2 NUMBER(5) will take 4 bytes if it holds a 5 digit positive or negative number.
    Your Col4 NUMBER(12,2) will take 7 bytes if it holds a number with 12 digits that is positive and will take 8 bytes if it holds a number with 12 digits that is negative.
    The following is from the Concepts manual Chapter 12 (Copyright by Oracle)
    Built-In Datatypes 12-9
    Internal Numeric Format
    Oracle stores numeric data in variable-length format. Each value is stored in
    scientific notation, with one byte used to store the exponent and up to 20 bytes to
    store the mantissa. The resulting value is limited to 38 digits of precision. Oracle
    does not store leading and trailing zeros. For example, the number 412 is stored in a
    format similar to 4.12 x 10 2 , with one byte used to store the exponent (2) and two
    bytes used to store the three significant digits of the mantissa (4, 1, 2). Negative
    numbers include the sign in their length.
    Taking this into account, the column size in bytes for a particular numeric data
    value NUMBER ( p), where p is the precision of a given value, can be calculated
    using the following formula:
    ROUND((length( p)+ s)/2))+1
    where s equals zero if the number is positive and s equals 1 if the number is
    negative.
    Zero and positive and negative infinity (only generated on import from Version 5
    Oracle databases) are stored using unique representations. Zero and negative
    infinity each require one byte; positive infinity requires two bytes.
    null

  • 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.

  • How to catch failed rows from excel export data conversion

    I am pulling data from SQL Server and exporting to Excel file.  Using SSIS 2008, sending to Excel 2003.  The process is working fine, and I want to grab any data conversion failures, specifically I want to grab any data that fails or is to be truncated.
    I add a flat file destination to the data conversion error line (red) and pointed it to a txt file.  This caused an error, saying some of the columns were the wrong data type to go in a text file.  So I added a data conversion to the first data
    conversion error line, but the data types wont change.  
    The wierd thing, is the error says the columns are DT_NTEXT and need to be DT_TEXT, but they aren't, they are DT_WSTR.  Anyway, I tried to convert to DT_TEXT and it caused the data conversions in my original conversion to change, whcih broke the whole
    package.
    My intention is to grab the erroring row so it can be manually converted. So how do I do that without adding 100 more errors?

    Hi teahou,
    do you really use two accounts to post on the MSDN forums?
    I think the data types were not guessed correctly by the Flat File Destination component and thus you need to adjust them using the advanced editor, then naturally the data conversion transformations become obsolete.
    Arthur
    MyBlog
    Twitter

  • How to get  all rows of an attribute data from a table?

    Hello.. I´m using Jdev 10.1.3.2
    I have a table with 5 columns and N rows.
    I need to create a backing bean method to count the value of all rows of a specifc column.
    I use
    JUCtrlValueBindingRef selectedRowData= (JUCtrlValueBindingRef)myTable().getSelectedRowData();
    to get an attribute from a selected row. but How can get from all rows?
    Thank you
    Vandré

    Hi Vandré
    I think this example of Steve Muench will help you.
    "Recalc Sum of Salary at the View Object Level
    This example illustrates a technique where a transient attribute of a view object is updated to reflect the total sum of some attribute of all the rows in the view object's default row set. The code to recalculate the sum of the salary is in the getSumOfSal() method in the EmpViewImpl.java class. The custom EmpViewRowImpl.java class for the view row implements the getter method for the SumOfSal attribute by delegating to this view object method. The EmpViewImpl class extends a base DeclarativeRecalculatingViewObjectImpl class that contains some generic code to enable declaratively indicating that one attribute's change should recalculate one or more other attributes. The EmpView defines the "Recalc_Sal" property to leverage this mechanism to recalculate the "SumOfSal" attribute. If you restrict the VO's results using the BC Tester tool, you'll see the sum of the salaries reflects the subset. If you add a new row or delete an existing row, the sum of sal is updated, too."
    http://otn.oracle.com/products/jdev/tips/muench/recalctotalvo/RecalcTotalOfRowsInVO.zip
    Good Luck

  • How can I sync my ipod without losing data?

    I bought my ipod around half a year ago and had it synced and everything to my Mac for school. The school took my computer for summer and i backed up the files onto my external harddrive. But i have bought songs and apps on my ipod touch which is no longer connected to any itunes library.
    How can i sync this ipod with a itunes library without losing everything on my ipod??
    (note: the computer i am using now is a windows, with an itunes library that also has music bought on it)
    Message was edited by: Aperson1234

    Tough spot if you want Apple only SW, no idea where you can get where you want without some decent 3rd party SW, which as a rule outshines Apple's SW by light years.

Maybe you are looking for

  • Corrupted Files in PS CS6

    While working in Photoshop CS6, large rectangular blocks of missing and/or distorted pixels suddenly appear.  They affect all layers, effectively ruining the entire file.  I closed the file without saving, thinking that when I quit Photoshop and reop

  • Is there a way to add an alternate purchase form for a catalog or product, so that the autoresponder for that catalog or product can be customized?

    I have a client who wants to offer an ebook with an online exam form.  I'll create a secure zone for the exam form. She wants 3 sales opportunities: Buy the ebook Buy the same ebook and include access to the exam form as an upgrade option, possibly p

  • ***iPhoto Library won't load? HELP!

    I had a problem with my external lacie drive. disk warrior rebuilt the directory and the drive is fine. Now however iPhoto will not load. At first it said I needed to upgrade the thumbnails and I did so but never knew if it was working? I think the d

  • BADI for payroll report

    Hi,   I found a BADI(pben_pay0008) for payroll driver(rpcalcu0) and implemented it from se19. It was asking me to enter the filter before i save it. So i gave molga as 10. Then I added a break-point statement in the method. Activated it by clicking a

  • Back to my mac from the internet

    Hello, I wonder if it is possible to access my MAC at home from my MAcbook or my iphoen when I am not at home. If it is, I would appreciate any help to do so. I use a TimeCapsule at home and ICLOUD. And all my software is updated. Thanx