Solved

Swapping data out of a partition

Posted on 2008-06-19
4
376 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 73

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 73

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
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.

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now