ORA-20171 on 11.2.0.3 when Enabling Versioning on Table with NVARCHAR2 Primary Key Column (Doc ID 1448984.1)

Last updated on APRIL 12, 2012

Applies to:

Workspace Manager - Version: 11.2.0.3 and later   [Release: 11.2 and later ]
Information in this document applies to any platform.

Symptoms

When a table with a PK column of type NVARCHAR2 is version enabled ORA-20171 is generated.

SQL> CREATE TABLE test
(a NVARCHAR2(10) NOT NULL,
b NUMBER(12,0),
CONSTRAINT pk_test PRIMARY KEY (a));

Table created.

SQL> EXEC DBMS_WM.enableversioning ('test', 'VIEW_WO_OVERWRITE');
BEGIN DBMS_WM.enableversioning ('test', 'VIEW_WO_OVERWRITE'); END;
*
ERROR at line 1:
ORA-20229: statement 'CREATE TABLE WMTEST.TEST_AUX (
A NVARCHAR2(10 char),
ChildState varchar2(30),
' failed during EnableVersioning. Error:
ORA-00907: missing right parenthesis
ORA-06512: at "WMSYS.LT", line 9179
ORA-06512: at line 1


This works fine on 11.2.0.2

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