Ora-933 And Ora-02063 when inserting Data into A Table In Another Db (Doc ID 740049.1)

Last updated on FEBRUARY 06, 2017

Applies to:

Oracle Server - Enterprise Edition - Version: 9.2.0.8 and later   [Release: 9.2 and later ]
Information in this document applies to any platform.
Checked for bulk archive on 03-MAY-2011 by Zulaikha Z

Symptoms

After an upgrade of a remote database to 9.2.0.8, an insert into a remote table with sub-query having an aggregate in the select list returns errors ORA-933 and ORA-2063.

The problem can manifest itself as Peoplesoft job syncing several tables between HR and Financial side is erroring with ORA-933.

Using SQLPLUS the SELECT within the INSERT without AGGREGATE is returning rows as expected.

Through peoplesoft application, with an Aggregate function it is returning errors:

INSERT INTO ...
*
ERROR at line 1:
ORA-00933: SQL command not properly ended
ORA-02063: preceding line from ...
ORA-02063: preceding 2 lines from ...


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