![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
The following are two segments from emails going around where I work. Is he making any sense or is he out in left field? Both are in reference to truncating a table before dropping it. Do people know to truncate a table first before dropping a table? I am not sure other people are truncating their tables first, but it may be a good idea in order to reset the HWM's. |
#2
| |||
| |||
|
|
"DA Morgan" <damor... (AT) psoug (DOT) org> wrote in message news:1180051894.989633 (AT) bubbleator (DOT) drizzle.com... Dereck L. Dietz wrote: The following are two segments from emails going around where I work. Is he making any sense or is he out in left field? Both are in reference to truncating a table before dropping it. Do people know to truncate a table first before dropping a table? I am not sure other people are truncating their tables first, but it may be a good idea in order to reset the HWM's. Depends on the version. -- Daniel A. Morgan University of Washington damor...@x.washington.edu (replace x with u to respond) Puget Sound Oracle Users Group www.psoug.org Sorry. Oracle 10g with the latest patch.- Hide quoted text - - Show quoted text - |
#3
| |||
| |||
|
|
"DA Morgan" <damorgan (AT) psoug (DOT) org> wrote in message news:1180051894.989633 (AT) bubbleator (DOT) drizzle.com... Dereck L. Dietz wrote: The following are two segments from emails going around where I work. Is he making any sense or is he out in left field? Both are in reference to truncating a table before dropping it. Do people know to truncate a table first before dropping a table? I am not sure other people are truncating their tables first, but it may be a good idea in order to reset the HWM's. Depends on the version. -- Daniel A. Morgan University of Washington damorgan@x.washington.edu (replace x with u to respond) Puget Sound Oracle Users Group www.psoug.org Sorry. Oracle 10g with the latest patch. |
#4
| |||
| |||
|
|
Do people know to truncate a table first before dropping a table? As far as I know, there is a benefit to truncating instead of running a huge delete if you're planning on deleting the entire table. |
#5
| |||
| |||
|
|
And as far as the hwm goes, if you drop the table that's going to pretty much reset the hwm anyway, no? |
#6
| |||
| |||
|
|
"Ben" <bal... (AT) comcast (DOT) net> a écrit dans le message de news: 1180104159.315489.138... (AT) w5g2000hsg (DOT) googlegroups.com... | | And as far as the hwm goes, if you drop the table that's going to | pretty much reset the hwm anyway, no? | Not at all. Delete does not change HWM. |
#7
| |||
| |||
|
|
In 10g, there may be some benefit to truncating before dropping. With the new flashback table & recyclebin. But I'm not real sure, as I would think that the recyclebin would still hold the table pre- truncate at least until it was aged out.- Hide quoted text - I use the format DROP TABLE XXXX PURGE; to avoid it going to the |
![]() |
| Thread Tools | |
| Display Modes | |
| |