Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to identify the user id that locked a DB2 DB?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> HomeWorks & Requests
View previous topic :: :: View next topic  
Author Message
Nagendran

New User


Joined: 24 Jan 2007
Posts: 89
Location: USA

PostPosted: Thu Jul 12, 2007 2:29 pm    Post subject: How to identify the user id that locked a DB2 DB?
Reply with quote

Hi,

I have to identiy the user id and jobid that locked the DB2 Db.


Thanks and Regards,
Nagu
Back to top
View user's profile Send private message

raghunathns

Active User


Joined: 08 Dec 2005
Posts: 127
Location: rochester

PostPosted: Thu Jul 12, 2007 7:14 pm    Post subject: How to identify the Mainframe user id that locked a DB2 DB?
Reply with quote

try db2 command

-Dis Util(*)

displays all utilities and who is running that.
Back to top
View user's profile Send private message
Nagendran

New User


Joined: 24 Jan 2007
Posts: 89
Location: USA

PostPosted: Thu Jul 12, 2007 7:28 pm    Post subject: Re: How to identify the Mainframe user id that locked a DB2
Reply with quote

I have already tried , -DIS UTIL(*) will give the info only if the utility program is accessing the DB.I want the command to display information about the normal application program that is locked the DB( along with User id).
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Jul 12, 2007 9:40 pm    Post subject:
Reply with quote

Hello,

This is probably not the answer you want, but if "any user" can run a job/transactoin that locks "the table", i'd seriously recommend the design be looked into. Running around trying to deal with "whoever locked it" is not a formula for success.

One of the main reasons to implement an application using a multi-user database engine is to prevent locking entire tables so that one user/process can run.

If there are some "single user" processes, they should be scheduled for times when the majority of the system/users are not active.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> HomeWorks & Requests All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts User Cancels the job PANDU1 DB2 1 Sat Mar 04, 2017 8:21 pm
No new posts SORT - E15 and E35 using same user ex... Abhi Nature DFSORT/ICETOOL 12 Mon Oct 03, 2016 4:33 pm
No new posts User exit in COBOL programs ganasrinivasan PL/I & Assembler 0 Thu Aug 18, 2016 12:48 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us