conversion index global index local

Hello guys, someone tell me how to convert a global index of a local index.
The only method I know is to
1 remove the global index
2. create the index even with the local keyword.

I was wondering is there any alter index statement which allows you to change the overall index to a local index?

Thank you

969224 wrote:
Hello guys, someone tell me how to convert a global index of a local index.
The only method I know is to
1 remove the global index
2. create the index even with the local keyword.

I was wondering is there any alter index statement which allows you to change the overall index to a local index?

Thank you

There is no such statement

Tags: Database

Similar Questions

  • Global or local

    Hello

    How can we fiind the index global or local? Dictionary views for follow this out.

    concerning

    Jafar

    Check out the 2 following displays:
    Select * from dba_indexes;
    Select * from dba_ind_partitions;

    If an index (in dba_indexes) has an entry in dba_ind_partitions, it's a local index, otherwise an overall index

  • index global vs local

    Hello world
    What is the diff b/w local and global indexes, in what situation we wil use these two?

    CREATING ORACLE INDEXES. Laughing out loud. OMG_1
    (DEFINITION_ID)
    TABLESPACE WTF
    INITRANS 2
    MAXTRANS 255
    LOGGING
    LOCAL)
    P20100604 PARTITION
    LOGGING
    NOCOMPRESS
    TABLESPACE WTF
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    STORAGE)
    ORIGINAL 128 K
    NEXT 128K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    DEFAULT USER_TABLES
    ),
    P20100605 PARTITION
    LOGGING
    NOCOMPRESS
    TABLESPACE WTF
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    STORAGE)
    ORIGINAL 128 K
    NEXT 128K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    DEFAULT USER_TABLES
    )
    )
    NOPARALLEL;

    CREATE A UNIQUE ORACLE INDEX. Laughing out loud. OMG_2
    (FOLDER_ID)
    LOGGING
    TABLESPACE WTF
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    STORAGE)
    80K INITIAL
    NEXT 128K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    DEFAULT USER_TABLES
    )
    NOPARALLEL;

  • Global and local index with respect to table partitioned

    Hello
    I am very confused about local and global index in a partitioned table.
    In addition, local index can be partitioned and unpartitioned.
    In addition, what is the difference between global partitioned and unpartitioned
    the index?

    As far as I know,
    If there is local index then there will be as many partitions as the partition table
    and local parition will index contains the index of only the lines of their corresponding scores.
    In addition, the local index maintananence is easier because drop us or create a partition, only index corresponding partition is affected then that in the case of the overall index,
    If we create a new partition of the table, to rebuild the global index.
    Am I wrong?

    Concerning

    Hello

    This means that when you add/drop/split/merge table any partition (maintaiance) lying below, its corresponding partition in index is automatically added/deleted/split/merged. Oracle takes care of it internally without user intervention.

    Concerning
    Anurag

  • Split partition - index / local

    Hi friends,

    I'm trying to divide a table partition.

    Please let me know if the syntax below are correct.

    If the local index used

    ALTER TABLE SNYT. PART_ESTD
    ESTD_M13_S22 PARTITION SPLIT TO ('IS', 13, '22')
    IN (ESTD_M13_S21 PARTITION, PARTITION ESTD_M13_S22)
    update of the index;

    (by http://asktom.oracle.com/pls/asktom/f?p=100:11:0:::P11_QUESTION_ID:1401247200346349807)
    =================================================================

    If used Global indexes

    ALTER TABLE SNYT. PART_ESTD
    ESTD_M13_S22 PARTITION SPLIT TO ('IS', 13, '22')
    IN (ESTD_M13_S21 PARTITION, PARTITION ESTD_M13_S22)
    UPDATE GLOBAL INDEXES;

    Concerning
    KSG

    Published by: KSG on 23 August 2012 18:27

    Published by: KSG on 23 August 2012 18:51

    http://docs.Oracle.com/CD/E11882_01/server.112/e26088/statements_3001.htm#i2131218

    http://docs.Oracle.com/CD/E11882_01/server.112/e26088/statements_3001.htm#i2151566

  • Size of the partition and Index Local

    
    

    Hi all

    Database information: 11.2.0.3 64-bit Linux. It is a 3 RAC Cluster node.

    I recently partitioned a Parent and child tables as PARTITION of REFERENCE set. The parent table has been RANGE - partitioned. The first partition is on an integer column and the beaches are 0-1000, 10001-2000, 20001-30000 and so on. The secondary partition is on a date and it is partitioned for each quarter.

    I created a local index as follows (faullt2vehicle, offboard_load_date, record_type, Column_Y).

    Here's an example query I will carry out, where the date is covering 2 secondary partitions

    select  * from gets_tool_Fault t where fault2vehicle                                      = 12195
    and offboard_load_date                                 BETWEEN TO_DATE('2015-04-01 00:00:00', 'yyyy-mm-dd hh24:mi:ss')
    AND TO_DATE('2015-07-01 00:00:00', 'yyyy-mm-dd hh24:mi:ss')
    AND record_type                                        IN('FLT','STP','HC','EGU','EOAEQP','CEL')
    

    When I generate the plan explain below is the output

    Plan hash value: 2702285198
    
    --------------------------------------------------------------------------------------------------------------------------
    | Id  | Operation                           | Name               | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop |
    --------------------------------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT                    |                    |   386 | 76428 |   244   (0)| 00:00:03 |       |       |
    |   1 |  PARTITION RANGE SINGLE             |                    |   386 | 76428 |   244   (0)| 00:00:03 |     2 |     2 |
    |   2 |   PARTITION RANGE ITERATOR          |                    |   386 | 76428 |   244   (0)| 00:00:03 |     7 |     8 |
    |   3 |    TABLE ACCESS BY LOCAL INDEX ROWID| GETS_TOOL_FAULT    |   386 | 76428 |   244   (0)| 00:00:03 |    10 |    18 |
    |*  4 |     INDEX RANGE SCAN                | GETS_TOOL_FAULT_C7 |   386 |       |     7   (0)| 00:00:01 |    10 |    18 |
    --------------------------------------------------------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       4 - access("FAULT2VEHICLE"=12195 AND "OFFBOARD_LOAD_DATE">=TO_DATE(' 2015-04-01 00:00:00', 'syyyy-mm-dd 
                  hh24:mi:ss') AND "OFFBOARD_LOAD_DATE"<=TO_DATE(' 2015-07-01 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))
           filter("RECORD_TYPE"='CEL' OR "RECORD_TYPE"='EGU' OR "RECORD_TYPE"='EOAEQP' OR "RECORD_TYPE"='FLT' OR 
                  "RECORD_TYPE"='HC' OR "RECORD_TYPE"='STP')
    
    

    If you observe the optimizer is currently to identify the partition, and then the secondary partition, but what is confusing to me, this is why the restricted PREMISES index scan scans all secondary partitions for a given partition. The partition should be not even as a value from PARTITION RANGE ITERATOR of 7 and 8.

    Interestingly, when I provide a date range which is in single partition the pruning is happening correctly
    
    Plan hash value: 3457799067
    
    --------------------------------------------------------------------------------------------------------------------------
    | Id  | Operation                           | Name               | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop |
    --------------------------------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT                    |                    |     1 |   197 |     4   (0)| 00:00:01 |       |       |
    |   1 |  PARTITION RANGE SINGLE             |                    |     1 |   197 |     4   (0)| 00:00:01 |     2 |     2 |
    |   2 |   PARTITION RANGE SINGLE            |                    |     1 |   197 |     4   (0)| 00:00:01 |     7 |     7 |
    |*  3 |    TABLE ACCESS BY LOCAL INDEX ROWID| GETS_TOOL_FAULT    |     1 |   197 |     4   (0)| 00:00:01 |    16 |    16 |
    |*  4 |     INDEX RANGE SCAN                | GETS_TOOL_FAULT_N1 |     1 |       |     3   (0)| 00:00:01 |    16 |    16 |
    --------------------------------------------------------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       3 - filter("RECORD_TYPE"='CEL' OR "RECORD_TYPE"='EGU' OR "RECORD_TYPE"='EOAEQP' OR "RECORD_TYPE"='FLT' OR 
                  "RECORD_TYPE"='HC' OR "RECORD_TYPE"='STP')
       4 - access("FAULT2VEHICLE"=12195 AND "OFFBOARD_LOAD_DATE">=TO_DATE(' 2015-04-01 00:00:00', 'syyyy-mm-dd 
                  hh24:mi:ss') AND "OFFBOARD_LOAD_DATE"<=TO_DATE(' 2015-06-01 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))
    

    Thank you

    Jayadeep

    1. your index (faullt2vehicle, offboard_load_date, record_type, Column_Y), your query has a predicate based on a beach on the second column in this index, which means that the order of the index that must be examined is dictated by this predicate and each row in the range must be considered (filtered) to check the third predicate.  Basic guideline on the column in the index you are ordering for more effective use: If you have columns where predicates are always equal put these columns at the beginning of the index, the columns where predicates are usually based on a beach go towards the end. You seem to have been misled by reviews 'the prefix local index' stick to your two columns of partitioning at the front of your index - which should NOT be an automatic choice for the local index: see this note ( https://jonathanlewis.wordpress.com/2011/02/28/prefixed/ ) comments that follow and OTN article it is linked to.

    2 since you have two indexes that start the same way (this goes with the local prefix again) you made easy for the optimizer to choose the index (for you) is clearly evil. That's why behind the choice of the optimizer is probably another example of an issue that I spoke a few days ago: Re: Composite index + map selection N1 your index is probably greater than the index of C7, and the order of the entries in the C7 index probably makes the data much more dispersed that it really is (i.e. high clustering_factor).

    Concerning

    Jonathan Lewis

    PS (update):

    If there are many rows for each fault_id, then you must create an index from fault_id with 'compress 1' (or compress N if the first columns of the index N are repetitive).

    When dealing with range partitions do not forget that the high value partition is never reached in the document, do so based in the form "date_col BETWEEN date1 and date2", use the form "date_col > = dateX and date_col»< datey"="" or="" you="" may="" find="" that="" you="" are="" accessing="" one="" more="" partition="" than="" you="" hope="" to,="" and="" in="" some="" cases="" that="" may="" mean="" "multiple"="" (i.e.="" 2)="" when="" you="" were="" expecting="" 1="" (and="" the="" optimizer="" is="" much="" better="" at="" estimating="" costs="" for="" a="" single="">

  • Create my own conversion to global channel

    I have global channels provided for in each of my kitchen, and they all have different thermocouples. Because TCs Platinel II are not in the options for thermocouple, I made my own equation of conversion using Chebyschev polynomials. Is it possible to apply this conversion on the channel itself? How would I go to do this? (even if there is already a VI to plug a number in a polynomial of chebyschev) Thank you

    Hi nc61,

    Take a look at this example.

    Best,

    Carmen C.

  • Mode Global vs local

    Hello, this may be rudimentary but I don't even understand the Administration on this subject guide. When do we use Local vs global on the POV?

    Thank you

    The POV changes globally affect all users
    The POV changes in local mode affect only yourself.

    For example, if you are in the Global mode and you change the current period, it changes not only for you, but everyone.

  • Global and Local variable... why it doesn't work?

    I'm confused.  .__.

    haha

    in any case, I wrote a class for my AS3 flash game.  It's that everything works well until what I called a method and got an error message.  After a bit of debugging, I was able to determine that my problem is when I try to assign a global variable (and the class property) to a local value, within the service itself, where the local variable.

    Here is part of my class:

    Sheet/public class extends Sprite {}

    private var number: int;

    private var sourceBitmap:Bitmap;

    private var sourceBitmapData:BitmapData;

    private var tileWidth:int;

    private var tileHeight:int;

    public void {sheet (number: int, tileWidth:int, tileHeight:int)}

    This.Number = number;

    this.tileWidth = tileWidth;

    this.tileHeight = tileWidth;

    displayImage();

    init();

    }

    public void displayImage() {}

    var imgLoader:Loader = new Loader();

    imgLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, done);

    If (number > = 100) {}

    imgLoader.load (new URLRequest("CharSprites/Female/"+number+".png"));

    }

    else {}

    imgLoader.load (new URLRequest("CharSprites/Male/"+number+".png"));

    }

    function done(evt:Event):void {}

    var myBit:Bitmap = Bitmap (imgLoader.content);

    addChild (myBit);

    this.sourceBitmapData = myBit.bitmapData;

    trace (this.sourceBitmapData);                                              ... sourceBitmapData are here

    }

    }

    private void init() {}

    trace (sourceBitmapData);                                                       sourceBitmapData is null here

    }

    }

    }

    I thought that I was able to assign the value of hard bitmapData to a property class (global variable) inside a function and have it exists outside.  I was wrong?

    How do I get around that?

    I know that I can write a function to return the Bitmap image, but as the function is called after the EventListener and depends on my charger, I don't know how to get around this problem.

    Thank you very much!

    Ya. My recommendation is to delay your init() function call until your image will load. So just move the call to init() in your service done or what needs the bitmapData to your function made move.

  • Discuss the notification Box options: global or local?

    When I put the Chat Pod notification option to 'disable' (preferences/Chat Pod), which is a local setting or it will disable the pop-up chat pod to all participants?

    It is a decoration of the room, so it is global to all presenters-hosts in the room. Participants receive chat notifications. Presenters-hosts should see notifications when their objective is not on the meeting room. It is when they are for example, screen sharing.

  • global or local variables for speed?

    Hi, someone at - it an idea?

    is it faster to the use of global variables or properties (sprite) or the properties of the object?
    In other words is it smart to use as less globals possible or not (in terms of speed)? Or is not a difference.

    Thank you!

    www.SeriousGames.startpagina.nl

    In general, use the globals less possible, for various reasons (lighter &)
    more secure code, ability to reuse the names etc.).
    In terms of speed, local variables are faster in most of the languages
    (definition hierarchy, local verified first + entered less to research)
    (for). In Director however, no difference will be hardly noticeable, since
    the charge of executing line jargon leaves no room for sub or nearby to
    considerations of optimization nanoseconds.

    "www.gamesmaken.pagina.nl" wrote in message
    News:e8brrf$833$1@forums. Macromedia.com...
    > Hey, someone at - it an idea?
    >
    > it is faster to use global variables or properties (sprite) or an object
    > Properties?
    > In other words is smart to use as less globals possible or not (
    > terms
    (> speed)? Or is not a difference.
    >
    > Thank you!
    >
    > www.seriousgames.startpagina.nl
    >

  • Adjustments to the sliders in brush adjustent are applied globally, not locally

    Hello, I am a new user of Lightroom and don't know if I'm missing something. Of all the Googling, I did apparently not someone else has had this problem, or maybe I'm not looking for the right keywords. About 50% of the time when the adjustment brush stops working as a brush, and on the contrary any setting that I do for cursors is applied globally to the entire image immediately. What happens while I'm using the adjustment brush and clicking on 'new '.   Is there a setting that is getting changed in the course of my work flow to cause this? Thank you in advance!

    A couple of possibilities to consider-

    1. you set the global sliders in the ' basic' Panel which is under the adjustment table brush when you have an active brush.

    2. When you click "New" to start a new brush set must simply create another 'pin code' and allow different brush effects.

    3. Press [Enter/return] will come out of the brush.

    4. Press [K] will leave the brush (and also open the adjustment brush!  That is to say. turns on and off power switch brush)

  • Local/Global index for OLTP

    In our application (OLTP), we have a rule on

    * "" on all the partitioned tables, we need to have just partitioned LOCAL index "... *"
    I think that this rule is valid, because when we had GLOBAL index partitioned on the table when concurrent transactions
    was going on, we got below error:
    ORA - 00054:resource busy and...
    We get this error when rebuild us all indexes not valid...

    When we changed all the GLOBAL partitioned index at the LOCAL level... we get this error...

    We use MEV for cloud computing (i.e. we have several tenants and a partition for each tenant)


    My doubt is, is the rule as mentioned above may be still valid, because it is at odds with what is mentioned in the Oracle
    Documentation (the concepts guide)...
    http://docs.Oracle.com/CD/B19306_01/server.102/b14220/partconc.htm#i461446

    '' In general, you should use an index for OLTP applications and local storage of data or applications of DSS ''

    We use oracle 10 g 2...

    In our case, research www.lesormes.com will not create several partitions, only one partition (we have a partition for each tenant).

    Local is even better for you.

    Thanks for suggesting to rebuild online (for global)... I'll try with that... .but he would have any problem of performance relative to the index LOCAL...

    I don't think abnd so there shouldn't be any performance impact, rather it improves performance in locaking not all the table exclusively for the index creaiton.

    NY suggestion/idea why Oracle recommends partitioned Global index for OLTP?

    Because normally we have much aprtition of drop/merger/split partition of things in OLTP type (these operations are important in DSS normally loading data).

    any suggestion/idea why Oracle recommends partitioned Global index for OLTP?

    Because they are the fastest to access a record of a table and OLTP, response time is what counts. If you compare your reports OLTP or transactions, to spawn multiple partitions (a small percentage could access only a single partition and rules are made for the majority of cases, not for the small number of cases) and global index are better in this scenario.
    at MAS, you always have a huge data and as partition operation may stop your work until the index is rebuilt (which can take several hours for the huge data) where oracle is recommended to have a local indexing policy.

    Salman

  • How to find the index is local and the global in the dictionary of the oracle

    Is there a way to know if the index partition is global or local oracle dictionary.

    Is there a way to know if the index partition is global or local oracle dictionary.

    select index_name, locality from all_part_indexes
    
  • Creating partitioned local index

    Hi all

    Planing to run the range-partitioned on a table and creating Local partitioned index, but in the table is seen forced composite primary key thought to previously create Composite Unique Local partitioned index.

    Problem is when creating index its error ORA-14039 giving, of course it is not possible as partitioning column is not a subset of columns in a UNIQUE index key.

    Is there no workaround solution to create Local partitioned indexes... otherwise I'll be forced to create the overall index part?

    Y at - it no drawback if I create Composite Unique Local partitioned indexes including the columns of partitioning on purpose?

    There will be no impact if I create the index Composite Unique Local partitioned by including the columns voluntarily on the SQL QUERIES, access this table partitioning?

    Please suggest me a workaround solution.
    CREATE TABLE YASIR.CS_RESEARCH (ORDER_NBR NUMBER NOT NULL,
                          ORDER_DETAIL_NBR NUMBER NOT NULL,
                          SESSION_ID VARCHAR2(40),
                          PRODUCT_GROUP VARCHAR2(16) NOT NULL,
                          PRODUCT_SUBGROUP VARCHAR2(16) DEFAULT 'N/A',
                          FORMAT_TYPE VARCHAR2(10) NOT NULL,
                          CONTRIBUTOR VARCHAR2(60) NOT NULL,
                          DOCUMENT_NUMBER VARCHAR2(15) NOT NULL,
                          DOCUMENT_DATE DATE,
                          BILLABLE_PAGES NUMBER,
                          NON_BILLABLE_PAGES VARCHAR2(512),
                          PURCHASED_UNITS VARCHAR2(2000),
                          DELIVERY_METHOD VARCHAR2(6) DEFAULT 'ONLINE',
                          COMPANY_NAME VARCHAR2(120),
                          STATUS VARCHAR2(10) DEFAULT 'NEW',
                          CONTENT_CODE VARCHAR2(15) NOT NULL, 
                          CONTENT_CODE_DESC VARCHAR2(60),
                          ITEM_PRICE NUMBER NOT NULL,
                          PAGES_ORDERED NUMBER,
                          LAST_MNT_DATE_TIME DATE NOT NULL,
                          LAST_MNT_OPID VARCHAR2(120) NOT NULL,
                          CREATE_DATE DATE NOT NULL,
                          DML_FLAG CHAR(1) NOT NULL)
         PARTITION BY RANGE (CREATE_DATE) 
         (PARTITION CS_RESEARCH_2009_Q2 VALUES LESS THAN (MAXVALUE));
    
    ###Split partitions:
    ALTER TABLE YASIR.cs_research
      SPLIT PARTITION CS_RESEARCH_2009_Q2 AT (TO_DATE('30-SEP-2007 23:59:59', 'DD-MON-YYYY HH24:MI:SS'))
      INTO (PARTITION CS_RESEARCH_2007_Q3,
            PARTITION CS_RESEARCH_2009_Q2);
    
    ALTER TABLE YASIR.cs_research
      SPLIT PARTITION CS_RESEARCH_2009_Q2 AT (TO_DATE('31-DEC-2007 23:59:59', 'DD-MON-YYYY HH24:MI:SS'))
      INTO (PARTITION CS_RESEARCH_2007_Q4,
            PARTITION CS_RESEARCH_2009_Q2);
    
    ALTER TABLE YASIR.cs_research
      SPLIT PARTITION CS_RESEARCH_2009_Q2 AT (TO_DATE('31-MAR-2008 23:59:59', 'DD-MON-YYYY HH24:MI:SS'))
      INTO (PARTITION CS_RESEARCH_2008_Q1,
            PARTITION CS_RESEARCH_2009_Q2);
    
    ALTER TABLE YASIR.cs_research
      SPLIT PARTITION CS_RESEARCH_2009_Q2 AT (TO_DATE('30-JUN-2008 23:59:59', 'DD-MON-YYYY HH24:MI:SS'))
      INTO (PARTITION CS_RESEARCH_2008_Q2,
            PARTITION CS_RESEARCH_2009_Q2);
    
    ALTER TABLE YASIR.cs_research
      SPLIT PARTITION CS_RESEARCH_2009_Q2 AT (TO_DATE('30-SEP-2008 23:59:59', 'DD-MON-YYYY HH24:MI:SS'))
      INTO (PARTITION CS_RESEARCH_2008_Q3,
            PARTITION CS_RESEARCH_2009_Q2);
    
    ALTER TABLE YASIR.cs_research
      SPLIT PARTITION CS_RESEARCH_2009_Q2 AT (TO_DATE('31-DEC-2008 23:59:59', 'DD-MON-YYYY HH24:MI:SS'))
      INTO (PARTITION CS_RESEARCH_2008_Q4,
            PARTITION CS_RESEARCH_2009_Q2);
    
    ALTER TABLE YASIR.cs_research
      SPLIT PARTITION CS_RESEARCH_2009_Q2 AT (TO_DATE('31-MAR-2009 23:59:59', 'DD-MON-YYYY HH24:MI:SS'))
      INTO (PARTITION CS_RESEARCH_2009_Q1,
            PARTITION CS_RESEARCH_2009_Q2);
    
    ###Create indexes on cs_research except primary key index CSR_PKEY:
    alter session set sort_area_size=262144000; -----(250MB Total will be 1GB for 4 parallel process)
    create index YASIR.CSR_DETAIL_NBR on YASIR.CS_RESEARCH(TO_NUMBER(REPLACE(TO_CHAR(ORDER_NBR,'999999999')||TO_CHAR(ORDER_DETAIL_NBR,'999999999'),' ',''),'999999999999')) LOCAL
              (PARTITION CS_RESEARCH_2007_Q3 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2007_Q4 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q1 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q2 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q3 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q4 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2009_Q1 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2009_Q2 TABLESPACE USERS)
         nologging parallel (degree 4);
    Index created.
    
    create index YASIR.CSR_SESSION on YASIR.CS_RESEARCH(SESSION_ID,ORDER_NBR) LOCAL
              (PARTITION CS_RESEARCH_2007_Q3 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2007_Q4 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q1 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q2 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q3 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q4 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2009_Q1 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2009_Q2 TABLESPACE USERS)
         nologging parallel (degree 4);
    Index created.
    
    create index YASIR.CSR_CREATED on YASIR.CS_RESEARCH(CREATE_DATE) LOCAL
              (PARTITION CS_RESEARCH_2007_Q3 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2007_Q4 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q1 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q2 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q3 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q4 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2009_Q1 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2009_Q2 TABLESPACE USERS)
         nologging parallel (degree 4); 
    Index created.
    
    create index YASIR.CSR_DOCUMENT_NUMBER on YASIR.CS_RESEARCH(DOCUMENT_NUMBER) LOCAL
              (PARTITION CS_RESEARCH_2007_Q3 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2007_Q4 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q1 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q2 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q3 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q4 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2009_Q1 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2009_Q2 TABLESPACE USERS)
         nologging parallel (degree 4); 
    Index created.
    
    create index YASIR.CSR_STATUS on YASIR.CS_RESEARCH(STATUS) LOCAL
              (PARTITION CS_RESEARCH_2007_Q3 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2007_Q4 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q1 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q2 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q3 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q4 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2009_Q1 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2009_Q2 TABLESPACE USERS)
         nologging parallel (degree 4);
    Index created.
     
    create unique index CSR_PRKEY_IND on YASIR.CS_RESEARCH(ORDER_NBR,ORDER_DETAIL_NBR) LOCAL
         (PARTITION CS_RESEARCH_2007_Q3 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2007_Q4 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q1 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q2 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q3 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q4 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2009_Q1 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2009_Q2 TABLESPACE USERS)
         nologging parallel (degree 4);
    ERROR at line 1:
    ORA-14039: partitioning columns must form a subset of key columns of a UNIQUE
    index
    Thank you
    Yasser

    YasserRACDBA wrote:
    I want to create a unique partitioned index Local and use this primary key index.

    But my main question is if this create_date column will affect all sql queries that are not used in where clause?

    Yasser,

    your main question should not be about performance queries, but the consequence of adding the CREATE_DATE to the local unique index:

    1. you change the meaning of the primary key: adding the CREATE_DATE means that the unique character of ORDER_NBR, ORDER_DETAIL_NBR is only applied by CREATE_DATE. I guess that does not match the business experience that this primary key is supposed to enforce and defeated the original purpose of the uniqueness that is unique values of ORDER_NBR, ORDER_DETAIL_NBR across the table.

    2. If you want to use as a key in other tables you must add the CREATE_DATE to all child tables, because you need to refer to the primary key complete a relationship of key foreign primary key.

    So the only 'right' way to do this is to use a unique comprehensive index on ORDER_NBR, ORDER_DETAIL_NBR. Of course, this means you must rebuild whenever a partition maintenance is carried out which invalidates the overall index since you use 8i and you cannot use the UPDATE GLOBAL INDEXES clause.

    Kind regards
    Randolf

    Oracle related blog stuff:
    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/

Maybe you are looking for

  • Boring: E-mails get classified as spam

    Hello Team Support HP I know, there are a number complains with the same request that I have, but it must be said again: Please, give us the ability to disable the spam filter very annoying! We use the HP eprint services on a daily basis for over a y

  • Pavilion 15-p009tx: failure of hard drive test

    Hello, I was using my laptop for about six months, and today when I tried to boot up the laptop, it would just show a blue screen. That's why I started dianosis and it failed hard drive DST test. Failure ID is 600ETA-7AX7L1-MFPV6K - 60S 503. Product

  • WINDOWS 7 32 bit DRIVER FOR DESIGNJET 120

    Please help on DESIGNJET 120 DRIVER FOR WIN 7 32 BIT

  • Problems with some foreign characters

    Hi, I have problems with 217-255 (basically accented characters and umlauts) ASCII characters. For example, I download the word "Pyre" (books in German), but it shows up as "ba¼cher". It seems that the chain adds an extra character or something. The

  • Plan a Workflow Runtime: dynamic values

    I would like to run a workflow using trigger plan. I can see in the properties of the calendar that all fields must be defined manually. Is there a way where we can set the values of some fields dynamically? For example, start time-this is adjustable