Focal Point
lockouts on new report

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/3041058512

March 01, 2007, 03:17 PM
Pam Kratt
lockouts on new report
We have a report that is reading a db2 table. Occasionally the table is updated and it appears if it's being updated while webfocus is trying to read it, we get a deadlock/timeout and have to get a dba involved. Is there a command that I can put in my webfocus code to tell it not to worry about updates, just take a look at that point in time and get the info needed. We can't have deadlock/timeouts in production. Has this ever happened to anyone else? We have hundreds of reports in existence and have never seen this happy before.

Thanks.


webfocus 8.105M; os: windows; pdf, html, exl2k, csv
March 01, 2007, 03:47 PM
smiths
Pam,

Are you issuing a COMMIT on the update of the DB? I had a problem where the (Oracle) DB was locked because I forgot to issue the COMMIT at the end.

Sean


------------------------------------------------------------------------
PROD: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
TEST: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
March 01, 2007, 03:47 PM
BlueZone
Pam :
If a DB2 table is being updated, the DB2 resource manager will automatically lock out everyone else from reading Un-commited data. This is for data integrity and it cannot be bypassed.

However, if you can get your DBA to reduce the lock-size parameter on the table to the smallest size possible (Page-level for sure, I believe even Row-level locks can be done), you can circumvent the dead-lock issue.

Size and Space permitting, you can also look at having an image copy of the table to a new one, that is not open to random updates. This new static table can be re-loaded once or twice a day to keep as current as possible.

Sandeep Mamidenna.


-------------------------------------------------------------------------------------------------
Blue Cross & Blue Shield of MS
WF.76-10 on (WS2003 + WebSphere) / EDA on z/OS + DB2 + MS-SQL
MRE, BID, Dev. Studio, Self-Service apps & a dash of fun !! Music
March 01, 2007, 04:12 PM
Pam Kratt
The program that is running is not doing commits. I checked and it's supposed to run at 2:30 a.m. CT so it shouldn't be a problem in production technically. That program is being rewritten to load to the db2 table differently but it will be going in after my report that reads that same table goes into production.

I'm going to make sure that the update to the table is done off-hours and that should keep us in good shape until the program change can go in to fix the lack of commits.

Thanks for your help.


webfocus 8.105M; os: windows; pdf, html, exl2k, csv
March 01, 2007, 04:37 PM
KevinG
Pam,

Or use SQL pass-thru making sure
FOR FETCH ONLY WITH UR;
is the last SQL statement.

Kevin


WF 7.6.10 / WIN-AIX