Oralce killed 9i session state

Hi all

Just a quick question on whether or not it is normal for a session to be marked «killed» for more than 24 hours when I interview sessions DB. It was a session hung for a long time and I had to kill him (via TOAD and he succeeded). I understand it is a restore when killed, but why am I still see it after this long?

What to do next?
THX

SQL > col format 999999 sid
SQL > col username format a20
SQL > col osuser format a15
SQL > select a.sid, a.serial #, a.username, a.osuser, b.spid
2 session of v$, $ v process b
3 where a.paddr = b.addr
4 and a.sid = '& sid'
5 order by a.sid;
Enter the SID value: 156
4 old: and a.sid = '& sid'
4 News: and a.sid = '156'

SID, SERIAL # USERNAME OSUSER SPID
------- ---------- -------------------- --------------- ------------
156 354 SCOTT ASIAPAC\nkumar5 1276
6

C:\>orakill prod 1276

Kill thread IDs 1276 correctly with prod pending.

This is the name of the prod instance. serve your sid to 170 and get the SPIDS and kill him with the help of orakill

Tags: Database

Similar Questions

  • It is safe to kill idle session?

    Hello
    Recently working on the production environment I've met customer number of connection problem as follows

    sqlplus username/password

    SQL * more: release 9.2.0.4.0 - Production Wed Feb 25 15:46:31 2004

    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

    ERROR:
    ORA-00020: maximum number of processes (%s) exceeded


    After trying several times I connected and identified about 250 idle sessions of the only user of view V$ session.
    I have questions about this scenario.

    (1) I guess that inactive session consume processes, that triggered this error. Please correct me if I'm wrong.
    (2) is it safe to kill these idle without the approval of customers sessions because their status says they are 'INACTIVE '?
    (3) if not then, when idle, do these sessions are certain activities of long durations and because of their laziness oracle mark as inactive?

    My apologies for being naïve... :) Thanks in advance...

    Ashish payet wrote:

    (2) is it safe to kill these idle without the approval of customers sessions because their status says they are 'INACTIVE '?

    Yes - in a perspective of database instance. Oracle is very robust. It does not choke when a user session suddenly disappear.

    Course from the point of view of the customer? Not really. The client may always require this session - it may even have a unique transaction to validate.

    From a point of view s/n? Joy. Let me count the ways of contentment by waving the old lead pipe and killing sessions... ;-)

    (3) if not then, when idle, do these sessions are certain activities of long durations and because of their laziness oracle mark as inactive?

    You can watch the session $ v and that there should be a column that contains the current state of waiting for event time / elapsed (take a look at the Oracle Reference guide). If this wait state is SQL * Net client message or similar and the wait state has quite a long time (you set this number), then it would be wrong to kill the session in order to allow new.

    Another option is looking at shared server sessions. Here is the light weight in comparison to the server by default. For example a sessions 100 user may be services by 2 dispatchers and 10 shared - server process that oppose an almost 10 x more charge of a 100 process heavy process.

  • How to kill a session by the non privileged user

    Hello

    I use the oracle 10.2.0.3 version.

    I have to give privileged kill session to a user non-preferred, below 2 ways, I know that this can be done with.

    1. by giving change the system to this user privilege.

    2. by creating a procedure in any user with DBA privileges, which has the statement to execute immediate change the system kill session & by granting execute this procedure to this user.

    Apart from the above two ways, I heard that there is a procedure/priviledge etc. also well integrated into Oracle. Which can be granted to individual users.

    No idea if there is something of this kind?


    Thanks in advance.

    Best regards
    Oratest

    Each session has a partner gets server process created in OS that Oracle creates (the setting of the dedicated server), so if you kill even the session in Oracle and the corresponding operating system process is not killed, then the session is marked for KILL and do not get killed instantly or marked as snipped.

    Also, there is no explicit privilege in Oracle to grant only the ability to kill session, you will need to ALTER SYSTEM privilege and, of course, it gives you much more capacity than to simply kill the session and therefore impossible to give all users who does not keep a database.

  • Session state protection violation

    I created the sample application to the free workspace

    https://Apex.Oracle.com/pls/Apex/f?p=4550:8:0

    Name of workspace: WMS_USER

    Username: [email protected]

    Password: password! 23

    Request 40363 - shipping Office
    : - > Run: click the report item

    When I select the number of the item 50004257 and click on the button new 1 then show the error like session
    violation of protection State

    Can you please help

    This link is not a job for me.

    2942415 wrote:

    I created the sample application to the free workspace

    https://Apex.Oracle.com/pls/Apex/f?p=4550:8:0

    Name of the workspace: WMS_USER

    Username: [email protected]

    Password: password! 23

    Request 40363 - shipping Office
    :-> Run it: click the report item

    When I select item number 50004257 and click on the button new 1 then show the error like session
    violation of protection State

    Can you please help

    This link is not a job for me.

    Check your work application.

    p3_item_desc--> edit-->--> No. session state

  • Get the session state of the order of the day in javascript

    Is there anyway to get the value of an element of demand through jS?

    [I have an app that loads a different source into an iframe depending on which page the user is.]  I can load this value in session state for a part of the application (or a point probably page) but for the redirect which is made in java script I don't know how to get the value of session.  [I do not have it as the value of the client side.]

    Thanks guys, but I think that it would give me only the value in the DOm not in session state.  I had to make a page zero point and dynamic action that populated the in the DOM, and then I could use JS ($v) to get the variables.

    I couldn't find a way to get session state directly.

  • Apex 5.0 "session state protection violation" during the change of display only value point in dynamic action.

    The following feature gives us a message "session state protection violation", after we migrated our application from Apex 4.02 to 5.0.

    For example, in apex.oracle.com: https://apex.oracle.com/pls/apex/f?p=50676:1:

    Whenever the value of the input field changes, the URL to test changes. This is done in a dynamic action of 'change' on the version field. The action of the set value changes the value of URL to test.

    When the page is sent to the error message is displayed.

    1. Why do we get this message in Apex 5.0 and not in 4.0.2?

    2. What is the way to do this in the Apex 5.0?

    Thank you

    René

    Just try save session state - no.

  • Session state protection violation: this can be caused by manually editing the protected page P67_C point. If you don't know what caused this error.

    Hi friends,

    I create three field A textfield,textfield B,C textfield and apply the formula with dynamic action.

    C = A + B.

    Now, I want to protect user could not be total change at point C, so I change it is property of the text field to display only and change in

    Settings-> save the Session State-> Yes

    After all changes when I ran page and provide the registry then it shows me error below.

    Session state protection violation: this can be caused by manually editing the protected page P67_C point. If you don't know what caused this error, contact the administrator of the application for assistance.


    How to disable the total at point C when I use the dynamic action to calculate the Total of A + B.

    Thank you.




    Hi Maxence,

    1. in the case of a display one element

    Change your point of P67_C and change the State of Session Save-> No.

    2. in the case of a text field

    Change your point of P67_C and make it read-only

    go to the attributes of the HTML Form element-> readonly = "readonly".

    Hope this helps you,

    Kind regards

    Jitendra

  • session state variable, concept and work around

    I use the variable session state and tried under the code element. But so far, I've had it is that when a variable assigned a value in plsql block, its scope has ended so only.

    And in the next step using the simple sql variable within the same session, we had manifest error.

    Is there a work around using too simple sql variable.

    SQL> CREATE OR REPLACE PACKAGE MYPACKAGE
      2  as
      3  mysess_var number;
      4  end;
      5  /
    
    
    Package created.
    
    
    SQL> create table tmp_sess as select 1 sess_id from dual;
    
    
    Table created.
    
    
    SQL>
    SQL> declare
      2  begin
      3  MYPACKAGE.mysess_var := 1;--Assiging value
      4  insert into tmp_sess values (MYPACKAGE.mysess_var);
      5  commit;
      6  end;
      7  /
    
    
    PL/SQL procedure successfully completed.
    
    
    SQL> --I also want this to be achive for plain sql syntax,  is it possible
    SQL> insert into tmp_sess values (MYPACKAGE.mysess_var);
    insert into tmp_sess values (MYPACKAGE.mysess_var)
                                 *
    ERROR at line 1:
    ORA-06553: PLS-221: 'MYSESS_VAR' is not a procedure or is undefined
    

    You cannot access variable defined in a package of SQL. Good way would be to define the getter and setter methods.

    SQL> create or replace package mypackage
      2  as
      3    mysess_var number;
      4    procedure set_value (pvalue in number);
      5    function get_value return number;
      6  end;
      7  /
    
    Package created.
    
    SQL> create or replace package body mypackage
      2  as
      3    procedure set_value (pvalue in number)
      4    is
      5    begin
      6      mysess_var := pvalue;
      7    end;
      8
      9    function get_value return number
     10    is
     11    begin
     12      return mysess_var;
     13    end;
     14  end;
     15  /
    
    Package body created.
    
    SQL> exec mypackage.set_value(1)
    
    PL/SQL procedure successfully completed.
    
    SQL> select mypackage.get_value
      2    from dual;
    
     GET_VALUE
    ----------
             1
    
  • Session state and checkboxes

    Hi guys,.

    I'm a little hard with the checkboxes in the APEX 4.2

    I am trying to add 2 boxes in my application to filter the data

    The problem is how then to value by default when the user opens the page, some data are displayed

    If I use the 'Default' section in the details of the box (setting may 1 as default), when I open the web page, the checkbox is marked, but in the session state is not defined so no data will appear. If I submit the new page then Yes, the data is displayed

    I could use a calculation that defined the box = 1 if it is not set when the page loads, but it would not work as the calculation would give it 1 time and again when the user the box remove the flag

    Anyone know how I could apply this?

    Thank you very much

    Hello

    so I found a solution according to the following:

    -create box 2 or more

    -create a hidden text field

    -create a header after calculation that has always defined the hidden field = 1

    -create one before the calculation of header for each box the value = 1 box only if the value of the hidden text field is null

  • How can I get a session state value in my apex or DML text field

    I put a session state in my procedure, in my text field in my I want to get the value of the form region. I try in my text field of the form in the default region, I try

    BEGIN

    APEX_UTIL.GET_SESSION_STATE('USER_SECURITY_PIN');

    END;

    but this does not seem to get the PIN of the session

    How can I do this please

    dave_414 wrote:

    I put a session state in my procedure, in my text field in my I want to get the value of the form region. I try in my text field of the form in the default region, I try

    BEGIN

    APEX_UTIL.GET_SESSION_STATE('USER_SECURITY_PIN');

    END;

    but this does not seem to get the PIN of the session

    How can I do this please

    Depends on the Type of default property item.

    Use a static text with Substitutions of State of Session with a string substitution of static text:

    &USER_SECURITY_PIN.

    or the body of the PL/SQL function (for example):

    return apex_util.get_session_state('USER_SECURITY_PIN');

    or Expression of PL/SQL with a bind variable reference:

    :user_security_pin

  • How to kill the session running from work processes

    How to kill the session work processes running... What is the process to be programmed

    BEGIN
      FOR c IN (
      SELECT s.sid,
      s.serial#
      FROM v$session s
      WHERE s.username = 'your_user_name'
      )
      LOOP
      EXECUTE IMMEDIATE 'alter system kill session ''' ||
      c.sid || ',' || c.serial# || '''';
      END LOOP;
    END;

  • Session state protection error

    Hello

    I get an error on the browser Internet Explorer (doesn't happen in chrome), which States "Session State protection violation: this can be caused by manually editing the protected page P11_NEW_FLAG point." If you don't know what caused this error, contact the administrator of the application for assistance. Contact your administrator for the application. "


    I don't know why this error because the element P11_NEW_FLAG is NOT protected at all. Here's the security properties are attributed to him:



    Capture.PNG

    It has a readonly condition associated with him making it readonly based on some logic PL SQL.

    I don't know where to start debugging? What can be the root cause?

    Thank you

    Sunil Bhatia

    Hi Sunil Bhatia,

    Sunil Bhatia wrote:

    Hi mohamed,.

    No, its not hidden item, it's a FLAG (Checkbox) I display on the front end. There are readonly. I debugged and error occurring only when the box is read-only. It automatically creates checksum argument.

    Other settings to watch?

    Thank you

    Sunil Bhatia

    You use the condition parameters of article readonly?

    CheckBox and select items does not in HTML readonly property. ReadOnly checkbox in the case of Oracle APEX is setting the disabled property. Therefore, on presentation of the page it is originally the error of session state protection.

    An easy way to do this is to write a dynamic action (run Javascript) to disable the checkbox if necessary:

    $("#P11_NEW_FLAG").attr("disabled",true);
    

    But write a front page submit dynamic action (run Javascript) to activate elements disabled on the page, so that the layout of the page works fine:

    $("#P11_NEW_FLAG").removeAttr("disabled");
    

    Reference: Apex tips and tricks - an easy way to make read-only items

    I hope this helps!

    Kind regards

    Kiran

  • Apex DatePicker setting session state problem.

    Hi all

    Workspace: hanamike

    User name: test

    Password: test

    With the help of dynamic action, run PL/SQL, to set the session state.

    Using Firefox console showing too many recursion error but session state is defined so slow.

    But when the use of Ipad screen will freeze when the session state setting.

    Capture.PNG

    Already had the application properties, security, Mode of escape from HTML to base but still display the date value as a unicode type (c, c ++).

    Please advice.

    Thanks in advance.

    Zack

    You have set something on the change of P1_DATE1 to change the same domain, and "Remove Change Event" is set to no.

    It is an infinite loop.

  • APEX Session point of the Application or the item of Session State set and get?

    I need assistance with items and values in a single Application-Apex:

    I have a List-Item (P101_UMGEBUNG) selected on the page of connection (Page 101) in my application (next to username and password).

    After this item has been selected in the list of outfits and the "Login" button pressed, I want to use this value of the element in the context of different select statements on other pages for example in reports to the 4 Page, like this:

    "select * from mytable where environment =: P101_UMGEBUNG;

    The select statement is faulty, it dosent go back any line. It turns out that the value I just chose in the list is not saved in session state, so of course the select statement fails.  I determine this by clicking on the session menu item in the developer bar - the item itself presents itself, but the value of the element is empty:

    Unbenannt.png

    Which would cause a selected list value not end upward in session state and how to make sure he gets there?

    I've tried different solutions (process of pl/sql, javascript actions dynamics and brances) I found here in further discussions and with google, but maybe im wrong,

    Someone has a solution for this problem and could explain it in detail?

    Hello

    Value of the item on your login page is disabled by the process of "Empty the Cache page (s)". To save the State of this element, you can:

    1. remove the "Empty the Cache" page (s) process or set the condition to "never". It security hole.

    2 create the point on another page (for example, on page 10 P10_UMGEBUNG) and create processes on the login page BEFORE the process of "Empty the Cache" page (s), which will be

    Save the State of P10_UMGEBUNG. Make the process of PL/SQL:

    BEGIN
      APEX_UTIL.SET_SESSION_STATE('P10_UMGEBUNG', :P101_UMGEBUNG);
    END;
    

    After that, you can use the value of the P10_UMGEBUNG element:

    select * from mytable where environment =:P10_UMGEBUNG;
    
  • Only display element - Session State

    APEX 4.2.2

    Display only the page element. Settings: Save Session State = Yes. Output = based on the PL/SQL code. Security > escape = No special characters.

    The PL/SQL code uses htp.p to display HTML and page is rendered fine with browser showing HTML code.

    But when the page is submitted, the value is not saved in session state is not available for the apex_mail.send process.

    What Miss me? How can I get the value of page element to be available in session state to submit after process use?

    [I tried other alternatives such as Textarea with Readonly = Always element but anyway this mess up the rendering of the code HTML. [The only thing that appears in many working on the rendering side is only show the item, but then I can't read after the value of submit processing]

    Help! Thank you.

    Hi Vikas,

    This isn't how this parameter "based on" specific is designed to work.  If you look at the underlying HTML associated with the item, you will find that the real value of the element is distinct from what is emitted from your PL/SQL code.  The output of PL/SQL is simply what you want made on the page, but it's nothing associated with the underlying session state value.  If you have a dynamically calculated in the session state for this article, you would be better to use a calculation or specify PL/SQL in the attribute 'Source value or expression.

    I don't blame yourself if you find confusing - it is certainly not clear in the documentation or the help text for item-level.

    Joel

    PS still waiting to see you at the WORLD KScope or Oracle OpenWorld.  You must be to avoid us.

Maybe you are looking for