How to detect apps users holding locks

Dear all
Finding out users holding locks is easy for database and then killing them using alter statement
But when the Sid is revealed, how can i link them to apps users and find who the user actually was

Sawwan,
On my test server, i logged in from a user farid and held a lock on MTL_SYSTEMS_ITEMS_B table through the item master form
Then i did as follows just to analyze how to find apps username holding the lock
SQL> select object_id from dba_objects where object_name='MTL_SYSTEM_ITEMS_B';
OBJECT_ID
38489
38715
SQL> select * from v$lock where id2=38489 or id2=38715;
no rows selected
SQL> select * from v$lock where id1=38489 or id1=38715;
ADDR KADDR SID TY ID1 ID2 LMODE
REQUEST CTIME BLOCK
000000009D869FE8 000000009D86A010 347 TM 38489 0 3
0 165 0
SQL> select paddr from v$session where sid=347;
PADDR
000000009F912AE0
SQL> select addr,pid from v$process where addr='000000009F912AE0';
ADDR PID
000000009F912AE0 57
SQL> select
2 d.user_name "User Name",
3 b.sid SID,b.serial# "Serial#", c.spid "srvPID", a.SPID "ClPID",
4 to_char(START_TIME,'DD-MON-YY HH:MM:SS') "STime"
5 from
6 fnd_logins a, v$session b, v$process c, fnd_user d
7 where
8 b.paddr = c.addr
9 and a.pid=c.pid
10 and a.spid = b.process
11 and d.user_id = a.user_id
12 and a.SPID = &PID;
Enter value for pid: 57
old 12: and a.SPID = &PID
new 12: and a.SPID = 57
no rows selected
Now can you plz tell me if all i did was right and the query doesnt work or something i did was wrong in the above action plan

Similar Messages

  • Session holding lock..need to find the apps user holding that SID

    Hello
    in v$lock
    a session is blocking another session..Sid is displayed there
    now i can kill that session if it is holding a lock for too long and i do so too
    But i want to know which apps user was it..there more than 500 users that connect from EBS r12..how would i know whichh user that sid belongs to
    so basically i need to know the apps user holding that SID which is blocking the other session
    Please advice
    Thanks

    Refer to the following links/notes:
    [Which FND_USER is locking that table |http://oracle.anilpassi.com/which-fnd-user-is-locking-that-table-2.html]
    Note: 180683.1 - What is the Supported Method for Releasing a Oracle Application User's Lock on a Table?
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=180683.1
    Note: 109061.1 - How to Check Whether an AOL Table is Locked
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=109061.1
    Note: 185762.1 - Script: How To Identify The apps User Using The O/S PID For Forms Users In 11i
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=185762.1

  • APPS USER GETTING LOCK

    After changing password of APPS user, while accessing application, 'APPS' user is getting lock. Checked that 'password' of 'APPS_TO_APPS' and 'EDW_APPS_TO_WH' did not changed.
    Ran Autoconfig -still account is getting lock.

    Pl see if that APPS database account has a profile set. I believe ATG RUP4 add a profile to the APPS database account and after x number of unsuccessful logins, it locks the account, making the instance unusable. See ML Note 556761.1 that describes a related issue. If a profile is indeed set for the APPS account, pl remove it.
    HTH
    Srini

  • How to make one user get locked to edit when another user is editing??

    Dear friends,
    In the webdynpro application option is given to controll the editability of the UI elements using edit button.When the same application is logged in by another user for ex: B , he should get a prompt saying user A is editing the page.
    How to implement this ??and what is the best approach for this please advice.
    Thanks in advance.

    The best way I could think of and what we implemented is:
    Creatin a DB Lock Object around data which you want to work upon.
    Requesting a lock when some one opens up a session for editing, if granted then go in edit mode else go in display\ read only mode with a message.
    Release lock after save.
    Regards
    Manas Dua

  • How to monitor Apps user

    I have an application user (login as apps owner) hammering the apps/db..using 100% CPU and 19.2% of memory.
    I can get the sid,pid etc from the unix server as shown below from TOP.
    I log into the application and query the Monitor Users form and can see all users and the Oracle process column.
    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    10526 applmgr 16 0 1136m 356m 351m R 100 19.2 17:09.88 oracle
    How are the data above from the server and the applications related?
    Is there any other way I can get the resp and what the user is running?
    Thanks

    As you said, you can get the OS PID from top. With that you can feed the following query to get the SID:
    set linesize 120
    column SID format 99999
    column status format a8
    column osuser format a8
    column username format a8
    column COMMAND format 999999
    column MACHINE format a6
    column MODULE format a10
    column SCHEMANAME format a5
    column action format a8
    column LOCKWAIT format a8
    column action format a8
    select s.sid,p.spid os_pid,s.status, s.osuser,s.username,s.COMMAND,s.MACHINE,s.MODULE,s.SERIAL#, s.SCHEMANAME, s.LOCKWAIT,s.action
    from v$session s, v$process p WHERE s.paddr = p.addr and p.spid = 'your_PID_here';
    With the SID sucked from the last request, you can feed the following query:
    select pid, v$session.sid, v$session.serial#, v$session.username, v$session.program, to_char(logon_time,'dd-mon-yyyy hh:mm:ss'), machine from v$session, v$process where sid = 'your_SID_here' and addr=paddr;
    This should give you the PID of the user which you will hopefully see from the Monitor Users screen.
    You can also do this via Grid Control and its an awful lot easier.
    DA

  • How to detect if user clicks on another cell in a JTable while editing?

    I use a custom TableModel which extends AbstractTableModel and I serialize the TableModel to save the data in a file. Sometimes when I try to serialize, my program crashes after putting in random data in to the table. I have reduced the problem down to if a user is editing a field and clicks on another cell instead of hitting "enter", then then program will crash if that was the last action when trying to save.
    I am thinking it might be something with the custom TableModel class, like I am missing a method or something. I have getColumnName, getColumnCount, getValueAt, setValueAt, isCellEditable
    Thanks

    Clicking on another cell should not cause a problem as this will stop editing in the previous cell. However if you click on your save button directly then the editor is still being used. Use the following after creating your table:
    table.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);

  • SDO gives JBO-26030: Failed to lock the record, another user holds the lock

    Hi,
    I have a question thats on the boundary between ADF and BPEL but I posted in this forum because its highly related to ADF Model with Service Interface.
    We have a BPEL batch process that spawns multiple child BPEL processes that handle threads inside the batch in parallel. These child processes all update the same batch record in a database with for example the lastActionDateTime. We do this by invoking an update service on a SDO application that we built following this tutorial: http://jianmingli.com/wp/?p=2838
    It all works good but sometimes when updating the same row from multiple BPEL process instances at the same time, we sometimes get a SDO JBO-26030: Failed to lock the record, another user holds the lock.
    I'm a bit stunned by this, because all we really do is updating a record. From BPEL we just invoke the updateBatch webservice method of the Service Interface.
    I can imagine that there will be wait time when these updates come in at the same time, but I didn't expect an exception would occur. Also the arbitrariness confuses me. If a child process would lock the record, I would expect this error to happen always and not at random.
    From BPEL the error displays as follows:
         <fault>
              <bpelFault>
                   <faultType>1</faultType>
                   <ServiceException>
                        <part  name="ServiceErrorMessage">
                             <tns:ServiceErrorMessage>
                                  <tns:code>26030</tns:code>
                                  <tns:message>JBO-26030: Failed to lock the record, another user holds the lock.</tns:message>
                                  <tns:severity>SEVERITY_ERROR</tns:severity>
                                  <tns:exceptionClassName>oracle.jbo.AlreadyLockedException</tns:exceptionClassName>
                             </tns:ServiceErrorMessage>
                        </part>
                   </ServiceException>
              </bpelFault>
         </fault>However when I dive into soa_server1-diagnostic.log I see the following exception:
    [2011-10-28T17:37:37.770+02:00] [soa_server1] [ERROR] [] [oracle.jbo.server.svc.ServiceJTATxnHandlerImpl] [tid: [ACTIVE].ExecuteThread: '8' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: a1484c49db38e963:-581f01fc:13345d7173d:-8000-00000000000322f4,0:1:0x5f5e2bf:33] [WEBSERVICE_PORT.name: ECMControllerSDOServiceSoapHttpPort] [APP: ECMControllerSDO] [composite_name: ECMProcessController] [component_name: ProcessControllerBPEL] [component_instance_id: 240335] [J2EE_MODULE.name: ECMControllerSDO] [WEBSERVICE.name: ECMControllerSDOService] [J2EE_APP.name: ECMControllerSDO] [[
    oracle.jbo.RowInconsistentException: JBO-25014: Another user has changed the row with primary key oracle.jbo.Key[CDS_20111028_8 ].
         at oracle.jbo.server.OracleSQLBuilderImpl.doEntitySelectForAltKey(OracleSQLBuilderImpl.java:1077)
         at oracle.jbo.server.BaseSQLBuilderImpl.doEntitySelect(BaseSQLBuilderImpl.java:553)
         at oracle.jbo.server.EntityImpl.doSelect(EntityImpl.java:8134)
         at oracle.jbo.server.EntityImpl.lock(EntityImpl.java:5863)
         at oracle.jbo.server.EntityImpl.beforePost(EntityImpl.java:6369)
         at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6551)
         at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3275)
         at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3078)
         at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2088)
         at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2369)
         at oracle.jbo.server.DefaultJTATxnHandlerImpl.commit(DefaultJTATxnHandlerImpl.java:156)
         at oracle.jbo.server.svc.ServiceJTATxnHandlerImpl.commit(ServiceJTATxnHandlerImpl.java:216)
         at oracle.jbo.server.svc.ServiceJTATxnHandlerImpl.beforeCompletion(ServiceJTATxnHandlerImpl.java:124)
         at sun.reflect.GeneratedMethodAccessor2677.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.jbo.server.svc.WLSContextCrossAppProxy$WLSCrossAppProxy.invoke(WLSContextCrossAppProxy.java:66)
         at $Proxy377.beforeCompletion(Unknown Source)
         at weblogic.transaction.internal.ServerSCInfo.doBeforeCompletion(ServerSCInfo.java:1239)
         at weblogic.transaction.internal.ServerSCInfo.callBeforeCompletions(ServerSCInfo.java:1214)
         at weblogic.transaction.internal.ServerSCInfo.startPrePrepareAndChain(ServerSCInfo.java:116)
         at weblogic.transaction.internal.ServerTransactionImpl.localPrePrepareAndChain(ServerTransactionImpl.java:1316)
         at weblogic.transaction.internal.ServerTransactionImpl.globalPrePrepare(ServerTransactionImpl.java:2132)
         at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:272)
         at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:239)
         at weblogic.ejb.container.internal.BaseRemoteObject.postInvoke1(BaseRemoteObject.java:625)
         at weblogic.ejb.container.internal.StatelessRemoteObject.postInvoke1(StatelessRemoteObject.java:49)
         at weblogic.ejb.container.internal.BaseRemoteObject.__WL_postInvokeTxRetry(BaseRemoteObject.java:444)
         at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:53)
         at nl.kpn.ecm4crm.am.server.serviceinterface.ECMControllerSDOServiceImpl_51vl7y_ECMControllerSDOServiceImpl.updateBatches(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
         at $Proxy373.updateBatches(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.j2ee.ws.server.jaxws.ServiceEndpointRuntime.processMessage(ServiceEndpointRuntime.java:355)
         at oracle.j2ee.ws.server.jaxws.ServiceEndpointRuntime.processMessage(ServiceEndpointRuntime.java:196)
         at oracle.j2ee.ws.server.jaxws.JAXWSRuntimeDelegate.processMessage(JAXWSRuntimeDelegate.java:479)
         at oracle.j2ee.ws.server.provider.ProviderProcessor.doEndpointProcessing(ProviderProcessor.java:1187)
         at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:1081)
         at oracle.j2ee.ws.server.provider.ProviderProcessor.doRequestProcessing(ProviderProcessor.java:581)
         at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:232)
         at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcessor.java:192)
         at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:459)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.jbo.server.svc.ServiceContextFilter.doFilter(ServiceContextFilter.java:78)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)Thank you for reading, any directions suggestions on how to solve this will be highly appreciated.
    regards,
    Gerben

    Thanks Frank.
    Already tried that , please let me know if there is any other way to get this .
    This is being discussed here :
    Re: Update without No wait
    and i am following what John Stegeman has suggested.

  • How to install skype without it detecting my user ...

    Hi All
    I am giving my laptop to family member and have cleaned it up and re-installed skype so he can set it up for his own use, however I notice upon downloading again Skype automatically detects MY user profile.
    How can I uninstall and re-install skype so that it installs as a fresh version without my own user details being loaded up?  Is there some hidden file I need to delete?
    Thanks for any help.

    Uninstalling Skype does not normally remove user data
    While Skype is NOT running (i.e. it has been Quit), hold down the 'Windows' key (to the left of 'spacebar') and press r on your keyboard to open the Windows 'Run' dialog
    Enter %appdata%\Skype and then click OK
    In the right panel of Windows Explorer, select and delete the folders whose names correspond to Skype Names whose data you no longer wish to retain on this PC
    Regards,
    Neil

  • How to detect "Overload of Lock Server"

    Hello,
    how knows a possibility how to trace or detect an overload of lock server.
    Problem is that the users get this message but we can not detect when this issue comes up.
    Kind regards
    Joern

    Hi,
    To configure thread detection behavior:
    If you have not already done so, in the Change Center of the Administration Console, click Lock & Edit.
    In the left pane of the console, expand Environment > Servers.
    On the Summary of Servers page, select the server instance for which you will configure overload condition parameters.
    On the Configuration > Overload tab, update as necessary:
                               Shared Capacity For Work Managers -- Total number of requests that can be present in the server..
                          Failure Action -- Specifies the action taken should a server instance detect a failed state.
                          Panic Action -- Specifies that action taken should a server instance detect a panic condition.
                       Free Memory Percent High Threshold: -- Percentage free memory after which the server overload condition is cleared.
                       Free Memory Percent Low Threshold: -- Percentage free memory below which the server is considered overloaded.
    For more information about overload conditions, see Configuration Options.
    Click Save.
    To activate these changes, in the Change Center of the Administration Console, click Activate Changes.
    Not all changes take effect immediatelyu2014some require a restart.
    Hope this help you.
    Redarda,
    Naveen.

  • JBO-26030 Failed to lockthe record, another user holds the lock.

    I have a web application using Bc4j + Bc4J JSPs .
    the web app , reads/writes to some tables.
    from time to time , I get this error:
    JBO-26030 Failed to lock the record, another user holds the lock.
    no other user is holding the record.
    appreciate your help
    regards
    RT

    Stopping the embedded OC4J should solve the problem.
    If you can reproduce the problem within one session (no browser sessions closed) then the problem is within your application.
    As Ric pointed out, it is always good practice to use read-only view objects unless you need to transact with the database apart from selecting data.
    If you have navigated away from some pages without committing changes, then you could consider committing as part of the page navigation, in order to release any locks and close off the transaction.
    regards,
    Brenden

  • My app for books locked up how do I unlock it?

    My books app locked up and I can't read the books.  How do I unlock it?

    Force quit the app. Hold down on the sleep button until the red slider appears and then Let go of the sleep button. Then hold down on the home button until iBooks quits. Restart the iPad.
    Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.

  • How to detect the Acrobat Browser Plug-in version installed on a users system for non-IE browsers?

    How to detect the *Acrobat Browser Plug-in version* installed on a users system, on Firefox, Safari, Opera, etc?
    Or one script for detecting Plug-in version for major browsers. Need full example code.

    Wrote an article on this with code samples (Javascript + HTML) - basically there are differences between IE and other browsers. Chrome natively comes with the Chrome PDF Viewer so I've incorporated that in my detection script.
    The script detects the browser type, and the installed acrobat version...
    Have a look here:
    Detect the Adobe Reader Plugin

  • How do I put a password lock on the Settings app in IOS?

    Hello All,
    How do I place a password lock on the settings in the Settings app on IOS devices? Be aware that I do not mean the password lock to wake the device from sleep.
    Thanks,
    Harry

    You can setup Restrictions...
    Tap Settings > General > Restrictions
    AFAIK, it's not possible to attach a password for access to the Settings.

  • How to Link AD user with Apps user

    Hi,
    We are in process of authenticating EBusiness suite users against their Active Directory credentials.
    We did the following:
    1. Import Apps users into OID
    2. Import AD users into OID
    We dont know how to link AD account with EBz account. Are we on right track?
    Please let me know if there is any document which explains the linking process.

    FYI
    I sucessfully authetnicated the AD user in OID against AD password using external auth.
    Do I really need to import ebusiness apps users into OID and then establish a link? Pls help me explain the process.

  • How to read weblogic user/password within a J2EE app ?

    All,
         There is an J2EE that exposes a webservice and the service can not be secured with ws-security since the service is an exact implementation of an standard that does not mandate  ws-secutiry and only insists on SSL/TLS. The application however needs a legitimate authenticated weblogic user for the rest of its work and hence the app has to read a known user created in the weblogic and then read its password as well and authenticate  within the app and use that authenticated subject. User can create this predefined user in weblogic and we may ask user to store the same weblogic password also in a CSF like OPSS and then have the app read the CSF, but since the password is available in the weblogic internal ldap, we want to leverage that and read the user's password using any of the weblogic mbean's APIs. Can anyone provide a pointer on how to read a user's password within the Weblogic's embedded ldap ?
         We referred to this Developing with the User and Role API - 11g Release 1 (11.1.1) & 6 Managing Security Realms with JMX but could not successfully get it working with J2EE app (Servlet/Filter).

    You can use JMX
    Please find a sample here
    List Users and Groups in Weblogic using JMX | Middleware wonders!!

Maybe you are looking for

  • Need to send HTML email from Workflow : problem with sender

    Hi all, i need to send HTML email from my Workflow. I did it but i have a problem with the sender. The sender of email is always the agent responsible of workitem, and i don't want the receiver can answer to sender. So i need to put a false email add

  • How come my iMessage on my iPad doesn't send messages

    how come my iMessage on my iPad doesn't  send messages.

  • Need Help in iProcurement

    Hi OAF Guys I am working in iProcurement and (new to iProcurement) to extend the non-catalog request template for suit to our organization. One of the extension is to provide all the information regarding the Travel Schedule when one employee wants t

  • After Update bad association on .asp files

    Ok, this seems a minor annoyance compared to what I've been reading but it's a real pain for me as I'm dealing with ASP pages all day long (web tech). Since the update today (thru Software Update) any *.asp file I double-click opens up in Apple Syste

  • How to Open picture currently displayed in ScreenSaver?

    I have my screensaver to go through all my photos in iPhoto.  Every now and then I come across a photo that I want to go straight to and enjoy (print, save to an application, etc.).  Is it possible to do that? Thanks! Lianna