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
Solved

Swapping data out of a partition

Posted on 2008-06-19
4
379 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
  • 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
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…

856 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