Solved

Swapping data out of a partition

Posted on 2008-06-19
4
381 Views
Last Modified: 2013-12-18
Hello,
I have a partitioned table in my production system .
I need to move the data out of table which os older than January 1/1/2008 .
The tables have 2 other child tables .
How would I proceed ?
0
Comment
Question by:gyans
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 74

Accepted Solution

by:
sdstuber earned 500 total points
ID: 21828557
what do you mean by "swapping"  that sounds like you want to put the data somewhere else and put data from the somewhere else into your partition.

If so,  what is the "somewhere else"  and what is the data there?

what does your table look like, what are the child tables?  What do you want to do with the child table data?
Are there cascading contraints between the parent and children?
0
 
LVL 1

Author Comment

by:gyans
ID: 21864751
Thanks for replying .
I am rephrasing my question.
I have 3 tables in production  which have  around  200 partitions  each beginning from 2003.
I would like to move any data from all 3 tables onto a different schema and different tables that is prior to 1/1/2008.
What would be the best way ?
thanks you
0
 
LVL 1

Author Closing Comment

by:gyans
ID: 31468908
Question was not answered so dont want to allocate any points .
0
 
LVL 74

Expert Comment

by:sdstuber
ID: 22233292
you could have requested a delete rather than accepting the answer.  I'm sorry I missed your followup.

anyway, for what you are trying to do...

use dynamic sql to generate code of the form...

create table new_schema.new_table_name as select * from old_schema.old_table where data_date_column >= to_date('20030101','yyymmdd')



0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question