How to find out which user has locked a particular record of a table
Hi
Is it possible to know - which user has locked a particular record (I know the primary key of the record) of a table
Regards
select OS_USER_NAME os_user,
PROCESS os_pid,
ORACLE_USERNAME oracle_user,
l.SID oracle_id,
decode(TYPE,
'MR', 'Media Recovery',
'RT', 'Redo Thread',
'UN', 'User Name',
'TX', 'Transaction',
'TM', 'DML',
'UL', 'PL/SQL User Lock',
'DX', 'Distributed Xaction',
'CF', 'Control File',
'IS', 'Instance State',
'FS', 'File Set',
'IR', 'Instance Recovery',
'ST', 'Disk Space Transaction',
'TS', 'Temp Segment',
'IV', 'Library Cache Invalidation',
'LS', 'Log Start or Switch',
'RW', 'Row Wait',
'SQ', 'Sequence Number',
'TE', 'Extend Table',
'TT', 'Temp Table', type) lock_type,
decode(LMODE,
0, 'None',
1, 'Null',
2, 'Row-S (SS)',
3, 'Row-X (SX)',
4, 'Share',
5, 'S/Row-X (SSX)',
6, 'Exclusive', lmode) lock_held,
decode(REQUEST,
0, 'None',
1, 'Null',
2, 'Row-S (SS)',
3, 'Row-X (SX)',
4, 'Share',
5, 'S/Row-X (SSX)',
6, 'Exclusive', request) lock_requested,
decode(BLOCK,
0, 'Not Blocking',
1, 'Blocking',
2, 'Global', block) status,
OWNER,
OBJECT_NAME
from v$locked_object lo,
dba_objects do,
v$lock l
where lo.OBJECT_ID = do.OBJECT_ID
AND l.SID = lo.SESSION_ID
hope this helps
Zekeriya
Similar Messages
-
How to find out which user has the permission to execute startsap ?
Hi All
How do I find out which user has the permission to execute the startsap and stopsap? Do I control the permission on those script using windows standard authorization? For example: only allow certain user have the read and write permission?
Thank you.!
Vincent LoWell to me this is really weird question..
<b>noone un-authorized should have access to OS on your system</b>
If this is valid you do not need to solve problems who can and who cannot start/stop SAP, because if you want to prevent some users from shutting down the SAP you have really hard job to do - there are many ways how to kill the SAP (for example killing relevant process from task manager, killing of database, messing with services etc.) - yes, this is harmful way of stopping SAP, but we are talking about attack, right? I would contact some Windows specialist to help you disable all the ways how to harm the running SAP. But still after that - there are many files that can be modified/deleted so SAP will crash after restart - you need to protect them too, etc.
In case you take the first assumption as granted (and you really limit access to this server) you do not need to worry who can stop or start SAP - at the other hand it may be handy to be able to start/stop SAP from other users - for this you can run the stop/start script "under different user".
But to answer the question - to me this is question just of access control (but really never tried that myself):
<a href="http://technet2.microsoft.com/WindowsServer/en/library/c6413717-511e-42bd-bd81-82431afe4b2a1033.mspx">Permit or restrict access to a snap-in for a domain</a> (or see other related links down there on this page)
Please award points for useful answers.
Thanks -
How to find out which user create folder
how to find out which user create folder in shared drive?
Hello,
you have to enable Auditing in on the DCs OU and also on the top folder level where this should be monitored.
http://technet.microsoft.com/en-us/library/cc784387(v=ws.10).aspx
http://support.microsoft.com/kb/310399
Best regards
Meinolf Weber
MVP, MCP, MCTS
Microsoft MVP - Directory Services
My Blog: http://msmvps.com/blogs/mweber/
Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights. -
Hi there,
How to find out which users are using SharePoint Designer to make changes in SharePoint 2010 site?
Thanks.You need to enable auditing on SharePoint server and it will let you know, if someone makes any critical changes for the same.
Please walk through this informative KB to enable auditing on SharePoint :https://support.office.com/en-za/article/Configure-audit-settings-for-a-site-collection-f5a346d0-ee0f-4412-a5e6-d9b5abaa1012
Here is one more resource :
https://support.office.com/en-in/article/View-audit-log-reports-4293e8d5-4e7d-4201-b8ac-c8e63a100131
Moreover, if you wish to audit such critical changes automatically, you may consider on this comprehensive application (http://www.sharepointauditing.com/) that helps to track every changes on SharePoint into
real time and provides the captured data at granular level. -
ADF: How to find out which query has taken what time?
Hi,
I have an ADF application which has many SQL queried running on each button click/page load, so how to find out which query is taking what amount of time? So that i can identify the long running queries and modify them to improve the application performance.
Thanks in advance.Hi,
As suggested by Timo,you need to start tracing on oracle.jbo package for getting the SQL queries.But I think the second option suggested by him would be better.You will have to override executeQueryForCollection method in VO Impl class .Pseudo code would be
@Override
Take start time
super.executeQueryForCollection
Take end time -
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 out which user processed an action at runtime?
Hi all,
Is there any way to find out the user who processed an action at runtime? Is there a predifined CA for this or should I do a bit of development?
I need this information in the next action after that.
Thanks!what you mean by group of users.....
whether all the users are using the same user name ?
if it is not like that we can get the user name of the current logged in user .
using the following code.
IWDClientUser wdUser = WDClientUser.getCurrentUser();
with regards
shanto aloor -
How to find out which object has a specific attribute value
Hi all,
which is the easiest way to check in a collection of objects which object has an attribute with a specific value?
i.e. I have n objects of classA and they all have an attribute "String value;".
How can I check which object has that attribute set to "myvalue"?
Thanks,
A.hi,
i don't know if this would be the best way to do it, but i would add all the instances of the objects to a hashtable with the key as the attribute with which you want to search them. You would then retrieve the object using the value.
Cath -
How to find out the User Details for the particular transaction
Hi,
Actually AJAB -Asset Year closing was done by One User.How and Where to find out the User details who executed the Transaction.Kindly tell me the T-code for this.
Thanks
Sap GuruHi:
Please contact you basis administrator.Give him the T.code and date when Year closing was done. He may resolve your problem.
Please let me know if you need more information,
Assign points if useful.
Regards
MSReddy -
How to find out which vendor has PO text
I would like to pull out info about vendors and need to know which vendor has PO text, without of course having to check them one by one.
is there any way i can see that? tables? text id??
thanks
AlisaGo to SE75 and Select EKKO or EKPO
and Double click the EKKO or EKPO and Note the Text id..
Then go to SE16 > STXH and enter Text ID..
then execute , you will see the PO numbers for which the text id is maintained in 'Text Name' Column
From EKKO table you can find the Vendor for the above PO's. -
How to find out which GR has been invoiced?
Hello,
I am working on one scenario in which I am making a sales order through which automatic Purchase order is getting generated. I am doing a MIGO(GR) for lesser quantity on this PO. lets say I am creating 4 GRs of 10 quantity for a PO of 50. Now, I am making direct invoice for this through VF01 with reference to sales order. An invoice of 40 will be created.
Now, I am doing creating one more GR of 10 for the rest of the amount. I have 5 GR's now.
How can I get to know which GR has been invoiced (table relation) and which is yet to be invoiced?Amrish,
RSEG is the "Document Item: Incoming Invoice" table. In this table, Look for the field LFBNR , LFGJA, LFPOS.
LFBNR - Refernced GR Number
LFGJA - Year
LFPOS - Ref Doc Item
Hope this helps
Vinodh Balakrishnan -
How to find out which node has a specific word in xml query
hi
I have to query xml file. My xml file has items like this.
<item>
<product_code>SVUF2640</product_code>
<site_name />
<group>XDC</group>
<description>towerxxx1 aaaa</description>
<vf_no>44000077777</vf_no>
<serial_no />
<vendor>AAA</vendor>
</item>
<item>
<product_code>SXXX</product_code>
<site_name />
<group>SXS</group>
<description>xx1</description>
<vf_no>4xxx7777</vf_no>
<serial_no />
<vendor>BBA</vendor>
</item>I want to get item node which has a "tower" word in description tag. I'm looking something "like" word in sql. Thanks in advace.XPath has a contains() function.
-
How to find out which User id used to import Transport Request thru STMS ??
Dear Experts we have 6 BASIS Consultants in our org with STMS authroizations.
In every day we review Imported Transport request thry Import History Option in STMS.
Our requirement is which request is imported by which BASIS Consutlant thru STMS?
Thanks for your replies in advance
RegardsHi,
You should be able to see the "owner" of a transport request under the import history in STMS. If you need the user too you can choose the menu "Edit --> Display More".
Best Regards,
Srividya.R -
How to find out the user from the Jobs queue in Report server
Hello All!
I have a doubt about finding out the user from the scheduled jobs queue. Say I go ahead and schedule a report on Reports Server how can I find out the user name. When I view the jobs using showjobs I could see that the DBMS_JOBS table has a column under "Job Owner". But it invariantly shows it is "rwuser". So is there a way to find out which user has scheduled which job?
Regards
Shobhahi,
The below tables will give only the name .
USER_ADDRS
USER_ADDR
USER_ADDRP
USR02
i think you need email address .
you can use this Tcode : su01d
and give the user name and excute it
i hope it will help you.
Ram
Edited by: Ram velanati on Jun 30, 2008 6:57 PM -
How to find out names of reports using a particular view
hi guys,
i am newbie here, i jsut want to know how to find out which reports are using a particular view
many thanks in advance for your helpIf you go to the Properties for the Folder in Discoverer Administrator, there is a Dependents tab that should list any workbooks using the folder. This only works for workbooks saved to the database, so won't help with any created using Discoverer Desktop. If you are gathering statistics and have the The Discoverer V5 EUL business area and its workbooks installed, it can tell you about Folders Used as well. It contains information about queries run whether the workbook is saved to the database or to the file system, but wouldn't contain inforamation about workbooks that had been created but not run.
Maybe you are looking for
-
How do I get clipping paths to work in PhotoShop CS5?
I've always used clipping paths to pull-out parts of images that I then save as eps files and bring into other images. For some reason, I can't get CS5 PS to capture only the path I created, instead it continues to capture the entire image. I normall
-
Why is the status bar/ add-on bars missing ?
I recently refreshed my Firefox after 37 installed and crashed every time after. Once I loaded I added Status-4-Evar and the Bar is not showing up. So I tried loading two other add-on bars Zero and I know several of of my add-ons use that. YES i did
-
How to refactor ActionScript code into Utility or Helper Classes ?
Hello My application is growing in size. Many of my components are now 1000+ lines of code, most of which is ActionScript functions. What is the best way to refactor this into classes? Are there any tutorials explaining something like this? I'd like
-
When I try to back up my Mac Book Pro to an external hard drive some of the files are backed up but not all files are backed up. I don't understand. Can anyone help please?
-
A Start Doc Print call was not issued - error appears
Hi HP M1136 MFP used on windows Vista for over one year. Software reloaded using HP-CD supplied. Now "A Start Doc Print call was not issued" - error appears whenever print command from MS-Word, Excel or DF or even notepad is given