Error ORA-20229 On 11.2.0.3 When Enabling Versioning On Table With Nvarchar2 PK (Doc ID 1449638.1)

Last updated on FEBRUARY 08, 2017

Applies to:

Workspace Manager - Version 11.2.0.3 and later
Information in this document applies to any platform.

Symptoms


When a table with a PK column of type NVARCHAR2 is version-ed it generates an error.
If the type of column a is VARCHAR2 the the table can be version-ed OK.

- 11.2.0.2 all works OK.
- 11.2.0.3 has the error.

Simple test case shows the problem.

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

EXEC DBMS_WM.enableversioning ('test', 'VIEW_WO_OVERWRITE');



ERROR at line 1:
ORA-20229: statement 'CREATE TABLE TEST(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

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