Resource consumption for increasing column size

Hello,
DB: 11.2.0.1.0
We need to increase the size of a column in the huge table (~ 400 Gb) from NUMBER(9) to NUMBER(18). Could you tell me what's the internals of the command
alter table foo modify (bar NUMBER (18))Will it change the dictionary only, or it must scan the table block by block to make changes?
Thank you in advance,
Constantine

rp0428 wrote:
>
Thats where i was pointing... existing column values from existing row(s) are checked .. isnt it ...
>
No - that is wrong for OPs use case.
A change from NUMBER(9) to NUMBER(18) is a dictionary-only change.
Existing data DOES NOT need to be checked at all since it is impossible for existing data to conform to NUMBER(9) but not conform to NUMBER(18).Thank you very much rp0428. You're right. Karan just tried to turn my attention to all possible details of problem although I've stated at the begin of discussion that I need to increase the precision.

Similar Messages

  • Method_opt = 'FOR ALL COLUMNS SIZE REPEAT'

    Hi all Gurus,
    We have a script to take statitics (see below), it runs every day and All the tables has de "MONITORING" option in a 9.2.0.5 database.
    My question is concern to "method_opt =>'FOR ALL COLUMNS SIZE REPEAT',OPTIONS=>'GATHER EMPTY',estimate_percent =>5);
    So, for a new table with columnns and indexes (with "monitoring" option), will it create statistics or histograms statistics when the script run for the first time on the table??? and then, will continue with/without histograms???
    begin
    DBMS_STATS.FLUSH_DATABASE_MONITORING_INFO();
    DBMS_STATS.GATHER_DATABASE_STATS(DEGREE=>4,GRANULARITY=>'ALL',CASCADE=>TRUE,method_opt =>'FOR ALL COLUMNS SIZE REPEAT',OPTIONS=>'GATHER EMPTY',estimate_percent =>5);
    DBMS_STATS.GATHER_DATABASE_STATS(estimate_percent =>5,OPTIONS=>'GATHER STALE',method_opt =>'FOR ALL COLUMNS SIZE REPEAT',degree => 4, cascade=>true,STATTAB=>'TABLA_ESTADISTICAS',STATID=>to_char(sysdate,'yymmdd'),STATOWN=>'OPER');
    end;
    Regards,

    Hi all Gurus,
    We have a script to take statitics (see below), it runs every day and All the tables has de "MONITORING" option in a 9.2.0.5 database.
    My question is concern to "method_opt =>'FOR ALL COLUMNS SIZE REPEAT',OPTIONS=>'GATHER EMPTY',estimate_percent =>5);
    So, for a new table with columnns and indexes (with "monitoring" option), will it create statistics or histograms statistics when the script run for the first time on the table??? and then, will continue with/without histograms???
    begin
    DBMS_STATS.FLUSH_DATABASE_MONITORING_INFO();
    DBMS_STATS.GATHER_DATABASE_STATS(DEGREE=>4,GRANULARITY=>'ALL',CASCADE=>TRUE,method_opt =>'FOR ALL COLUMNS SIZE REPEAT',OPTIONS=>'GATHER EMPTY',estimate_percent =>5);
    DBMS_STATS.GATHER_DATABASE_STATS(estimate_percent =>5,OPTIONS=>'GATHER STALE',method_opt =>'FOR ALL COLUMNS SIZE REPEAT',degree => 4, cascade=>true,STATTAB=>'TABLA_ESTADISTICAS',STATID=>to_char(sysdate,'yymmdd'),STATOWN=>'OPER');
    end;
    Regards,
    {code}
    I have taken following explanation from documentation:
    {code}
    METHOD_OPT - The value controls column statistics collection and histogram creation. It accepts either of the following options, or both in combination:
    FOR ALL [INDEXED | HIDDEN] COLUMNS [size_clause]
    FOR COLUMNS [size clause] column|attribute [size_clause] [,column|attribute [size_clause]...]
    size_clause is defined as size_clause := SIZE {integer | REPEAT | AUTO | SKEWONLY}
    column is defined as column := column_name | (extension)
    - integer : Number of histogram buckets. Must be in the range [1,254].
    - REPEAT : Collects histograms only on the columns that already have histograms.
    - AUTO : Oracle determines the columns to collect histograms based on data distribution and the workload of the columns.
    - SKEWONLY : Oracle determines the columns to collect histograms based on the data distribution of the columns.
    - column_name : name of a column
    - extension : can be either a column group in the format of (column_name, colume_name [, ...]) or an expression
    The default is FOR ALL COLUMNS SIZE AUTO.
    {code}
    GATHER EMPTY: Gathers statistics on objects which currently have no statistics. Return a list of objects found to have no statistics.
    Reference: http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28419/d_stats.htm
    Please go through the link, it will give you more clear picture on DBMS_STATS.
    Regards,
    S.K.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Gather_table_stats with a method opt of "for all indexed columns size 0"

    I have 9 databases I support that contain the same structure, and very similar data concentrations. We are seeing inconsistent performance in the different databases due to bind variable peeking.. I have tracked it down to the Min and Max values that are gathered during the analyze. I analyze from one cluster, and export/import those statistics into the other clusters.. I then go about locking down the stats gathered. Some of the statistics are on tables that contain transient data (the older data is purged, and new data gets a new PK sequence number).
    Since I am gathering statistics with a 'FOR ALL INDEXED COLUMNS SIZE 1', a min and max value are grabbed. This value is only appropriate for a short period of time, and only for a specific database. I do want oracle to know the density to help calculate, but I don't want cardinality based on whether the current bind values fall in this range..
    Example
    COLUMN PK
    When I analyze the min is 1 and max is 5. I then let the database run, and the new min is 100 and max is 105.. same number of rows, but different min/max. At first a select * from table where pk>=1 and pk <=5 would return a cardinality of 5.. Later, a seelct * from tables where pk>=100 and pk<=105 would return a cardinaility 1.
    Any ideas how to avoid this other than trying set min and max to something myself (like min =1 max = 99999999). ??

    MarkDPowell wrote:
    The Oracle documentation on bind variable peeking said it did not peek without histograms and I cannot remember ever seeing on 9.2 where the trace showed otherwise. Mark,
    see this simple test case run on 9.2.0.8. No histograms, but bind variable peeking, as you can see that the EXPLAIN PLAN output generated by AUTOTRACE differs from the estimated cardinality of the actual plan used at runtime.
    Which documentation do you refer to?
    SQL>
    SQL> alter session set nls_language = 'AMERICAN';
    Session altered.
    SQL>
    SQL> drop table bind_peek_test;
    Table dropped.
    SQL>
    SQL> create table bind_peek_test
      2  as
      3  select
      4             100 as n1
      5           , cast(dbms_random.string('a', 20) as varchar2(20)) as filler
      6  from
      7             dual
      8  connect by
      9             level <= 1000;
    Table created.
    SQL>
    SQL> exec dbms_stats.gather_table_stats(null, 'bind_peek_test', method_opt=>'FOR ALL COLUMNS SIZE 1')
    PL/SQL procedure successfully completed.
    SQL>
    SQL> variable n number
    SQL>
    SQL> variable n2 number
    SQL>
    SQL> alter system flush shared_pool;
    System altered.
    SQL>
    SQL> exec :n := 1; :n2 := 50;
    PL/SQL procedure successfully completed.
    SQL>
    SQL> set autotrace traceonly
    SQL>
    SQL> select * from bind_peek_test where n1 >= :n and n1 <= :n2;
    no rows selected
    Execution Plan
       0      SELECT STATEMENT Optimizer=CHOOSE (Cost=2 Card=1000 Bytes=24
              000)
       1    0   FILTER
       2    1     TABLE ACCESS (FULL) OF 'BIND_PEEK_TEST' (Cost=2 Card=100
              0 Bytes=24000)
    Statistics
            236  recursive calls
              0  db block gets
             35  consistent gets
              0  physical reads
              0  redo size
            299  bytes sent via SQL*Net to client
            372  bytes received via SQL*Net from client
              1  SQL*Net roundtrips to/from client
              4  sorts (memory)
              0  sorts (disk)
              0  rows processed
    SQL>
    SQL> set autotrace off
    SQL>
    SQL> select
      2             cardinality
      3  from
      4             v$sql_plan
      5  where
      6             cardinality is not null
      7  and      hash_value in (
      8    select
      9            hash_value
    10    from
    11            v$sql
    12    where
    13            sql_text like 'select * from bind_peek_test%'
    14    );
    CARDINALITY
              1
    SQL>
    SQL> alter system flush shared_pool;
    System altered.
    SQL>
    SQL> exec :n := 100; :n2 := 100;
    PL/SQL procedure successfully completed.
    SQL>
    SQL> set autotrace traceonly
    SQL>
    SQL> select * from bind_peek_test where n1 >= :n and n1 <= :n2;
    1000 rows selected.
    Execution Plan
       0      SELECT STATEMENT Optimizer=CHOOSE (Cost=2 Card=1000 Bytes=24
              000)
       1    0   FILTER
       2    1     TABLE ACCESS (FULL) OF 'BIND_PEEK_TEST' (Cost=2 Card=100
              0 Bytes=24000)
    Statistics
            236  recursive calls
              0  db block gets
            102  consistent gets
              0  physical reads
              0  redo size
          34435  bytes sent via SQL*Net to client
           1109  bytes received via SQL*Net from client
             68  SQL*Net roundtrips to/from client
              4  sorts (memory)
              0  sorts (disk)
           1000  rows processed
    SQL>
    SQL> set autotrace off
    SQL>
    SQL> select
      2             cardinality
      3  from
      4             v$sql_plan
      5  where
      6             cardinality is not null
      7  and      hash_value = (
      8    select
      9            hash_value
    10    from
    11            v$sql
    12    where
    13            sql_text like 'select * from bind_peek_test%'
    14    );
    CARDINALITY
           1000
    SQL>
    SQL> spool offRegards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • How to increase the column size of Alv tbale

    Hi All,
    I created an Alv table to display the content of my database table. In one of the column the entire data from my database are not displayed the last few characters are missing. The data type for that column in the database is char. Can any one help me how to increase the column size in my Alv table or any suggestions to resolve this issue.

    Hi Vadiv,
    Try with this..
    DATA: LR_IF_CONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE,
    LR_CMP_USAGE TYPE REF TO IF_WD_COMPONENT_USAGE,
    LR_CMDL TYPE REF TO CL_SALV_WD_CONFIG_TABLE,
    LR_TABLE_SETTING TYPE REF TO IF_SALV_WD_TABLE_SETTINGS.
    LR_CMP_USAGE = WD_THIS->WD_CPUSE_ALV( ).
    IF LR_CMP_USAGE->HAS_ACTIVE_COMPONENT( ) IS INITIAL.
    LR_CMP_USAGE->CREATE_COMPONENT( ).
    ENDIF.
    " get reference to the ALV model
    LR_IF_CONTROLLER = WD_THIS->WD_CPIFC_ALV( ).
    LR_CMDL = LR_IF_CONTROLLER->GET_MODEL( ).
    LR_TABLE_SETTING ?= LR_CMDL.
    " Set column width
    DATA LR_COL TYPE REF TO CL_SALV_WD_COLUMN.
    LR_COL = LR_CMDL->IF_SALV_WD_COLUMN_SETTINGS~GET_COLUMN( 'PERNR' ).
    LR_COL->SET_WIDTH( '70' ) .
    LR_COL = LR_CMDL->IF_SALV_WD_COLUMN_SETTINGS~GET_COLUMN( 'ENAME' ).
    LR_COL->SET_WIDTH( '100' ) .
    LR_TABLE_SETTING->SET_FIXED_TABLE_LAYOUT( ABAP_TRUE ).
    You can refer to webdynpro component SALV_WD_TEST_TABLE_PROPS. Go to the view TABLE and look inside the method SET_COLUMN_SETTINGS. I hope this will help you.
    Cheers,
    Kris.

  • How to Increase the Rows and Columns Size of Bex Query in Enterprise Portal  of SAP  7.3

    Dear All,
    Please let me know the process how to Increase the Rows and Columns  Size of Bex Query in Enterprise Portal  of SAP  7.3 .
    Currently I am getting Only  4 columns and 10 rows in One Page .And I am getting 1,2 etc tabs for both row and column. So i want to increase the column length more than 100  and row length more than 10000.
    Please suggest me a suitable solution to over come this issue.
    Please find the Below screen shot.
    Thanks
    Regards,
    Sai

    Dear All,
    Please find the attached screen shot.
    The report be open with 4 or 5 columns and 5 or 6 rows.
    So, please  let me know how to increase the length of the table.
    Do the needful for me to over come this issue.
    Thanks
    Regards,
    Sai.

  • How to increase text size of a Column header of table in webdypro

    Hi All,
    Can anybody suggest me how to increase the text size of a column header of table in webdyrpo. I didnt find any option anywhere. can anybody help me out to solve this issue?
    Regards
    Ravikumar

    Hi Ravikumar,
    As Sukanta has suggested create a Simpletype of String Type and Length 40.
    Then create a context for the column header and for its type, instead of choosing
    from the drop down, choose the 3 dots.
    In the window that appears, select Local Dictionary, and Select the Simpletype
    that you have created, from the respective package name. And click OK.
    This will make the text of ColumnHeader of type String and Length 40.
    Hope it helps.
    Regards,
    Alka.

  • Hi Thanks for 4.0. It runs much faster on my Mac, however, it no longer works to zoom in all of my web pages. I use to be able to use my finger pad to increase the size of all of all pages. Thanks again.

    Hi Thanks for 4.0. It runs much faster on my Mac, however, it no longer works to zoom in all of my web pages. I use to be able to use my finger pad to increase the size of all of all pages.
    Thanks again.
    PS Are you working on a version for the iPad and iPhone with Add Blocker? That would be great!

    Here are some zoom add-ons which might provide a workaround:
    [https://addons.mozilla.org/en-US/firefox/search/?q=image+zoom&cat=all&x=0&y=0 Image Zoom]
    As regards your question about iPad and iPhone, you'd be better off posting that question here: [https://forums.mozilla.org/addons/ Mozilla Add-ons Forum]
    P.S. ''Apologies for not responding earlier''.

  • How to increase page size for balance file upload in Workspace.

    Hi All,
    Please suggest how to increase page size for balance file upload in shared Workspace pages.
    Thanks,

    A word of caution is in order regarding changing from facing to non-facing and back again. If you have overridden master page items, you'll get a second, non-overridden copy on all the even-number pages when that half of the master page is re-applied. This applies to master text frames which override automatically when text flows into them as well as to objects you manually override. I think you'll find this particular technique also only works for master text frames, whereas the Layout Adjustment should work in all situations where frames snap to guides.

  • Increasing Email Size Limits for some users

    Hi All,
    For some users (management) i needed to arrange that they are able to send bigger files then the default 10MB limit to each other.
    I used this procedure to do so,
    https://www.simple-talk.com/sysadmin/exchange/increasing-email-size-limits-for-your-high-profile-users-in-exchange-2010/
    In a nutshell:
    Set Global Transport Org. Config to 200MB
    Set Transport Send and Receive connector to 200MB
    Created a Distribution group adding the MT members and me (for testing)
    Created a transport Rule for the 10MB limit for all users and exception for the distribution group
    (Believe me, i am not happy with the 200MB size limit)
    All seems to work but i have one issue that i cannot tackel or maybe it is by design.
    -Managemant can also send big files to all
    users who do not have this privelige, this is not someting i want, sending 100MB+ attachments to over 150 users.
    Is this by design or do i mis something?
    Thanks,
    Ron

    Hi RonGielgens,
    Attachment size in exchange has to be set on
    Global settings
    Connectors (send and receive connectors)
    Mailbox
    The global settings will affect all the others. of course connectors will affect specific servers and mailbox one user. You have to set the global to the absolute max size you want to allow in your organization.
    after you do this you will need either to set the 10MB on each mailbox
    Get-Mailbox | Set-Mailbox -MaxSendSize 10MB -MaxReceiveSize 10MB
    Then change the limit on specific mailbox
    or another way is to create a transport rule that will reject the email if the attachment size it > 10MB unless the sender/recipient is the required user or group.
    so basically create 2 transport rules
    1. reject messages sent to anyone with attachment > 10mb unless the recipient is userX
    2. reject messages sent from anyone with attachment > 10mb unless the sender is userX
    Normal case it should not allow.
    Thanks, MAS
    Please mark as helpful if you find my comment helpful or as an answer if it does answer your question. That will encourage me - and others - to take time out to help you.

  • Resource consumption details not shown for each row source operation

    Hi Friends,
    I have generated a tracefile for a query as shown below.
    set autotrace traceonly arraysize 100
    ALTER SESSION SET optimizer_mode = ALL_ROWS ;
    alter session set tracefile_identifier = 'trcwithtime_221010_03';
    alter session set events '10046 trace name context forever, level 12';
    spool on
    spool C:\Sree\trcwtime.log
    -- put your statement here
    SELECT e.*,d.dname
    FROM scott.emp e
        ,scott.dept d
    WHERE e.deptno = d.deptno;
    spool off;
    exitBelow is the trace file
    SELECT e.*,d.dname
    FROM scott.emp e
        ,scott.dept d
    WHERE e.deptno = d.deptno
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        2      0.00       0.00          4          7          0          14
    total        4      0.00       0.00          4          7          0          14
    Misses in library cache during parse: 0
    Optimizer goal: ALL_ROWS
    Parsing user id: 173 
    Rows     Row Source Operation
         14  HASH JOIN 
          4   TABLE ACCESS FULL DEPT
         14   TABLE ACCESS FULL EMP
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      SQL*Net message to client                       2        0.00          0.00
      db file sequential read                         4        0.00          0.00
      SQL*Net message from client                     2        0.41          0.77
    ********************************************************************************For each rowsource operation, resource consumption details (cr,pr,pw,time) are not shown in the TKPROF output.
    How can i get these details as well?
    DBVersion: 9.2.0.8
    Regards,
    Sreekanth Munagala

    Sreekanth Munagala wrote:
    For each rowsource operation, resource consumption details (cr,pr,pw,time) are not shown in the TKPROF output.
    How can i get these details as well?
    DBVersion: 9.2.0.8You can get those details by setting values for following parameters (at session level, preferably) before generating the 10046 trace.
    ALTER SESSION SET statistics_level = ALL ;
    ALTER SESSION SET timed_statistics = TRUE ;

  • Change Font Size for Table Column

    Hi,
    How can we set different font sizes for table columns?
    Thanks,
    Uma.A

    Hi
    Set Design property of table column
    Aslo check this link
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/66/18b44145143831e10000000a155106/frameset.htm
    Thanks

  • Set custom font size for one column

    hey guys! I am trying to decrease the font-size for one column based on an lov and used
    style="font-size:8pt"It does not work though! Do you have a hint?
    brgds,
    seb

    Hello Seb,
    >> Might it be important whether the column is of type "...based on lov"?
    If by "...based on lov" you mean “Display as Text (based on LOV, does not save state)” the answer is yes. This type of column is not treated as an updatable column (the implementation is by using a regular <td> tag and not the <input> tag) so the Apex engine ignores the Element Attributes field.
    As far as I can tell, this column can only be styled in the query itself (and you need to implement the LOV yourself).
    Another option is to use a select list and disabled it, but the column will appear in gray, and with small font size it doesn’t look that good.
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Forthcoming book about APEX: Oracle Application Express 3.2 – The Essentials and More

  • Where can I Increase the size limit for attachments

    Good Morning:
    I am working in OCS R2 (9.0.4). Where can I Increase the size limit for attachments in the messages sent. Also can I set this parameters to user level or the change affect every user in the system?
    Thanks a lot.

    babowa wrote:
    The only way to increase the fonts on your desktop would be system wide by going down a notch on the resolution. Some people won't do it because it increases the pixel size so the fonts won't be quite as sharp; I decided I'd rather have that than having to squint continuously. Go to System Preferences > Displays > Scaled > this will give you all resolution options available. No harm in trying - just check the default (top) choice again if you don't like any of the others.
    It's a b*&^ch getting old .  I still use the screen zoom instead of decreasing resolution, but maybe soon ...

  • INCREASING FONT SIZE FOR GR SLIPS

    HI Everyone,
    i need to increase the font size whiule printign out the GR slips. Now i maintained the paramters for output type WE01 in MM cusomizing. Its all setup. All I need is I need to increase font size for the GR slip when its printed out for batch number , and Stock details. How do I do it in SMARTFORMS.....

    hi
    take help of your abaper for this
    also for good rplys post this in ABAP forum

  • Can I increase the size of a Long column to 4000 characters?

    Can I increase the size of a Long column to 4000 characters?

    maximum sizeof 4 GB -1 byte RTFM there: Datatypes(click)
    extracted: LONG: Character data of variable length up to 2 gigabytes, or 231 -1 bytes.
    Not 4Gb. Or also, read Paul M post.
    Regards,
    Yoann.

Maybe you are looking for

  • Synchronization in Web Dynpro JAVA

    Hi All, I have a Web Dynpro JAVA application, for which an iView has been created and is assigned to a role. Now I have the below requirement, If two users tries to access this application at the same time then the second user has to get a message st

  • Vhs to dvd with closed captioning

    i was able to transfer video clips from a vhs tape to a dvd (vcr > camcorder > mac) in iMovie then export to iDVD and burn the disk thereafter. I need the closed captioning to be tagged along to a dvd disk. How? Thanks

  • Paying bills online... can't complete the payment using email via TDS, but it worked when I used Microsoft Outlook as my email client???

    to pay a bill via email, I download the pdf sent to me and am prompted to enter a security code. Everything works on the form, but the adobe does not allow me to select the year 2014 to complete the payment... using my TDS email. I had been using Mic

  • My Exposé settings keep resetting

    My Exposé settings are constantly resetting to nothing. I frequently disconnect my keyboard and mouse from my MacBook, but I tested and found that the disconnection does not always cause the settings to reset. What could be making Exposé do this on m

  • Edit General Link UDF

    Hello I'm trying to update via code the value of an UDF defined as General -Link This field is in the grid of a marketing document adn represent a link to a file system file... I can read the value of this field but when I try tu update the filu i re