Row size anomaly...

Hi,
I am observing some row size anomaly which is causing a table to grow enormously. The table is a partitioned table. The size of row as calculated from dba_tab_columns is 2338 bytes. The average length of the row is 379 bytes, calculated by querying dba_tables. The table is analyzed just before calculating any of the values.
To calculate the size of a row manually, I have taken count of a particular partition then divided the size of the partition with that count. The result is showing the size of a single row to be around 1.9MB. This is applicable for most of the rows of that table. This kind of behavior is not observed with other tables residing at the same tablespace as that of this one.
I would be grateful to all of you if this anomaly is explained to me.
Thanks in advance for your valuable time.....
Database: 10.2.0.4
OS: UNIX
Environment: DWH, Production
Regards,
Joy

Hi,
I am having a similar question.
The Verison is
BANNER
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
PL/SQL Release 11.1.0.7.0 - Production
CORE     11.1.0.7.0     Production
TNS for Solaris: Version 11.1.0.7.0 - Production
NLSRTL Version 11.1.0.7.0 - Production
The Blocksize is
SQL> SELECT name,value
FROM v$parameter
WHERE name = 'db_block_size'
NAME VALUE
db_block_size 8192
1 row selected.
The lenght in total of the table is
SQL> select sum(data_length) sum_data_length from dba_tab_columns
where owner = 'SIEBEL' and table_name = 'EIM_ACCNT_UT'
SUM_DATA_LENGTH
27131
1 row selected.
The avg_row_len and the chain_cnt is
SQL> select num_rows,avg_row_len,chain_cnt from dba_tables
where owner = 'SIEBEL' and table_name = 'EIM_ACCNT_UT'
NUM_ROWS AVG_ROW_LEN CHAIN_CNT
173 356 5223
1 row selected.
My questions are:
1.) is the value of 27131 Bytes as records lenght as I counted it, rigth or wrong ?
2.) is it a good advice to define a records of a length of 27131 Bytes whilst we have a DB-Block-Size of 8192 ?
After my point of view, fragmentation there is the consequence of relation record_lenght vs DB-Block-Size.
Best Regards,
rueisel

Similar Messages

  • Export-csv output maximum row size

    Hi all. May I know the maximum row size that can output to .csv using 'export-csv'??

    There's no limit on writing to a CSV file.
    You can try:
    # max rows to export to CSV:
    $i=0
    While ($true) { #Forever
    $i++
    $i
    "Some text" | Export-Csv -Path .\test12.csv -Append -NoTypeInformation
    until you run out of disk space, which may take a while. A million lines using the above script makes a 5 BM file..
    Now reading it back is an entirely different story. Try
    Delimit..
    Sam Boutros, Senior Consultant, Software Logic, KOP, PA http://superwidgets.wordpress.com (Please take a moment to Vote as Helpful and/or Mark as Answer, where applicable)

  • Why there is a huge difference between a row size on a disk based table and a row size in memoptimized table of SQL 2014?

    Hi All,
    I have two table with similar structure and data, one is on disk and the other is in memory. I somehow calculated the difference between a row size of on disk and in memory table and found that the row size of in memory is 700 Bytes more than the disk based
    tables.
    aa

    As others mentioned, memory optimized tables and disk based tables have different structures in SQL Server 2014.
    For memory optimized tables, the number of indexes on table also contribute to the size. You can calculate the exact size of rows and thus the table size using the formula given in the below articles
    Table and Row Size in Memory-Optimized Tables
    Estimate the Size of a Table
    Krishnakumar S

  • Fix Row size in Checkbox LOV

    Hi,
    I have to add the checkbox List of values(LOV) by columns wise so that I have to fix the row size like 3 and have to add
    all the items by columns wise.
    Generally, in apex checkbox LOV display the items as Row wise and after certain columns (that is fixed in the option) items are displyed on the second row.But, I have to add the items on the columns basis so that items can be added column wise menas first colums should have 3 rows then second colums and then thrid. Last column may have one or two items.
    So how to do that. Need your help
    Thanks
    -PK

    I am facing the same problem, any one any fixes?
    I am printing address labels and found that even in PDF output they are not the same size as they should be. In PDF its slightly smaller than the size I set. In word, its much smaller.

  • First Spacebar, now timeline row size... what's going on?

    Hi All
    I started a thread about how suddenly the spacebar began deactivated layers when choosing a layer in the Timing or Project window . Several people gave feedback, and I persisted in trying different things to fix this problem. I subsequently discovered that in the Timeline, the "set row size" bars don't do anything... they are set at the smallest size. Clicking on them is ineffective. If I try and drag one down, it expands then immediately snaps back to small. Any ideas about what's going on here? Strange!
    This is using M 3.0.2 with all the latest upgrades. To repeat the my previous post, I can go to an "unmigrated" user account and all these problems disappear. No deactivation with spacebar, no problem resizing the rows.
    How are things with others?
    John

    Yes Mark I have - the commands are not kept in the preferences apparently.
    John

  • Row size of Structure in CRM ISA

    Hi Guys,
    I want to iterate a Structure on Java side of CRM ISA but I don't know the row size of that structure. Could you please tell me how to get the row size or length of that structure so that I can iterate the structure. Or if there is any other method to iterate or get the multiple values from the structure please tell me.
    Thanks & Regards,
    Sunil Patidar

    Are you trying to iterate through the fields of the structure?  If so there appears to be a .fields() method on the structure object that gives you a JCO.Iterator.  You can try something like this:
    JCO.FieldIterator fields = sapStructure.fields();
    while (fields.hasNextFields()) {
              JCO.Field fld = fields.nextField();
              String fieldName = fld.getName();
              String fieldVal = recordField.getValue();
    I've never tried this before so I don't know if its what you need.

  • Define Row Size in Table creation

    Hi All,
    I want to create a table in my database.
    How to define the rowsize for that table.
    What are the things to be taken care for creating a new table.
    Thanks in Advance
    Cheers,
    Moorthy.GS

    Roughly, rowsize for the table is size of all combined columns in the table. But runtime row size may vary depending on the data in the column.
    e.g. a VARCHAR2(20) field will give 20 units to above addition but data "a" in this field will give 1 unit to above addition
    Message was edited by:
    satishkandi

  • Calculate row size of table with clob

    Hi
    I have a table which has clob data type, how can I calculate size of each row ?

    Mark D Powell wrote:
    What version of Oracle?
    Are you interested in the combined row size of the base table row and the Lob segment or just the row size of the base table row? Or just the lob segment size?
    Are you asking about a specific row or just the average for the entire table?
    Depending on your version of Oracle dbms_stats which calculates the avg_row_len for the base table when lob columns are present incorrectly.
    HTH -- Mark D Powell --I need row size for every record in the table, the table itself is only 1GB, can be combined size or lob size relevant to each record in a table it doesnt matter.
    v11.2
    thanks

  • 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

  • ROW SIZE?

    What is the view for query table row size?
    is the avg_row_len field in dba_tables?
    thanks,

    If the table has a column containing nulls, you might want to use NVLs:
    select
    max(nvl(vsize(empno),0)+
    nvl(vsize(ename),0)+
    nvl(vsize(job),0)+
    nvl(vsize(mgr),0)+
    nvl(vsize(hiredate),0)+
    nvl(vsize(sal),0)+
    nvl(vsize(sal),0)+
    nvl(vsize(deptno),0)) max_size
    from emp
    I ran the original version (without NVL) against a couple different tables and the result was NULL (because vsize returns NULL if the column is null).

  • Row size in WAD

    I have few questions related to WAD.
    1). How can we change the row size?
    2). How can we change the Fonts and color of the 0Analyzer template output?

    Hi sachin,
    If you created a table then select table and right click and give edit table
    Width and Height option is given,change it according to requirements.
    Regarding fonts and color,i need some more details?
    whether you given any heading using html code to your web template?
    Regards
    Prakash

  • Error in table row size

    Can anyone tell me solution for following error.
    Error Desc. : - table row size is larger than 176 cm.
    please reply.

    Hi, and welcome to SDN !
    to help other users to better understand your problem you should try to give more details about the context in which the error occurred.
    Moreover, are you sure this is the right section (ABAP Objects) for this kind of problems?
    It seems to be a printout problem, but im not sure
    Best regards,
    Manuel

  • Row Size Error

    When I am attempting to render my composition I continue to get an error: "After Effects error: row size too large (131072) (7 :: 53)."
    What does this mean and how to I fix/prevent it? I really need to get this figured out!!!
    Thanks,
    A

    I just ran into this error when I tried importing an Illustrator file. No restarting or reinstalling worked for After Effects CC(2014) on my Mac Book. What however helped is exporting that Illustrator file into a .psd and importing that file instead. It worked fine after.
    Additionally, I was importing Illustrator files earlier this morning without a problem.

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

  • Sysstatistics row size

    Hi
    I'm trying to set up regular update statics. Due to some problems we had in the past, I have to first make a backup of the statistics, prior to the update, and I also want to do update statistics on backup server and transfer them to the primary server (we have a warm-standby enviroment).
    Now, I know I can use optdiag to do the backup and transfering between servers, but that requires sso_role, which I don't have.
    So, I wanted to make a table copy of sysstatistics, (named sysstatistics_backup) and system procedure, that would delete sysstatistics and insert there data from sysstatistics_backup, so I could use it either for loading old statistics or to transfer them to primary server (I can get our sso to turn on allow updates to system tables when i create the proc, but I can't make him to transfer the stats via optdiag every week).
    But the first hurdle, when i do
    select * into sysstatistics_backup from sysstatistics
    i get
    Warning: Row size (20706 bytes) could exceed row size limit, which is 1964 bytes.
    and when i compare the data in the two tables, they are not the same.
    My question : how come the rows in sysstatistics are wider than server page and can I somehow achieve the same thing for my backup table?
    Or, am I doing the whole thing wrong and there is some other way to do, what I want to do?
    Adaptive Server Enterprise/15.0.3/EBF 17770 ESD#4/P/x86_64/Enterprise Linux/ase1503/2768/64-bit/FBO/Thu Aug 26 09:54:27 2010
    2k page size
    Thanks
    Karel

    You don't have to worry about the warning.  The table does not actually contain any rows that are wider than allowed.  The warning is just saying that the table definition contains some variable-length columns that can't all be filled to their full length with data.  As a very simplified example, if the page size is 2k, you can create a table with 5 varchar(1024) columns, but you are still limited to 2k of data distributed across the 5 columns - you could have 2 at 1024 bytes, of 4 at 512, or 1 with 1024 and 4 with 205 bytes each.   (real values are somewhat smaller due to overhead on the page, but that is the general idea.).   If you try to insert more data than the row can really hold, you will get an actual error and the insert will fail and roll back.
    -bret

Maybe you are looking for

  • Connecting my home dvd player to my iMac

    Is this at all possible? I don't use my television for anything but watching dvds. I would love to be able to get rid of it and just use my iMac for watching dvds. I have a code-free dvd player and a collection that is split between region 1 and regi

  • SQL expression field is not displayed on the page header if no records

    Hello I'm creating a quite simple report. In this report I've got a SQL expression field which returns a DateTime I display this field on the page header section. Everything is working fine except when my principal query doesn't return any records my

  • HR ABAP FAQs - Part 4 (ans needed)

    Hi, 1.How to generate Absence Quotas? 2.What are the Characteristics of a wage type? 3.What is the advantage of a schema 4.How to transport a variant for a report to production System 5.  What are the activities needs to be completed before transferr

  • Maintain payment program in Transaction FBZP

    How to use Payment medium workbench in Payment method/Country insted of assigning customised program in option (use classic payment medium prgrams) in transaction FBZP for F110. I need to write into a credit file from transaction f110 in printout/dat

  • Call java class from VB

    Hi all experts, I want to package the java class as dll so that I could call them from VB in an server without java installed. Is it possible ? I have search a lot of information but all of them require the deploy server java installed such as javare