Dynamic table partitioning in Oracle

前端 未结 4 1176
灰色年华
灰色年华 2021-02-14 18:24

I\'m in the process of building a database storage for my app consisting on a single table with a huge data volume (hundreds of millions of records). I\'m planning on having an

4条回答
  •  你的背包
    2021-02-14 19:15

    you can automate the process of creating or truncating partitions through the use of dynamic SQL. You would write procedures with either EXECUTE IMMEDIATE or DBMS_SQL and you would schedule them with DBMS_JOB or DBMS_SCHEDULER (DBMS_SCHEDULER is a 10g feature and is more versatile than DBMS_JOB).

    You probably want to build the partition statements manually first and automate the process later when you are confident with the DDL. You will find all the synthax in the documentation for the ALTER TABLE statement.

提交回复
热议问题