Unable to understand this error message

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
avunoori
Participant
Posts: 8
Joined: Sat Oct 30, 2010 5:54 pm

Unable to understand this error message

Post by avunoori »

Tera_Con_ENGR_ITM_VERS: [IIS-CONN-TERA-005009] Query returned 0 row(s). SQL statement: LOCK ROW FOR ACCESS SELECT TRIM(TableKind) FROM DBC.Tables WHERE DatabaseName = 'DB_NAME' AND TableName = 'Table_Nm' (CC_TeraConnection::getTableKind, file CC_TeraConnection.cpp, line 1,714)


When i try to Load data into Table it throws up this error and Job aborts. Can any body understand me what kind of error and why do we get this?

Need any more info please ask, I will provide.
Thanks,
Avunoori.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

What happens when you execute the same query under the same userid outside of DataStage? Does it return any rows?
-craig

"You can never have too many knives" -- Logan Nine Fingers
avunoori
Participant
Posts: 8
Joined: Sat Oct 30, 2010 5:54 pm

Post by avunoori »

Yes , it does return rows when i do a select on that table. but I think i am unable to insert right?
Thanks,
Avunoori.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Let's make sure we're talking about the same "that table"... I meant can you run the query in the error message, not can you select from your target table.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Maybe you don't (and shouldn't have?) INSERT privilege to this table?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
PaulVL
Premium Member
Premium Member
Posts: 1315
Joined: Fri Dec 17, 2010 4:36 pm

Post by PaulVL »

What is the initial SQL statement and which stage are you using?
pg_smh
Participant
Posts: 15
Joined: Sat Feb 10, 2007 3:31 am

Post by pg_smh »

Try this:

SELECT TRIM(TableKind) as TableKind FROM DBC.Tables WHERE DatabaseName = 'DB_NAME' AND TableName = 'Table_Nm'
Post Reply