View previous topic :: View next topic
|
Author |
Message |
Khwairakpam Raju Singh
New User
Joined: 05 Dec 2007 Posts: 29 Location: Bangalore
|
|
|
|
Hi ,
I saw in QMF Error messages
Even I am facing same -905 error and I am very new to DB2.
Could anybody suggest me how to set or increase the ASUTIME limit ?
Thanks in advance. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
work it out with Your support |
|
Back to top |
|
|
ajeshrn
New User
Joined: 25 Mar 2009 Posts: 78 Location: India
|
|
|
|
CREATE PROCEDURE SYSPROC.application (
IN TABLE_NAME CHAR(10),
OUT REC_COUNT INT
)
ASUTIME LIMIT 500000
LANGUAGE COBOL
COLLID collection_id
EXTERNAL NAME application
through asutime limit parameter in the above query we can change the time |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
As Enrico says, consult with your DB support folks before blindly going ahead. They may have something to say about that modification. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
One way this is prevented in well-run shops is that stored procedures must be signed off by the dba - which prevents sneaking something in that will use an unacceptable amount of resource.
IMHO, it depends on if the process needs more time because of the amount of real work it does rather than being inefficiently implemented. Better to improve a poor process once than to run it "forever" wasting resources.
This often happens when a "simplest for the programmer" solution is used rather than a proper solution.
It is far more important to learn to implement good code than to learn to get around safeguards. . . |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
"It is far more important to learn to implement good code than to learn to get around safeguards. . ."
Totally agree. |
|
Back to top |
|
|
|