FM to find user who locked the object using enqueue...
Hello,
How can I find name of user who enqueued the lock object in ABAP ?
Regards,
Jainam.
Hi Jainam,
See the SAP documentation, e.g. [FAQ - Lock concepts|http://help.sap.com/saphelp_NW04/helpdata/en/cb/168237d30d974be10000009b38f8cf/content.htm]:
How can I find out who is currently holding the ungranted lock? In other words, how can check the program after an ENQUEUE to determine which use is currently holding the lock so that I can let him or her know?
This graphic is explained in the accompanying text Answer
When the ENQUEUE_... function module is returned, the name of the lock owner is listed in SY-MSGV1.
If you don't want to attempt to lock an object and just check who might own a lock use function module ENQUEUE_READ. Lots of comments in the forum...
Cheers, harald
Similar Messages
-
How to find out, who locked the same row
Dears,
I have a problem,
sometimes our user complain that, when he tyring to make a transaction to a specific customer's Account
its says 'Some other user access the same account, keep trying...' (like this).
and in this response I just kill that user's session. then he can make the transaction by reconnecting.
sometimes my solution(killing the session) can not slove this problem.it stayed even 5/6 hours long.
in this time,i cannot find any bloking session or such a long waiting session.
In this Scenario..
I need to find out who(SID,SERIAL#,USERNAME) locked the same ROW (not table).
There are many users who are locking different rows of the same table at the
same time. I need to find the one who locked my row.
is it possible to find out, who locked the specific customer's Account ?
I am trying to find out by the following query but failed.
SELECT s.SID, serial#, machine, osuser, terminal, b.object_name,
row_wait_obj#, row_wait_file#, row_wait_block#, row_wait_row#,
DBMS_ROWID.rowid_create (1,
row_wait_obj#,
row_wait_file#,
row_wait_block#,
row_wait_row#
) rowidd
FROM v$session s, dba_objects b
WHERE s.row_wait_obj# = b.object_id
SELECT *
FROM (SELECT s.SID, serial#, machine, osuser, terminal, b.object_name,
row_wait_obj#, row_wait_file#, row_wait_block#, row_wait_row#,
DBMS_ROWID.rowid_create (1,
row_wait_obj#,
row_wait_file#,
row_wait_block#,
row_wait_row#
) rowidd
FROM v$session s, dba_objects b
WHERE s.row_wait_obj# = b.object_id)
WHERE rowidd IN (SELECT ROWID
FROM account_mas
WHERE branch = '999' AND accout_no = '009990215454')
please help me...
My Database version- 10.2.0.4, windows
Regards
Halim
Edited by: Abdul Halim on Oct 26, 2009 2:43 AMJust check with this query, find the lock and kill the session.
select b.session_id ,a.SERIAL#, a.username "Blocker Details"
from v$session a,dba_lock b
where b.session_id = a.sid
and b.blocking_others = 'Blocking';
Regards
Asif kabir -
Kick out the users who locking the files
hi, all:
I have a boring problem. but i am not sure the netware6.5 can done or not.
that's how to delegate the common user to kick out the users who locking the
files? by remote manage or other ways. I very appreciate for your answer.Cyber-Rey,
It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.
Has your problem been resolved? If not, you might try one of the following options:
- Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
- Check all of the other support tools and options available at
http://support.novell.com.
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://support.novell.com/forums)
Be sure to read the forum FAQ about what to expect in the way of responses:
http://support.novell.com/forums/faq_general.html
If this is a reply to a duplicate posting, please ignore and accept our apologies
and rest assured we will issue a stern reprimand to our posting bot.
Good luck!
Your Novell Product Support Forums Team
http://support.novell.com/forums/ -
How to find user who loaded the procs in DB
Hi guys how to find user who loaded procs in database ..and the date...
is there anyway..
i tried to look at all_objects..but it didnot workout..
thanksThat is correct. You will only have audit rows for item that you are auditing. I am suggesting you audit all DDL in a production database since production jobs should not perform DDL with the probable exception of truncate. This will provide this type of information going forward. It will not help you answer the question of who created the procedure last week?
Auditing is explained in the Security manual and the full comand syntax is available in the SQL manual.
You can easily write a purge the audit data to remove data once it is no longer of interest based on the date the audit row was created.
HTH -- Mark D Powell -- -
How to find out the user who locked the record
i can't delete a particular record from a table while executing the delete command its showing an error specifying
that "ORA-02049: timeout: distributed transaction waiting for lock"
syntax i used
delete from <table_name> where <column_name>='<value>'Hi,
select username,lockwait,process,sql_hash_value from v$session. Find the user who is having more lock wait
See the lock wait has more value notedown has_value
select sql_text from v$sqltext where has_value="Noted value " find the query whether your table is calling by the user. -
How to find exactly who lock the records
hi:
Session1: lock a record for example
Select e.* from employees e where e.employee_id = 7034 for update;
Session2: try to lock the same record:
Select e.* from employees e where e.employee_id = 7034 for update nowait;
After exception ora-00054 raised query this statement:
Select Vs.Sid,
Vs.Client_Identifier,
Vs.Action,
Vs.Status,
Vs.Machine,
Vs.Terminal,
Vs.Logon_Time,
Dmlock.Name
From Dba_Dml_Locks Dmlock,
V$session Vs
Where Dmlock.Session_Id = Vs.Sid
And Vs.Sid =
(Select Distinct First_Value(Ash.Blocking_Session) Over(Order By Ash.Sample_Time Desc)
From Sys.v_$active_Session_History Ash
Where Ash.Session_Id = Sys_Context('USERENV', 'SID'))session #1
21:28:14 SQL> Select e.* from employees e where e.employee_id = 206 for update;
EMPLOYEE_ID FIRST_NAME LAST_NAME
EMAIL PHONE_NUMBER HIRE_DATE JOB_ID SALARY
COMMISSION_PCT MANAGER_ID DEPARTMENT_ID
206 William Gietz
WGIETZ 515.123.8181 07-JUN-94 AC_ACCOUNT 8300
205 110
21:28:39 SQL> session #2
SQL> set time on
21:29:25 SQL> Select e.* from employees e where e.employee_id = 206 for update nowait;
Select e.* from employees e where e.employee_id = 206 for update nowait
ERROR at line 1:
ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired
21:29:51 SQL> session #3
21:30:18 SQL> SELECT Vs.sid,
Vs.client_identifier,
Vs.action,
Vs.status,
Vs.machine,
Vs.terminal,
Vs.logon_time,
Dmlock.name
FROM dba_dml_locks Dmlock,
v$session Vs
WHERE Dmlock.session_id = Vs.sid
AND Vs.sid = (SELECT DISTINCT First_value(Ash.blocking_session)
over(
ORDER BY Ash.sample_time DESC)
FROM sys.v_$active_session_history Ash
WHERE Ash.session_id = Sys_context('USERENV', 'SID')) 21:30:44 2 21:30:44 3 21:30:44 4 21:30:44 5 21:30:44 6 21:30:44 7 21:30:44 8 21:30:44 9 21:30:44 10 21:30:44 11 21:30:44 12 21:30:44 13 21:30:44 14 21:30:44 15 21:30:44 16
21:30:46 17 /
no rows selected
21:30:49 SQL> Your results are duly UNDERWHELMING! -
How to find users who are inactive.
Hi I want to find users who left the company. I ran program rsusr200 in se38 but not understanding which option will clearly give me the invalid users. Also i had a doubt. Does users with password deactivated that the user left the company.
Thanks in Advance for your helpThe "password" field in this report will not necessarily show you users who have left the company. The password may be be "active" since this is a new user and they have not yet logged on. You would need to compare as well the field "Created On". I would use the last logon field as an indicator of who may have left - if someone has not logged on in 90 days, that could be an indicator.
-
How can I find out the list of users who has the access to IT 0008
All,
How can I find out the list of users who has the W R permission for IT 008
for others?
SUIM doe not look like giving me the correct results.
Please advise.
Thanks,
From
PT.combine tables AGR_1251 and table AGR_Users on keyfield AGR_USERS
in tabel AGR_1251 select on Field LOW values IT0008.OR W OR R,
noiw you get also other values
So better solution run the query twice over AGR1251 first on IT0008 and secondly on values W OR R and then the result over table AGR_USERS
Youu also might put an additional selection on object P* (only selecting HR objects)
output wll be UID in table AGR_USERS -
How to track the user who deleted the info object.
Dear Gurus,
In our BI system one info object has got deleted. If I need to track the user who has deleted that how can I track it(in which DBtable). And the complication is one user ID is being used by many people, in this case how can I track that from which machine the Info Object has been deleted(if there is any possibility to track the machines by IP address).
Kindly let me know if there is any procedure to find it out. Your help will be rewarded with a great honour.
Regards
Mohan KumarHi dear,
you have to go in SLG1 transaction, and then select
Object: RSD
Subobject: IOBJ_DEL
External ID: (put here the name of your deleted IO)
Then choose a time range...and voilà, you can find the user who deleted the IO...
Hope it helps!
Bye,
Roberto
About the IP...look at USR41 table, but I think it's a bit difficult fo find data referred to the past...
If you haven't activated logon auditing in SM19... -
How to find the user who approved the workitem.
Hi experts,
I have created a parking/posting workflow.
When the user Approves, parked document is posted and BKPF table is updated with WF-BATCH as user name.
Now I need to find the actual user who approved the workitem for posting.
My plan is:
1. Find the workitem id using the BOR, company code, document no, year, task no.
2. Find the user who processed the above obtained worktem id.
Please let me know the tables for the above points 1 and 2.
Or let me know if there is any other way to find the actual user.
Regards,
KarthikHi,
To get the workitem ID with respect to a specific business object instance make use of the FM SAP_WAPI_WORKITEMS_TO_OBJECT
To know who processed the determined workitem either you can make use of the FM SAP_WAPI_GET_WORKITEM_DETAIL or directly read the table SWWWIHEAD and you can find the actual agent WI_AAGENT this is the field which says who has executed the workitem.
Regards
Pavan -
ORA-00054 - Find user who have lock
Hi,
I'm using "select for update NOWAIT" in my application for editing records. It works but after I catch ORA-00054 I want to find username who have the lock.
The basic step is propably to query view v$lock and propably after then some else view.
Thanks for any idea/solution
SASAYou'll need to scroll down a while to get to your particular question in the thread I linked... I believe it's about a third of the way down.
It is not possible to know who is locking a particular row unless there are two sessions that are blocking each other. If session 1 has a lock on a particular row and session 2 requests a lock on that same row and session 2 is waiting for that lock to free up, session 3 can query the v$lock table to see which session holds the lock and which session is waiting for the lock. Assuming everyone is logging in with their own user name, you can join this information with v$session to find out the username of the person holding the lock. In your case, though, no session is ever blocked, so you cannot determine who owns the lock.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
How to find out list user who did the printing
Dear All,
We are using network print server using HP LaserJet 5550 and jetdirect, since our number of users is more than 500 staff in one place, sometimes they do the unresponsible printing such as print full color photos for personal use, print a novel and anything that not related to the business purpose.
Today, our director found out that someone print out a whole story book and spend a lot of paper... he challenge me to find out who is the user who did this? I can log on to the printer web console, but I can't find user log printing...
Any help will be much appreciated.
Thanks & Regards,
FrankyThis seems to be a commercial product. For the best chance at finding a solution I would suggest posting in the forum for HP Business Support!
You can find the Commercial Jetdirect board here:
http://h30499.www3.hp.com/t5/Print-Servers-Network-Storage/bd-p/bsc-254
Best of Luck!
You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too. -
i just bough a used iphone but looks that it was found and i cant unlock it. its still link to the last user my question is how do i find out who is the last owner so i can unlock it
peeweenborre wrote:
i just bough a used iphone .... its still link to the last user ...
If you cannot get this information from the seller
Removing a device from a previous owner’s account
You need to return the Device for a refund, -
Text in VA02 - how to find the user who added the text
Hi
The user is adding text in the sales order through VA02, sometime after creating the order. This is not making any changes to the existing data, but adding the text in Header Text.
When trying to findout who made the addition of text (not changes) from VA03 - menu - environment - changes ---it is not showing any details regarding this. Please guide me how to find out the user who made the addition of text in sales order through VA02.
Thanks,
RaviHi Ravi,
I think there is no option available to find the name of the person who added text to the sales order.
If the person who creates sales order, should also maintains the text we can find the name who created sales order. I am sure that u might be knowing the way.
Still for the benefit of friends who r not aware, in the sales order> GOTO>Header data--> Sales tab.
Regards,
Ravi Duggirala. -
How to find the user who deleted the contents of DSO.
Dear friends,
Can u please tell me ,how to find the user who deleted the contents of the DSO.
The user has deleted the complete contents of the DSO. We need to find the user ,date and time.
regards,
VijaiHi,
If the user has used the manage option to delete the contents of the DSO then the changed by field will be updated by the users name. In case a program is used for the deletion then it wont be the case.
Regards
Govind.
Maybe you are looking for
-
Hi, I know the T61p doesn't have an S-Video output, but can a VGA to S-Video adapter be used with this laptop? Such as what is shown here: http://www.amazon.com/NEW-CONVERTER-S-VIDEO-CABLE-ADAPTER/dp/B000S675JU DaHunter
-
I have a string namely Jane Edward. If i want to add an additonal space in between Jane and Edward how can I do that. I tried using replacechr function but with no luck. Can any one suggest. Input string: Jane Edward Output : Jane Edward Please oberv
-
Is there a hidden function or another process when exporting NUMBERS worksheets to excel. Microsoft users are telling me that NUMBERS files will not open in EXCEL for windows. Thanks
-
QUEUE_NAME for outbound
Hallo, when i have a rfc-destination i need to assign a queue for destination? Because this error occured by invoking a bapi over plain http-adapter (QoS=EOIO): Result: <SAP:Error> <SAP:Category>XIServer</SAP:Category> <SAP:Code>INTERNAL.ATTRIBUTE_
-
XMLElement not returning XML with xsql:query
I am trying to use a select statement containing XMLElement, XMLAgg and XMLForest functions from a xsql servlet. <page xmlns:xsql="urn:oracle-xsql" connection="HOM_WISP"> <xsql:query row-element="" rowset-element="STATEMENT"> SELECT XMLElement("G