Extracting Data from DB2 Connector Stage

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
dsouza.adithfrancis
Participant
Posts: 16
Joined: Sun Oct 07, 2007 12:42 am

Extracting Data from DB2 Connector Stage

Post by dsouza.adithfrancis »

Hi ,
I Have been facing an issue when i use the DB2 Connector stage .
I have defined a user defined SQL Query which joins 4 tables each having approximately 1 million records .
Without partitioning , the query executed for a hour.

When i checked a few options to implenment parallelism in my Data stage job .
The Options checked withing DB2 Connector Stage
1. Enable Partition reads -- DB2 -- table 1(only 1 table mentioned here rather than 4).

Also , enabled read uncommited data .

With these options being checked within DB2 Connector stage , I am getting the below error message .

db2_extract_customerprice,0: SQLFetch reported: SQLSTATE = HY010: Native Error Code = -99,999: Msg = [IBM][CLI Driver] CLI0125E Function sequence error. SQLSTATE=HY010 (CC_DB2DBStatement::dbsFetch, file CC_DB2DBStatement.cpp, line 1,510)

Thanks in Advance .
Francis Adith Dsouza
synsog
Premium Member
Premium Member
Posts: 232
Joined: Sun Aug 01, 2010 11:01 pm
Location: Pune

Post by synsog »

Hi,
We faced the similar issue some time back and got resolution.When using connector stage. It tries to query some of the DB2 system views related to environment. Once after granting permission to the Application user id (datastage id) on the respective tables our issue got resolved.
ppgoml
Participant
Posts: 58
Joined: Mon Aug 20, 2007 11:00 pm

Post by ppgoml »

synsog wrote:Hi,
We faced the similar issue some time back and got resolution.When using connector stage. It tries to query some of the DB2 system views related to environment. Once after granting permission to the Application user id (datastage id) on the respective tables our issue got resolved.
yes, here is a technical note for it.
http://www-01.ibm.com/support/docview.w ... wg1JR37696

but I met the issue on as400, and no resolution found. any idea?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Not sure what you mean by "no resolution found"... the Local Fix section of the linked note contains the grants needed to resolve the problem, did they not correct it for you? Or does being on an AS400 somehow invalidate that solution? :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ppgoml
Participant
Posts: 58
Joined: Mon Aug 20, 2007 11:00 pm

Post by ppgoml »

chulett wrote:Not sure what you mean by "no resolution found"... the Local Fix section of the linked note contains the grants needed to resolve the problem, did they not correct it for you? Or does being on an AS400 somehow invalidate that solution? :?
chulett,

I believe these system tables are for db2 luw, I cannot found them on AS400.
Post Reply