Determinig the user of the blocking session.

I have an EBS system where users are creating locks that block others . I know that this is a user issue and they should use the system properly and not make changes and not save or rollback.
However , Every once in a while I get the same issue , A session is making a lock which is holding all the requests . All works fine after I kill the session but I need to identify the user who is doing this so I can talk to him and educate him on how to use the system properly .
The issue is the session “ as expected “ logs into the database using the apps user . How can I identify the user creating this issue ??? .
I am looking for apps username like sysadmin, tareq, mike,...
Thanks,
Tareq

Hi Tareq;
Please try below query which show who makes block
select 'alter system kill session ' || chr(39) || s.sid || ', ' || s.serial# || chr(39) || ';', s.inst_id,
'kill -9 ' || p.spid, s.username, s.module
from gv$session s, gv$process p
where p.inst_id = s.inst_id
and p.addr = s.paddr
and s.type <> 'BACKGROUND'
and s.sid in (
SELECT DECODE(request, 0, sid, -1) sid
FROM gV$LOCK
WHERE (id1, id2, TYPE) IN (SELECT id1, id2, TYPE FROM GV$LOCK WHERE lmode = 0)
Also check this:
select a.SID "Blocking Session", b.SID "Blocked Session"
from v$lock a, v$lock b
where a.SID != b.SID
and a.ID1 = b.ID1
and a.ID2 = b.ID2
and b.request > 0
and a.block = 1;
Regard
Helios

Similar Messages

  • How to kill the session after the user exit the ADF application

    Dear all
    I have a problem
    The problem is the session still exist after the user close the application and the browser. I want to kill all sessions that is not active.
    This is my test scenario:
    1- I open IE and run my ADF application that is deployed on weblogic. http://192.168.100.17:7001/myapp/faces/login
    2- At the same time I issue this SQL command to view the sessions for user 'ADFUSER' - the "ADFUSER" is the schema user.
    SELECT USERNAME,STATUS FROM v$session
    WHERE USERNAME = 'ADFUSER';QUERY RESULT IS
    USERNAME                       MODULE                                           STATUS
    ADFUSER                         JDBC Thin Client                                 INACTIVE3- Now the user close the browser
    4- Run the SQL again and I notice that the session still exist
    SELECT USERNAME,STATUS FROM v$session
    WHERE USERNAME = 'ADFUSER'RESULT:
    USERNAME                       MODULE                                           STATUS
    ADFUSER                        JDBC Thin Client                                 INACTIVE5- now the user open the URL again http://192.168.100.17:7001/myapp/faces/login
    6-Run the SQL again , and I notice that the old session still exists and a new session created too.
    SELECT USERNAME,STATUS FROM v$session
    WHERE USERNAME = 'ADFUSER'RESULT:
    USERNAME                       MODULE                                           STATUS
    ADFUSER                        JDBC Thin Client                                 INACTIVE
    ADFUSER                        JDBC Thin Client                                 INACTIVE
    2 rows selected.and every time I login to the application , a new session is open and the old session still exist
    I do not know why this happens
    I want to kill old session when the user close the application.
    These sessions are cleared only when i restart the weblogic domain.
    here is some information about my development environment:
    Jdeveloper 11.1.2.3
    WebLogic Server Version: 10.3.5.0
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    thanks in advance

    Hi,
    for performance reasons you should not use dedicated user connections to the database. Instead you use JDBC data sources (default in JDeveloper for ADF BC) that you can configure the database connection pooling for. This means that your v$session will always show a set of active session, which however are shared among users. Assuming you use ADF BC, this is what happens
    - A user requests a data bound page
    - The ADF BC checks out an AM and connects to the database using one of the database connections in the pool
    ... user work here ...
    - user exits application
    - ADF BC returns AM to pool and passivates pending user state (if application is left with dirty transaction)
    - Database connection is available in pool as soon as AM released
    This also happens between requests. Long story cut short: v$session doesn't give you a true picture
    Frank

  • Vb scripts to remove the user from the member of perticular group (say from domain admin) from windows servers 2003 and 2008

    Hi,
    I need VB script which to checks the perticular user in AD and if it exists;that user needs to be removed from the member of perticular group
    Ex:- Lets say
    I have a user 783562 , I need to search this user in AD to verify user exists or not. If not then I no need to remove the mebership from perticular group
    Second scenario:-
    If user exists then I need to remove the user membership from the perticular group.I want to do it in automation
    Manual Path:-
    1.Type dsa.msc in run command of IT session(we using it to connect remote desktop).
    2. Select the domain & right click (EX:-corp.ds.xxyyzz.com) and select "Find" to find the user form the domain.
    3. Type the user name in the Name field and click on "Find Now" button user name will be displayed in search result.
    4. Double click on this user ID and select "Member Of" tab.
    5. Select any member of group from the Name section then click on "Remove" button.
    6. Finally click on "Apply" and "OK" button.
    Kindly help me out to do this by using vb script.
    Thanks
    Raja

    Usage: CScript NameOfVBS.vbs //NOLOGO /User:Jane.Doe /GroupDN:CN=Group1,DC=Contoso,DC=com
    Option Explicit
    On Error Resume Next
    Dim str_User
    Dim str_GroupDN
    Dim obj_Connection
    Dim obj_Command
    Dim obj_RootDSE
    Dim str_DNSDomain
    Dim str_Base
    Dim str_Filter
    Dim str_Attributes
    Dim str_Query
    Dim obj_RecordSet
    Dim obj_Group
    Dim str_ADsPath
    Dim obj_User
    str_User = WScript.Arguments.Named("User")
    str_GroupDN = WScript.Arguments.Named("GroupDN")
    If Len(Trim(str_User)) > 0 And Len(Trim(str_GroupDN)) > 0 Then
    Set obj_Connection = CreateObject("ADODB.Connection")
    Set obj_Command = CreateObject("ADODB.Command")
    obj_Connection.Provider = "ADsDSOOBject"
    obj_Connection.Open "Active Directory Provider"
    Set obj_Command.ActiveConnection = obj_Connection
    Set obj_RootDSE = GetObject("LDAP://RootDSE")
    str_DNSDomain = obj_RootDSE.Get("defaultNamingContext")
    str_Base = "<LDAP://" & str_DNSDomain & ">"
    str_Filter = "(&(objectCategory=person)(sAMAccountName=" & str_User & "))"
    str_Attributes = "cn,ADsPath"
    str_Query = str_Base & ";" & str_Filter & ";" & str_Attributes & ";subtree"
    obj_Command.CommandText = str_Query
    obj_Command.Properties("Page Size") = 1000
    obj_Command.Properties("Timeout") = 1
    obj_Command.Properties("Cache Results") = False
    Set obj_RecordSet = obj_Command.Execute
    obj_RecordSet.MoveFirst
    If obj_RecordSet.RecordCount = 0 Then
    WScript.Echo str_User & " was not found"
    Else
    Set obj_Group = GetObject("LDAP://" & str_GroupDN)
    str_ADsPath = obj_RecordSet.Fields("ADsPath")
    Set obj_User = GetObject(str_ADsPath)
    obj_Group.Remove(obj_User.AdsPath)
    If Err.Number = 0 Then
    WScript.Echo str_User & " was removed from group " & str_GroupDN
    ElseIf Err.Number = -2147016651 Then
    WScript.Echo str_User & " not a member of group " & str_GroupDN
    Else
    WScript.Echo str_User & " error removing from group " & str_GroupDN
    End If
    End If
    End If

  • Return the user to the original point in the template after making selectio

    Hi,
    Can u suggest one solution for this problem
    Return the user to the original point in the template after making selections/returning back from the select views . While using the select list in middle of the page or some other point of the page, the page will be getting refreshed and it will be returned to the start of the page. My requirement is make it return to the same position after the refreshed page.
    Thanks,
    Ramky

    Hi Vikas,
    I have done the same setup as your sample application. I am using
    <br>
    Branch URL : <br>
    f?p=&APP_ID.:&APP_PAGE_ID.:&APP_SESSION.::::::#&P1_ANCHOR.
    <br>
    Computation for P1_ANCHOR:<br>
    case :REQUEST
    WHEN 'P1_A_SCN' THEN 'P1_A_SCN'
    ELSE NULL
    end
    <br>
    Anchor Code in region header for item P1_A_SCN:<br>
    < a name="P1_A_SCN">< /a >
    <br>
    When I use the select list it wont come back to the region where the select list P1_A_SCN is located. I checked for the value in P1_ANCHOR in the session state and it correctly shows as 'P1_A_SCN'. But the page URL after the submit does <b>not</b> show the anchor like<br>
    ......f?p=206:1:14418154115565883485::::::#P1_A_SCN it shows <br>
    ......f?p=206:1:14418154115565883485::::::
    <br>
    When I but the branch URL as <br>
    f?p=&APP_ID.:&APP_PAGE_ID.:&APP_SESSION.::::::&P1_ANCHOR. without the '#' it shows the page URL as<br>
    ......f?p=206:1:14418154115565883485::::P1_A_SCN
    <br>
    Do you what is causing the anchor to not show up in the page URL and thereby the intra page branch to not work.
    Thanks,
    Swaroop

  • Getting the role of the user running the report?

    Hello,
    I'm doing a report with Answers and need to recover the role of the user running the report. Is it possible?
    Thanks

    You can use any of the below Session Variables, click the Fx and enter the below
    VALUEOF(NQ_SESSION.displayname) - Displays the Full Name of the User that is logged in and running the report for that session
    VALUEOF(NQ_SESSION.user_alias) - Display's Alias Name of the User that is logged in and running the report for that session
    For the role, I don't think there is a Session Variable.
    Cheers!
    Royston
    Edited by: Royston Goveia on May 24, 2012 12:50 AM

  • A way to know who long the user access the application

    Hi
    <%session.getLastAccessedTime();
    out.println(new java.util.Date(session.getLastAccessedTime()));%>
    can catch the user login time, how can I catch the user logout time and How long they access?
    thank you

    What does this have to do with JDBC?
    But to help you, I would say to calculate the stuff yourself in whatever page lies behind the link when the user presses the logout button and/or link.
    Or, to use a SessionListener and calculate as above to catch timed-out sessions. If you do this, then do not do the above, or it will get calculated twice.
    If you have further questions then please post to the correct forum.
    http://forum.java.sun.com/forum.jspa?forumID=331

  • If the user is not logged in, the user to the login page in oracle ADFBC

    I have been looking for a solution that will allow me to check if a user
    has been logged in before I load a page. If the user is not logged in, or
    the session has timed out, I want to send the user to the login page

    Hi user
    If your using servlet session and backing bean class for the jsp/jspx pages replace the setHtml1 method for this code:
    public void setHtml1(HtmlHtml html1) {
    // session control
    String myUser = null;
    FacesContext context = FacesContext.getCurrentInstance();
    ExternalContext ectx = FacesContext.getCurrentInstance().getExternalContext();
    HttpServletResponse response = (HttpServletResponse)ectx.getResponse();
    HttpSession session = (HttpSession)ectx.getSession(true);
    myUser = (String)session.getAttribute("appUser");
    if (myUser == null) {
    try {
    // no session
    response.sendRedirect("http://myErrorPage.jspx");
    } catch (IOException e) {
    e.printStackTrace();
    this.html1 = html1;
    Good Luck
    Edited by: Maxi Rodriguez on Sep 18, 2008 11:14 AM

  • Can you install a password so that the user of the phone cannot unblock contacts. I do not want certain people contacting my daughter.

    Can you install a password so that the user of the phone cannot unblock  blocked contacts. I do not want my daughter to be contacted by certain people. I also do not want her to be able to contact them.

    The real problem is that whatever you do will only affect that phone.  If she really wants to contact them she could use ANY phone.

  • Stop the report from firing until the user clicks the Go button?

    Hi All,
    Is there a way to stop the report from firing until the user clicks the Go button? At the moment it is populating when I open the dashboard page. I found something online that said i could use the Page Options>Save Current Settings> For Others.. but even though i am signed in as an administrator i only see a For Me.. option. Also, even after setting this option i would like to be able to hit the 'Go' button to run the report and have it uncollapse the section. Is this possible?
    Thanks

    Thanks for the replies,
    In my report i am trying to constrain the report to todays data only. However the only prompt i have is for another column. If i place a filter on the date column with Year=0000 it will not change with the prompt selection and so will never return any results. Is there any other way?
    It seems wasteful to fire a request to the database onload of the page. Is there an option to only fire a request what the prompts are entered? I will be using a stored proc which needs parameters to run the request so it would be good to be able to set the report to not run until it has parameters entered
    Thanks

  • 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
    Shobha

    hi,
    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 let the user define the colors for each plots in the graph (I use LabVIEW 7)?

    How to let the user define the colors for each plots in the graph (I
    use LabVIEW 7)?

    Hi,
    Take a look at this example, it uses property nodes to select tha
    active plot and then changes the color of that plot.
    If you want to make the number of plots dynamic you could use a for
    loop and an array of color boxes.
    I hope this helps.
    Regards,
    Juan Carlos
    N.I.
    Attachments:
    Changing_plot_color.vi ‏38 KB

  • Sending an email to the user if the WEBi scheduling failed in CMC

    Hello Everyone,
    Current scenario :
    I am scheduling WEBi report through CMC and the report is going to end user email as an excel attachment.
    Desired Functionality :
    What happens is if the scheduling fails due to some reason. The email does not go to the end user on a particular date and then he complaints.
    What i need here an email sending option that if the WEBi scheduling has been failed in CMC an email should go to the user saying : " The WEBi scheduling has failed. The team is working on it " . (This is just a sample message)
    So the idea is to send an email to the user when the WEBi scheduling fails in the CMC. How to achieve this ?
    Regards,
    Ashutosh Singh

    Hi Ashutosh,
    You can send an alert email to a group when the schedule fails to run by choosing the "A job has failed to run" option under notification.
    You can see this option only if you schedule the report through CMC.
    Regards
    Sunil

  • To identify the user running the job at runtime

    Hi All,
    My requirement is to develop a program which need to send mail only if a particular user runs the job.
    I need to read the user who runs the job at runtime, i tried with SY-UNAME but it holds the user name of the person who created the job at runtime.
    Please suggest me the possible ways of identifying the user running the job at runtime.
    Thanks in advance!!!
    Regards,
    Dinesh.

    "I need to read the user who runs the job at runtime, i tried with SY-UNAME but it holds the user name of the person who created the job at runtime."
    This is not true if your program/form/method is called inside the ABAP report which is executing in the batch job step. There, the active SY-UNAME is the user entered in SM36 as the job step user. It is not the user who planned/scheduled the job.
    It is unclear from your description where your program is actually running. Is it another (ABAP) step belonging to the same job or is it actually some routine called within the same job step that you are checking or is it a program totally unrelated to the batch job in question (in that case, check out the other answers about TBTCO/TBTCP)
    - Alex

  • How can I copy programs (iWorks) and files from Time Capsule to my HD manually? The problem is that the migration assistant does not recognize my backup file and the user on the TC. (If I open the TC on finder, it it there though)

    How can I copy programs (iWorks) and files from Time Capsule to my HD manually? The problem is that the migration assistant does not recognize my backup file and the user on the TC. (If I open the TC on finder, it it there though)

    How can I copy programs (iWorks) and files from Time Capsule to my HD manually? The problem is that the migration assistant does not recognize my backup file and the user on the TC. (If I open the TC on finder, it it there though)

  • How to get personnel number of the user in the wd java code in Leave reques

    Hi all,
    we are using the standard Leave Request Applicatin ESS.
    can any one please tell me how to get the personnel number of the user in the WD java code?
    cause i have pass the pernr number to a bapi and get the details.
    please help me its urgent.
    thanks in advance.

    Hi Madhu,
    Create a model for the particular bapi in wd java and acess it in your component. Then pernr parameter will be available in the context and u can pass value for the parameter (pernr) to the model and get the output.
    If you hav any doubt, please let me know.
    Regards,
    Jithin

  • Is there a way to automatically add a page to my current form when the user marks the check box?

    I have an existing expense report form that I created using Adobe Pro's Form Tools. The user enters all the appropriate information (ie, vendor, amount, business justification, etc.) and then it calculates all the expenses at the bottom.
    I have added a box next to each line item to be checked by the user in the case that they have an expense with a missing receipt.
    Is there a way to have a pre-existing missing receipt form, be added at the end of the expense report, each time the user marks one of these missing receipt check boxes?
    If so, is there a way to have all the expense line item data automatically fill in the information on the added missing receipt form?
    I am using Adobe Pro's Form tool rather than Livecycle because it is compatible with my IPAD.
    Thanks,

    One word: Templates
    For more information, see: page: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_Dev_Templates.80.1.html
    Unfortunately, templates don't work with Reader either, unless the document is Reader-enabled with LiveCycle Reader Extensions.

Maybe you are looking for

  • My iPod touch 4th generation charger won't work!

    I have a black 4th gen. iPod touch with 5.1 iOS. The charger won't work anymore and I think something is cut in the wire. If I get a new one do I have to pay, if so were can I get one?

  • Embedded jetty

    I am using jetty as embedded server as part of other application. The problem I have is I can't seem to start the server. The file (i'm pretty new to java, so this is probably a sloppy programming style): // import org.mortbay.jetty.Server; and all f

  • How to sync bookmark on my icloud?

    Hello, When I open icloud control panel on my Mac (OS X 10.8.5), I couldn't see bookmark and the message said that this account is not main account for icloud. How to change main icloud account and how to sync bookmark on my icloud? Please advise me.

  • Payment and cannot active the account

    Last mont I wanted to use skype phone and I enter my paypal account, but I couldn't use the call service. After 1 month this money was less from my paypal.Now everyday I have tried to give my number in skype and receive a confirmation code to active

  • What's vrf

    when i learned about the security of a case ,i met a word "VRF" and look for the answer for quite a while and couln't ,who can tell me what is the VRF