alerts
27th February 2015, 07:05
Hi, I have developed update session in which 10 to 11 tables are updating, but the problem is it is not running with spacific user , ie user type is normal, It hangs. While running with my user its working perfectly. Problem is cannot make that user as super user. what could be the reason. Please guide me.
Regards,
Alers
bhushanchanda
27th February 2015, 09:44
Hi,
Check if that user has insert/update authorization for those tables.
alerts
27th February 2015, 10:11
First that update session was running by the same user, after some tuning and modification he cannot. what i did in that session was i just removed all commitransactions and placed once at end of the session. Its working with my user Id.
Regards,
Alerts
bhushanchanda
27th February 2015, 10:16
Hi,
The best thing you can do is, put the session under debug mode and check at which table it is hanging. That will give you some ideas.
alerts
27th February 2015, 10:43
Yes while debugging it successfully updating, but normally it hangs.
Regards,
Alerts
bhushanchanda
27th February 2015, 10:47
Hi,
That sounds weird. Can you post your code?
günther
27th February 2015, 11:00
Hi,
what about writing a log file?
Regards Günther
bhushanchanda
27th February 2015, 11:20
One more question. In debug mode, are you executing the complete program or just checking if all updates are done? Make sure you go through whole program i.e. check if commit is executing or not.
Also, as gunther said, you can check return values for all update statements and commit transaction and write it to a file or simply check the return values in debug mode.
wonderkid
27th February 2015, 12:15
Check if its going to db.retry.point() ...
alerts
2nd March 2015, 06:22
I debugged for 2 to 3 records and continued. It was working.
vamsi_gujjula
2nd March 2015, 08:36
its probably authorization or locked record issue.