Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stored procs problem

Status
Not open for further replies.

dbaroy

Programmer
Oct 21, 2002
1
GB
I'm looking at porting an oracle app to teradata, so am using the Teradata 4.1 demo CD to determine if its possible and worthwile. I've have got as far as converting some of the simpler stored procedures, however I'm hitting a problem where I want to call one stored procedure from another, and it just seems to sit there not processing.

Basically, the stored procedure selects a set of keys from one table, loops through these calling the second stored procedure, which does several joins and ranks etc, and inserts the results from that select into another table. If I call the 2nd stored proc with 1 item, it executes fine (if a little slow - it takes about 8 mins, but it's only a mid-range desktop, so not really surprising). Calling the 1st stored proc, which would result in a set of about 400 keys in this test app, queryman just sits there, executing, but not generating any output rows, and having left it running all weekend, i would have expected something.

I'm guessing it might be a spool space problem, but don't know how to tell, as it says it is still executing, and doesn't throw any errors back.

Any help on how to find out what's going on appreciated..

Roy
 
Through PMON u can check if any sql is still executing.
Check through show locks if any locks are there.
Check through Qryman the progress of the session.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top