Re: commit during alter table drop column

From: padderz <member_at_dbforums.com>
Date: 23 Apr 2002 02:41:24 GMT
Message-ID: <3cc4c9d4_at_usenetgateway.com>


In fact you can break up the drop column operation by use of the CHECKPOINT clause - this will reduce the requirement for UNDO.

ALTER TABLE table_name DROP COLUMN column_name CHECKPOINT n;

see...

http://otn.oracle.com/docs/products/oracle9i/doc_library/901_doc/server- 901/a90125/statements_32.htm#2085151

However, Sybrand's advice stands, dropping column requires entire table to be rewritten and this is extremely expensive for a number of reasons. I would question whether you need to do this - If you must remove the column, consider also if you can utilise the SET UNUSED clause (same page in Oracle docs).

--
Padderz
SYSOP, RevealNet PL/SQL Pipeline
Senior Oracle Developer, Cellular Operations UK

Posted via dBforums
http://dbforums.com
Received on Tue Apr 23 2002 - 04:41:24 CEST

Original text of this message