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 AM
Just 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
Similar Messages
-
How to find out who deleted the central person ID of a pernr.
Hi,
I have a pernr 100 whose central person ID is deleted. I would like to know how can i find out who deleted it. Which table gives this information.
Thanks & Regards,
Soumya.It is stored as a relationship in HRP1001 & unless you have table logging turned on for this db table, I don't think you will be able to find out who deleted the Central Person. You can try running the Report RHCDOC_DISPLAY .
~Suresh -
How to find out who deleted the standard table enteries
Hi,
Somebody has deleted entire KNA1 in one of our systems. Is there any way to find out who deleted the entries?
Thanks & Regards,
Kumaran Duraiswamy.Hi
Look for help from an ABAPer. Go to SE11 for KNA1, use 'where-used list (ctrlshiftF3) and search for report that begin with Z* or Y* (perhaps LZ* or LY*, ie: function modules). See the ABAP coding if there is any instructions type:
DELETE kna1 FROM xxx.
Check too if the option &SAP_EDIT in tcode SE16N works in your system (see SAP Note 1420281 - CO-OM tools: SE16N: Deactivating &SAP_EDIT for instance)
I hope this helps you
Regards
Eduardo
PD: I forgot it, if option &SAP_EDIT works in SE16N, check the tables SE16N_CD_DATA and SE16N_CD_KEY.
Edited by: E_Hinojosa on Jun 24, 2011 11:04 AM -
How to find out who deleted the directory in Unix
Hi Experts,
In my system some body tampered the directories, and more over some body deleted the bin directory under the /usr/sap/trans in Unix operating system. now i am checking to find out who deleted and for the more logs.
i am unable to find out the user name and deleted directory logs..i know its completely related to the unix level but mean time i am searching for the same.
Any ideas and clues will be heighly appreciated.
-SriniTo know the OS would have been helpful
First ask the people around you if anybody did it, maybe he is man enough to admit...
Try to find out who logged at the time when the directory was deleted.
- check the OS syslog (/var/adm/syslog/syslog.log for hp-ux, /var/log/messages for linux)
- try the last commando to get a list of who logged on when
- check the command histories of the sidadm, root user, use the history command, or the h alias
- check if there are scripts running, which regularly delete files
As the trans directory might be NFS mounted to other servers, you might need to do the checks there too.
Best regards, Michael -
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 out who deleted the archive logs
Hi All,
Recently some archive logs were deleted from one of our servers. Is there any way to find out which user has deleted the archive logs through OS or through database ?
OS Version :-
SunOS Generic_Virtual sun4u sparc SUNW,SPARC-Enterprise
Database Version:-
SQL*Plus: Release 9.2.0.8.0 - Production on Mon Apr 9 01:12:15 2012888132 wrote:
Hi All,
Recently some archive logs were deleted from one of our servers. Is there any way to find out which user has deleted the archive logs through OS or through database ?
OS Version :-
SunOS Generic_Virtual sun4u sparc SUNW,SPARC-Enterprise
Database Version:-
SQL*Plus: Release 9.2.0.8.0 - Production on Mon Apr 9 01:12:15 2012As explained by others, from oracle database there is no record if they are deleted from OS.
But you can probably find the history of OS command been run with history command :). You can get the date and time.
Following link can help
http://stackoverflow.com/questions/99755/how-do-i-get-the-command-buffer-in-solaris-10
http://www.cyberciti.biz/faq/unix-linux-bash-history-display-date-time/
http://www.linuxquestions.org/questions/solaris-opensolaris-20/in-solaris-command-line-how-to-get-the-previous-commands-573814/
But i suggest you to post in Sun OS forum to get more details as its nothing to do with Database(in this scenario) -
How to find out who was the previous owner of an iPad?
My sister has recently found an iPad 1 WiFi on a bus. To determine the actual owner she had a friend to reset the iPad to factory settings (not sure why though) and now all initial data is lost. Apple Store could not help much, as the iPad was sold by a 3rd party retailer.
Does anybody know how to determine the previous owner (Apple ID, Device name or other) after a full reset? Would Apple be able to disclose previous Apple ID associated with the device?These links may be helpful.
How to Track and Report Stolen iPad
http://www.ipadastic.com/tutorials/how-to-track-and-report-stolen-ipad
Reporting a lost or stolen Apple product
http://support.apple.com/kb/ht2526
Report Stolen iPad Tips and iPad Theft Prevention
http://www.stolen-property.com/report-stolen-ipad.php
Best advice - Turn it in to the local police. Usually if no one claims it after a period of time, it will be yours. And your concious will be clear.
Cheers, Tom -
How to find out who made the entry or made changes to a documents?
Dear All,
As an administrator I mostly get the query as to made the entry in SAP Business One or who has made changes to the already created documents?
Can you please adviceHi,
Check this first: Query For Sales Order Amendments
Thanks,
Gordon -
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, -
How to find out what is the lock key for the computer
How to find out what is the lock key for the computer?
You don't.
If you forgot or lost the password, all you can practically do is reset it.
The manner in which you do so depends on what version of OS X you are running. The older versions utilize the reset password utility on your recovery/re-installation disk/drive.
On Lion, you use the following technique to reset the Administrators password:
Boot to your Lion Recovery Partition, by holding down the Option key while starting, and then selecting the Recovery HD as the boot choice.
Once booted, at the top of the screen is a menu ..., select Utilities / Terminal from the menu bar.
In the Terminal window, type “resetpassword” (without the quotes) and press return. A “Reset Password” window will open. Select your boot volume (your SSD drive) if it is not already selected. Select your administrators username from the menu labeled “Select the user account” if it is not already selected. Follow the prompts to reset the password. Restart the computer from the apple menu. -
How to find out who has released the purchase order?
Hi All,
I have a PR number lets say 10231322 and somebody has release it. Could any one please tell me how to find out who has release it?
Waiting for your kind replies......
Thanks in advance.
Regards,
FaisalHi,
When you are in tr ME23N, use the menu: environment > header changes.
Rgds,
Suzy -
How to find out who has deleted the production Query
Hi All,
I have searche SD , i can find it for infoobject deletion but i couldn't find it for Query.
Please let me know is there any possiblity to kow
How to find out who has deleted the production Query
Awaiting for your replies.
cheersHi Mahesh and all,
Thanks for all your inputs.
I have tried with RSRREPDIR tabel , I am unable to see that query at all.
If I use theT-code SLG1,
please guide me on the steps with paramets to be given in the respective ..object, subobject etc..
OR
could you please suggest any other way.
cheers
leena -
How to find out who had deleted the function moldule? S O S
how to find out who had deleted the function moldule Thank you very much.
if this fm was assigned to device class (package) you'll find it in
tables tadir, e070, e071
try with name of function module or function group
hope that helps
Andreas -
How to find out who's texting you from an iCloud email address?
how to find out who's texting you from an icloud email address?
OK after a bit of research I found a way to achieve this.
I simply looked up the email address in ADUC, then did a search in SP with the display name. I could locate the list and manually confirm it was configured with the incoming email address I was looking for.
I also found the below script on Stackoverflow, but got "The 'using' keyword is not supported in this version of the language." when I tried to run it. Any idea how to fix that? I'd like to have a script to link a library to an email address istead of the
manual approach described above.
http://stackoverflow.com/questions/4974110/sharepoint-how-do-i-find-a-mail-enabled-list-if-i-only-have-the-email
$SiteCollection = ""
$EmailAddress = "" # only the part before the @
# Load SharePoint module if not done yet
if((Get-PSSnapin | Where {$_.Name -eq "Microsoft.SharePoint.PowerShell"}) -eq $null) {Add-PSSnapin Microsoft.SharePoint.PowerShell;}
cls
using System;
using Microsoft.SharePoint;
namespace FindListByEmail
class Program
{a
static void Main(string[] args)
string siteUrl = $SiteCollection;
string email = $EmailAddress;
using (SPSite site = new SPSite(siteUrl))
foreach (SPWeb web in site.AllWebs)
try
foreach (SPList list in web.Lists)
if (list.CanReceiveEmail)
if (list.EmailAlias != null && list.EmailAlias.Equals(email, StringComparison.InvariantCultureIgnoreCase))
Console.WriteLine("The email belongs to list {0} in web {1}", list.Title, web.Url);
Console.ReadLine();
return;
finally
if (web != null)
web.Dispose(); -
CRM Release confirmation for billing (how to find out who released)
Hi All,
Does anybody know how to find out who released a confirmation for billing. Tx for releasing is /BEA/CRMB02. After releasing the confirmation for billing it will show up in /BEA/CRMB01. But there is no way to find out who released the confirmation since there is no change log. Or is there a change log?
Does anyone know the answer?You will need to use 'grep' from the CLI of your appliance(s) in order to view the mail_logs and gui_logs. Use "released" in the mail_logs to get the timeframe of when the mails in question were released. (You may need to verifiy the MID for the mails in order to verify the particular ones in question.)
Enter the regular expression to grep.
[]> released
Then use 'grep' again to search the timeframe in gui_logs. This should display who carried out the action, or what userID they were logged in with --- showing "user:<userID>" in the log line.
I hope this helps!
-Robert
(*If you have received the answer to your original question, and found this helpful/correct - please mark the question as answered, and be sure to leave a rating to reflect!)
Maybe you are looking for
-
Billing date(fkdat) in sales order item is not copied from Goods Issue Date
Hi All we are facing problem at item level billing date field.This field should be filled with the GI Date in schedule lines shipping tab. but, it(billing date) is not being filled with goods issue date but, with the required deliver date at sales or
-
Hi We need to implement inventory cycle count report . Is there a standard business content data source for this ? Thanks and Regards Arun
-
MOBI with BOE and mobile server on different servers
Hi Experts, We need to set up a BO MOBI with BOE and Mobile server on two separate servers. In such a configuration, how does the two servers communicate? What should be the VAS and VMS server configurations? especially the external hostnames in the
-
"Variable" is it a reserved word?
Hi, a third party application generates a table, which contains a column called: "variable", and the name of this column can not be changed... I need to use the column, but when I refer to it, oracle sql developer put the word "variable" in bold and
-
Hi I have downloaded an ebook, have an acsm file and have downloaded digital editions. but when I double click on the ACSM file it says its fulfilling content, the one time, as I have tried it several times, it went through 8 steps but then nothing h