Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> alter table tabname drop column colname checkpoint #;

alter table tabname drop column colname checkpoint #;

From: Orr, Steve <sorr_at_rightnow.com>
Date: Fri, 22 Mar 2002 12:00:30 -0800
Message-ID: <F001.0043138D.20020322120030@fatcity.com>


I've got a "process" which is consuming RBS to the point of failure (running out of tablespace). I have very little control of the code so using set transaction is not a possibility.

The SQL that is failing is "alter table tabname drop column colname" with no checkpoint being specified. According to the documentation, when no checkpoint integer is specified then it defaults to committing every 512 rows but I suspect this is not happening hence the rollback problem. Does anyone have experience with dropping columns on large amounts of data and specifying the checkpoint integer? If you don't specify the checkpoint does it really default to 512 like the documentation says? How would I test the checkpoint default? (We're running Oracle 8172 on Linux.)

As an alternative I'm thinking about doing an "alter table tabname set unused column colname" then manually doing an "alter table tabname drop unused columns" later with a set transaction.

Any ideas?

Steve Orr
Bozeman, MT
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Orr, Steve
  INET: sorr_at_rightnow.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Fri Mar 22 2002 - 14:00:30 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US