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.

Similar Messages

  • 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

  • Killing a user session?

    Running Essbase 11.1.2 ASO cube...occassionally, when I attempt to kill a user session in EAS, I get the status of "terminating". I try to kill the session using Maxl commands to no avail. I know as a last resort to use task manager to end the ESSSVR.exe process -but I have been burned by this in the past as the database gets corrupted. Does anyone know of a safe method to kill these "terminating" sessions? and why are some easy to kill through EAS and others are not?

    Hi ,
    You may find the following entries in the application log which means there were hung sessions.
    +[Mon Jan 24 13:23:46 2011]Local/ESSBASE0///Error(1013290)+
    Failed to logout user []: timeout while waiting for requests to die
    +[Mon Jan 24 13:23:46 2011]Local/ESSBASE0///Info(1056092)+
    Sessions logged out [0]
    However, it is difficult to say why these errors occur exactly. Usually Errors like this occur because there are still processes running in the memory when the next transaction is called.
    A vast majority of errors can be avoided by integrating pauses and by unloading the application and then reloading it after each calculation or member/data load.
    When you kill a session from the EAS Console for a particular user, you need to wait for some time before the process gets compeltely killed, which perform a restructure or data load or data aggregation. You need to wait untill the process gets killed completely before performing any operations on the application.
    Never allow any other user to modify outline or update data whenever the Calculation is running. This can cause the application to go into a hang state and whenever you try to kill and if it fails, then you need to kill the ESSSVR process manually. For instance, follow the below guide lines when running Calc scripts:
    1) Never allow any other user to indulge any activity on the application. It is preferred to schedule the batch script as a nightly process, if it is a large operation to avoid user interruption.
    2) In case of hangups, use the UNLOCKOBJECT command (ESSCMD) to first unlock all the objects that are accessed by the script (Check the technical reference guide for the command ).
    3) Next log off the user using the LOGOUTUSER command, but here if you have multiple sessions of the same user logged in the application, all the sessions will be logged off. In this case use the EAS console and kill all the requests of the user first and then kill the session of the user.
    Suggestion:
    Try to execute the following MaxL commands as batch script and check if the execution of Calculation script is successful:
    spool on to 'D:\output\backup.log';
    login admin mypassword on localhost;
    alter application <app_name> load database <db_name>;
    alter system logout session on database <db_name>;
    Shell Sleep 30;
    alter system kill request on database <db_name>;
    Shell Sleep 30;
    alter application <app_name> disable commands;
    Shell Sleep 30;
    Execute Calculation <app_name>.<db_name>.<calc_name>;
    Shell Sleep 30;
    alter application <app_name> enable commands;
    Shell Sleep 30;
    logout;
    exit;
    You can also refer the doc: How to Kill the Essbase Processes/Sessions in 'Terminating' Status (Doc ID 839411.1)
    Hope it helps...
    KosuruS

  • Is it possible to start JSON Service specific to the user session?

    Is it possible to make JSON service to start different sessions of BusinessLogic Code in short - Is it possible to start JSON Service specific to the user session?
    Here is what I'm trying to do. I have a created a Configuration Model which contains the business logic. I want to start this model as a JSON service, and the user will interact with this model via mobile App developed using ADF Mobile. The JSON sevice has two calls
    /startConfiguration/{model_id}
    /getConfiguration
    Both of them return the string that indicates the BusinessModel being started by JSON service.
    When invoked " /startConfiguration/{model_id} " from two different browsers (Chrome - started first, FF - started second) for the same model_id (simulating the scenario of two user accessing same model), it did returned two different 'configuration' object strings, indicating that each call started its own Configuration.
    However, when I validated that the session started is user specific by calling "/getConfiguration"  it return same 'configuration object string - which is the second call from FF. Thus indicating that I cannot have JSON service tied individually to each user session. 
    My goal is to have JSON service specific to each user session. Is this possible?

    Hi,
    what is a JSON service? JSON is an object notation used with REST services. So I assume you have a REST services that returns JSON and you now want to obtain the same identifier for a specific input string? REST services - like all Web Services - are stateless and if you want to associate a request with a specific context then you need to pass a token or similar with the request so the context can be re-established. In your case I would have a look at the code mapped to startConfiguration/{model_id} to verify if the method checks for an existing configuration with the provided ID. Chances are that its the code returning the wrong ID. In general I would go with a token approach.
    Frank

  • Java API Failed to authenticate the user session with LDAP

    I have created a Java class that uses the MDM Java Api's it works fine on our Development environment where the MDM server uses its own built in authentication, but when I moved it to our QA environment where MDM use LDAP for authentication its failed with a  'Failed to authenticate the user session'.  Has anyone seen this before?

    hi Dan,
    The java class which u have created that suppose to works fine on MDM server because to execute that program there are no requirement of such protocols, the problem u will face while exporting those program to an client machine
    LDAP(Lightweight Directory Access protocol) connector communicates with the SAP system using RFC and with the directory server using these standard communication protocol.
    so try to select the protocol such that it should help in making connection between the server,direcotryserver and the client machine through which u can execute u r java class using java Api's.
    i hope this will give u an idea to through ur problem.
    regards,
    swapnil

  • How to change the max number of the user session?

    Hello,
      The max number of the user session of my system is 6,I want to change it,how should I do?

    Hi Begue,
    This can be done by changing the value of profile paramter rdisp/max_alt_modes. Currently its value in your system must have been set to 6. You can check the value through transaction RZ11. To change it use transaction RZ10.
    For knowing the details of changing values in RZ11 please visit :
    http://help.sap.com/saphelp_47x200/helpdata/en/c4/3a6247505211d189550000e829fbbd/frameset.htm
    After making the changes please restart SAP.
    Please award points if the issue got solved.
    With Regards.
    Ruchit.

  • IEnterpriseSession.logoff does not kill the web session

    Hi,
    i can reproduce the following problem in my application also with the
    BusinessObjects Enterprise Java SDK Sample JSP Application.
    - start the application
    - select Schedule And View Web Intelligence Documents
    - Login with user A
    - View a Webi Report
    - Logoff
    - select Schedule And View Web Intelligence Documents
    - Login with user B
    - View the same Webi Report
    The second call of the Webi Report with openDocument.jsp will takeover the
    web session of the first call
    and create the report with user A.
    Only closing the whole Internet Explorer helps.
    So my assumption is that IEnterpriseSession.logoff kills only the enterprise
    session and not the web session.
    Any help?
    regards
    Gordon

    Hi, Gordon,
    You are correct in that IEnterpriseSession.logoff kills only the enterprise session and not the web session.
    When using openDocument.jsp, the only thing in the URL that changes between calls are the parameters (everything after openDocument.jsp).  Because of this, the browser sees it as a cache hit and re-uses the credentials it already has.  The only way to get it to use different credentials is to exit the browser and reload it.  Opening new windows from the current browser isn't good enough.
    There's an SAP Knowledge Base Article about this:
    [1384047 - OpenDoc Is Not Using the Correct Logon Token|https://service.sap.com/sap/support/notes/1384047]
    It's a little involved, but basically it says that this is expected behavior and that the only way around it is to change your code to use the Enterprise SDK instead of openDocument and to manage the logon tokens yourself.
    Hope this helps.
    Bryan

  • Killing a user session through API

    Hi,
    I want to create a procedure for killing user sessions.
    Following is the code
    create or replace procedure kill_session (sess_no number,serial_no number)
    as
    v_sid number;
    v_serial number;
    V_flag char := 'U';
    begin
    v_sid := sess_no;
    v_serial := serial_no;
    dbms_output.put_line(v_sid||v_serial);
    select 'S' into v_flag from sys.v_$session where sid=v_sid and serial#=v_serial;
    dbms_output.put_line(v_flag);
    --exception
    --when no_data_found then
    -- dbms_output.put_line('No session');
    if v_flag ='S' then
    dbms_output.put_line('true');
    execute immediate 'alter system kill session ''v_sid,v_serial'' ';
    end if;
    end;
    It return error : ORA-00026: missing or invalid session ID
    But I am passing valid sid and serial#.
    Again When I am executing
    begin
    execute immediate 'alter system kill session ''64,6677''' ;
    end;
    It works fine. What is the problem,can anyone suggest .
    Regards,
    Neeraj

    Hi Justin,
    Thanks for your reply. I have verified the right number of quotes,still it doesn't work. Please look.
    declare
    2 v_sid number :=42;
    3 v_serial number :=26633;
    4 begin
    5 EXECUTE IMMEDIATE 'ALTER SYSTEM KILL SESSION '' || v_sid || ',' || v_session || ''';
    6 end;
    7 /
    EXECUTE IMMEDIATE 'ALTER SYSTEM KILL SESSION '' || v_sid || ',' || v_session || ''';
    ERROR at line 5:
    ORA-06550: line 5, column 62:
    PLS-00103: Encountered the symbol "," when expecting one of the following:
    . ( * @ % & = - + ; < / > at in is mod not rem return
    returning <an exponent (**)> <> or != or ~= >= <= <> and or
    like between into using || bulk
    The symbol ". was inserted before "," to continue.

  • Identify the user session

    Hi. There is a well known way to identify a "user" in the Servlet by using the Session object and the SessionID, even if the user has not loged in by Jaas.
    But outside the Servlet scope (in an EJB for instance) how can I know that information?
    By using jndi I can discover Who is the Principal, what can help when the user has identified himself.
    Thanks

    sessionContext.getCallerPrincipal()

  • The user session for a SAP GUI for HTML could not be created/generated.

    Hi,
    May I know what could be the issue for the above issue?
    We are trying to request for a ITS in a c#.net program with the following codes.
    HttpWebRequest request = (HttpWebRequest)WebRequest.Create(strURL);
    request.Method = "Get";
    request.ContentType = "application/x-www-form-urlencoded";
    HttpWebResponse response = (HttpWebResponse)request.GetResponse();  <<<<<< This line is throwing error >>>>>>  
    Stream responseStream = response.GetResponseStream();
    However, in our legacy system of classic ASP script, we are not encountering any issues and manage to get the response from the ITS. Accessing the url on IE is also working fine.
    set xmlHTTP = CreateObject("Microsoft.XMLHTTP")
    xmlHttp.open "GET", URL , false
    xmlHttp.send()
    str = xmlHttp.responseText
    Any help is much appreciated.
    Thanks.
    Bertina

    From the little information available here I can suggest following:
    1.     Check the Account validity and authorizations of the User used for authentication from DOT NET. If possible, assign SAP_ALL in Development and repeat tests. Later we can narrow down the access easily.
    2.     There is a known Kernel issue with ICF logon message handling, described in SAP Note 1241566 - Set of corrections: Logging on 1/2008. Check if the recommended Kernel patch level is already applied.
    If none of the above helps, please send me the following:
    1.     Trace file for the work process 0 in transaction ST11 on the application server spsisd_ISD_00
    2.     Generate trace files with the highest trace level (3) as per SAP Note: 507994 - Generating plug-in trace files for troubleshooting and send it over.
    We can look at various Kernel and Service level calls from trace files which should help us identify the root cause.

  • The user session remains after a App Server reboot.

    Hi,
    In my configuration of Oracle Portal, when I perform a boot on the server, the users can use the Portal after the boot without the need to login again. How can we force a new login after a reboot in the server?
    Thanks.

    Hi,
    I have answered a similar question in How to logout an user when the browser is closed?
    Thanks,
    Sharmila

  • How to do something before the user session expires

    Hi,
    I need to do some extra cleanup (delete some rows from database, etc) before the session of a user expires.
    I tried to do it with Phase Listeners, but haven't figured out how to put it on the session, I guess I need a kind of Listener.

    Can implement ServletContextListener to fire off events on context destroy.
    example.
       public class LifeCycleServletContextListener
          implements ServletContextListener {
          public LifeCycleServletContextListener() {
          public void contextInitialized(
            ServletContextEvent sce) {
             System.out.println(
               "LifeCycleServletContextListener:
                   contextInitialized");
          public void contextDestroyed(
            ServletContextEvent sce) {
             System.out.println(
               "LifeCycleServletContextListener:
                   contextDestroyed");
       }

  • Maintaining HTTPS through out the user session

    Hi,
    I am unable to maintain session with HTTPS.
    When i am accessing the deployed application with HTTPS, as soon as i enter the application after authentication, HTTPS turns into HTTP.
    How can i maintian HTTP throughout the session?
    Background Info:
    Application Server: WebLogic 9.2 sp2
    Portal Application deployed on weblogic portal server.
    Access Management: RSA Access Manager v 6.0
    Edited by ashish channawar at 04/23/2008 5:31 AM
    Edited by ashish channawar at 04/23/2008 5:35 AM

    Can u please tell about u r application request flow ...
    somthing like
    how it is getting authenticated?
    What is the proxy used ?

  • Unable to kill work process and user sessions.

    Hi Gurus,
    Iam facing a different problem in my prd system.Dialog process of a particular user has been running continuosly for long time, when i killed it with cancel with core or with out core option in sm50 still it is starting automatically on different PID and going in to loop.Even though user is not logged in and no back ground jobs are running still the process is running on its own.Even i tried killing the PID from OS level using DPMON but was of no help.
      I tried to kill the user session and log him out from sm04 from it was not happening, locked the user also but was of no help.
    Has anybody faced this situation?Is there any option excluding restarting the system to solve this issue.
    Thanks&Regards
    Prashant

    Hi Prashant,
    In case of multiple instances you have to log off the user from system wide select this option from SM04 while deleting user session again look for the action in SM50 for the process and if possible get details by activating trace from ST05 and filter with user, wp.
    Thanks,
    Saleem

  • Killing User sessions and user calcs

    Hi all,
    We have a situation where users run their business rules during evening and at times in night.
    We also have a maxl script which does aggregation and other calcs daily in night and it does not run as other calcs are launched by users.
    Is it possible to kill the user session and calcs launched by users before running maxl calculation for consolidations?
    I know I can do in in EAS, but want to try to do it in MAxL for automation.
    Thanks in advance

    You would be better off locking people out. After you kick off the automated calc, killing sessions doesn't stop them from initiating calcs while your automated calc is running. In answer to your question, yes, you can do that in maxl.
    alter system kill request all;
    You have other options if you want to be more selective on what you kill.
    kill request <session-id>
    kill request by user
    kill request on application
    kill request on database
    Check out the technical documentation for more info - http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/launch.html.
    Kyle Goodfriend
    http://www.in2hyperion.com
    Please make sure to assign helpful/answered to responses if applicable - it rewards those who help and benefits the user community.

Maybe you are looking for

  • HT1918 How do I remove my credit card details from my Apple Account?

    How do I remove my credit card details from my Apple Account?  I do not like the fact that Apple does not provide a clear and simple option to 'Delete a payment card', I definitely do not think this is legal. I ask this question because I recently re

  • Error while creating Production Order

    HI Experts, While creating a production order for a material with planning stratagy 82, I am getting an error saying "Error occured in number assignment for object" AUF_PLAN. Can you pls tell me what was the exact problem!! Regards Prasanna

  • IPOD UPD8 PROB

    A problem i encountered was i plugged my ipod into the comp after the upd8 and it said it needed to be updated it reinstalled itunes and theres was a problem with quicktime it didnt update and now itunes wont open, i downloaded it again clicked the f

  • Different page formats in single Smartform

    Hello Experts, I have an requirement in my custom Smartforms. I want my first page as by default DINA4 page in where as from second onwards, I want DINA3 page format. Could it be possible? If yes, how I can achieve this? Thanks in advance.

  • Where should I run Notification Mailer Service???

    Hi Friends, I have to configure a notificatio mailer for Oracle Workflow. I know that I have to configure Notificatio Mailer Service for it, and need to execute a wfmlf.exe. But can anyone tell me where should I run this file, ie. in Workflow databas