Oracle About Partitioning

Source: Internet
Author: User

--Delete Partition
ALTER TABLE tt_trms_all_air_task DROP PARTITION tt_trms_all_air_task_p20171030;

1. Add a partition
ALTER TABLE Tt_trms_all_air_task
ADD PARTITION tt_trms_all_air_task_p20171031 VALUES less THAN (TIMESTAMP ' 2017-10-31 00:00:00 ');
ALTER TABLE Tt_trms_all_air_task
ADD PARTITION tt_trms_all_air_task_p20171106 VALUES less THAN (TIMESTAMP ' 2017-11-07 00:00:00 ');

--Modify Partition field time

Check the production row movement strategy select Table_name,owner,row_movement from dba_tables WHERE table_name = ' table_name '; It's a disabled state, really.

1. Modify the policy ALTER TABLE schema.table_name enable row movement;
2. Execute the statement
3. Change back ALTER TABLE schema.table_name disable row movement;

Oracle About Partitioning

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.