How to kill the blocking session

hi expert,
when i m going to run the below query
Update rcv_transactions_interface rti set rti.processing_mode_code ='BATCH'  where rti.interface_transaction_id = 3671265
it gives the error:
ORA-00054 resource busy and acquire with NOWAIT specified.
i find out the blocking session by using the blow query;
SELECT  a.SESSION_ID, a.SESSION_SERIAL#, min(A.SAMPLE_TIME) start_time,max(A.SAMPLE_TIME) end_time,a.inst_id, a.blocking_session,a.user_id,s.sql_text,A.EVENT,O.OBJECT_NAME,max(A.SAMPLE_TIME) - min(A.SAMPLE_TIME) 
FROM GV$ACTIVE_SESSION_HISTORY a  ,gv$sql s, dba_objects o
where a.sql_id=s.sql_id
and A.CURRENT_OBJ# = O.OBJECT_ID
and blocking_session is not null
and a.user_id  != 0 -- exclude SYS user
and a.sample_time > sysdate - 7
and a.event = 'enq: TX - row lock contention'
group by a.SESSION_ID, a.SESSION_SERIAL#, a.inst_id,a.blocking_session,a.user_id,s.sql_text,A.EVENT,O.OBJECT_NAME
it gives the output
SESSION_ID
SESSION_SERIAL#
START_TIME
END_TIME
INST_ID
BLOCKING_SESSION
USER_ID
SQL_TEXT
EVENT
OBJECT_NAME
MAX(A.SAMPLE_TIME)-MIN(A.SAMPLE_TIME)
369
45,849
9/4/2013 8:29:33.119 AM
9/4/2013 11:40:27.508 AM
1
554
173
SELECT POL.UNIT_PRICE   FROM PO_LINES POL  WHERE POL.PO_LINE_ID = :b1
enq: TX - row lock contention
PO_LINES_ALL
+00 03:10:54.389000
554
18,872
9/4/2013 8:29:33.119 AM
9/4/2013 11:40:27.508 AM
1
365
173
SELECT POL.UNIT_PRICE,POL.QUANTITY,POL.UNIT_MEAS_LOOKUP_CODE,POL.AMOUNT   FROM PO_LINES POL  WHERE POL.PO_LINE_ID = :b1
enq: TX - row lock contention
JA_IN_PO_LINE_LOCATION_TAXES
+00 03:10:54.389000
572
168
9/4/2013 8:29:33.119 AM
9/4/2013 11:40:27.508 AM
1
554
173
select line_location_id into :b0 from po_line_locations_all where line_location_id=:b1 for update of line_location_id
enq: TX - row lock contention
PO_LINE_LOCATIONS_ALL
+00 03:10:54.389000
581
4,973
9/4/2013 10:49:38.157 AM
9/4/2013 10:50:39.259 AM
1
572
173
Update rcv_transactions_interface rti set rti.processing_mode_code ='BATCH'  where rti.interface_transaction_id = 3671265
enq: TX - row lock contention
RCV_TRANSACTIONS_INTERFACE
+00 00:01:01.102000
my problem is in the above  output among 4 which i have to delete so sove my issue.
its very urgent for me.
plz plz suggest me and how can i kill the session.
thanks & regards
pritesh ranjan

priteshranjan wrote:
hi expert,
when i m going to run the below query
Update rcv_transactions_interface rti set rti.processing_mode_code ='BATCH'  where rti.interface_transaction_id = 3671265
it gives the error:
ORA-00054 resource busy and acquire with NOWAIT specified.
i find out the blocking session by using the blow query;
SELECT  a.SESSION_ID, a.SESSION_SERIAL#, min(A.SAMPLE_TIME) start_time,max(A.SAMPLE_TIME) end_time,a.inst_id, a.blocking_session,a.user_id,s.sql_text,A.EVENT,O.OBJECT_NAME,max(A.SAMPLE_TIME) - min(A.SAMPLE_TIME)
FROM GV$ACTIVE_SESSION_HISTORY a  ,gv$sql s, dba_objects o
where a.sql_id=s.sql_id
and A.CURRENT_OBJ# = O.OBJECT_ID
and blocking_session is not null
and a.user_id  != 0 -- exclude SYS user
and a.sample_time > sysdate - 7
and a.event = 'enq: TX - row lock contention'
group by a.SESSION_ID, a.SESSION_SERIAL#, a.inst_id,a.blocking_session,a.user_id,s.sql_text,A.EVENT,O.OBJECT_NAME
it gives the output
SESSION_ID
SESSION_SERIAL#
START_TIME
END_TIME
INST_ID
BLOCKING_SESSION
USER_ID
SQL_TEXT
EVENT
OBJECT_NAME
MAX(A.SAMPLE_TIME)-MIN(A.SAMPLE_TIME)
369
45,849
9/4/2013 8:29:33.119 AM
9/4/2013 11:40:27.508 AM
1
554
173
SELECT POL.UNIT_PRICE   FROM PO_LINES POL  WHERE POL.PO_LINE_ID = :b1
enq: TX - row lock contention
PO_LINES_ALL
+00 03:10:54.389000
554
18,872
9/4/2013 8:29:33.119 AM
9/4/2013 11:40:27.508 AM
1
365
173
SELECT POL.UNIT_PRICE,POL.QUANTITY,POL.UNIT_MEAS_LOOKUP_CODE,POL.AMOUNT   FROM PO_LINES POL  WHERE POL.PO_LINE_ID = :b1
enq: TX - row lock contention
JA_IN_PO_LINE_LOCATION_TAXES
+00 03:10:54.389000
572
168
9/4/2013 8:29:33.119 AM
9/4/2013 11:40:27.508 AM
1
554
173
select line_location_id into :b0 from po_line_locations_all where line_location_id=:b1 for update of line_location_id
enq: TX - row lock contention
PO_LINE_LOCATIONS_ALL
+00 03:10:54.389000
581
4,973
9/4/2013 10:49:38.157 AM
9/4/2013 10:50:39.259 AM
1
572
173
Update rcv_transactions_interface rti set rti.processing_mode_code ='BATCH'  where rti.interface_transaction_id = 3671265
enq: TX - row lock contention
RCV_TRANSACTIONS_INTERFACE
+00 00:01:01.102000
my problem is in the above  output among 4 which i have to delete so sove my issue.
its very urgent for me.
plz plz suggest me and how can i kill the session.
thanks & regards
pritesh ranjan
According to the above, your session_id is 581 which is blocked by session_id 572 so you need to kill the 3rd session in the list.
Thanks,
Hussein

Similar Messages

  • How to kill particular Oracle Session from the multiple Session of User

    Hi,
    I am working on Web Application using ASP.NET , C# with Oracle. I am excuting queries from multiple connection of same user. I want to kill particular user session. I have tried to Kill session by using ALTER SYSTEM KILL SESSION 'sid,serial#' it is working fine but how can i identify which session is generated by particular connection so that i can kill that particular session.
    Suppose there us user 'abc' there are multple instance of this user and all are active but same USERNAME. So Please tell me how can i identify that session through which i am executing the query.
    Thanks,
    Nitin

    Some ideas for how to pick the right session:
    -Look at the time the session was connected (logon_time)
    -Look at the time the session last started it's most recent statement (last_call_et)
    -Look at the sql that the session is running (join with sql_address and sql_hash_value over to v$sqltext_with_newlines or one of the other views that show you the sql they are running)
    That usually gets me most of the way, if it's possible to distinguish them. ("Yeah I just started this query and I want you to kill it." is different than "I started five different queries at about the same time and I'm not sure which one I need killed.")

  • How to kill the hanged JFrame in swing?

    How to kill the hanged frame in swing?
    I am opening multiple JFrame and working on them.These frames are plcaed in JDesktopPane.
    If one frame is hanged up then i could not work on others .
    I need to kill the hanged frame.
    Assist me.

    am opening multiple JFrame and working on them.These frames are plcaed in JDesktopPaneWell, a JFrame, can't be added to a JDesktopPane, so your question doesn't even make sense.
    As was suggested earlier, if your GUI is unresponsive, then that means you are blocking the GUI EDT and the GUI can't respond to events. Don't do this.
    Read the Swing tutorial on Concurrency to understand why this happens and to learn the proper way to write GUI code so it won't happen.

  • How to share the same session between JNLP Application and browser session

    How to share the same session between JNLP Application and browser session using BasicService.showDocument(url) method? It appears whenever i launch any URL from within a JNLP application using BasicService.showDocument(url) , it creates new instance of browser and session even after i used cooke handlers to restore JSESSIONID and Ltpa token etc.
    public static int showDocument(String urlToOpen)
    BasicService obj = (BasicService) ServiceManager.lookup("javax.jnlp.BasicService");
    obj.showDocument(urlToOpen);
    }

    Try using Reflection

  • How to delete the redundant sessions in Maintenance Optimizer?

    Hi experts,
    As it said in title, how to delete the expired sessions as the screenshot below in Maintenance Optimizer and keep SAP Solution Manager clean?
    Thank you in advance.
    Best Regards,
    Pany

    Hello,
    Check here Deleting existing maintenance optimizer transactions
    Please  refer to the note 845433 , with the report CRM_ORDER_DELETE  and transaction type SLMO,you can delete those maintenance optimizer, hope this help to you
    BR,
    K.

  • How to download the blocked ALV output to PDF file.

    How to download the blocked ALV output to PDF file.
    I am able to download the BLocked ALV output in PDF format,
    but the each bolck in ALV is displaying different pages of PDF.
    In my report I have 4 block in 1 page, I am able to see the output in PDF but in different page.
    How to avoid the Page-break in PDF.
    Thanks,
    Ravi Yasoda.

    hi,
    I believe that your have 4 containers on the screen with individual ALV display. in this case, there is no way to get combined PDF output to my knowledge.
    However you can use Smartform/Sapscript as output which would allow you to display ALV in blocks and also print it in one.
    Regards,
    Nirmal

  • How to open the block diagram of the NI ELVISmx

    How to view the program block diagram of the virtual instrument of the function generator, oscilloscope and so on in the NI ELVISmx,, I have seen before, but now I forgotten how to open the block diagram, who know?
    1110340036    jyh

    iOS apps can be added to an iTunes library and thereafter transferred to an iOS device. They cannot be opened directly on a PC.
    epub files can be added to an iTunes library, and thereafter transferred to an iOS device where they can be read with the iBooks application. Files protected with Apple's DRM cannot be opened directly on a PC, though there are programs such as Kindle and Calibre that will open non-protected epub files.
    tt2

  • How to kill the process chain

    hi,
        I have question how to kill the process chain during running.
    thank you.

    Hi
    If the process chain is running in background,
    goto <b>SM37</b>
    Give * in the jobname
    Give the username who scheduled the process chain
    Job status - check the check boxes - SCHED, relased, ready, active
    click <b>execute</b>.
    It displays all the process chains that, scheduled & running.
    You can select the process chain that need to be stopped & click STOP active job or ctrl+F1.
    Hope this helps!
    Kindly award points for all useful answers.
    If you post the BW related queries in the <b>BI general</b> forum, you will get more answers.
    Best regards,
    Thangesh

  • How to kill the applet

    how to kill the applet which in the browser.
    With Regards
    Santhosh

    my code.. this is main program for my applet. can find out errors. if not i will send the code to u.
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    import java.net.*;
    import java.io.*;
    public class StyleEditor extends Applet implements ItemListener ,ColorListener
        public ImageButton imgBold,imgItalic;
        public ColorButton colorButton;
        public Choice fontFace,fontSize;
        public TextArea textArea;
        public Panel toolBar,textPanel;
        public String content;
        public Font font = new Font("Arial",Font.ITALIC,16);
        public ColorDialog dialog;
        public Frame f;
        public String sColor;
        public InputStream in;
        private int size[] = {8,10,12,14,18,24,36};
        private Label textLabel;
        public void init()
            try
                setLayout(new BorderLayout());
                toolBar = new Panel();
                toolBar.setBackground(Color.lightGray);
                Toolkit toolkit = getToolkit();
                in = StyleEditor.class.getResourceAsStream("bold.gif");
                byte bin[] = new byte[in.available()];
                in.read(bin);
                Image ibold = toolkit.createImage(bin);
                in = StyleEditor.class.getResourceAsStream("italic.gif");
                byte binc[] = new byte[in.available()];
                in.read(binc);
                Image iitalic = toolkit.createImage(binc);
                imgBold = new ImageButton(ibold);
                imgItalic = new ImageButton(iitalic);
                fontFace = new Choice();
                fontSize = new Choice();
                colorButton = new ColorButton();
                f = new Frame();
                dialog = new ColorDialog(f,"Color Chooser",true,StyleEditor.this);
                textLabel = new Label("             Edit Style   ",Label.CENTER);
                textLabel.setFont(new Font("Arial",Font.BOLD,18));
                String editColor= getParameter("editcolor");
                if(editColor!=null)
                    int eValue = Integer.parseInt(editColor,16);
                    textLabel.setForeground(new Color(eValue));
                String fontArray[] = toolkit.getFontList();
                content = getParameter("style");
                String fname = getParameter("fname");
                String fsize = getParameter("fsize");
                Boolean bBold = new Boolean(getParameter("bold"));
                Boolean bItalic = new Boolean(getParameter("italic"));
                sColor= getParameter("oldcolor").substring(1);
                int value = Integer.parseInt(sColor,16);
                colorButton.setColor(new Color(value));
                boolean bold = bBold.booleanValue();
                boolean italic = bItalic.booleanValue();
                imgBold.setSelected(bold);
                imgItalic.setSelected(italic);
                for(int i=0;i<fontArray.length;i++)
                    fontFace.addItem(fontArray);
    fontFace.addItemListener(this);
    for(int i=0;i<size.length;i++)
    fontSize.addItem(size[i]+"");
    fontSize.addItemListener(this);
    toolBar.setLayout(new FlowLayout(FlowLayout.LEFT));
    toolBar.add(imgBold);
    toolBar.add(imgItalic);
    toolBar.add(fontFace);
    toolBar.add(fontSize);
    toolBar.add(colorButton);
    toolBar.add(textLabel);
    textPanel = new Panel();
    textPanel.setLayout(new BorderLayout());
    textArea = new TextArea(content);
    textArea.setEditable(false);
    textArea.setBackground(Color.white);
    textArea.setForeground(new Color(value));
    if(fname!=null && fsize!=null)
    setStyleFont(fname,fsize,bold,italic);
    textPanel.add(textArea);
    add(toolBar,BorderLayout.NORTH);
    add(textPanel,BorderLayout.CENTER);
    imgBold.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    boldActionPerformed(ae);
    imgItalic.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    italicActionPerformed(ae);
    colorButton.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    if(!dialog.isVisible())
    dialog = null;
    dialog = new ColorDialog(f,"Color Chooser",true,StyleEditor.this);
    dialog.setLocation(colorButton.getLocation());
    dialog.setLocation(200,200);
    dialog.pack();
    dialog.setVisible(true);
    }catch(Exception e)
    System.out.println(e);
    public void setStyleFont(String fname,String fsize,boolean bold,boolean italic)
    int s = sizeValue(Integer.parseInt(fsize));
    fontFace.select(fname);
    fontSize.select(s+"");
    if(bold && italic)
    font = new Font(fname,Font.BOLD+Font.ITALIC,s);
    textArea.setFont(font);
    return;
    }else
    if(bold)
    font = new Font(fname,Font.BOLD,s);
    textArea.setFont(font);
    return;
    }else
    if(italic)
    font = new Font(fname,Font.ITALIC,s);
    textArea.setFont(font);
    return;
    }else
    font = new Font(fname,Font.PLAIN,s);
    textArea.setFont(font);
    return;
    public void itemStateChanged(ItemEvent e)
    String f = fontFace.getSelectedItem();
    String s = fontSize.getSelectedItem();
    font = new Font(f,font.getStyle(),Integer.parseInt(s));
    textArea.setFont(font);
    public void boldActionPerformed(ActionEvent ae)
    if(imgBold.isSelected())
    if(imgItalic.isSelected())
    font = new Font(font.getName(),Font.BOLD+Font.ITALIC,font.getSize());
    textArea.setFont(font);
    return;
    font = new Font(font.getName(),Font.BOLD,font.getSize());
    textArea.setFont(font);
    return;
    }else
    if(imgItalic.isSelected())
    font = new Font(font.getName(),Font.ITALIC,font.getSize());
    textArea.setFont(font);
    return;
    font = new Font(font.getName(),Font.PLAIN,font.getSize());
    textArea.setFont(font);
    return;
    public void italicActionPerformed(ActionEvent ae)
    if(imgItalic.isSelected())
    if(imgBold.isSelected())
    font = new Font(font.getName(),Font.BOLD+Font.ITALIC,font.getSize());
    textArea.setFont(font);
    return;
    font = new Font(font.getName(),Font.ITALIC,font.getSize());
    textArea.setFont(font);
    return;
    }else
    if(imgBold.isSelected())
    font = new Font(font.getName(),Font.BOLD,font.getSize());
    textArea.setFont(font);
    return;
    font = new Font(font.getName(),Font.PLAIN,font.getSize());
    textArea.setFont(font);
    return;
    public boolean isBold()
    return imgBold.isSelected();
    public boolean isItalic()
    return imgItalic.isSelected();
    public void colorSelection(Color currentColor)
    colorButton.setColor(currentColor);
    textArea.setForeground(currentColor);
    int r = currentColor.getRed();
    String red = Integer.toHexString(r);
    if(red.length()==1)
    red = 0+red;
    int g = currentColor.getGreen();
    String green =Integer.toHexString(g);
    if(green.length()==1)
    green = 0+green;
    int b = currentColor.getBlue();
    String blue =Integer.toHexString(b);
    if(blue.length()==1)
    blue = 0+blue;
    sColor = red+green+blue;
    public String getName()
    return font.getName();
    public int getFSize()
    switch(font.getSize())
    case 8 : return 1;
    case 10 : return 2;
    case 12 : return 3;
    case 14 : return 4;
    case 18 : return 5;
    case 24 : return 6;
    case 36 : return 7;
    default : return 0;
    public int sizeValue(int value)
    switch(value)
    case 1 : return 8;
    case 2 : return 10;
    case 3 : return 12;
    case 4 : return 14;
    case 5 : return 18;
    case 6 : return 24;
    case 7 : return 36;
    default : return 0;
    public void stop()
    System.out.println("Stop");
    destroy();
    public void destroy()
    imgBold=null;
    imgItalic=null;
    colorButton = null;
    fontFace =null;
    fontSize=null;
    textArea=null;
    toolBar=null;
    textPanel=null;
    content=null;
    font = null;
    dialog=null;
    f=null;
    sColor=null;
    in=null;
    textLabel=null;
    super.destroy();

  • MTS, Killing the user session?

    My db is using MTS connection, while i kill the user session by using alter system kill session, the ever killed process goes to Pseudo status....even i can't kill from unix level because it uses dispatchers...
    is there any way i kill the user processes in MTS, with out going to pseduo status

    Hi,
    AS ORACLE SAID,
    If an active session cannot be interrupted (it is performing network I/O or rolling
    back a transaction), the session cannot be terminated until the operation completes.
    In this case, the session holds all resources until it is terminated. Additionally, the
    session that issues the ALTER SYSTEM statement to terminate a session waits up to
    60 seconds for the session to be terminated. If the operation that cannot be
    interrupted continues past one minute, the issuer of the ALTER SYSTEM statement
    receives a message indicating that the session has been "marked" to be terminated.
    A session marked to be terminated is indicated in V$SESSION with a status of
    KILLED and a server that is something other than PSEUDO.

  • How to find the max session count and process count for a database

    Hi All,
    How to find the maximum session count and process count reached for a database over a period of 15 days?
    DB version:11.2.0.2
    OS:AIX

    Thanks for the link.
    The output of the below query that is given in the link shows the results for the last 10 or 12 days.. Is there a query which gives a result for the last 30 days?
    col metric_unit for a30
    set pagesize 100
    Select trunc(end_time),max(maxval) as Maximum_Value,metric_unit
    from dba_hist_sysmetric_summary
    where metric_id in ( 2118,2119) group by trunc(end_time),metric_unit order by 1;

  • How to invalidate the IPortalComponent Session

    Hi,
    I have written one portal component for customizing the session expiry. In this component, based on certain idle time we want to redirect to another customize page saying that session is timed out. Redirection is happening but session is still alive. I want to invalidate the session.
    Can somebody tell me that <b>how can I invalidte the IPortalComponent session</b>. I know how to invalidate the http session but that does not solve my problem.
    Any suggestion?
    Thanks in advance.
    Manish

    Hi,
    By looking at the code of the IPortalComponentSession one can see that it basically stores all values in the httpsession with a certain prefix. Therefore, shouldn't it be sufficient to invalidate the httpsession ? (if this is not the case could you describe the problem closer)
    Note that if there is not component session, the IPortalComponent request creates one the first time it is accessed.
        public IPortalComponentSession getComponentSession()
            if(mm_componentSession == null)
                mm_componentSession = new PortalComponentSession(this);
            return mm_componentSession;
    Dagfinn

  • 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

  • How to rectify the hanging session without killing it?

    Hi all,
    Please help me out in the follwoing scenario.
    In a production server, I have few sessions got hanged at client side. I need to rectify it
    I cannot kill the session without commiting the data inserted.
    Is there anyway to rectify the problem.
    Please help me out.
    Thanks
    Regards
    Gatha

    Hi Gatha,
    Plz read this article here you will find all the info in very smart way...
    [http://www.oracledba.in/display_article.aspx?article_id=284]
    A R P I T S I N H A
    [http://www.oracledba.in/Main.aspx]

  • 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

Maybe you are looking for

  • Can't update the data of my credit card

    My credit card information was changed. Now I can't update this data on my account since days. Any idea, why?  the error message is 'Card is invalid, please check card details'. thanks

  • Inbound Delivery (DESADV): How to transmit SLED/BBD and Manufacture Date?

    Hello We have another challenging task to solve. Here is the scenario (SAP Release ERP 6.0): One Lindt company (supplier) sends an outbound DESADV IDoc to another Lindt company (Purchaser). Here the inbound DESADV should create an inbound delivery. F

  • New internal hard drive not seen in disk utility

    Hi I replaced my hard drive with a western digital black edition but when I use it as an internal it is not seen by the disk utility.  I have installed and booked from the new drive using USB so it doesn't seem faulty.  When I use the old drive as an

  • How to change color of canvas?

    I made sure the background color swatch in the lower left of the tool box was set to blue.  Then I went to Image>Resize>Canvas Size> and changed the sizes.  Then I set the Color Extension to the background color blue, and the little box to the right

  • Losing extended list of page sizes in Adobe PDF printer

    I have Acrobat 9.0 Pro installed on Windows 7, and use it with Autocad 2011 x64 (no PDFmaker! very irritating, but another story). From time to time, the Adobe PDF "printer" loses its extended list of page sizes, including the ARCH oversized page siz