Ignoring only "Drop Partition" DDLs.

Hi,
I am doing a proof of concept to see if we can use Golden Gate to replicate data from our Primary database (Oracle 10g) to a reporting database. The primary is an OLTP database and I intend to use the "IGNOREDELETES" feature so that any purging done to remove historical data (from primary) will not remove anything from the reporting database.
In case of partitioned tables when I drop a partition to remove older data, can I have Golden Gate not replicate only this DDL (drop partition) command?
Thank you.

Hello,
You disable all of them in order to delete the parent record and correponding child record (remember it wont' let you delete unless you take care of all the dependencies) and it won't let you enable if you missed to delete any child record.
Regards
Edited by: OrionNet on Mar 17, 2009 11:32 AM

Similar Messages

  • 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 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

  • How to create and drop partitions automatically?

    How to create and drop partitions automatically?
    The environment is Oracle 10g(10.2.0.3) on the RHEL4.0 system.
    I want to partition the MESSAGE table by date (NUMTODSINTERVAL(1,'DAY') ). One partition per day. Because the table is huge, only 2 partitions (today and yesterday's data) are necessary to be kept online. All the partitions that earlier than the previous day will be backed up and then dropped. I want to make the partition creating and dropping jobs run automatically. How to do it?
    Thank you

    junez wrote:
    How to create and drop partitions automatically?
    The environment is Oracle 10g(10.2.0.3) on the RHEL4.0 system.
    I want to partition the MESSAGE table by date (NUMTODSINTERVAL(1,'DAY') ). One partition per day. Because the table is huge, only 2 partitions (today and yesterday's data) are necessary to be kept online. All the partitions that earlier than the previous day will be backed up and then dropped. I want to make the partition creating and dropping jobs run automatically. How to do it?With 11g, new partitions can automatically be created.
    With 10g, you need to do that yourself. I prefer to create a "buffer" of future partitions - in case the job whose task it is to add new partitions gets held up or stuck. Or the job queue is full due to some problem and it does not get the chance to execute in time.
    I dislike your partitioning criteria. I prefer using the date directly and not mangling it to something else. If a specific day has a large volume of data, then another option is to use hourly date ranged partitions. With local partitioned indexes and the date time range used for querying, this can be quite effective performance wise.
    As for partitioning maintenance - I use a custom written partitionManager PL/SQL package that provides an interface for adding daily and hourly partitions to a table. Input parameters are for example name of the table, start date and the number of partitions to add. Similarly it provides interfaces for aging partitions - again by specifying a table and a date-time to use as the starting point, back into time, for removing old partitions.
    I typically call this code from the actual application code itself - so before a new partition will be used for example, the app code will first ensure that it has a partition to use. This is safer than a separate job as the dependency is resolved where and when it is needed - and not done as a separate task.
    For example - you should have a procedure/package that provides an app the means to log a message into your MESSAGE table. As part of an autonomous transaction, this procedure can check if the required partition exists, before attempting to insert a message into the table.
    Where this approach is not possible, a DBMS_JOB can be used to create future partitions - but as I mentioned, rather have it add a bunch of future (empty) partitions in case something goes pear shape with the job mechanism.

  • Drop partitions in HASH partitioned table

    SELECT * FROM product_component_version
    NLSRTL      10.2.0.4.0     Production
    Oracle Database 10g Enterprise Edition      10.2.0.4.0     64bi
    PL/SQL      10.2.0.4.0     Production
    TNS for Solaris:      10.2.0.4.0     ProductionI have a table which is partitioned by HASH into several partitions. I would like to remove them all the same way I can DROP partitions in a LIST or RANGE partitioned tables.
    I COALESCE-d my table until it remained with only one partition. Now I've got a table with one HASH partition and I would like to remove it and to end up with unpartitioned table.
    How could it be accomplished?
    Thank you!

    Verdi wrote:
    I have a table which is partitioned by HASH into several partitions. I would like to remove them all the same way I can DROP partitions in a LIST or RANGE partitioned tables.
    I COALESCE-d my table until it remained with only one partition. Now I've got a table with one HASH partition and I would like to remove it and to end up with unpartitioned table.
    How could it be accomplished?
    You cannot turn a partitioned table into a non-partitioned table, but you could create a replacement table (including indexes etc.) and then use the 'exchange partition' option on the partitioned table. This will modify the data dictionary so the data segments for the partition exchange names with the data segments for the new table - which gives you a simple table, holding the data, in minimum time and with (virtually) no undo and redo.
    The drawback to this method is that you have to sort out all the dependencies and privileges.
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    Author: <b><em>Oracle Core</em></b>

  • 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

  • External Hard Drive - Only one partition is recognized

    I have a 1TB GDrive, NTFS formatted, that has been divided into three partitions. When I connect the drive to my Mac Pro, only one partition is recognized. I have tried downloading Tuxera, rebooting the system, and connecting with different cables. Disc Utility only sees the one partition. I have also tried connecting the drive to another Mac with the same results. While this is not a new drive, it has been used for editing on a PC system, this is the first time it has been connected to a Mac. However, this is the first time that my Mac system has had difficulty reading a partitioned PC formatted drive. And when the drive is connected to a PC, all partitions are recognized and all are read as being healthy.
    Any ideas on how to solve this issue would be appreciated!

    Mac OS only recently added the ability to resize partitions. With Windows there are so many options, tools, and types of partitions; including extended volumes, non-destructive ability to add a drive to and create mirror and stripe RAID.
    If you don't have Windows and don't have MacFuse +3G or Paragon NTFS driver... but at least Windows will let you see, or burn one of the Linux type boot CDs to troubleshoot or more.

  • Windows 7 toolbox on system with only 2 partitions

    I installed Win 7 with a clean install and new hardrive on my T500. So I have only 2 partitions, C and D (system and data). Anyone know if toolbox will install without wanting the hidden lenovo partitions?
    I don't want to install it if it does as I like the current setup and have no need for lenovo recovery options. I would like the other tools however.  
    thanks

    Did your machine come with windows 7 pre-installed and does it have the recovery partition intact?  If so, you can burn off the media and it should be for whatever OS is currently installed on it (win 7).  If you have a win 8 machine with a win 7 downgrade license and lenovo sent you just the win 8 recovery media and you cannot make the recovery media from the OS, then you can request it from tech support.

  • Only 1 partition shows up!! help

    I recieved my macbook pro today and I am having trouble trying to install windows xp with bootcamp. I create a partition with bootcamp and insert the install disk. The blue screen for windows appears and asks me which partition to choose. There is only one partition that has 131000 MB. This isnt the amount I asked for.
    I followed every step. I even found out that other people are having the same problem as me on other forums and I havn't seen a solution yet. Please help me!

    Hi and welcome to Discussions,
    such 'behaviour' usually is a hint that your Windows XP does not include the SP2 (Service Pack 2) or later, but is a SP1 or earlier.
    Check the label of the CD for mentioning of SP2.
    If SP1 you can use these instructions http://www.winsupersite.com/showcase/windowsxpsp2slipstream.asp to make yourself a XP SP2 Installation CD.
    XP SP2 or later is a must for BootCamp to work.
    Regards
    Stefan

  • Bootcamp trouble, only one partition shows when windows boots

    I recieved my macbook pro today and I am having trouble trying to install windows xp with bootcamp. I create a partition with bootcamp and insert the install disk. The blue screen for windows appears and asks me which partition to choose. There is only one partition that has 131000 MB. This isnt the amount I asked for.
    I followed every step. I even found out that other people are having the same problem as me on other forums and I havn't seen a solution yet. Please help me!

    Hi and welcome to Discussions,
    such 'behaviour' usually is a hint that your Windows XP does not include the SP2 (Service Pack 2) or later, but is a SP1 or earlier.
    Check the label of the CD for mentioning of SP2.
    If SP1 you can use these instructions http://www.winsupersite.com/showcase/windowsxpsp2slipstream.asp to make yourself a XP SP2 Installation CD.
    XP SP2 or later is a must for BootCamp to work.
    Regards
    Stefan

  • How do i confirm whether it is using only one partition.

    I want to select the data from one partition only.
    How do i confirm my select query using only one partition.
    To front end developers how do i suugest to use correct partition.
    I know in the select query we can write partion name also if i know the partition.
    But i don't the correct partition name as a front end developer.

    Hello,
    You can find partitions for the table from following view user_tab_partitions. You can use PARTITION Clause but it defeats the purpose of having partition key column,
    You should be able to do this
    select * from my_part_table where part_key='key';Regards

  • Installing Boot Camp - There is only one partition available for Windows

    I have a brand new Mac Mini. Ran Boot Camp assistant and created Windows partition - 80 GB. Then when instructed, inserted Windows XP install disc. It went through some install steps then came to screen where you chose the partition to install Windows. There was only one partition showing - Partition 1. I think that's the Mac partition, so I quit install, removed partition with Boot Camp and tried again, this time setting Windows partition at 32GB. Insert Windows install disc, same result - only Partition 1. I called Apple support, we did it all again - same result. They had me completely reformat my Mac disc with the OSX discs, then run Boot Camp assistant and set partition to 32 GB. Same result - only Partition 1 is available. The Windows install disc I am using is the same disc I used to put Windows on my son's MacBook about 9 months ago.
    I need this Mac Mini to run both OS. What to do?

    Use NTFS for Windows and buy Paragon NTFS for OS X
    You can also try Paragon HFS for Windows
    As long as you are using for data and backups, you can leave the drive as GPT too.
    I would recommend strongly to always have a 2nd bootable Mac OS drive, only need 30GB partition. System maintenance. Though LIon Recovery Mode finally makes it less but not totally unneeded.
    And yes you can use Windows to create a partition.
    Boot Camp is too broad. Do you want or mean BC Assistant? not needed but probably possible.
    MBR has trouble with 3TB drives.

  • 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

  • Install windows 8.1 in only one partition ( GPT )

    Is possible to install windows 8.1 in only one partition (GPT ) ( There are at least three in a default installation ).
    Thank you !

    Its simple, I am listing steps below, feel free to ask for clarification if you need assistance. 
    1. boot into winpe and clean the disk if it has some other partition. (boot from media and then at wekcome prompt press shift F10)
    2. open diskpart.
    3 select the disk and create partition for EFI. (create partition efi size=350)
    4 format this partition with FAT32, (format fs=FAT32 quick)
    5. create second partition with NTFS, (create partition primary and then format it with NTFS file system assign it letter c:)
    6. In windows DVD, locate install.wim, it should be by default under x:\sources\
    7. Apply the wim file on the image, 
    Dism /apply-image /imagefile:x:\sources\install.wim /index:1 /ApplyDir:C:\
    8. Run the command to copy the boot files to this new EFI partition. 
    bcdboot c:\windows
    boot up! 
    regards
    Mayank Sharma Support Engineer at Microsoft working in Enterprise Platform Support.

  • 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

Maybe you are looking for