Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Issue with trunacating the partitions of a table.

SamFisherOct 28 2011 — edited Oct 28 2011
Hello all,

I have a partitioned table called temp1_list_cmpgn_hist_dtl and it is partitioned by month(campaign_start_date).

Queries I tried,
TRUNCATE TABLE temp1_list_cmpgn_hist_dtl PARTITION t_list_cmpgn_201006
TRUNCATE TABLE temp1_list_cmpgn_hist_dtl PARTITION t_list_cmpgn_201006 REUSE STORAGE

but it is throwing me the following error:
SQL Error: ORA-03291: Invalid truncate option - missing STORAGE keyword
03291. 00000 - "Invalid truncate option - missing STORAGE keyword"
*Cause: Expected STORAGE keyword
*Action: Either specify DROP STORAGE or REUSE STORAGE

Also, I am trying to find the partition_name for the table 'temp1_list_cmpgn_hist_dtl' but it is not showing any partitions though there are partitions.
I tried the query,
SELECT partition_name from user_tab_partitions WHERE table_name = 'temp1_list_cmpgn_hist_dtl'.

Thx,
Shank.
This post has been answered by John Spencer on Oct 28 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 25 2011
Added on Oct 28 2011
9 comments
1,596 views