Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Oracle Error trying to Create Range Partitioned Table

I am trying to create a partitioned table in Oracle 19c.

create table tab1
(
   id        number(10),
   sale_date date
 )
 partition by range ( sale_date )
 (
     partition p1 values less than ( to_date ( '2010/01/01','yyyy/mm/dd'),
     partition p2 values less than ( to_date ( '2010/02/01','yyyy/mm/dd')
  )

/

I am getting following error:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

ORA-14017: partition bound list contains too many elements

>Solution :

You are missing the close parentheses around each less than () value:

 partition by range ( sale_date )
 (
     partition p1 values less than ( to_date ( '2010/01/01','yyyy/mm/dd')),
     partition p2 values less than ( to_date ( '2010/02/01','yyyy/mm/dd'))
  )
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading