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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Composite list partition or sub partitions

PS SPDec 6 2019 — edited Dec 6 2019

Current version my DB :

Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production    0

PL/SQL Release 12.1.0.2.0 - Production    0

"CORE    12.1.0.2.0    Production"    0

TNS for Linux: Version 12.1.0.2.0 - Production    0

NLSRTL Version 12.1.0.2.0 - Production    0

As per the document, I can use composite list or sub partitions from 12 C on wards. I have tried below query :

create table t (

    empno int,

    deptno int,

    sal int)

    partition by list(deptno,sal)

    ( partition p1 values(10,1000) ) ;

I am getting below error :

Error starting at line : 1 in command -

create table t (

    empno int,

    deptno int,

    sal int)

    partition by list(deptno,sal)

    ( partition p1 values(10,1000) )

Error report -

ORA-14304: List partitioning method expects a single partitioning column

14304. 00000 -  "List partitioning method expects a single partitioning column"

*Cause:    number of columns in a partitioning column list exceeded

           the legal limit of 1 for List partitioned objects

*Action:   modify partitioning column list so that it consists of at

           most 1 column

This post has been answered by Solomon Yakobson on Dec 6 2019
Jump to Answer

Comments

Post Details

Added on Dec 6 2019
4 comments
286 views