Unix Technical Forum

Any way to disable a partition?

This is a discussion on Any way to disable a partition? within the Oracle Database forums, part of the Database Server Software category; --> Hello, I would like to know if there is a way to disable/enable a partition on Oracle 8.1.7i. Each ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-24-2008, 05:38 AM
wy
 
Posts: n/a
Default Any way to disable a partition?

Hello,
I would like to know if there is a way to disable/enable a partition
on Oracle 8.1.7i.
Each partition has there own tablespace.
If a partition(history data about 10G) is not used now,we want to
disable the partition then make the tablespace offline and move the
datafile out from the server,and we can move the datafile back later.
We don't want to drop the partition because the partition will be
used later again and import data will cost too much data.

If I only make the tablespace offline,full table access will fail.

Any suggestions?


wy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-24-2008, 05:38 AM
Mladen Gogala
 
Posts: n/a
Default Re: Any way to disable a partition?

On Mon, 05 Jul 2004 00:25:36 -0700, wy wrote:

>
> If I only make the tablespace offline,full table access will fail.
>
> Any suggestions?


Exchange partitions.

alter table eggs exchange partition omlet with table chicken;

If table chicken was empty before, it will contain all the data
from partition omlet. Parition omlet will be emptied, much to the
delight of this forum.

--
Well-behaved women seldom make history

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-24-2008, 05:38 AM
Jonathan Lewis
 
Posts: n/a
Default Re: Any way to disable a partition?


You could exchange the partition with an
empty table. Then leave the (now-empty)
partition in place while you take the (now
large) table offline.

When you want the large data set back in
place you bring it on-line and exchange it
back in.

There are a couple of side-effects with
this that you need to watch out for:
It's probably only viable if you have no global indexes.

Exchange is very expensive if you have PKs and UKs in
place and validated when you exchange

Have a string of empty partitions in the past might
"confuse" the optimizer.


--
Regards

Jonathan Lewis

http://www.jlcomp.demon.co.uk

http://www.jlcomp.demon.co.uk/faq/ind_faq.html
The Co-operative Oracle Users' FAQ

http://www.jlcomp.demon.co.uk/seminar.html
Optimising Oracle Seminar - schedule updated May 1st


"wy" <wy@fudan.edu> wrote in message
news:e8d0244c.0407042325.256c22c0@posting.google.c om...
> Hello,
> I would like to know if there is a way to disable/enable a partition
> on Oracle 8.1.7i.
> Each partition has there own tablespace.
> If a partition(history data about 10G) is not used now,we want to
> disable the partition then make the tablespace offline and move the
> datafile out from the server,and we can move the datafile back later.
> We don't want to drop the partition because the partition will be
> used later again and import data will cost too much data.
>
> If I only make the tablespace offline,full table access will fail.
>
> Any suggestions?
>
>
> wy



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:05 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com