ORA-00934: group function is not allowed here

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
yuga1234
Participant
Posts: 4
Joined: Tue Jan 17, 2012 1:42 am

ORA-00934: group function is not allowed here

Post by yuga1234 »

I am getting the same error as noted here when tried to UPSERT using oracle connector in datastage 8.5

the auto generated query :

The connector generated the following RETURNING statement at runtime: UPDATE SIDBOR_ETL.tmp_1 SET C=:c,B=:b WHERE A=:a RETURNING COUNT(ROWID) INTO :3.
The connector generated the following UPDATE statement at runtime: UPDATE SIDBOR_ETL.tmp_1 SET C=:c,B=:b WHERE A=:a.
The connector generated the following INSERT statement at runtime: INSERT INTO SIDBOR_ETL.tmp_1(C,A,B) VALUES(:c,:a,:b).

Eventhough i tried with custom query ,But iam getting the same error

Oracle_Connector_3,1: The OCI function OCIStmtExecute returned status -1. Error code: 934, Error message: ORA-00934: group function is not allowed here. (CC_OraStatement::executeUpdate, file CC_OraStatement.cpp, line 1996)

Can any one help me with this error.
v2kmadhav
Premium Member
Premium Member
Posts: 78
Joined: Fri May 26, 2006 7:31 am
Location: London

Post by v2kmadhav »

Can you try splitting the job into two steps and see if you still get the same error...
yuga1234
Participant
Posts: 4
Joined: Tue Jan 17, 2012 1:42 am

Post by yuga1234 »

individually insert and update is working fine

But When we use UPSERT its showing this error
v2kmadhav
Premium Member
Premium Member
Posts: 78
Joined: Fri May 26, 2006 7:31 am
Location: London

Post by v2kmadhav »

what is the array size ?
yuga1234
Participant
Posts: 4
Joined: Tue Jan 17, 2012 1:42 am

Post by yuga1234 »

Array size is 1
v2kmadhav
Premium Member
Premium Member
Posts: 78
Joined: Fri May 26, 2006 7:31 am
Location: London

Post by v2kmadhav »

what are the column names in queries that get generated.. im hoping none of them are oracle reserve words
v2kmadhav
Premium Member
Premium Member
Posts: 78
Joined: Fri May 26, 2006 7:31 am
Location: London

Post by v2kmadhav »

Sorry, I guess thats a silly question - since you have already used the same metadata to do seperate INSERT/UPDATE query tests.

Could you try deleting that stage and redoing the properties with a new one to ensure you havent got anything hanging in it from another query/job if you copied the stage from somewhere else..
yuga1234
Participant
Posts: 4
Joined: Tue Jan 17, 2012 1:42 am

Post by yuga1234 »

No its just a temp job to test
i dint copy any metadata or stages from any other job
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

:!: Split into your own post.

Please don't "me too" on the end of older posts, always start your own and then (if it seems like it would help) link to the older post.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply