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

Similar Messages

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

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

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

  • 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.")

  • Killing User Sessions upon closing window

    How can we kill the user session people if people just go in
    and close the window by hitting x on the top of the browser? Any
    feedback and help would be greatly appreciated.

    Technically, you can't kill a user's session upon them
    closing the window.
    What you _can_ do is use J2EE session tracking, or a
    transient cookie that gets deleted when the browser quits. That
    still doesn't kill the session when they close the window. The
    session remains active until the timeout time has elapsed.

  • Managing OLAP User Sessions

    HI All,
    Is there any mechanism for managing/killing OLAP user sessions? I am in development/testing of an OLAP WEb Agent application, and find sometimes, I need to kill a rogue session, but can't find a way to do it, other than restarting the db instance. I not sure how to correctly id the session from v$session as I have seen in a few Oracle docs.
    I have had primarily an Express background, so I was hoping there might be some equivalent of the Express Instance Manager / Sessions interface....
    Regards,
    Imran

    Imran, if you go under Metalink / Top Tech Docs / Oracle OLAP, you can find the following articles:
    298689.1 How to kill OLAP sessions from SQL*Plus
    298686.1 How to determine which session is attached to an AW
    Basically, the following two queries should help.
    Determine sessions:
    select daws.owner "Owner",
    vawo.session_id "SID",
    vses.serial# "SERIAL#",
    daws.aw_name "AW",
    vawo.attach_mode "AttachMode"
    from dba_aws daws, v$aw_olap vawo , v$session vses
    where daws.aw_number = vawo.aw_number and vses.sid = vawo.session_id
    order by daws.owner, vawo.session_id, daws.aw_name
    Kill session:
    alter system kill session '19, 65' <--- "19" is the SID, "65" is the Serial #
    Just tested this on 10gR2 to make sure it still works - it does!
    Hope this helps,
    Scott

  • How to find and kill session similar to forms user session

    We have a forms and reports based system that uses the oracle sessions. Sometimes if a form takes a long time we have the need to navigate to iAS>Forms>User Sessions, find the IP of the machine where the form is not responding and kill it based on the IP of the troublesome machine.
    I want to add this into our forms environemnt so people can kill their own sessions if need be but not sure how this is handled
    is it a simple alter system kill session in the db or something different.
    also how is the ip found to match the session?
    Thanks

    hi,
    Instead Set session timeout parameters..So that user gets logged off automatically from the application after a particular interval of time
    For this you have to make changes in httpd.conf file,web.xml file and env file
    Regards
    Fabian

  • Kill User Sessions in Enterprise

    I was told that there was some code here that would allow me to kill user sessions in BOE XI 3.1 SP3. Can anyone point me in the right direction?

    If you have access to Service Market Place, you can search for KB 1468652. 
    It includes the following information, the code snippets are java code, you will just need to convert it to .NET:
    This method was not supported in version XI R2, but it is supported in version XI 3.1.  The steps are:
    1. Retrieve the connection objects using the following query and determine the SI_ID of the connection you want to terminate.
    SELECT SI_ID, SI_USERID, SI_NAME, SI_LASTLOGONTIME FROM CI_SYSTEMOBJECTS WHERE SI_KIND = 'Connection' AND SI_FAILOVER_AVAILABLE_UNTIL = NULL AND SI_AUTHEN_METHOD != 'server-token' ORDER BY SI_NAME"
    Do not delete any connections that use the server-token authentication method as those are used to communicate between servers (e.g. between the page server and cache server).
    2. Once you know the SI_ID, retrieve that specific infoobject and delete it.
    IInfoObjects oSessions = (IInfoObjects) iStore.query("SELECT SI_ID from CI_SYSTEMOBJECTS WHERE SI_ID =" + sessionID);
    IInfoObject oSession = (IInfoObject)oSessions.get(0);
    oSessions.delete(oSession);
    iStore.commit (oSessions);

  • Killing user session & and update v$session

    i use
    alter system kill session 'sid,serial#) immediate.
    user session killed but not clean, V$session show that user connect
    i also want clean user session and remove form V$session
    Any one who can do this ...
    Thanks

    Hi,
    >>how remove on killing user session
    As I said before, you just need to wait ... Don't worry about. On the other hand, by finding the SPID, you can force the process to be killed instead of waiting for PMON to wake up and kill it, but I think that it is not necessary.
    Cheers
    Legatti

  • Killing ODI Users Disconnected sessions

    Hi,
    We are accessing ODI via Citrix. More often then not some of the users simply close the application without disconnecting from the repository. This leads to performance degradation as there are many sessions which are not disconnected.
    How do I kill those sessions?
    Please suggest.
    Regards,
    Prerna

    Hi Prema,
    I think you can kill user session ffrom backend. Below URl may helps you
    http://www.dba-oracle.com/t_alter_system_kill_session.htm
    Hope it will helps you
    If you want to kill ODI execution session( I mean like user executed any scenario or package or interface or procedure from ODI), go to Operator >right click on execution session > click stop normal or stop immediate
    Regards,
    Phanikanth

  • SAPSYS user session  in CLNT 000 not killed

    Hi all!
    I have question.
    When i check in SM04 i have like 50+ user sessions where the user is SAPSYS in clnt 000 the session type is Plugin HTTP. As terminal info there's a IP-number.
    I don't no if its relevant but I'm running an internal ITS. I also run a locally installed IPC (on my laptop since it is a test system).
    My question is why are the sessions not closed down when i log out.
    I understand that the system is creating the sessions.
    Hope you can help me understand!
    //Roland

    Hi Disha!
    We have had memory bottleneck problems and we have applied note 742048 (extending em/global_memory_mb), still this didn't solve the problems with the internal sessions not closing.
    Regards,
    Roland

  • Timeout for user session/connection

    Hi All,
    We have 81741 database acessed by windowNT/2000 users connecting via formswebserver(6.0.8.21.1) using JInitiator 1.1.8.19, we use Apache server and/or webDb listener on webserver. Users are assigned different roles like engineer, technician, manager etc. As per management request, we need to timeout and close ENGINEERs connection which is idle for more than 60 min. Now, we need to kill the database session, kill the process on webserver and kill the application screen user has on his PC. I am sure, this has been implemented by some of our OTN members.
    Any suggestions would be appreciated in this regard.
    Thanks & Regards.

    You could try polling with in.available() for 5 seconds. As long as it returns 0, there is nothing to read.
    long start = System.currentTimeMillis();
    while (in.available() == 0 && System.currentTimeMillis()-start < 5000) {
      Thread.yield();
    // now the 5000 milliseconds has expired OR there is input available:
    String s;
    if (in.available()) {
      s = in.readLine();
      System.out.println(s);
      // there might be more to read, so you can check with in.available() again until you have read everything..
    } else {
      System.out.println("timeout");
    }

  • Server 2012 R2 RDS – cannot log off user session

    We have a 2 server RDS RemoteApp Farm.
    One server is constantly leaving user sessions in a disconnected state without the ability to kill the session (rebooting is the only way); this is happing 1-2 times per week.
    Servers have been configured to kill a disconnected session after 10 minutes, but some disconnected sessions have been running for days.
    Below is a screenshot of the process running for two disconnected users sessions that I could not disconnect, rebooting the server was the only way of fixing this. No error's were generated when users disconnected the session.
    Is there a known fix for this?

    Hi,
    Did you apply session disconnected policy setting in your environment?
    There are different ways for getting user log off. As you have commented that it’s happening with specific user, once check whether the user profile is not corrupted or any other related case. Also it might relates that some application or related services
    is still running under user profile so that session cannot be logged off. You can also try PowerShell command to log off the user. Also with
    Query user command you can find the related session name and ID and then with “Logoff user command” you can logoff the specific user. 
    For policy related to session setting you can check beneath article. (point 1)
    [Forum FAQ] Restrict number of Active Sessions
    in RDS 2012 and 2012 R2
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

Maybe you are looking for

  • Can I access two different libraries on the same computer with the remote app?

    I am in the process of upgrading our home network. There is going to be an airport express in each of the main rooms of our house all running to a switch connected to our AirPort Extreme. The reason for this is so we can stream our music in any or al

  • ITunes Match Not Working After Update to iOS 6.1

    I updated my iPhone 5 to 6.1 Now when I select a song using iTunes Match the song/artist/artwork isn't the song that plays. Has anyone else experienced this?I've turned match off to erase all songs and re-enabled it again, but I'm still getting the w

  • Advise on how to remove paid charge off

    Looking for any advice on the best way of handeling this. I have a old paid charge off  on my credit report that is scheduled to drop off in early 2016. I would love to get this removed early, but not sure if it is worth it. Is it really affecting my

  • Battery problem iPad 4

    I need help my iPad 4 have a problem battery.

  • How to copy module pool prog one server to another server

    hi Experts, hi how to copy  the module pool prog(mpp)  one server to another server , like download and upload , in this i have 10 screen pbo , pai, includes , , in  this mpp will have other tcodes also .. is this possible ,  if yes how give me step