Re-creating partitioned tablespaces from backup. [message #235909] |
Tue, 08 May 2007 06:52 |
Brayan
Messages: 315 Registered: June 2002
|
Senior Member |
|
|
Hi,
I have a table which is groving rapidly. which has a column Date.
I've partitioned this table monthwise into different tablespace.
We require last one years data and I've made the history data i.e. beyond one year as readonly(tablespace readonly).
If I take a backup and remove the history tablespace, in future if I require this removed data can I restore datafiles and recreate those partitioned tablespace and make the data available.
Please suggest me how to do this. Any specific document to this will help me.
Brayan.
|
|
|
Re: Re-creating partitioned tablespaces from backup. [message #235919 is a reply to message #235909] |
Tue, 08 May 2007 07:23 |
sriram717
Messages: 48 Registered: February 2007 Location: UNITED KINGDOM
|
Member |
|
|
Hi,
As long as you have a backup of the readonly datafile you should be safe.But You were mentioning that you are going to remove (drop?) the history tablespace.Ideally oracle will not allow you to do a drop of this tablespace but will raise an error
"ORA-14404: partitioned table contains partitions in a different tablespace".
so you need to do an exchange partitions of the table so that the tablespace can be dropped.
Now before doing this take a backup of the control file and if you ever want to recover you may need to rollforward from here so that all your readonly files are included as well.
Thanks
|
|
|
|
|
|
|
Re: Re-creating partitioned tablespaces from backup. [message #236202 is a reply to message #236195] |
Wed, 09 May 2007 05:08 |
sriram717
Messages: 48 Registered: February 2007 Location: UNITED KINGDOM
|
Member |
|
|
Hi ,
I had mentioned earlier as well that this more of a 10g technology , but all these are available in 9i as well ..you need to rework the same ..this is only a technology term that is bundled with 10g , you can use this in 9i as well , read the doc thoroughly which make things clear and you can impelement the same in 9i as well.
Try it out
Thanks
|
|
|