ORA-01738: missing IN keyword Adding Partition WITH ROW STORE COMPRESS ADVANCED Clause (Doc ID 2275982.1)

Last updated on JUNE 30, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.2 and later
Information in this document applies to any platform.

Symptoms

Creating a table with ROW STORE COMPRESS ADVANCED id giving errors.

alter table sales2 add PARTITION sales_2015 VALUES LESS THAN (TO_DATE('2015-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')) ROW STORE COMPRESS ADVANCED;
alter table sales2 add PARTITION sales_2015 VALUES LESS THAN (TO_DATE('2015-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')) ROW STORE COMPRESS ADVANCED
*
ERROR at line 1:
ORA-01738: missing IN keyword


Note that 'compress for oltp' is being accepted with same syntax.

alter table sales2 add PARTITION sales_2015 VALUES LESS THAN (TO_DATE('2015-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')) compress for oltp;

Table altered.



Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms