Error on drop partition

Hello,
When i execute this command i get this:
SQL> ALTER TABLE RMPM.GROUPE_AFFAIRES DROP PARTITION PART_71;
ALTER TABLE RMPM.GROUPE_AFFAIRES DROP PARTITION PART_71
ERROR at line 1:
ORA-04045: errors during recompilation/revalidation of RMPM.IDX_GA_LIB
ORA-29881: failed to validate indextype
I d'ont know why???
Thanks
PS: oracle version is 9.2.0.6.0 on AIX

Hello,
When i execute this command i get this:
SQL> ALTER TABLE RMPM.GROUPE_AFFAIRES DROP PARTITION PART_71;
ALTER TABLE RMPM.GROUPE_AFFAIRES DROP PARTITION PART_71
ERROR at line 1:
ORA-04045: errors during recompilation/revalidation of RMPM.IDX_GA_LIB
ORA-29881: failed to validate indextype
I d'ont know why???
Thanks
PS: oracle version is 9.2.0.6.0 on AIX

Similar Messages

  • Partitioned nested table error while dropping one partition

    All,
    I created a partitioned table which is also a nested table as you can see below. I got FK constraint error while attempting to drop a partition, however, I could not find the FK in order to disable it since it's underlying table emp_list_p which is not visiable to applications. How could I drop the partition in this case?
    Thanks,
    Jianhui
    SQL>desc emp_t
    Name Null? Type
    ENO NUMBER
    ENAME VARCHAR2(30)
    SAL NUMBER
    SQL>desc emp_list_t
    emp_list_t TABLE OF EMP_T
    Name Null? Type
    ENO NUMBER
    ENAME VARCHAR2(30)
    SAL NUMBER
    SQL>l
    1 create table dept_p
    2 (dno number,
    3 dname varchar2(30),
    4 emplist emp_list_t )
    5 NESTED TABLE emplist store as emp_list_p
    6 partition by range (dno)
    7 (
    8 partition p1 values less than (2),
    9 partition p2 values less than (3)
    10* )
    SQL>/
    Table created.
    SQL>insert into dept_p (select * from dept);
    2 rows created.
    SQL>select * from dept_p;
    DNO DNAME
    EMPLIST(ENO, ENAME, SAL)
    1 HR
    EMP_LIST_T(EMP_T(1, 'scott', 1000), EMP_T(2, 'brain', 2000))
    2 SALES
    EMP_LIST_T(EMP_T(3, 'frank', 800))
    2 rows selected.
    SQL>alter table dept_p drop partition p1;
    alter table dept_p drop partition p1
    ERROR at line 1:
    ORA-02266: unique/primary keys in table referenced by enabled foreign keys
    SQL>l
    1 select constraint_name, constraint_type, table_name
    2 from user_constraints
    3 where r_constraint_name=(select constraint_name
    4* from user_constraints where table_name='DEPT_P' and constraint_type in ('P','U'))
    SQL>/
    no rows selected

    SQL> create type emp_t as object(
      2  ENO NUMBER,
      3  ENAME VARCHAR2(30),
      4  SAL NUMBER)
      5  /
    Type created.
    SQL> create type emp_list_t as table of emp_t;
      2  /
    Type created.
    SQL> desc emp_list_t
    emp_list_t TABLE OF EMP_T
    Name                                      Null?    Type
    ENO                                                NUMBER
    ENAME                                              VARCHAR2(30)
    SAL                                                NUMBER
    SQL> create table dept_p
      2  (dno number,
      3  dname varchar2(30),
      4  emplist emp_list_t )
      5  NESTED TABLE emplist store as emp_list_p
      6  partition by range (dno)
      7   (
      8   partition p1 values less than (2),
      9   partition p2 values less than (3)
    10   )
    11  /
    Table created.
    SQL> insert into dept_p values(1, 'HR',
      2  EMP_LIST_T(EMP_T(1, 'scott', 1000), EMP_T(2, 'brain', 2000)));
    1 row created.
    SQL>
    SQL> insert into dept_p values(2, 'SALES',EMP_LIST_T(EMP_T(3, 'frank', 800)));
    1 row created.
    SQL> select * from dept_p;
           DNO DNAME
    EMPLIST(ENO, ENAME, SAL)
             1 HR
    EMP_LIST_T(EMP_T(1, 'scott', 1000), EMP_T(2, 'brain', 2000))
             2 SALES
    EMP_LIST_T(EMP_T(3, 'frank', 800))
    SQL> alter table dept_p drop partition p1;
    alter table dept_p drop partition p1
    ERROR at line 1:
    ORA-02266: unique/primary keys in table referenced by enabled foreign keys
    SQL> select constraint_name,table_name,constraint_type from user_constraints
      2  where table_name = 'DEPT_P';
    CONSTRAINT_NAME                TABLE_NAME                     C
    SYS_C008224                    DEPT_P                         U
    SQL> select index_name from user_constraints
      2  where table_name = 'DEPT_P';
    INDEX_NAME
    SYS_C008224
    SQL> select index_name,column_name from user_ind_columns
      2  where index_name = 'SYS_C008224';
    INDEX_NAME                     COLUMN_NAME
    SYS_C008224                    EMPLIST
    SQL>
    SQL> disconnect
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - Production
    With the Partitioning, OLAP and Data Mining options
    If you look closely, there is a unique index on dept_p.  Oracle does not advertise it.
    One of the options is that you may have to delete the rows in the partition first,
    then drop the partition.

  • Problem while dropping partitions

    Hi All,
    I'm using oracle 11g. I have 2 tables A and B. A is the master table and B is the child table. Both the tables are partitioned based on month. Now when i have to drop partition for previous month, i first drop partition from table B then from table A. With table B the partition is getting dropped successfully. But when i try to drop partition for A it gives an error as it is a master table. Table A does not have any data in the partitioned to be dropped that is being referenced by table B. How do i drop the partition for master table.
    Thanks in Advance

    Hi,
    There may be Chance of Have some rows .. just find out the rows existing in the partition of master table with existence of records in Child table that makes it clear clarificaiton...
    - Pavan Kumar N

  • Problem in truncate/drop partitions in a table having nested table columns.

    Hi,
    I have a table that has 2 columns of type nested table. Now in the purge process, when I try to truncate or drop a partition from this table, I get error that I can't do this (because table has nested tables). Can anybody help me telling how I will be able to truncate/drop partition from this table? IF I change column types from nested table to varray type, will it help?
    Also, is there any short method of moving existing data from a nested table column to a varray column (having same fields as nested table)?
    Thanks in advance.

    >
    I have a table that has 2 columns of type nested table. Now in the purge process, when I try to truncate or drop a partition from this table, I get error that I can't do this (because table has nested tables). Can anybody help me telling how I will be able to truncate/drop partition from this table?
    >
    Unfortunately you can't do those operations when a table has a nested table column. No truncate, no drop, no exchange partition at the partition level.
    A nested table column is stored as a separate table and acts like a 'child' table with foreign keys to the 'parent' table. It is these 'foreign keys' that prevent the truncation (just like normal foreign keys prevent truncating partions and must be disabled first) but there is no mechanism to 'disable' them.
    Just one excellent example (there are many others) of why you should NOT use object columns at all.
    >
    IF I change column types from nested table to varray type, will it help?
    >
    Yes but I STRONGLY suggest you take this opportunity to change your data model to a standard relational one and put the 'child' (nested table) data into its own table with a foreign key to the parent. You can create a view on the two tables that can make data appear as if you have a nested table type if you want.
    Assuming that you are going to ignore the above advice just create a new VARRAY type and a table with that type as a column. Remember VARRAYs are defined with a maximum size. So the number of nested table records needs to be within the capacity of the VARRAY type for the data to fit.
    >
    Also, is there any short method of moving existing data from a nested table column to a varray column (having same fields as nested table)?
    >
    Sure - just CAST the nested table to the VARRAY type. Here is code for a VARRAY type and a new table that shows how to do it.
    -- new array type
    CREATE OR REPLACE TYPE ARRAY_T AS VARRAY(10) OF VARCHAR2(64)
    -- new table using new array type - NOTE there is no nested table storage clause - arrays stored inline
    CREATE TABLE partitioned_table_array
         ( ID_ INT,
          arra_col  ARRAY_T )
         PARTITION BY RANGE (ID_)
         ( PARTITION p1 VALUES LESS THAN (40)
         , PARTITION p2 VALUES LESS THAN(80)
         , PARTITION p3 VALUES LESS THAN(100)
    -- insert the data from the original table converting the nested table data to the varray type
    INSERT INTO PARTITIONED_TABLE_ARRAY
    SELECT ID_, CAST(NESTED_COL AS ARRAY_T) FROM PARTITIONED_TABLENaturally since there is no more nested table storage you can truncate or drop partitions in the above table
    alter table partitioned_table_array truncate partition p1
    alter table partitioned_table_array drop partition p1

  • Drop partition without disabling foreign key

    Hi All,
    I have parent and child table.
    Parent table
    create table parent_1
    (id number,
    create_date date,
    constraint parent_1_pk001 PRIMARY KEY (id))
    PARTITION BY RANGE (create_date)
    INTERVAL (NUMTODSINTERVAL(1,'DAY'))
    (PARTITION parent_1_part VALUES LESS THAN ('01-JAN-2010'));
    Child Table
    create table child_1
    (id number,
    create_date date,
    constraint child_1_fk001 FOREIGN KEY (id)
    REFERENCES parent_1 (id))
    PARTITION BY RANGE (create_date)
    INTERVAL (NUMTODSINTERVAL(1,'DAY'))
    (PARTITION create_date_part VALUES LESS THAN ('01-JAN-2010'));
    I am having problems dropping partition.
    Parent_1
    1     26-JUL-12
    2     26-JUL-12
    Child_1
    1     26-JUL-12
    alter table CHILD_1 drop partition SYS_P274;
    table CHILD_1 altered.
    ON DROPPING PARENT PARTITION
    alter table parent_1 drop partition SYS_P273;
    Error report:
    SQL Error: ORA-02266: unique/primary keys in table referenced by enabled foreign keys
    02266. 00000 - "unique/primary keys in table referenced by enabled foreign keys"
    *Cause:    An attempt was made to truncate a table with unique or
    primary keys referenced by foreign keys enabled in another table.
    Other operations not allowed are dropping/truncating a partition of a
    partitioned table or an ALTER TABLE EXCHANGE PARTITION.
    *Action:   Before performing the above operations the table, disable the
    foreign key constraints in other tables. You can see what
    constraints are referencing a table by issuing the following
    command:
    SELECT * FROM USER_CONSTRAINTS WHERE TABLE_NAME = "tabnam";
    PLEASE CAN I KNOW IF THERE IS ANY WAY TO DROP PARENT PARTITION WITHOUT DISABLE/ENABLE FOREIGN CONSTRAINTS
    Thanks

    SQL Error: ORA-02266: unique/primary keys in table referenced by enabled foreign keys
    02266. 00000 - "unique/primary keys in table referenced by enabled foreign keys"
    *Cause: An attempt was made to truncate a table with unique or
    primary keys referenced by foreign keys enabled in another table.
    Other operations not allowed are dropping/truncating a partition of a
    partitioned table or an ALTER TABLE EXCHANGE PARTITION.
    *Action: Before performing the above operations the table, disable the
    foreign key constraints in other tables. You can't do that until you disable the foreign key constraint
    http://jonathanlewis.wordpress.com/2006/12/10/drop-parent-partition/
    Hope this helps
    Mohamed Houri
    www.hourim.wordpress.com

  • Drop partition with missing associate Tablespace

    Hi All,
    Scenario is user accidentally removed datafile using rm command then we dropped that Tablespace using offline drop. we want to drop partition for which TS and datafile both are already offline dropped .
    Thanks.

    >
    I tried to exchange partition with another table having same properties of original table. While doing so it prompted below error,
    ORA-14292: Partitioning type of table must match subpartitioning type of composite partition
    >
    Then most likely the table and partition do NOT have the same properties.
    If you want to exchange a partition of a table that is subpartitioned then the other table has to be partitioned in the same way that the main table is subpartitioned.
    Post the DDL for the main table that shows how it is partitioned/subpartitioned and the DDL for the work table you are trying to use for the exchange.
    See my reply Posted: Jan 7, 2013 7:02 PM in this thread for a solution that uses exchange partition is a similar manner
    Merge tables

  • Recreating dropped partition

    Hi all,
    I have one table with two date range partitions (Part_1 - date value less than Jan 2009, Part_2 date value less than Feb 2009). If I drop the Part_1, can I recreate the same?
    When I trying to recreate I m getting the following error
    ORA - 14074; partition bound must collate higher than that of the last partition
    Note: I cannot drop or recreate new tables with new partition. I have to get the partition in the same table itself.
    Thanks in advance
    Nishant Santhan

    Hi,
    You can re-create the Old one, but try to create a new partition which greater than the existing partition, in your case the second partition.
    Refer to : http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:5532451667350
    Where Tom depicted the case for your demo.
    If you want same old partition then I say drop the partitions on the old take and create new table with required partitions and exchange.
    - Pavan Kumar N

  • Drop partition from procedure

    Hi,
    Why I can't drop partiton from procedure? How can I do it?
    SQL> alter table ama add partition p1 values ('1')
    2 /
    Table altered.
    SQL>
    SQL> create procedure partition_drop (partition_name varchar) is
    2 begin
    3      execute immediate 'alter table ama drop partition p'||partition_name||')';
    4 end;
    5 /
    Procedure created.
    SQL>
    SQL> call partition_drop('1')
    2 /
    call partition_drop('1')
    ERROR at line 1:
    ORA-14048: a partition maintenance operation may not be combined with other operations
    ORA-06512: at "AMA.PARTITION_DROP", line 3
    SQL>
    SQL> alter table ama drop partition p1
    2 /
    Table altered.

    Hi,
    I have tried this and its working..
    Create Table Part_Test(a number(2), b varchar2(30))
    Partition by range (a)
    (Partition part1 values less than (10) tablespace users,
    Partition part2 values less than (20) tablespace users ,
    Partition part3 values less than (30))
    Begin
    Execute Immediate 'Alter table part_test add partition part5 values less than (MAXVALUE)';
    Execute Immediate 'Alter Table part_test drop partition part1';
    end;
    Thanks....

  • Error while dropping a table

    Hi All,
    i got an error while dropping a table which is
    ORA-00600: internal error code, arguments: [kghstack_free1], [kntgmvm: collst], [], [], [], [], [], [], [], [], [], []
    i know learnt that -600 error is related to dba. now how to proceed.
    thanks and regards,
    sri ram.

    00600 errors should be raised as service request with Oracle as it implies some internal bug.
    You can search oracle support first to see if anyone has had the same class of 00600 error, and then if not (and therefore no patch) raise your issue with Oracle.
    http://support.oracle.com

  • Error while dropping tablespace

    Hi all
    I am getting follwogin error while dropping tablespace.is it memory prob?
    ERROR at line 1:
    ORA-04031: unable to allocate 4180 bytes of shared memory ("shared
    pool","unknown object","sga heap(1,0)","state objects")
    Thanks.

    Your Sga seems too small, you should increase it

  • Error when dropping a user/tablespace

    Hi
    I am trying to drop user/tablespaces, but I got the following error
    SQL> drop user SM92 cascade;
    drop user SM92 cascade
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-00942: table or view does not exist
    Currently this user has not tables or view, the statement select * from all_tables where owner='SM92' return no row
    ANyone knows why I can't drop this user? What should I check?
    Thanks
    Li

    Hi, probably the user has dependency with other schemas, please review the Note:361576.1 into metalink site.
    Good luck.
    Regards.

  • Bootcamp - I'm trying to install windows 8 on my MBPr but getting an error when partitioning the disk. 'An error occurred while partitioning the disk'

    I'm trying to install windows 8 on my MBPr but getting an error when partitioning the disk. 'An error occurred while partitioning the disk'

    You posted your Bootcamp question in the Macbook Pro forum. Your question has been asked and answered many times in the Bootcamp forum. https://discussions.apple.com/community/windows_software/boot_camp
    When you post in the Bootcamp forum include the complete and exact error message.

  • "Your disk could not be partitioned" "An error occurred while partitioning the disk"

    hello, i am operating on a model a1286 mbp mid 2009 laptop, with 4 gb ram 360 gb hdd,
    snow leapord updated to maverick,
    bootcamped w/ win 7 32-bit
    i tried in mac os x maverick to use bootcamp assistant to partition my bootcamp 180 gb partition to be erased and then to start the install of 64-bit.
    the partitioning was stuck at about 17 percent for an hour, so i quit the bootcamp assistant - ive seen on reddit this was a bad thing to do, but i did it anyway because i saw someone posted about being to reboot and do a hdd repair then reboot and try to partition again
    now when i startup my rEfit program that shows me option of loading mac os x maverick or Bootcamp Legacy Os instead of bootcamp win 7 32-bit
    when i tried partioning again its asking me to free up space for 28 gb in bootcamp assistant , i did that, inserted win 7 64-bit dvd install and hit continue dialogue button in bootcamp assistant
    this is where i see i only have 145 gb used in mac os x with 18 gb free and in the windows side 14 gb
    status partitioning disk,
    but then i get an error message saying the partition failed with errors
    i googled and saw i had togo into single user mode by pressing cmd-s during boot and typing /sbin/fsck -fy
    i got a msg saying this command function is not recognized. - along those lines
    how do i reboot and start a repair of the disk?
    also i did a repair file permisions in disk utility but forgot to put back the power cord, so the battery drained and i assume the repair file permissions didnt finish and the mbp just auto shutdowned
    is there a command i could enter into the EFI shell? or single user mode? to repair the hdd partition in the mac os x maverick and the bootcamp legacy os side since the first time i tried erasing everything on the win 7 32-bit side bootcamp assistant got stuck at 17 percent partitioning then I voluntarily quit the program = now i cant partition bca gives me error of:
    "Your disk could not be partitioned" "An error occurred while partitioning the disk"
    thanks in advance,
    -r

    Is that the complete error message? Are you trying to partition the correct drive? It may be that you do not have enough contiguous free space on the drive for the partition.

  • Error with Drop -down UI elements in my HCM PF Form

    Hi All,
    I am facing some error with Drop -down UI elements in my HCM PF Form. I have some 2-3 DD elements, which are not binded to any backend field, so i am specifying their values in the UI Properties itself.
    I am able to see my drop-down list values when the form first displays initally. On selecting the values from drop down, when i click on 'Check and Send' button, the form refreshes itself, and all the drop down values dissappear, along with the selected value.
    Can anyone tell me if i am missing anything here ? Do i need to define my DropDOwn field in the Generic Service of HCM PF and then Bind it in the form ?
    Any inputs on this would be welcome !
    Thanks in advance,
    Aditi

    Hi Christopher,
    Am also having the same issue like when am testing the process and clicking on check button, my do_operation method is called and the table SERVICE_DATASETS is getting updated. I am getting success message and all the fields are getting cleared. But when am clicking on second time the CHECK button am getting error's, because of the fields getting cleared in the screen.
    But after executing the process all the fields getting refreshed. Even what ever values I have entered that too is getting cleared. I have debugged and not able to figure it out why its getting cleared.
    I have activated the ISR context mapping and activated the Adobe Form too. I dont know where am going wrong.
    I will be doing the context mapping for ISR via IMG path by clicking the "Compare Form Fields button" also using Tcode HRASR_DT also i have tried.But the form is consistent.
    Do we have any note or patches regarding this issue.
    Please help me out form this as i could not process further in my development.
    Thanks & Regards,
    Raja

  • An error occurred while partitioning the disk

    iMAC, brand new
    3 TB Fusion HD
    Windows 7 install disc (Windows 8 - blech!)
    I've tried using the minimum partition.
    I've tried divide equally.
    I've rebooted and repaired disc (no errors).
    I've read every thread in this discussion.
    Please help.
    The message I get, every time while partitioning, is this:
    Your disc could not be partitioned
    An error occurred while partitioning the disk
    Is the Fusion HD the issue? And if it is, why are we all told in the store, "Oh, you can use Windows! Bootcamp comes already installed!" when it is such an issue to install Windows?
    I purchased the Fusion drive specifically to have that processing power to run Windows and Mac.
    I'd stick to only Mac, but work software requires Windows

    Hi All,
    I Have succumbed to this problem today in OSX Yosemite, I found it was FileVault being turned on was my problem, you can check this as follows:
    - Disk Utility
    - Click on Macintosh HD (The indented one)
    - In the Properties you will find Format : Encrypted Mac OS Extended (Journaled)  .
    To repair is a simple case of switching off FileVault in System Preferences/Security and Privacy/FileVault(Tab). You will need to click the padlock to make changes, then you will be able to turn off File Vault.
    I found this was paused and had no way to resume it so a fresh install of OSX was my friend and this time round I made sure FileVault wasn't turned on.

Maybe you are looking for

  • How do i cose an open ntuser.dg file in adobe reader?

    how do I close a ntuser.dg file that is open in adobe reader?

  • Question about sending Request for Quotation by e-mail

    Hi All, I'm trying to send our RFQ by mail, I've already customized all the settings displayed on sap note 191470 in transaction SCOT and also I've assigned the forms and messages to this document, but I still can´t get our RFQ by email to ours vendo

  • Add Operational Insights to Cloud Service during publish

    Hello, I have several Azure Services that I am already utilizing Application Insights on. What I would like to do is have Operational Insights added during the standard "Publish to Windows Azure" that I use from Visual Studio thereby removing the nee

  • SMLG load balance

    Dear Experts, We are using logon groups for load balance. Logon quality is used to determine the next logon server. We want to change this algorith with something like round robin. Each dialog instance should accept one user so user count will be ide

  • Multiple destination hosts in route.cfg for single domain

    GW 8.0.2 We have route.cfg set up to send mail for some destination domains direct instead of through the default relay. One of the destination domains we want to add to route.cfg has multiple MX hosts they can receive mail on. Is it possible to add