Maintenance Continues
Praveen Ray, February 24, 2017 - 9:52 am UTC
Ooh! this means we need a job to this and rename partitions - doesn't look dandy for my requirement but possible to automate, thanks
Mikhail Velikikh
Mikhail Velikikh, February 27, 2017 - 3:39 am UTC
Hello,
@ - add an uncomitted row to create a partition
We may also use the "LOCK TABLE PARTITION FOR" command for that. It is documented in VLDB and partitioning guide:
https://docs.oracle.com/cd/E11882_01/server.112/e25523/part_admin002.htm#VLDBG1129 In one of my environments I use a sequence of the below commands to create a new partition within an interval partitioned table:
- insert a fictional row to create a partition
- commit
- delete the row
- commit
This is due to the fact that I use Oracle GoldenGate and want to get the new partition in other databases, which the changes are replicated to, as well. It is one of the downsides of the recursive SQL used to create a partition on source - the new partition remains in the source database even after rollback, that is not true for any destination databases in which data is replicated as either Streams or GoldenGate does not apply transactions that were rolled back. Generally, but not always, there is no sense in applying them. I raised a new Bug 25073307 - "lock table partition for DDL doesn't get captured" (unpublished) to tweak Oracle GoldenGate to properly handle the cases when new partitions were created as part of the "LOCK TABLE PARTITION FOR" command that was rolled back.
February 28, 2017 - 1:27 am UTC
Thanks for that info - very useful
INTERVAL PARTITIONING storing data into to specified TABLESPACE.
Ramki, June 16, 2023 - 10:45 am UTC
HI ,
we have similar issue
INTERVAL PARTITIONING storing data into to specified TABLESPACE.
For week partition we want to store data in specific week TBS.
Later want to make week TBS read-only so that to avoid backup these older week tbs .
since we having 52 week TBS ..skip in backup is very important for us
It would be good we have solution from oracle for this requirement .
Is there any channel to create such requirement to oracle DB ?
Thanks
June 19, 2023 - 4:38 am UTC