rduncan10
13th November 2015, 17:20
We are having a problem with some reports freezing periodically, and I'm trying to get some advise on how to find the problem.
This happens with reports that will run just fine for several days, and then lock up for any user. The reports I’ve seen this happen with the deliveries table (tdsls045). I’m not sure if it is a database problem, or if it is because these are our most frequently run reports.
The report locks up right after the user selects the print device, but before they are returned to the session form. So all they see is a blank sttstpsplopen screen. The entire Baan client locks up: they can’t open other sessions or kill the current one.
I know there is a difference between a report being slow or locking at this point and after it gets back to the session form. If I see a delay after it has got back to the session form, I know that usually means the query is slow and I can tweak it to speed things up. I can also usually do other things in Baan. If it is slow or stops before it gets back to the form, something else is going on. I’m not sure what. Often, new reports have a little delay at this point the first time they run, so maybe it is some compilation thing.
Users can run other reports against the same table with no problem, often reports using very similar queries.
I can usually fix the problem by changing the query in this session and recompiling it. Usually I have to change the index used in the WHERE clause. My bandage solution is to have two versions of the query in the script, one commented out. When the problem happens I just switch the comments, recompile and we are good to go.
The problem doesn’t leave any errors in the BaanIVc4 logs, the SUSE Linux system logs, or the Oracle DB 12 logs (at least none I can find). I am wondering if there is some SET command I can use to help, maybe an TT_SQL_TRACE command or something.
Thanks.
This happens with reports that will run just fine for several days, and then lock up for any user. The reports I’ve seen this happen with the deliveries table (tdsls045). I’m not sure if it is a database problem, or if it is because these are our most frequently run reports.
The report locks up right after the user selects the print device, but before they are returned to the session form. So all they see is a blank sttstpsplopen screen. The entire Baan client locks up: they can’t open other sessions or kill the current one.
I know there is a difference between a report being slow or locking at this point and after it gets back to the session form. If I see a delay after it has got back to the session form, I know that usually means the query is slow and I can tweak it to speed things up. I can also usually do other things in Baan. If it is slow or stops before it gets back to the form, something else is going on. I’m not sure what. Often, new reports have a little delay at this point the first time they run, so maybe it is some compilation thing.
Users can run other reports against the same table with no problem, often reports using very similar queries.
I can usually fix the problem by changing the query in this session and recompiling it. Usually I have to change the index used in the WHERE clause. My bandage solution is to have two versions of the query in the script, one commented out. When the problem happens I just switch the comments, recompile and we are good to go.
The problem doesn’t leave any errors in the BaanIVc4 logs, the SUSE Linux system logs, or the Oracle DB 12 logs (at least none I can find). I am wondering if there is some SET command I can use to help, maybe an TT_SQL_TRACE command or something.
Thanks.