Index on the primary table becomes UNUSABLE after Exchange of partition

Hello!

I am the scene changes to partition and somehow, I see that the partition that I Exchange eventually becomes "UNUSABLE".


The steps that I'm following:

1. creating the temporary table:

CREATE TABLE TEMP_TKTHEADER
AS SELECT * FROM T3TKTHEADER
WHERE 1 = 2

2. replacement of the partition

ALTER TABLE T3TKTHEADER
PART08Q1Q2 PARTITION EXCHANGE
WITH TABLE TEMP_TKTHEADER


After the Exchange is carried out and I ask the stats of the index on the primary table (T3TKTHEADER as in this case):

INDEX_NAME NOM_PARTITION STATUS
----------------------------------------------------------------------------------------------
XTKTHDR1 PART08Q1Q2 UNUSABLE
XTKTHDR10 PART08Q1Q2 UNUSABLE
XTKTHDR11 PART08Q1Q2 UNUSABLE
XTKTHDR12 PART08Q1Q2 UNUSABLE
XTKTHDR13 PART08Q1Q2 UNUSABLE
XTKTHDR14 PART08Q1Q2 UNUSABLE
XTKTHDR2 PART08Q1Q2 UNUSABLE
XTKTHDR3 PART08Q1Q2 UNUSABLE
XTKTHDR4 PART08Q1Q2 UNUSABLE
XTKTHDR5 PART08Q1Q2 UNUSABLE
XTKTHDR6 PART08Q1Q2 UNUSABLE
XTKTHDR7 PART08Q1Q2 UNUSABLE
XTKTHDR8 PART08Q1Q2 UNUSABLE
XTKTHDR9 PART08Q1Q2 UNUSABLE


This is normal behavior!
Is not swap Partition just supposed to change the pointer to the partition of the temporary table data and leave the rest of the table intact!

Thank you
AB007

Dear AB007,

Please see subpart of swap partition. I assumed that the version of your database is GR 11, 2;

http://download.Oracle.com/docs/CD/E11882_01/server.112/e10592/statements_3001.htm#BABHHAHF

INCLUDING | EXCLUDING INDEXES Specify INCLUDING INDEXES  if you want local index partitions or subpartitions to be exchanged with the corresponding table index (for a nonpartitioned table) or local indexes (for a hash-partitioned table).
Specify EXCLUDING INDEXES  if you want all index partitions or subpartitions corresponding to the partition and all the regular indexes and index partitions on the exchanged table to be marked UNUSABLE.

Hope that helps.

Ogan

Tags: Database

Similar Questions

  • No index on the primary database. Need help with "COUNT OFF"; option

    11 GR 2 11.2.0.3 under linux

    Hi everyone,.

    It's an honor to be with you guys.

    I have a big question here and I am unable to decide on a permanent solution.

    We have a primary database that is configured to have a logical expectation.

    The logic of the day before was not built by me. But I'm now support...

    So as the title suggests, there is NO primary index / unique + not null on a large number of tables in the database of emergency primary/logic. But the application logic guarantees uniqueness values rather than null.

    Here is where the problem starts.

    Guys request DO NOT want us to create an index on the primary database.

    According to my understanding, because the database lack of clues, the apply SQL must do a full table scan whenever it changes / remove data. It is a very expensive process and consumes a lot of time. This takes hours together to apply a minute with a value of newspapers on the logic of the eve... A huge lag is created during the hours and is not acceptable.

    So as I told you earlier, the guys request do not want an index on the tables not supported.

    They use the database pending logic exclusively for information purposes and it's like production for them...


    Let me give an overview...

    According to the document on the creation of the logic of the day before for 11.2 as below

    http://docs.Oracle.com/CD/E11882_01/server.112/e41134/create_ls.htm#SBYDB4730

    Step 1 to find tables without identifying unique logic in the primary database.

    Query the DBA_LOGSTDBY_NOT_UNIQUE view to display a list of tables SQL may not apply be able to uniquely identify. For example:

    SQL> SELECT OWNER, TABLE_NAME FROM DBA_LOGSTDBY_NOT_UNIQUE
     2> WHERE (OWNER, TABLE_NAME) NOT IN 
    3> (SELECT DISTINCT OWNER, TABLE_NAME FROM DBA_LOGSTDBY_UNSUPPORTED) 
    4> AND BAD_COLUMN = 'Y'; 

    The above query has 1040 tables in a particular schema. All the these have no index is not null primary / unique.


    Now according to the step 2 as below, we have an option to add a disabled RELY primary key constraint.

    Step 2 Add a disabled RELY primary key constraint.

    If your application provides the rows in a table are unique, you can create a primary key disabled RELY constraint on the table. This avoids the overhead of maintaining a primary key on the primary database.

    Can someone explain what this RELY constraint is disabled and how to function and help please?


    I have a few questions about the constraint to RELY.

    (1) change current plans of optimizer on primary for the execution price?

    (2) can help to boost the performance of SQL apply without creating index on the logical standby database?

    (3) it will change current plans of optimizer logical pending for the SQLs running?

    What are the options that I need to increase the performance and table scan complete engine AVOID SQL apply on the logic of the day before?

    Thanks a ton for reading my post.


    Kind regards

    Abhishek

    In fact, I've implemented a key primary rely disabled on primary and unique index on the logic of the previous day.

    The logic of Eve runs lightning fast now

  • Cannot create indexes on the flow table

    Hello

    I'm new to ODI.

    The problem is that during the execution of an interface, I get the error of the "IKM Oracle Dimension to slow variation"

    The command in step "Create unique index on the flow table:

    creating index < % = odiRef.getTable ("L", "INT_NAME", "A") % > idx

    on < % = odiRef.getTable ("L", "INT_NAME", "A") % > (< % = odiRef.getColList ("", "[column]", ",", "", "SCD_NK") % >)

    < % = odiRef.getUserExit ("FLOW_TABLE_OPTIONS") % >

    generate the following statement which lacks the name of the column between the (_)

    Create index I$ _MYTABLE_idx

    I have $_MYTABLE)

    NOLOGGING

    The result is that the interface fails with the error 936: 42000: java.sql.SQLException: ORA-00936: lack of expression caused by the previous command wrong.

    Please, can you help me?

    Thank you very much

    Angelo

    Hello

    I'm really really sorry! I just realized that you are working on the SCD. Basically, you are looking for all the column mapped as SCD_NK (key to slowly change natural Dimensions) insofar as shown here

    Substitution QAnywhere

    IF you need to read this

    SCD Type 2 - ODIExperts.com

    Let me know.

  • How to create indexes on the nested table.

    Hi all
    I held the syntax to create indexes on the nested table.

    I found below synta but when I try it with my table it gives me error

    CREATE UNIQUE INDEX indx_name
    ON nestedtablestore (NESTED_TABLE_ID, id);

    What is here NESTED_TABLE_ID & ID

    They are virtual your nested table

    Here is an example.

    create or replace type obj as object (no integer, address varchar2(100))
    /
    create or replace type tbl as table of obj
    /
    create table test_tbl (id integer, name varchar2(100), address tbl) nested table address store as address_nt
    /
    create unique index address_no_idx on address_nt (no, address)
    /
    

    Published by: Karthick_Arp on November 23, 2010 01:41

  • Nested tables will not align with the primary table


    Hi all. Looks like I am facing another obstacle focus on the table. While I was creating one of my pages, I used nested tables to create a column on the left side of the page that will contain my menu secondary, while the other column will hold a flash element and the content of the page.

    Although I have inserted tables nested with a spacing of the cell '0' and '0' cell padding and Visual AIDS seem to indicate that the values in the nested table are identical with the primary table who is the holder, the nested table that will contain the film and the page content is not embedded with the table above. It seems to be off by 1-2 pixels or more, but since there will be a right on the image under the menu is quite obvious.

    I enclose the code for your information (line 165, 166).

    Thank you for your time and your suggestions. I really appreciate it.

    Saturday, September 16, 2006 15:06:50 + 0000 (UTC), "HTML-Newbie.
    wrote:

    > Discover the link http://www.fastventures.com/dev/test_temp_2col.html and you
    > see the picture under the main menu align with her on the
    > right side.

    Change this:




    To do this:

    <>
    SRC = "img/place_second.jpg" width = "572" height = "200" > "

    align = "right" >

    <>
    SRC = "img/place_second.jpg" width = "572" height = "200" > "

    Gary

  • The index of the primary key in a different tablespace.

    Hello

    I have a user PROD. It has received a tablespace PROD_TBS default.
    There is a separate table for all indexes space in the diagram, PROD_IDX.

    I want to create a TEST table as follows,

    CREATE TABLE TEST
    (TEST_ID, NUMBER (1),)
    NAME VARCHAR2 (10));

    It must be a primary key on the column test_id, but such that the corresponding unique index created by default because of the primary key must be created in the PROD_IDX tablespace.

    How to do this?

    Alternative solution:

    CREATE TABLE TEST
    (TEST_ID NUMBER(1),
    NAME VARCHAR2 (10),
    constraint test_pk primary key (test_id)
    using index tablespace prod_idx
     );
    

    Cheers, APC

    blog: http://radiofreetooting.blogspot.com

  • Create ctxsys.ctxcat index in the object Table

    What I'm trying to do is to create an index of type ctxsys.ctxcat on 'col3 '. But this 'col3' is not a 'TABLE', but in an object, as follows:

    CREATE OR REPLACE TYPE TestObj AS OBJECT
    (
    col1 varchar2 (10),
    col2 varchar2 (10),
    COL3 varchar2 (10),
    COL4 varchar2 (10)
    );


    CREATE OR REPLACE TYPE AS THE TestObj TABLE TestTable;

    Now, how can I create an index of type ctxsys.ctxcat on 'col3 '?

    create index test_ind on TestTable (col3) indextype is ctxsys.ctxcat;?


    Thank you for helping.


    Scott

    You cannot index a user-defined data type. Indexes are used for persistent storage of persistent objects.

    What I suspect you really want is an associative array or an array indexed by integer binary. Demos here:

    http://www.morganslibrary.org/reference/arrays.html

  • Drop and re-create the index on the current table

    Hello

    I just have a few questions about the removal and creating indexes on a table that activates a lot.

    Let me explain first:

    The table is used by the application with the DML statements every 3 seconds and I want to do is to drop the indexes and re-create them.
    But Im worried about the consequences - what happens when I try to recreate the indexes and the table has an option rowlock/used by the application?

    P.S
    It's production environment - so I can't stop the application.


    BR / Ander

    A reconstructed index either Online or Offline.

    Online index rebuild features:

    ALTER INDEX REBUILD ONLINE;

    LMD is allowed on the base table
    It's relatively slow
    Base table is targeted for the new index
    Base table is locked in shared mode and DOF is not possible
    Intermediate table stores changes to data in the base table, during the rebuilding of indexes to update the new index later

    Offline index rebuild features:

    ALTER INDEX REBUILD. (Default)
    Does not refer to the base of the table and the base table is exclusively locked
    New index is created from the old index
    Not possible DML and DDL on the base table
    Relatively faster

  • Index on the seeding Table Oracle Applications

    Hi all

    Can I create an index on a column to the table of the seeds of the oracle applications. If so, then, what are the implications? If not, what are the reasons... Can anyone give some input on this...

    Why I need this...

    I have a validation on the column 'JOURNAL_COMMENT' in Table 'IC_JRNL_MST' in my custom Interface program. It takes 2.5 minutes to complete the validation of a record. I created the index on this column in the process of development and validation time is reduced to less than a second. So, I need to create this index on an instance of production to reduce the time of validation.

    can I do it? (create the index on the production instance) forgot to mention... I can't ignore that particular column validation...

    Thanks in advance...
    Melanie

    You can certainly create indexes custom table seeded so this improvement in performance has to offer. I did it several times.
    As you know, a new index is provided with a cost (storage and maintenance), but it will be significantly smaller than your gains.
    A new index will not harm any validations / business logic.
    Just keep in mind that if you or a patch happens to drop and re-create the table, you must remember to rebuild the index.
    Hope that answers your question

    Sandeep Gandhi
    Independent consultant
    513-325-9026.

  • Adding indexes to the fact table large

    Hello

    Using oracle 11.20.3

    If made big table several billion lines and wants to add index disadvantages to only expliciltly gathering stats on the new index.

    Reason I just want to make the new index will be much faster.

    Thoughts?

    Thank you

    11.2 or later, his Stats are collected at the time of the creation of the index and you don't need to do it explicitly. Oracle optimizer will be bale to see this index immediately after creating indexes.

  • How to create indexes for the great table of telecom

    Hello

    I'm working on DB 10 G on a 5 REHL for telecommunications company with more than 1 million saved per day, we need speed up the result of the query.
    We know, there are several types of INDEX and I need professional advice to create a suitable,

    many of our requests depend on the MSID (the MAC address of the Modem) column,
       
    Name           Null Type         
    -------------- ---- ------------ 
    STREAMNUMBER        NUMBER(9)    
    MSID                VARCHAR2(20) 
    USERNAME            VARCHAR2(20) 
    DOMAIN              VARCHAR2(20) 
    USERIP              VARCHAR2(16) 
    CORRELATION_ID      VARCHAR2(64) 
    ACCOUNTREASON       NUMBER(3)    
    STARTTIME           VARCHAR2(14) 
    PRIORTIME           VARCHAR2(14) 
    CURTIME             VARCHAR2(14) 
    SESSIONTIME         NUMBER(9)    
    SESSIONVOLUME       NUMBER(9)    
    .
    .
    .
    Please help,

    Hello

    first of all, think of all these SQL for the subquery on MAX (fairy) with analytical functions, the examples given on AskTom of rewriting: http://asktom.oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:9843506698920

    So I'll start with a normal index the MSID (but I think you already have), but provide a compression on the column, I think the same value MSID exist several times in the table. If the performance is not satisfactory or that the plan is not the best, then an option to include more columns can help you.

    I think that the first part of the answer will bring more gain.

    Herald tiomela
    http://htendam.WordPress.com

  • index in the separate table space

    Hello

    in separate indexes improves performance if yes then how?

    810345 wrote:
    good article but my question is different from maintaining index in separate tablespace how to increase performance?

    This isn't. Separating the data and the indexes to improve performance is a myth.

  • Noise from the device Bluetooth becomes intermittent after use is not the device for a few minutes

    Qualcomm Atheros Communications - update the Bluetooth controller?

    Hello

    Check with the mother system/card manufacturer for on-board and/or real device
    site of the manufacturer for updated drivers and troubleshooting steps.

    Check then both of these still newer driver versions.

    Atheros - drivers
    http://www.Atheros.cz/

    Qualcomm-Atheros - drivers
    http://www.QCA.Qualcomm.com/resources/driverdownloads/

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • sorting table, how to get the new index of the last value?

    Hi all!

    I use a Subvi, which adds a cluter of the parameters to an array and then sort this table by one of the parameters in clusters.

    It works very well, with examples, that I found in this forum

    but now, I would like to know if it is possible to obtain at the end of the new cluster index first added.

    See attached VI

    Thank you

    You take the size of the table and insert the new element to this level is anything other than the table of construction and a simple construction would do that.

    In your question, I assume you're asking on the index of the item that you inserted after the sorting of the table, right? In this case, you can compare the cluster element that you introduce to the initial with the cluster table you get after a sorting of the table. This will give you the index of the item that you insert at the start.

  • Parent index for the data in a table?

    Is there a way to index a child table with a function to include a column from a parent table?

    Example:

    I want to see how many children live in a zip code (and their address is listed with their parents)

    Select count (*)

    class c of child, parent p

    where c.parent_id = p.parent_id

    and p.zipcode = "12345"

    Is there a way to make an index of children with a function that gets parents zip code?

    Thanks for the help?

    An index on the child table can reference only the columns of the child table.  You can't have an index on the child table that is based on information from the parent table.

    There are the function-based index, but they may involve only constants and deterministic functions (and, of course, the columns of the table).  For example, the child table could have a clue on UPPER (name), where last_name is a column of the table, but he could not have a clue about get_zip (parent_id), where get_zip is a function defined by the user who queries the parent table.

    Well - you "might" have a functional indication if you did to be deterministic, but it is not recommended because if the changed zip_code parent would really not deterministic and the change would not be included in the index.

    This apart from this code will work properly if the zip_code data does not change:

    CREATE TABLE parent (COL1 number primary key, zip VARCHAR2 (5))
        
    create the child table (col1 number, parent_key number);

    create or replace function get_zip (number p_key) return deterministic varchar2 as
    v_zip varchar2 (5);
    Start
    Select zip from v_zip of the parent where col1 = p_key;
    Return v_zip;
    end;

    /

    create indexes on children (get_zip (parent_key)) child_zip;

Maybe you are looking for

  • Portege M400 - where to find the Bios 3.80 changelog

    Hello is there a place where I can find the changelog of the version of the bios 1.80 to 3.80? should I upgrade?-do you have any experience by changing the fan? mine makes sounds that belong not here...-How long in your experience can take to get a r

  • How to change the direction of laptop computer screen display

    My laptop screen seems to have shifted from horizontal to vertical and don't know how to get back to normal.

  • Error Code 80070663 - Windows Update

    This error code, # 80070663, has blocked any attempt to run Windows Update for months.  Update NEVER works.   Windows Update seems to be the biggest cause of problems on my computer.   The ICON remains in my daily Board and despite the execution of t

  • How to resize a pdf file

    Hello everyoneI need resized my paper poster in A4 format. It is a file that I don't need to print but to send.Thank you

  • HELP I can not see my submenus in preview or published site

    I could add submenus but am unable to see them when I preview my site or even after that I published it.It's the URL of my published site: homeThere are supposed to be 4 submenus under 'stories '. It's rather urgent please help!Thank you.