the question of the overall index was updated

I have a partitioned table and the local partitioned indexes in 9i. In the past, when I add a new partition, partitioned indexes have become "unusable" so I have to rebuild the index to the "exploitable": State

ALTER INDEX REBUILD PARTITION myindex TYPE my_partition nologging;

I just found out that when you use the clause to UPDATE GLOBAL INDEXES, there is no need to rebuild the local index in the underlying table. It seems that updating the GLOBAL INDEX also update local index to the status of "exploitable".

create tablespace you see

ALTER TABLE my_table SPLIT PARTITION of VALUES 'TYPE_DEFAULT' ('new') INTO (PARTITION "TYPE_NEW" TABLESPACE "you see", "TYPE_DEFAULT" PARTITION) UPDATE GLOBAL INDEXES;

I wonder if UPDATE GLOBAL INDEXES also update local indexes as it appears in this case. I thought that the UPDATE GLOBAL INDEXES only updated global index.

Published by: user7435395 on March 8, 2013 14:33

Published by: user7435395 on March 8, 2013 14:36

Published by: user7435395 on March 8, 2013 15:15

>
I just found out that when you use the clause to UPDATE GLOBAL INDEXES, there is no need to rebuild the local index in the underlying table. It seems that updating the GLOBAL INDEX also update local index to the status of "exploitable".
>
Interesting! Can you post the DDL that you use for the table and index, so we can try to reproduce it?

This seems to contradict what said documentation, but that would not be something new.

See "Split of Partitions" in the Guide DBA 9i
http://docs.Oracle.com/CD/B10501_01/server.920/a96521/partiti.htm#6736
>
Behavior of the index

Regular (TAS)
Oracle UNUSABLE brand new partitions (there are two) in each local index.

Unless you specify GLOBAL INDEXES to UPDATE, all index global, or all partitions of global partitioned indexes are marked UNUSABLE and must be rebuilt
>
Also you not "add" a partition you split one and creates two new partitions, which both can have data. These two partitions of the local index must be rebuilt.

When you "add" a partition it lacks all the data so there is not need to rebuild the local index for this 'new' partition.

Tags: Database

Similar Questions

  • Ugggh.  I have a 27-inch iMac late 2011 and the hard drive was updated with a new SSD.  The integrated cd/dvd had to be taken out.  I then bought a thought of superdrive, it should work.  It's frozen on my iMac!

    Ugggh.  I have a 27-inch iMac late 2011 and the hard drive was updated with a new SSD.  The integrated cd/dvd had to be taken out.  I then bought a thought of superdrive, it should work.  It's frozen on my iMac!  Gee, who could have possibly guessed that would happen?  I tried all kinds of silly workarounds, I found on the internet, but still it will not register the stack of DVDs and other discs I have.

    If you're like me and upgraded your iMac that came with a cd/dvd drive internal... so he has to come out to give way to the fusion or the SSD drive, do NOT buy the apple superdrive.  It will work with your computer!

    Think I'll get a laptop samsung...

    Ironic, isn't it? Own Apple SuperDrive will not work with Apple computers. Shame you don't check here first that we would have warned you. Return Apple overpriced and buy a nice third-party player for a third of the price. I love the LG units. You can consider a loading plate because they are more reliable, and you can use these pesky disc when you get one.

  • the Windows version was updated

    I have windows vista Home premium that came with my Vaio. I need to upgrade to windows 8.

    My question is if I can update my windows and use it on another PC and scrap this laptop... as long as it does not match the configuration system requirements.

    Hello

    Pre-installed Licenses OEM (HP, Acer, etc.) and the Microsoft System Builder OEM licenses are tied to the first machine that they are installed on and channels of license when this machine dies.

    OEM licenses are not transferable.

    If you had bought your own license for sale at retail of Windows and installed yourself, yes you can transfer it to another computer.

    Retail licenses are transferable.

    See you soon.

  • the error log was updated

    Hello

    I have Photoshop CC. I tried an update, and it was the error code:

    Adobe CSXS Infrastructure 4

    There was an error of installation of this update. Quit and try again later. Error code: U44M1I210

    What does that mean?

    Ann

    THX! But after the restart the computer and try again, it worked.

    Ann

    [disable the freakin autoquotes]

  • is an overall index provides fast response in OLTP times?

    Hi all

    I read a doc

    http://docs.Oracle.com/CD/E18283_01/server.112/e16541/partition.htm#insertedID5

    and it is said that If the application is an OLTP we and users needs quick response time, use an overall index

    I don't know how an overall index provides quick access.

    Assume there is a table and that is partitioned by hash.

    This table has a local index on column owner - no partition key column.

    To query the information of owner of SCOTT, Oracle will scan all index partitions that have given Scott.

    bandicam 2015-05-03 23-27-35-651.png

    On the other hand, there is an overall index on column 'owner '.

    To query the information of SCOTT, Oracle probes also all index partitions that have given Scott.

    bandicam 2015-05-03 23-27-28-126.png

    So, here's the question.

    Why everyone says that an overall index has good performance (response time) in OLTP?

    Supplementary question

    Similarly with above, there is a table copied from object. And the table is partitioned by hash (object_id).

    To the query with where clause (where owner = xxx), If there is a local index, Oracle scans RANGE SCAN on the t_idx_local index in the first partition through the last partition (take a look at Pstart, Pstop)

    bandicam 2015-05-03 23-36-29-786.png

    But when Oracle uses the overall index, Pstart. Pstop column values are ' KEY | KEY "."

    What does that mean??

    bandicam 2015-05-03 23-36-20-020.png

    Thank you.

    The KEY to the formulation of the plan means that Oracle will use pruning partitiong dynamic rather than static.

    Only it Oracle knows he can partition plum but it determines real partitions during execution, rather than during the analysis.

    It's EXACTLY what you'd expect with an OVERALL index. Oracle search the index keys in the overall index and at this time there may find that some lines are in partition 13, others in the bulkhead 27, etc..

    With a local index Oracle uses more generally STATIC pruning. You have a local index with a MONTHLY distribution key and your query wants all data of MAY. Oracle knows at the time you want the data for MAY and can use the data dictionary to determine what partitions have CAN data since the index INCLUDES partitiong keys.

  • After splitting partition index was not marked UNUSABLE. Oracle 11.1.0.6.0

    Dear experts,

    I do the following:

    SQL > create table tab (an integer, whole b)

    2 partition () range (a)

    3 partition p10 values less than (10),

    4 partition p20 values less than (20).

    5 partition pmax values less than (10000)

    6  );

    Table created

    SQL > alter table tab add constraint tab_pk key primary (b);

    Table changed

    SQL > insert into tab values (1, 1);

    1 row inserted

    SQL > insert into tab values (19: 2);

    1 row inserted

    SQL > insert into tab values (9999, 3);

    1 row inserted

    SQL > commit;

    Validation complete

    SQL > select index_name, status of user_indexes where index-name = "TAB_PK";

    INDEX_NAME STATUS

    ------------------------------ --------

    VALID TAB_PK

    SQL > tab table split partition of alter

    2 pmax (30) into (partition, partition pmax p30);

    Table changed

    SQL > select index_name, status of user_indexes where index-name = "TAB_PK";

    INDEX_NAME STATUS

    ------------------------------ --------

    VALID TAB_PK

    Could you explain please why the overall index of tab_pk was not marked UNUSABLE? The partmax of the partition was not empty.

    It looks like you were the beneficiary of an optimization: Maintenance of Partitions

  • Necessary insight as to how the Stats are cascaded to the index after updates.

    SCENARIO OF

    • We have a process of intensive loading (100 s of the tables involved, several hours of execution). We collect stats diagram only on obsolete objects when executing to minimize the load on the system while the statistics come together at intervals (see the command below).

    • There is a table with an index on column X
    • When the table is inserted in during a charge process column X is null and that the index is empty.
    • When the table becomes stale (and the column X is null of remains), his stats get generated using the package gather_schema_stats with the STALE 'COLLECT' and ' CASCADE = TRUE options.

    • Subsequently, all records from the table are loaded and the collection of statistics has occurred, column X happens to updated with the values so then inserted in the index. More no record is inserted into the table.


    QUESTION

    After the charge fit more no record and the table never gets denial as defective if new stats are not generated (no surprise). However, what is the impact on the index which now has lines in there (as a result of updates that occurred after the loading table has been loaded)? When the stats were executed on the table (with case sensitive = true) index was empty. Do I need a work of gather_stats separated on the index or somehow, it will inherit the values associated with the full table optimizer statistics? _

    Here is the command I use:
    exec dbms_stats.gather_schema_stats (ownname = > 'UICONNECT',-)
    Options = > "FADE TOGETHER",
    estimate_percent = > dbms_stats.auto_sample_size, -.
    method_opt = > 'for all columns size auto ' -.
    degree = > dbms_stats.auto_degree;
    Cascade = > TRUE);

    This problem is forcing me to understand the optimizer (viz has know statistics) more than I hoped would be necessary. But alas... developers ask me if I need to manage (correctly)!

    Thanks in advance for any idea on this issue (or references to good material... it's hard to google it).

    Published by: TonyG on July 14, 2010 14:10

    Published by: TonyG on July 14, 2010 14:11

    Just to clarify one thing:
    "Cascade" not "copy" table to the indices statistics.
    Cascade just make sure that you don't have to hard-code calls individual gather_index_stats. So this means that its index stats are also gathered, based on what is in the index.
    This means that the generated statistics will be inaccurate, once the column is filled, as probably the key indicator, the clustering_factor, of the index will change.
    So yes, his stats should be re-assembled, or you can decide (when the grouping after load factor is relatively constant) to block these statistics and to exclude the gathering.

    HTH
    -------------
    Sybrand Bakker
    Senior Oracle DBA

  • I was charged for my coffee game update, which I wasn't aware of. I do not accept to pay about $ 8 for only an update, this game in the first place was free. I want to ask for a return and I will delete the game

    I was charged for my coffee game update, which I wasn't aware of. I do not accept to pay about $ 8 for only an update, this game in the first place was free. I want to ask for a return and I will delete the game

    Apple or App developers read this forum. If you want a refund, contact the developer to the email address. It is to them that they will refund your or not.

  • I was updating my Iphone 5 iTunes and now it says I have to reconfigure the factory settings it does not recognize my phone

    I was updating the ios on my Iphone 5 and there is a message that says it does not recognize, and I have to reset to the factory settings. The only thing at this point, I can do is to turn the phone on and it displays the logo itune with an arrow pointing upwards and a port of loading. I can't use my phone at all now.

    Hello

    Make sure that your iTunes software is up to date before you try to update your iPhone.

    Help here > get the latest version of iTunes - Apple Support

  • How can you cancel the download of an update that was started by after having pressed the button "Check for Updates" in the window "On Firefox", please?

    How can you cancel the download of an update that was started by after having pressed the button "Check for Updates" in the window "On Firefox", please? If possible, please cover all platforms, Mac, Windows, Linux, although the first mentioned is what currently applies to my situation.

    Thank you.

    Such a download is usually recorded in a updates or updates folder in the program folder or the Firefox application.
    You can delete this folder to cancel the download.

    If the files have already been downloaded, then delete the files in the folder updates\0 and updates.

    Mac: /Applications/Firefox.app/updates "/path_to/Firefox.app/Updated.app"
    Linux: "/path_to/firefox/updated"
    Windows: C:\Users\<user>\AppData\Local\Mozilla\Firefox\Mozilla Firefox\updates
    
  • I'm not able to open my documents pages. I get the message: the requested index.xml file is missing.  I wonder if it is because I have updates 10.11.5

    I have an iMac (20-inch, mid 2007) processor 2 GHz Intel Core 2 Duo 3 GB 667 MHz DDR2 SDRAM memory and recently updated to el capitan 10.11.5.  I have Pages ' 09, and I can't open my documents pages and get the message:

    The index.xml file required is missing.

    I now see that it says return to default pages 5.6.2.

    I can open them as 5.6.2 then save tehm in pages ' 09?

    Can someone help me with easy tips?

    Only the Pages ' 09 or old documents contain internal index.xml file. When you try to open a document in Pages ' 09 Pages v5, you get this dialog on the missing index.xml. The key is to stop Pages ' 09 and then double click on the document to open it in v5.6.2 Pages.

    Pages ' 09 will not leave by simply clicking on the red light on the title bar of the document. As long as the Pages ' 09 continues to run, it will intercept all attempts to open any document Pages, including incompatible versions of the v5 Pages.

    This has nothing to do with OS X 10.11.5. He has been a user focused on the issue since October 2013.

  • I'm afraid to do the last update because in the past when I update, I always lose something. The last time it was my tabs "pinned". What is the solution?

    I'm afraid to install the last update, because in the past when I update, I always lose something. The last time it was my tabs "pinned". What is the solution?

    No, they are not the same. You really need to put more emphasis on messages displayed by editors / moderators / Admins who have extensive validation "under their belt.

  • Question... I was not able to take tab FireFox Mode... you have eliminated the possibility of moving from a 2 window... If not what should be checked in t

    Question... I was not able to take tab FireFox Mode... you have eliminated the possibility of moving from a 2 window... If not, what needs to be checked in the menu options for mode 2 window window... I use Version 23.0.1

    Hi gordie, you could use an addon to restore this configuration of the user interface: https://addons.mozilla.org/firefox/addon/hide-tab-bar-with-one-tab/

  • I have been using the functionality of Firefox in which I could have multiple sets of tabs open, but only see the game I was working with. I have updated and now the functionality is Gone

    I have been using the functionality of Firefox in which I could have multiple sets of tabs open, but only see the game I was working with. I have updated and now the feature disappeared. I had a small icon on the top right of my toolbar. I used it all the time to keep windows separated for financial, plans to travel items, news, etc.. Has it been removed from Firefox?

    Hello

    The feature of tab groups is always present. You can try with the button right of the + after the last tab and Customize. If the icon is hidden behind the other, or if it is available inside the mini window customize, you can put it back. If the problem persists, you can also try of reset toolbars and controls: and start to make changes and restart in Safe Mode screen.

  • I am running with Firefox version 3.5.7. I'm trying to upgrade to a newer version. So far, the update worked for 4 hours. For most of the time, it was download version 3.6.18. Why am I suspended trying update you?

    I have an old version of Firefox - Version 3.5.7.

    I'm trying to upgrade to the current version. As part of the update, the system takes care first of all intermediate versions.

    4 hours ago, I started the update. It is still ongoing. Most of the time, it was download version 3.6.18. I let it run.

    Is there another way to get the latest version?

    I suggest alternative and easier way by downloading here

Maybe you are looking for