Remove the large table

Hello

I have a very large non partitioned table about 50 GB. I need to remove old data from the table that would be around 25-30 GB.

What I have is

(1) table a Dump Export using expdp
(2) drop table
(3) create a partitioned table
(4) import the Table data
(5) scores drop

Please let me know if there is a better way to do the same?

Uhm... do a conditional export?

It should be a bit faster because you do not have to import the original table.

Bye,.
Antonio

Tags: Database

Similar Questions

  • How can I remove the large green battery and plug icon?

    How can I remove the large green battery and plug icon? It seems pretty ugly and useless. There is already an icon of battery-plus-card used to determine the level of battery and charging status...

    Moderator edit: matched subject to content.

    Hi thang_nguyen!

    Another alternative is to double-click the battery icon and when Power Manager opens, click on Advanced Options > Options and uncheck the box "see the gauge of Power Manager in the bar then apply stains.

    To access the Lenovo Power Manager when the gauge of Power Manager is disabled, right-click on the Windows icon / energy from the battery in the bar of tasks and you should see "Power Manager".

    I hope this helps!

  • How to cut the large table into pieces

    I'm trying to derive some of generic logic that would be cut into pieces of defined size a large table. The goal is to perform the update into pieces and avoid questions too small restoration. The full table on the update scan is inevitable, given that the update target each row of the table.

    The BIGTABLE has 63 million lines. The purpose of the bellow SQL to give ID all 2 million rows. So I use the rownum 'auto line numering field' and run a test to see I could. I expected the piece of fist to have 2 million rows, but in fact, it is not the case:

    Here is the +(NOTE I had many problems with quotes, so some ROWID appears without their enclosing quotes or they disappear from current output here) code +:
    select rn, mod, frow, rownum from (
        select rowid rn ,  rownum frow, mod(rownum, 2000000) mod  
      from bigtable order by rn) where mod = 0
    /
    
    SQL> /
    
    RN                        MOD       FROW     ROWNUM
    ------------------ ---------- ---------- ----------
    AAATCjAA0AAAKAVAAd          0    4000000          1
    AAATCjAA0AAAPUEAAv          0   10000000          2
    AAATCjAA0AAAbULAAx          0    6000000          3
    AAATCjAA0AAAsIeAAC          0   14000000          4
    AAATCjAA0AAAzhSAAp          0    8000000          5
    AAATCjAA0AABOtGAAa          0   26000000          6
    AAATCjAA0AABe24AAE          0   16000000          7
    AAATCjAA0AABjVgAAQ          0   30000000          8
    AAATCjAA0AABn4LAA3          0   32000000          9
    AAATCjAA0AAB3pdAAh          0   20000000         10
    AAATCjAA0AAB5dmAAT          0   22000000         11
    AAATCjAA0AACrFuAAW          0   36000000         12
    AAATCjAA6AAAXpOAAq          0    2000000         13
    AAATCjAA6AAA8CZAAO          0   18000000         14
    AAATCjAA6AABLAYAAj          0   12000000         15
    AAATCjAA6AABlwbAAg          0   52000000         16
    AAATCjAA6AACBEoAAM          0   38000000         17
    AAATCjAA6AACCYGAA1          0   24000000         18
    AAATCjAA6AACKfBABI          0   28000000         19
    AAATCjAA6AACe0cAAS          0   34000000         20
    AAATCjAA6AAFmytAAf          0   62000000         21
    AAATCjAA6AAFp+bAA6          0   60000000         22
    AAATCjAA6AAF6RAAAQ          0   44000000         23
    AAATCjAA6AAHJjDAAV          0   40000000         24
    AAATCjAA6AAIR+jAAL          0   42000000         25
    AAATCjAA6AAKomNAAE          0   48000000         26
    AAATCjAA6AALdcMAA3          0   46000000         27
    AAATCjAA9AAACuuAAl          0   50000000         28
    AAATCjAA9AABgD6AAD          0   54000000         29
    AAATCjAA9AADiA2AAC          0   56000000         30
    AAATCjAA9AAEQMPAAT          0   58000000         31
    
    31 rows selected.
    
    SQL> select count(*) from BIGTABLE where rowid < AAATCjAA0AAAKAVAAd ;
    
      COUNT(*)
    ----------
        518712             <-- expected around 2 000 000
    
    SQL> select count(*) from BIGTABLE where rowid < AAATCjAA0AAAPUEAAv ;
    
      COUNT(*)
    ----------
       1218270     <-- expected around 4 000 000
    
    SQL> select count(*) from BIGTABLE where rowid < AAATCjAA0AAAbULAAx ;
    
      COUNT(*)
    ----------
       2685289    <-- expected around 6 000 000
    Amzingly, this code works perfectly for small tables, but fails for large tables. Does anyone has an explanation and possibly a solution to this?

    Here's the complete SQL code that is suppposed to generate all the predicates, I need to add update statements in order to cut into pieces:
    select line  from (
       with v as (select rn, mod, rownum frank from (
           select rowid rn ,  mod(rownum, 2000000) mod
               from BIGTABLE order by rn ) where mod = 0),
          v1 as (
                  select rn , frank, lag(rn) over (order by frank) lag_rn  from v ),
          v0 as (
                  select count(*) cpt from v)
        select 1, case
                    when frank = 1 then ' and rowid  <  ''' ||  rn  || ''''
                    when frank = cpt then ' and rowid >= ''' || lag_rn ||''' and rowid < ''' ||rn || ''''
                    else ' and rowid >= ''' || lag_rn ||''' and rowid <'''||rn||''''
                 end line
    from v1, v0
    union
    select 2, case
               when frank =  cpt then   ' and rowid >= ''' || rn  || ''''
              end line
        from v1, v0 order by 1)
    /
    
     and rowid  <  AAATCjAA0AAAKAVAAd
     and rowid >= 'AAATCjAA0AAAKAVAAd' and rowid < 'AAATCjAA0AAAPUEAAv''
     and rowid >= 'AAATCjAA0AAAPUEAAv' and rowid < 'AAATCjAA0AAAbULAAx''
     and rowid >= 'AAATCjAA0AAAbULAAx' and rowid < 'AAATCjAA0AAAsIeAAC''
     and rowid >= 'AAATCjAA0AAAsIeAAC' and rowid < 'AAATCjAA0AAAzhSAAp''
     and rowid >= 'AAATCjAA0AAAzhSAAp' and rowid < 'AAATCjAA0AABOtGAAa''
     and rowid >= 'AAATCjAA0AAB3pdAAh' and rowid < 'AAATCjAA0AAB5dmAAT''
     and rowid >= 'AAATCjAA0AAB5dmAAT' and rowid < 'AAATCjAA0AACrFuAAW''
     and rowid >= 'AAATCjAA0AABOtGAAa' and rowid < 'AAATCjAA0AABe24AAE''
     and rowid >= 'AAATCjAA0AABe24AAE' and rowid < 'AAATCjAA0AABjVgAAQ''
     and rowid >= 'AAATCjAA0AABjVgAAQ' and rowid < 'AAATCjAA0AABn4LAA3''
     and rowid >= 'AAATCjAA0AABn4LAA3' and rowid < 'AAATCjAA0AAB3pdAAh''
     and rowid >= 'AAATCjAA0AACrFuAAW' and rowid < 'AAATCjAA6AAAXpOAAq''
     and rowid >= 'AAATCjAA6AAA8CZAAO' and rowid < 'AAATCjAA6AABLAYAAj''
     and rowid >= 'AAATCjAA6AAAXpOAAq' and rowid < 'AAATCjAA6AAA8CZAAO''
     and rowid >= 'AAATCjAA6AABLAYAAj' and rowid < 'AAATCjAA6AABlwbAAg''
     and rowid >= 'AAATCjAA6AABlwbAAg' and rowid < 'AAATCjAA6AACBEoAAM''
     and rowid >= 'AAATCjAA6AACBEoAAM' and rowid < 'AAATCjAA6AACCYGAA1''
     and rowid >= 'AAATCjAA6AACCYGAA1' and rowid < 'AAATCjAA6AACKfBABI''
     and rowid >= 'AAATCjAA6AACKfBABI' and rowid < 'AAATCjAA6AACe0cAAS''
     and rowid >= 'AAATCjAA6AACe0cAAS' and rowid < 'AAATCjAA6AAFmytAAf''
     and rowid >= 'AAATCjAA6AAF6RAAAQ' and rowid < 'AAATCjAA6AAHJjDAAV''
     and rowid >= 'AAATCjAA6AAFmytAAf' and rowid < 'AAATCjAA6AAFp+bAA6''
     and rowid >= 'AAATCjAA6AAFp+bAA6' and rowid < 'AAATCjAA6AAF6RAAAQ''
     and rowid >= 'AAATCjAA6AAHJjDAAV' and rowid < 'AAATCjAA6AAIR+jAAL''
     and rowid >= 'AAATCjAA6AAIR+jAAL' and rowid < 'AAATCjAA6AAKomNAAE''
     and rowid >= 'AAATCjAA6AAKomNAAE' and rowid < 'AAATCjAA6AALdcMAA3''
     and rowid >= 'AAATCjAA6AALdcMAA3' and rowid < 'AAATCjAA9AAACuuAAl''
     and rowid >= 'AAATCjAA9AAACuuAAl' and rowid < 'AAATCjAA9AABgD6AAD''
     and rowid >= 'AAATCjAA9AABgD6AAD' and rowid < 'AAATCjAA9AADiA2AAC''
     and rowid >= 'AAATCjAA9AADiA2AAC' and rowid < 'AAATCjAA9AAEQMPAAT''
     and rowid >= 'AAATCjAA9AAEQMPAAT''
    
    33 rows selected.
    
    SQL> select count(*) from BIGTABLE where  1=1 and rowid  <  AAATCjAA0AAAKAVAAd ;
    
      COUNT(*)
    ----------
        518712
    
    SQL> select count(*) from BIGTABLE where  1=1 and rowid  >= 'AAATCjAA9AAEQMPAAT'' ;
    
      COUNT(*)
    ----------
       1846369
    Nice but not accurate...

    The problem is that your query implies that ROWID, and ROWNUM are classified in the same way. For small tables it is very often the case, but not for the larger tables. Oracle does not guarantee return records in the order the rowid. However usually it works this way.

    You could test ensuring that get you the rownum after you ordered. And see if it works then.

    select rn, mod, frow, rownum
    from (select rn, rownum frow, mod(rownum, 2000000) mod
            from  (select rowid rn from bigtable order by rn)
            order by rn
            )
    where mod = 0
    / 
    
  • Remove the 0 table

    How can I remove the 0 in this table? Its been a while and I always try to know how to do this. Thank you

    Hello

    An excerpt from do.  Copy on the desktop, and then drag on the VI.

  • How can I remove the imported tables frame color?

    Hello. I imported my Word document that has a table. Everything looks great, but when I export to PDF format, the table box is gray. I want the table to show.

    I don't want to have to re - create the entire table with text boxes, so I wonder if I can just remove the color of the frame?

    Thank you!

    You are welcome.

    Please remove your personal information when you respond by e-mail. Thank you.

  • How to remove the fact Table

    Hi all

    If I have to restart my fact table on the same day, more than once a day, and he had already stored in it, I want to remove these lines and reload the fact with the current date. I want to create a procedure and include it in the package, the process must check the current_timestamp and if the lines with the date and if there is then it should delete it. Please let me know how I can do this. I am running SQL Server - 2008.

    Thanks for your time and your help.

    You should have to date in your primary key (ex: in a varchar as YYYYMMDD format).

    Then you have 2 ways to implement:

    create an ODI procedure that will remove all data where this date = today. Perform this procedure before your interface.
    * or change your IKM: Add a step that will erase the data in the target table if date = today.

  • How to remove the tag table of ecommerce

    How can I remove the tables within the ecommerce page, I have a responsive site html5 works a treat with the exception of ecommerce, it seems, place tags around my content table. Here is the HTML code, correct display, how to fix?

    < div class = "sixteen columns" >

    < div class = "eight columns alpha" >

    < p > < a href = "/ online purchase" > home < /a > / {tag_cataloguebreadcrumbs} | < a href = "/ my account" > my account < /a > < /p >

    < / div >

    < div class = "eight columns omega" >

    {module_shoppingcartsummary, horizontal}

    < / div >

    < / div >

    <! - Shop category - >

    < div class = "sixteen columns" >

    {tag_description} < /p > < p >

    < p > {tag_cataloguelist, 3, 50, true} < /p >

    {tag_productlist, 3, 100, true} < / div >

    < div class = "sixteen columns" >

    {tag_previouspage} {tag_pagination} {tag_nextpage}

    < / div >

    And here's what it did BC

    <! - Shop category - >

    "<div class="sixteen columns"> ".

    <p >< /p >

    "<p ><table class="catalogueTable"><tr ><td class="catalogueItem"><div class= 'one third of column" > .

    "<div class="Unit attention"> ".

    "" <p ><a href= "/ shop-online/gloves' ><img src="/images/products/yeti-gloves.jpg" alt="gloves" border="0"/ >< /a >< /p > "

    "<p ><a href="/ shop-online/gloves' >gloves < /a >< /p > .

    < /div >

    < /div >

    "< /td ><td class="catalogueItem"><div class= 'one third of column" > .

    "<div class="Unit attention"> ".

    "" <p ><a href= "/ shop-online/hats' ><img src="/images/products/yeti-hat.jpg" alt="hats" border="0"/ >< /a >< /p > "

    "<p ><a href="/ shop-online/hats' >hats < /a >< /p > .

    < /div >

    < /div >

    "< /td ><td class="catalogueItem"><div class= 'one third of column" > .

    "<div class="Unit attention"> ".

    "" <p ><a href= "/ shop-online/hoodies" ><img src= "/images/products/hoody.png" alt= "Hoodies" border= "0" / >< /a >< /p > "

    "<p ><a href="/ shop-online/hoodies">Hoodies < /a >< /p > '.

    < /div >

    < /div >

    "< /td >< /tr ><tr ><td class="catalogueItem"><div class= 'one third of column" > .

    "<div class="Unit attention"> ".

    "" <p ><a href= "/ shop-online/jerseys" ><img src= "/images/products/yeti-jerseys.jpg" alt= "jerseys" border= "0" / >< /a >< /p > "

    "<p ><a href="/ shop-online/jerseys">jerseys < /a >< /p > .

    < /div >

    < /div >

    "< /td ><td class="catalogueItem"><div class= 'one third of column" > .

    "<div class="Unit attention"> ".

    "" <p ><a href= "/ shop-online/share-and-accessories' ><img src="/images/products/yeti-saddle.jpg" alt="parts and accessories" border="0"/ >< /a >< /p > "

    "<p ><a href="/ shop-online/share-and-accessories' >parts and accessories < /a >< /p > .

    < /div >

    < /div >

    "< /td ><td class="catalogueItem"><div class= 'one third of column" > .

    "<div class="Unit attention"> ".

    "<p ><a href="/ shop online/ride-shorts"><img src="/images/products/ride-shorts. "PNG" alt= "Ride Shorts" border= "0" / >< /a >< /p > "

    "<p ><a href="/ shop online/ride-shorts">Ride Shorts < /a >< /p > .

    < /div >

    < /div >

    "< /td >< /tr ><tr ><td class="catalogueItem"><div class= 'one third of column" > .

    "<div class="Unit attention"> ".

    "" <p ><a href= "/ shop-online/socks" ><img src= "/images/products/yeti-socks.jpg" alt= "socks" border= "0" / >< /a >< /p > "

    "<p ><a href="/ shop-online/socks">socks < /a >< /p > '.

    < /div >

    < /div >

    "< /td ><td class="catalogueItem"><div class= 'one third of column" > .

    "<div class="Unit attention"> ".

    "" <p ><a href= "/ shop-online/tshirts" ><img src= "/images/products/tshirts/tshirt.png" alt= "T-shirts" border= "0" / >< /a >< /p > "

    "<p ><a href="/ shop-online/tshirts">T-shirts < /a >< /p > .

    < /div >

    < /div >

    "< /td ><td class="catalogueItem">< /td >< /tr >< /table >< /p> '.

    "<table class="productTable productSmall"><tr ><td class="productItemNotFound"> < /td >< /tr >< /table >< /div > .

    "<div class="sixteen columns"> ".

    " <span class="paging" id="paging">< /span > " "

    < /div >

    Changing {tag_productlist, 3, 100, true} to {tag_productlist, 3, 100, true, true} you can return products like a UL.

    See http://kb.worldsecuresystems.com/134/bc_1342.html

    The list of products in the catalogue (use {tag_productlist, u, v, w, x, y, z}, where u is the number of products per row v is the target frame, for example, _blank or leave empty; w is the number of products per page (limit of 500 products per page); x is the type of sort, for example, price) , or alphabetical order. allows you to hide the empty message for example "this catalog has no product" and z is the type of list). Change: {tag_productlist, 4} to {tag_productlist, 4, true} to display in the form of LI.

    m

  • Consider removing the disconnected table

    Hi people

    I'm a frustrating tuning suggestion which I did not MFIS because all the tables, I see links correctly.

    Im trying to make a match and the code when it is called dynamic runs very slowly, but if I put it in a spreadsheet run in seconds

    H2. The suggestion that I receive, code is below, thanks in advance...

    1-restructuring conclusion of SQL (see map 1 to explain the plans section)
    ----------------------------------------------------------------
    A Cartesian product costly operation were found in line 5 of the ID of the
    execution plan.

    Recommendation
    --------------
    -Plan to delete the offline table or a view of this statement or
    Add a join condition that refers to it.

    Raison d'etre
    ---------
    A Cartesian product should be avoided as much as possible because it is a
    expensive operation and can produce a large amount of data.


    H1. Code


    Select distinct b1.coname, b2.coname, b1.st_country, b2.st_country, b1. ST_COID, b2. ST_COID, 'fiic_500' of
    boss_universe_matching b1,
    boss_universe_matching b2,
    boss_company_matching bc1,
    boss_company_matching bc2
    where
    Lower (B1.source) = "fiic_500" and
    Lower (B2.source) = "panasonic" and
    B1.tr_coid = bc1.u_id and
    B2.tr_coid = bc2.u_id and
    BC1.root = bc2.root and
    BC1. Country = bc2.country and
    B1.st_coid not in (select source_coid from the company_matches where source = 'fiic_500') and ((bc1.activity = bc2.activity) or)
    (INSTR (bc1.activity, bc2.activity) > 0
    GOLD INSTR (bc2.activity, bc1.activity) > 0)) and (bc1.entity is not null and bc2.entity is null) and ((bc1.location = bc2.location) or)
    (INSTR (bc1.location, bc2.location) > 0
    INSTR or (bc2.location, bc1.location) > 0))

    user8788094 wrote:
    I'm sorry, it's better?

    Much better {noformat} :-) {noformat}.

    The optimizer seems to think that there will be only one line coming out of the operation of loop nested line 5, so not a Cartesian joinwith (single) line coming out of the kind of scan and full buffer in lines 9 and 8. A Cartesian join of two single row result sets is quite reasonable. The only question is, is the correct optimizer?

    In fact, the query returns a single line? Estimates of the number of lines coming out of each stage seem reasonable to you? For example, combining the predicate with the plan section, the optimizer seems to think that a complete analysis of the filling of the BOSS_UNIVERSE_MATCHING is only one line where LOWER (SOURCE) = "panasonic". Is this reasonable?

    John

  • Add the large table column

    All-

    I have my data (20 columns of ~ 700 000 lines) stored in a binary file and I would like to add a timestamp to each row of data.  I intend to use the sampling with the number of samples to add the time at which the sample was recorded in data.  I have read the data (~ 700 000 samples) and use a grand for a table 1 d with the same number of rows of data and then insert the 1 column in the largest table that has my data.  However, this seems to take a lot of time and I am looking for a faster/more simpler way. Significant NY, I mean the vi works for about 20 min before me give up and stop it.  I posted a PNG of the block diagram.  Any help will be much appreciated.

    Thank you

    Chris

    Hi humada,.

    Try this...

  • Can some one please help me to the cutting of the large table Partition

    I wanted to run a query on a particular user say: FRDZ, but I shot by mistake against the SYS user in the same database.

    I know the table, the parition, the tablespace everything belongs to the user FRDZ. Yet the resulting table changed under the SYS user.

    Was it important to connect with this user and then fire the same query for results or it would automatically lead to the same result. Please guide.

    ALTER TABLE SPLIT PARTITION VALUES clnt_default cash_app_sum (3820)
    INTO (PARTITION clnt_3820 TABLESPACE qips_dat_lrg02,
    PARTITION clnt_default TABLESPACE qips_dat_lrg02);

    I tried to connect to the real user (FRDZ) later and pulled the same query that it it shows 3820 does not exist.

    Published by: 784786 on June 1st, 2011 05:53

    Published by: 784786 on June 1, 2011 06:15

    You have divided the partition.

    Hemant K Collette

  • Metadata import wizard does not remove the repository table columns

    Hello everyone!

    We are facing the following problem with an object imported in OWB:

    I have successfully imported an OWB table. I see in 'Data object editor' of the OWB the repository object is identical to the physical object.

    If I remove a column in the table physical db and re - import the table in OWB, OWB "Metadata import wizard" understands that a column is removed and in "import results" shows this column as "canned goods". "" However, in of OWB ' data object editor of "column is not deleted! Is there a step we miss them?

    Thanks in advance!

    PS: we use OWB 10 g 2

    Yes, you missed a step

    When you import on
    Step 3 of 3 synthesis and import
    Click on the Advance import OPtion
    Select the option preserve everything.

    (Mark it as useful or correct if it is)

    See you soon
    Katia

  • Remove the large bottom menu bar.

    When I open Firefox now I get another screen that I've done in the past. There are two things I would change, but may not know how to change:
    1) there is a bar large-fonted on an inch of height that is spread in the bottom of the screen with icons and commands that are already available elsewhere, like downloading. I would like to delete this whole bar. How can I do this?
    (2) I put my home page by default to the Google search page; This has been replaced by the new Firefox home page; I would by default Google again. How can I do this?
    Thank you
    JH

    I guess that you are referring to the Quick Launch bar which shows on the topic: homepage.

    You can set a different page than the home page (start).

    Edit:
    I had missed your response above that completely demonstrate comments: homepage.

    You can define https://www.google.com as homepage

  • How to find the biggest and the larger tables in Oracle 10 g?

    Hi people,

    Environment: 10g Rel 2

    Can someone please suggest the view (s) data dictionary that I can query for a list of the longest (lines) and tables (columns) wide in any schema?

    Thanks in advance

    rogers42

    Can someone please suggest the view (s) data dictionary that I can query for a list of the longest (lines) and tables (columns) wide in any schema?

      1* SELECT OWNER, TABLE_NAME LONGEST FROM DBA_TABLES WHERE NUM_ROWS = (SELECT MAX(NUM_ROWS) FROM DBA_TABLES)
    SQL> /
    
    OWNER                      LONGEST
    ------------------------------ ------------------------------
    SYS                      WRI$_OPTSTAT_HISTGRM_HISTORY
    
      1* SELECT OWNER, TABLE_NAME WIDEST  FROM DBA_TABLES WHERE AVG_ROW_LEN = (SELECT MAX(AVG_ROW_LEN) FROM DBA_TABLES)
    SQL> /
    
    OWNER                      WIDEST
    ------------------------------ ------------------------------
    SYSMAN                      MGMT_PAF_TEXTUAL_DATA
    
  • Number of rows different when add/remove the same table

    Hello
    I have a problem in a select statement.
    My database is a 9.2.0.8.
    select *
    from  tab1 t1,
            tab2 t2,
            tab2 t3
    where t1.id_c1 = 1
       AND t1.id_c2 = t2.id_c2
       AND t1.id_c2 = t3.id_c2
       AND t2.id_init = 3693
       AND t3.id_init = 3892;
    
    936 rows selected.
    If I change the query to:
    select *
    from  tab1 t1,
            tab2 t2
    where t1.id_c1=1
       AND t1.id_c2 = t2.id_c2
       AND t2.id_init in ( 3693,3892);
    
    61132 rows selected.
    Any ideas? What's wrong??
    TNX

    Published by: 842366 on 3.10 there / 10/2011

    Published by: 842366 on 3.10 there / 10/2011

    T2.id_init in (3693,3892);

    T2.id_init of means is 3693 or 3892. It's the same as:

    t2.id_init = 3693 OR t2.id_init 3892;
    

    While the first request was:

    T2.id_init = 3693 AND t3.id_init = 3892;

    SY.

  • DST-upgrade to jump on large tables

    Hello
    I have a fairly detailed question about upgrading files of time zone DST on databases with large tables.

    We have customers with large partitioned tables (~ 25.000.000.000 lines, for example 25 billion lines) with timestamp with time zone columns. We want to upgrade the timezone DST file.

    Database: 11g R2
    DST-Version: 4 = > 11
    Ohter db parameters should be considered under the generic name.

    According to the doc, we can improve table by table, we can use parallel option as well,
    using the following command:
    DECLARE
      x NUMBER;
    BEGIN
      DBMS_DST.UPGRADE_TABLE(  x, 'MHTEST.TSTAMP_LOCK_TEST' );
    END;
    /
    This command runs (internal) for example, the following update command:
    UPDATE /*+ NO_DST_UPGRADE_INSERT_CONV */  "MHTEST"."TSTAMP_LOCK_TEST" "T" SET
       "T".TSTAMP = ORA_DST_CONVERT("T".TSTAMP)
    WHERE
     ORA_DST_AFFECTED("T".TSTAMP) = 1;
    Subsequently, the table will be marked as upgrade. This is visible on DBA_TSTZ_TABLES (internal tab $.property will be updated)


    Question 1: Is there a support option to ignore the process of upgrading to a specific table?

    -We are sure, no data is affected, for example ORA_DST_AFFECTED ("T". TSTAMP) = 1 = > FALSE for each row in the table
    -We do not consider to add the functional index (as ORA_DST_AFFECTED ("T". TSTAMP) attach to the top update (due to the large table)
    -We like to shorten the window of upgrade because of the negative impact on concurrency issues and using the index (see the impact on performance at dst_upgrade_insert_conv)

    Question 2: I tried the next 'hack' that 'seems' to work. This is a possible Solution:

    (a) build an empty table 'stage' for each partition of the large table
    (b) to exchange all the partition with partition of alter table changes
    (c) upgrading large table (very fast because no lines)
    (d) exchanging all partitions back
    (e) improve tables of scene (again very fast) or remove stage tables

    Any comments will be appreciated

    Martin

    Although it doesn't seem to be documented well, you should be able to run UPGRADE_TABLE (..., upgrade_data => FALSE,...) to achieve what you want.

    -Sergiusz

Maybe you are looking for

  • What is memory max in a Portege M700 - 12l?

    Hello, this may be a stupid question, but... here goes: "You can install up to 4 GB of RAM in this Tablet PC. Module of memory up to 2 GB in each of the slots. You must use DDR2 - 667 MHz PC2-5300 modules. » But I think there are 4 GB modules, if so,

  • Satellite P745-S4217 - overheating, high CPU temperature

    Hello My Toshiba Satellite P745 - S4217 CPU reached almost 100 ° c, just a couple of minutes ago it worked @98ºC is thre I can do? I really need help quickly because im worried about the CPU, it could reduce its durability and also be damaged. Please

  • invalid object reference

    I have a reference to the overall purpose of the station. Is there a way to check if the object reference is valid? Thank you.

  • Ultra endurance Xperia Z5 bug

    I used stamia of u. When I try to disable the ustamia, restarted phone and many apps disappeared and service game google and theme do not work normally. I did some research and saw many older devices have the same problem when they activate stamia u.

  • SD cards are write protected on Vista

    I have several multiple brands SD cards that my Vista 64 system identifies as write protected.  I have two readers of different SD cards on the Vista system and they are both the same error.  The same SD cards can be written to by digital cameras and