Results 1 to 3 of 3

Thread: Kill a session

  1. #1
    Expert Member
    Join Date
    Sep 2007
    Answers
    697

    Kill a session

    While saving a record it is showing message 'Keep tries (2Times)'. When it will show that message? How to kill a session?


  2. #2
    Contributing Member
    Join Date
    Nov 2007
    Answers
    53

    Re: Kill a session

    Quote Originally Posted by krishnaindia2007 View Post
    While saving a record it is showing message 'Keep tries (2Times)'. When it will show that message? How to kill a session?
    Dear krishnaindia2007,

    The form that you are using might be open at some other terminal also. Thats the reason behind the error message. To continue with your transactions, you have to close the form at the other end. For killing a session try enterprise manager. For doing that you must have administrative priviliges.

    I hope the suggestion will help you.

    Have a pleasant time.


  3. #3
    Expert Member
    Join Date
    Apr 2007
    Answers
    500

    Re: Kill a session

    Here are the Oracle scripts that is use to gather information before killing a session and To kill particular session if required

    rem session.sql - displays all connected sessions
    set echo off;
    set termout on;
    set linesize 80;
    set pagesize 60;
    set newpage 0;

    select
    rpad(c.name||':',11)||rpad(' current logons='||
    (to_number(b.sessions_current)),20)||'cumulative logons='||
    rpad(substr(a.value,1,10),10)||'highwater mark='||
    b.sessions_highwater Information
    from
    v$sysstat a,
    v$license b,
    v$database c
    where
    a.name = 'logons cumulative';

    ttitle "dbname Database|UNIX/Oracle Sessions";

    set heading off;
    select 'Sessions on database '||substr(name,1,8) from v$database;
    set heading on;

    select
    substr(a.spid,1,9) pid,
    substr(b.sid,1,5) sid,
    substr(b.serial#,1,5) ser#,
    substr(b.machine,1,6) box,
    substr(b.username,1,10) username,
    -- b.server,
    substr(b.osuser,1,8) os_user,
    substr(b.program,1,30) program
    from
    v$session b,
    v$process a
    where
    b.paddr = a.addr
    and type='USER'
    order by spid;
    ttitle off;
    set heading off;
    select 'To kill, enter SQLPLUS> ALTER SYSTEM KILL SESSION',
    ''''||'SID, SER#'||''''||';' from dual;
    spool off;


    hope this is use to u


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact