To find top tables in size to archive a database

Dear Sir,
I have to archive top 20 tables of our production database, for this can anybody please provide me some documents/links so i can accomplish my task.
Regards,
Mushtaq

To see the tables sizes...
Just go to DB02 -> Detailed Analisys -> Choose all object -> Order by SIze. 
Now for archiving... Read the documentation available in SAP Marketplace. Archiving is not as simple as throw your data in a separate repository you need to analize why?, how much data?, retention periods?, benefits... etc.
Also, read this overview,
http://help.sap.com/SAPHELP_NW04S/helpdata/EN/8f/f3b142304cc511e10000000a1550b0/frameset.htm
Regards
Juan

Similar Messages

  • What table column size is needed to accomodate Unicode characters

    Hi guys,
    I have encounter something which i dont understand and i hope gurus here will shed some light on me.
    I am running a non-unicode database and i decided to port the data over to a unicode database.
    So
    1) i export the schema out --> data.dmp
    2) then i create the unicode database + create a user
    3) then i import the schema into the database
    during the imp i can see that character conversion will take place.
    During importing of data into the unicode database
    I encounter some error
    saying column size is too small
    so i went to check the row that has the column value that is too large to fit in the table.
    I realise it has some [][][][] data.. so i went to the live non-unicode database and find the row. Indeed it has some [][][][] rubbish data which i feel that someone has inserted other language then english into the database.
    But regardless,
    I went to modify the column size to a larger size, now the row can be accommodated. However the data is still [][][].
    q1) why so ? since now my database is unicode, during the import, this column data [][][] should be converted to unicode already but i still have problem seeing what language it is.
    q2) why at the non-unicode database, the [][][] data can fit into the table column size, but on unicode database, the same table column size need to be increase ?
    q3) while doing more research on unicode, it was said that unicode character takes up 2 byte per character. Alot of my table data are exactly the same size of the table column size.
    E.g Name VARCHAR2(5);
    value - 'Peter'
    Now if converting to unicode, characters will take 2byte instead of 1, isnt 'PETER' going to take up 10byte ( 2 byte per character ),
    why is it that i can still accomodate the data into the table column ?
    q4) now with unicode database up, i will be supporting different language characters around the world. How big should i set my column size to ? the longest a name can get ? or ?
    Thanks guys!

    /// does oracle automatically "look" at the each and individual characters in a word and determine how much byte it should take.
    Characters usually originate from a keyboard, which has an associated keyboard layout and an associated character set encoding (a.k.a code page, a.k.a. encoding). This means, the keyboard driver knows that when a key with a letter "á" on it is pressed on a French keyboard, and the associated character set encoding is MS Code Page 1252 (Oracle name WE8MSWIN1252), then one byte with the value 225 is generated. If the associated character set encoding is UTF-16LE (standard internal Windows encoding), two bytes 225 and 0 are generated. When the generated bytes travel through APIs, they may undergo character set conversions from one encoding to another encoding. The conversion algorithms use translation tables to find out how to translate given byte sequence from one encoding to another encoding. In case of translation from WE8MSWIN1252 to AL32UTF8, Oracle will know that the byte sequence resulting from conversion of the code 225 should be 195 followed by 161. For a Chinese characters, for example when converting it from ZHS16GBK, Oracle knows the resulting sequence as well, and this sequence is usually 3 bytes.
    This is how AL32UTF8 data gets into a database. Now, when Oracle processes a multibyte string, and needs to look at individual characters, for example to count them with LENGTH, or take a substring with SUBSTR, it uses information it has about the structure of the character set. Multibyte character sets are of two type: fixed-width and variable-width. Currently, Oracle supports only one fixed-width multibyte character set in the database: AL16UTF16, which is Oracle's name for Unicode UTF-16BE encoding. It supports this character set for NCHAR/NVARCHAR2/NCLOB data types only. This character set uses two bytes per each character code. To find the next code, 2 is simply added to the string pointer.
    All other Oracle multibyte character sets are variable-width character sets, including AL32UTF8. In most cases, the length of each character code can be determined by looking at its first byte. In AL32UTF8, the number of 1-bits in the most significant positions in the first byte before the first 0-bit tells how many bytes a character has. 0 such bits means 1 byte (such codes are identical to 7-bit ASCII), 2 such bits mean two bytes, 3 bits mean 3 bytes, 4 bits mean four bytes. 1 bit (e.g. the bit sequence 10) starts each second, third or fourth byte of a code.
    In other ASCII-based multibyte character sets, the number of bytes is usually determined by the value range of the first byte. Bytes below 128 means a one-byte code, bytes above 128 begin a two- or three-byte sequence, depending on the range.
    There are also EBCDIC-based (mainframe) multibyte character sets, a.k.a shift-sensitive character sets, where a sequence of two-byte codes is introduced by inserting the SO character (code 14=0x0e) and ended by inserting the SI character (code 15=0x0f). There are also character sets, like ISO-2022-JP, which use more complicated byte sequences to define the length and meaning of byte sequences but Oracle supports them only in limited number of places.
    /// e.g i have a word with 4 character. the 3rd character will be a chinese character..the rest are ascii character
    /// will oracle use 4 byte per character regardless its ascii(english) or chinese
    No.
    /// or it will use 1 byte per english character then 3 byte for the chinese character ? e.g.total - 6 bytes taken
    It will use 6 bytes.
    Thnx,
    Sergiusz

  • How to find all table and views in the database

    Hi,
    I want to find all table and view name form the database can u tell me syntax.
    i.e. I am able to find out table name and view name in sql server ...like
    FOR VIEW :
    select table_name from information_schema.views where table_name not like 'sys%'
    FOR TABLE :
    select table_name from information_schema.tables where table_name not like 'sys%' and table_type='Base table'
    Thanks & Regards,
    Shirish

    Hello,
    Take a look at "dba_tables" and "dba_views" both of which are documented here:
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14237/toc.htm
    - Mark

  • SQL query to find top 5 users having more rows/data in table

    Dear experts,
    OS = HP-UX
    Database = Oracle 9.2.0.8
    AC users = 600
    Ex:-
    select * from all_users where username like 'AC%';
    AC_1
    AC_2
    AC_3
    AC_4
    AC_5
    AC_6
    AC_.
    AC_.
    AC_.
    AC_600
    Each AC user having same tables INCOMING, OUTGOING
    Now i need to find top 5 users having more rows/data in INCOMING , OUTGOING tables. I tried this:
    SQL>conn AC_1/pwd
    select 'select count(*) from '||table_name||';' from user_tables;
    But i get max counts info only for this AC_1 user , however, i need top 5 users having more rows/max counts query.
    Thank you,

    source : oracle forums
    May be , this one.. not tested though.
    Before doing this you need to have select_catalog_role
    WITH tmp
         AS (SELECT owner,
                    table_name,
                    TO_NUMBER (
                       EXTRACTVALUE (
                          xmltype (
                             DBMS_XMLGEN.getxml (
                                'select /*+ PARALLEL*/ count(*) c from '
                                || table_name)),
                          '/ROWSET/ROW/C'))
                       Cnt
               FROM dba_tables
              WHERE 1 = 1 AND table_name IN ('INCOMING', 'OUTGOING')),
         tmp1
         AS (SELECT a.*,
                    MAX (cnt)
                       OVER (PARTITION BY a.table_name ORDER BY a.cnt DESC)
                       maxcnt
               FROM tmp a)
    SELECT DISTINCT a.*
      FROM tmp a, tmp1 b
    WHERE a.cnt = b.maxcnt AND a.table_name = b.table_name;

  • Urgent: Huge diff in total redo log size and archive log size

    Dear DBAs
    I have a concern regarding size of redo log and archive log generated.
    Is the equation below is correct?
    total size of redo generated by all sessions = total size of archive log files generated
    I am experiencing a situation where when I look at the total size of redo generated by all the sessions and the size of archive logs generated, there is huge difference.
    My total all session redo log size is 780MB where my archive log directory size has consumed 23GB.
    Before i start measuring i cleared up archive directory and started to monitor from a specific time.
    Environment: Oracle 9i Release 2
    How I tracked the sizing information is below
    logon as SYS user and run the following statements
    DROP TABLE REDOSTAT CASCADE CONSTRAINTS;
    CREATE TABLE REDOSTAT
    AUDSID NUMBER,
    SID NUMBER,
    SERIAL# NUMBER,
    SESSION_ID CHAR(27 BYTE),
    STATUS VARCHAR2(8 BYTE),
    DB_USERNAME VARCHAR2(30 BYTE),
    SCHEMANAME VARCHAR2(30 BYTE),
    OSUSER VARCHAR2(30 BYTE),
    PROCESS VARCHAR2(12 BYTE),
    MACHINE VARCHAR2(64 BYTE),
    TERMINAL VARCHAR2(16 BYTE),
    PROGRAM VARCHAR2(64 BYTE),
    DBCONN_TYPE VARCHAR2(10 BYTE),
    LOGON_TIME DATE,
    LOGOUT_TIME DATE,
    REDO_SIZE NUMBER
    TABLESPACE SYSTEM
    NOLOGGING
    NOCOMPRESS
    NOCACHE
    NOPARALLEL
    MONITORING;
    GRANT SELECT ON REDOSTAT TO PUBLIC;
    CREATE OR REPLACE TRIGGER TR_SESS_LOGOFF
    BEFORE LOGOFF
    ON DATABASE
    DECLARE
    PRAGMA AUTONOMOUS_TRANSACTION;
    BEGIN
    INSERT INTO SYS.REDOSTAT
    (AUDSID, SID, SERIAL#, SESSION_ID, STATUS, DB_USERNAME, SCHEMANAME, OSUSER, PROCESS, MACHINE, TERMINAL, PROGRAM, DBCONN_TYPE, LOGON_TIME, LOGOUT_TIME, REDO_SIZE)
    SELECT A.AUDSID, A.SID, A.SERIAL#, SYS_CONTEXT ('USERENV', 'SESSIONID'), A.STATUS, USERNAME DB_USERNAME, SCHEMANAME, OSUSER, PROCESS, MACHINE, TERMINAL, PROGRAM, TYPE DBCONN_TYPE,
    LOGON_TIME, SYSDATE LOGOUT_TIME, B.VALUE REDO_SIZE
    FROM V$SESSION A, V$MYSTAT B, V$STATNAME C
    WHERE
    A.SID = B.SID
    AND
    B.STATISTIC# = C.STATISTIC#
    AND
    C.NAME = 'redo size'
    AND
    A.AUDSID = sys_context ('USERENV', 'SESSIONID');
    COMMIT;
    END TR_SESS_LOGOFF;
    Now, total sum of REDO_SIZE (B.VALUE) this is far less than archive log size. This at time when no other user is logged in except myself.
    Is there anything wrong with query for collecting redo information or there are some hidden process which doesnt provide redo information on session basis.
    I have seen the similar implementation as above at many sites.
    Kindly provide a mechanism where I can trace which user is generated how much redo (or archive log) on a session basis. I want to track which all user/process are causing high redo to generate.
    If I didnt find a solution I would raise a SR with Oracle.
    Thanks
    [V]

    You can query v$sess_io, column block_changes to find out which session generating how much redo.
    The following query gives you the session redo statistics:
    select a.sid,b.name,sum(a.value) from v$sesstat a,v$statname b
    where a.statistic# = b.statistic#
    and b.name like '%redo%'
    and a.value > 0
    group by a.sid,b.name
    If you want, you can only look for redo size for all the current sessions.
    Jaffar

  • Need help for finding objects impacted by size change for an infoobject

    hi all,
    need help for finding objects impacted by size change
    for xxx infoobject, due to some requirements, the size to be changed from
    char(4) to char(10), in the source database tables as well as adjustment
    to be done in BI side.
    this infoobject xxx is nav attribute of YYY as well as for WWW
    infoobjects. and xxx is loaded from infopkg for www infoobject load.
    now that i have to prepare an impact analysis doc for BI side.
    pls help me with what all could be impacted and what to be done as a
    solution to implement the size change.
    FYI:
    where used list for xxx infoobject - relveals these object types :
    infocubes,
    infosources,
    tranfer rules,
    DSO.
    attribute of characteristic,
    nav attribute,
    ref infoobject,
    in queries,
    in variables

    Hi Swetha,
    You will have to manually make the table adjustments in all the systems using SE14 trans since the changes done using SE14 cannot be collected in any TR.
    How to adjust tables :
    Enter the table name in SE14. For ex for any Z master data(Say ZABCD), master data table name would be /BIC/PZABCD, text table would be /BIC/TZABCD. Similarly any DSO(say ZXYZ) table name would be /BIC/AZXYZ00 etc.
    Just enter the table name in SE14 trans --> Edit --> Select the radio button "Save Data" --> Click on Activate & adjust database table.
    NOTE : Be very careful in using SE14 trans since there is possibility that the backend table could be deleted.
    How to collect the changes in TR:
    You can collect only the changes made to the IO --> When you activate, it will ask you for the TR --> Enter the correct package name & create a new TR. If it doesn't prompt you for TR, just goto Extras --> Write transport request from the IO properties Menu screen. Once these IO changes are moved successfully, then the above proceduce can be followed using SE14 trans.
    Hope it helps!
    Regards,
    Pavan

  • Bug in the table selection size

    An annoying bug in Table controls (LV 8.5/Windows XP/ MacOS 10.5)
    When dealing with whole rows/colums (click in the row/column header), the Table Selection Size is always wrong :
    when columns are selected, the overall table size is returned,
    when rows are selected, the right row number is returned, but the column number is set to 1 !..
    The attached vi shows the problem.
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Table select bug.vi ‏17 KB

    Since this bug was a showstopper for my application, I spent some time trying to find a workaround...
    Found one by accident. I don't understand why it works : it should not do anything :
    Detect a mouseUp event in the row/column headers, then read the Selection start position and write it back in the... Selection start position (ie : do nothing) ! That's enough to get the right value out of the Selection size...
    The attached vi illustrate the above story.
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Table select bug.vi ‏28 KB

  • Find the Table of Content in Pdf

    Hi,
    How can i find the Table of Content in a particular PDF?.
    Is this possible in itext?
    Thanks,
    nithi.

    When converting a FrameMaker book to PDF, the PDF may include bookmarks for additional paragraph tags (on top of those specified in the book's PDF setup)
    The workaround is to specify PDF Setup in the individual file. For example, open your TOC, select Format > Document > PDF Setup, and make sure that the Heading1TOC, Heading2TOC... paragraph tags are not included in the bookmark setup.
    Shlomo Perets
    MicroType * http://www.microtype.com
    FrameMaker training & consulting * FM-to-Acrobat TimeSavers
    "Improve Your FrameMaker Skills" live web-based training sessions

  • Why size of archive log file increasing in merge clause

    my database is running in archive log mode.
    someone is running oracle merge statement. still it is running.
    He will issue commit after the operation.
    in that period redolog file increasing now.
    my question is why size of archive log file increasing with redolog file.
    i know that after commit archive log file should generate.(may be it is wrong).
    please suggest........
    Edited by: 855516 on Mar 13, 2012 11:18 AM

    855516 wrote:
    my database is running in archive log mode.
    someone is running oracle merge statement. still it is running.
    He will issue commit after the operation.
    in that period redolog file increasing now.
    my question is why size of archive log file increasing with redolog file.
    i know that after commit archive log file should generate.(may be it is wrong). No this is not correct that after commit archive log will generate....You know merge statement causes the insert (if data not present already) or update if database is present.. Obviously these operation will generate lots of redo if the amount of data been processed is high.
    If you feel that this operation is causing excessive of redo then root cause analysis should be done...
    For that use Logminer (excellent tool to provide segment level breakdown of redo size). V$logmnr_contens has columns redo block and redo byte address associated with the current redo
    change
    There are some gudlines in order to reduce redos( which may vary in any environment)
    1) check if there are unwanted indexes being used in tables which are refereed in merge. If yes then remove those could bring down the redo
    2) Use global temporary tables to reduce redo (if there is a need to keep data only temporarily in a session)
    3) Use nologging if possible (but see its implications)
    Hope this helps

  • Sys tables from flashback data archive?

    Hi,
    I am prototyping flashback data archive and I have been following some tutorials.
    When I query
    user_flashback_archive_tables
    I can see the table for which I have configured FBDA. I can see also the name of the History table, like SYS_FBA_HIST_xxxxx (xxxxxx being the object_id of the table).
    But I just cannot find the table in USER_TABLES or USER_TAB_PARTITIONS.
    The history seems to be getting stored... The sql-developer display the history in the "flashback" tab. But why aren't the SYS_FBA_HIST_xxxx tables getting created?
    (I am using 11gR2 running on EL5 Linux)

    The SYS_FBA_xxx belongs to SYS user. To be able to see them you must query DBA_TABLES and have SELECT privilege on DBA_TABLES or role SELECT_CATALOG_ROLE.You can also just try to connect as SYS:
    SQL> select table_name from dba_tables where table_name like 'SYS_FBA%';
    TABLE_NAME
    SYS_FBA_HIST_73563
    SYS_FBA_TCRV_73563
    SYS_FBA_DDL_COLMAP_73563
    SYS_FBA_DL
    SYS_FBA_USERS
    SYS_FBA_PARTITIONS
    SYS_FBA_TRACKEDTABLES
    SYS_FBA_BARRIERSCN
    SYS_FBA_TSFA
    SYS_FBA_FA
    10 rows selected.Edited by: P. Forstmann on 7 oct. 2010 20:52

  • How can i find the tables which dont contain any data under my database ?

    Can you please suggest me a way to find the tables which dont contain any data under my database ?
    Regards,
    Renu

    Can you please suggest me a way to find the tables which dont contain any data under my database ?
    For the schema that you've logged in to, you could do something like this:
    test@XE>
    test@XE> @test
    test@XE> --
    test@XE> set serveroutput on size 1000000
    test@XE>
    test@XE> declare
      2    n_count  number;
      3  begin
      4    for rec in (select object_name from user_objects
      5                where object_type = 'TABLE')
      6    loop
      7      execute immediate 'select count(*) from '||rec.object_name
      8      into n_count;
      9      if (n_count = 0) then
    10        dbms_output.put_line(rec.object_name);
    11      end if;
    12    end loop;
    13  end;
    14  /
    BONUS
    RUN_STATS
    PL/SQL procedure successfully completed.
    test@XE>
    test@XE>For the other schemas, you could query from dba_objects and probably display the owner as well.
    HTH
    isotope

  • Lock table cell size

    Hello,
    I am creating a web form and want everything to line up.  I am looking on how I can lock a table cell size.  I simply clicked on the <td> selector and typed 70 in the Width, but it readjusts.
    Thank you.

    Hi melanie,
    here the whole source code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Black Oak Sign Up</title>
    <!-- Link to the style sheet -->
    <link href="style.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    #wrapper {
    background-image: url(images/GurlBOC.gif);
    background-repeat: no-repeat;
    margin-top: 0px;
    margin-right: auto;
    margin-bottom: 0px;
    margin-left: auto;
    height: 600px;
    width: 800px;
    position: relative;
    #body {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 12px;
    position: relative;
    height: 300px;
    width: 525px;
    padding-top: 330px;
    margin-right: auto;
    margin-bottom: 0px;
    margin-left: auto;
    float: none;
    border-top-color: #FFF;
    border-right-color: #FFF;
    border-bottom-color: #FFF;
    border-left-color: #FFF;
    -->
    </style>
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
    </head>
    <body bgcolor="#c8cacb" marginheight="0" marginwidth="0">
    <div id="wrapper">
      <div id="body">
        <form id="form1" name='form1' method='POST' action="">
          <table width="500" border="0" cellpadding="0">
            <tr>
              <td width="20%">First*</td>
              <td align="left"><span id="sprytextfield1">
                <input type="text" name="FirstNAME" id="FirstNAME" />
              <span class="textfieldRequiredMsg"></span></span></td>
            </tr>
          </table>
          <table width="500" border="0" cellpadding="0">
            <tr>
              <td width="20%">Last*</td>
              <td align="left"><span id="sprytextfield2">
                <input type="text" name="LastADD1" id="LastADD1" />
              <span class="textfieldRequiredMsg"></span></span></td>
            </tr>
          </table>
          <table width="500" border="0" cellpadding="0">
            <tr>
              <td width="20%">Steet 1*</td>
              <td width="235" align="left"><span id="sprytextfield3">
                <input name="STEET1" type="text" id="STEET1" size="35" />
              </span></td>
              <td width="109" align="right">Street 2 </td>
              <td width="49" align="right"><div align="center">
                <input name="Steet2ADD2" type="text" id="Steet2ADD2" size="5" />
              </div></td>
            </tr>
          </table>
          <table width="500" border="0" cellpadding="0">
            <tr>
              <td width="20%">City*</td>
              <td width="151" align="left"><span id="sprytextfield4">
                <input type="text" name="city" id="city" />
              </span></td>
              <td width="41" align="right">ST*</td>
              <td width="37"><span id="sprytextfield5">
                <input name="state" type="text" id="state" size="2" maxlength="2" />
                <span class="textfieldRequiredMsg"></span></span></td>
              <td width="111" align="right">Zip*</td>
              <td width="49" align="right"><div align="center"><span id="sprytextfield6">
                <input name="zip" type="text" id="zip" size="5" maxlength="5" />
              </span></div></td>
            </tr>
          </table>
          <table width="500" border="0" cellpadding="0">
            <tr>
              <td width="20%">Email*</td>
              <td align="left"><span id="sprytextfield7">
                <input name="email" type="text" id="email" size="35" />
              </span></td>
            </tr>
          </table>
          <table width="500" border="0" cellpadding="0">
            <tr>
              <td width="20%">Birthday*</td>
              <td align="left"><span id="sprytextfield8">
                <input name="DayBirth" type="text" id="DayBirth" maxlength="10" />
              </span></td>
            </tr>
          </table>
          <p>* A value is required</p>
        </form>
      </div>
    </div>
    <script type="text/javascript">
    <!--
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
    var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");
    var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3");
    var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4");
    var sprytextfield5 = new Spry.Widget.ValidationTextField("sprytextfield5");
    var sprytextfield6 = new Spry.Widget.ValidationTextField("sprytextfield6");
    var sprytextfield7 = new Spry.Widget.ValidationTextField("sprytextfield7");
    var sprytextfield8 = new Spry.Widget.ValidationTextField("sprytextfield8");
    //-->
    </script>
    </body>
    </html>
    HCH,
    Hans-G.
    updated: hans-g.

  • Size of archived logs

    Hi,
    1- how can we define size of archived logs in 10g R2 ?
    2- how can we define size of archived logs in 8.1.7?
    Thank you.

    You can not drop any logfile member which belongs to a current log group. to drop any member from non current group is
    alter database drop logfile member 'C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\REDO02A.LOG';
    You can add one member in the following way as
    alter database add logfile member 'C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\REDO02A.LOG' to group 2;
    But one thing all these are available in Oracle docs and you better find yourself to enhance your knowledge.
    Thanks

  • Finding top20 tables grown recently.

    Hi,
    How to find the top tables growing per week and how much are they growing.

    Hi,
    If you're using Oracle 10g:
    You may construct a query to both DBA_OBJECTS and DBA_HIST_SEG_STAT. Unfortunately the HIST timeframe starts at instance startup
    Use SPACE_USED_DELTA column from DBA_HIST_SEG_STAT.
    If you don't use Oracle 10g or need frequent sampling intervals: take snapshots of DBA_SEGMENTS
    of course, order by BLOCKS or SPACE (bytes) descending...
    Regards
    Ignacio
    http://oracledisect.blogspot.com

  • Finding Avg Row Length size

    Hi All,
    How we can find Avg row length size of a table, without inserting data into a table. This is required to basically estimate table size (roughly). We might need to this for at least 100+ tables.
    regards,
    vara

    The average row length depends on the data you are inserting into the table.
    You can easily compute an approximation of the max row length from Oracle’s data dictionary:
    select
      table_name ,
      sum(data_length)
    from
      user_tab_columns
    group by
      table_nameLet’s say we have a table with a number(10) and a varchar2(1000) column. For a data set where the varchar2 column contains at least 900 characters we would get average row size of 900+. For the same table, but with another data set where the varchar2 column has fewer than 50 characters, we would get average row size of less than 100.
    Iordan Iotzov
    http://iiotzov.wordpress.com/

Maybe you are looking for

  • Remove Address Space in Crystal Layout

    Hello Experts, One of our customers are using Crsytal Report Layouts for Invoice. The layout currently grabs Address, Address2 fields from Logistics Tab of Invoice Document. Here in this case ShipTo and BillToAddress can contain a space in the lines.

  • Can I attach a scanned document to a comment?

    I am trying to add a scanned receipt to a comment.  Don't want to see it when printing.

  • Random stalling

    Evening, mornin' all, this is the first post from a somewhat frustrated switcher. Didn´t know in what forum to post. Since the problem arises in most applications I figures this is the right place. My 2 month old mac mini´s OS is acting weird. I firs

  • Elements 6.0 insalled but will not launcy

    Installed photoshop elements 6.0 from Adobe via internet. After installing, product (elements) will not launch. system Vista Home Premium Can anyone help me out - Adobe refuses to provide support!!!!

  • Put two of yourself in one shot

    So how do i put to of me in one shot?