简体   繁体   English

Oracle 12c - 如何使用列表分区自动创建新分区

[英]Oracle 12c - how to create new partitions automatically with list partitions

I have in Oracle 12c a 'list' partitioned table and sub-partitions also on the same table as a 'list' partitions.我在 Oracle 12c 中有一个“列表”分区表,子分区也与“列表”分区位于同一个表上。 Both of columns that these partitions use are varchar types.这些分区使用的两列都是 varchar 类型。

How to create new partitions automatically (when new value comes) based on these 2 partitions?如何基于这两个分区自动创建新分区(当新值出现时)? (without hardcoding all partition names ahead of time) (无需提前对所有分区名称进行硬编码)

Thanks.谢谢。

In the question there was mention of subpartitions on the table.在问题中提到了桌子上的子分区。 For the record, Oracle doesn't support interval partitioning at the subparition level.作为记录,Oracle 不支持子分区级别的间隔分区。 This is true as of release 19.1 and prior.从 19.1 版及更早版本开始,情况确实如此。 See the SQL Reference Guide for a list of restrictions on interval partitioning.有关间隔分区的限制列表,请参阅 SQL 参考指南。 It's under the chapter called Create Table.它位于名为“创建表”的章节下。 https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/CREATE-TABLE.html#GUID-F9CE0CC3-13AE-4744-A43C-EAC7A71AAAB6 https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/CREATE-TABLE.html#GUID-F9CE0CC3-13AE-4744-A43C-EAC7A71AAAB6

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM