Will the resource of 'SNIPED, KILLED' sessions be released?
Hi Guys,
I have a couple of questions regard to session status and the limit of session numbers which is set in parameter SESSIONS.
1) these are the Status of the session:
ACTIVE - Session currently executing SQL
INACTIVE
KILLED - Session marked to be killed
CACHED - Session temporarily cached for use by Oracle*XA
SNIPED - Session inactive, waiting on the clientMy question is, are the resource consumed by the sessions which are in 'SNIPED', 'KILLED' released?
what about 'INACTIVE'?
2) there is a parameter called 'SESSIONS' which is used to set the limit of session numbers.
So, my question is, the sessions in which status, will be counted into the total number of sessions, which in turn, will be compared against parameter SESSIONS?
any input will be highly appreciated.
Thanks in advance!
>
Google is your friend....
>
Yep, couldn`t agree more.
for your link, I definitely read that before posted here and it seems vague about the things that I am asking here.
Here is my question:
first question, are the resource consumed by the sessions which are in 'SNIPED', 'KILLED' released?
what about 'INACTIVE'?the link said 'At this time all oracle resources are released but the shadow processes remains and OS resources are not released'.
So, I get that the oracle resource will be released when the sessions in 'SNIPED' status.
but, what about the 'KILLED' and 'INACTIVE' ones?
You said:
>
Sniped and killed sessions' resources should be cleaned up (eventually).
>
again, very vague.
I want to know if the resources are released when the sessions are marked as 'SNIPED OR KILLED'.
2) there is a parameter called 'SESSIONS' which is used to set the limit of session numbers.
So, my question is, the sessions in which status, will be counted into the total number of sessions, which in turn, will be compared against parameter SESSIONS?I failed to find anything about this one. that`s why i am asking here.
one more question,
what`s the difference between 'INACTIVE' and 'SNIPED'? I can`t tell the difference by reading the doc.
thanks
Similar Messages
-
When will the IVI DRIVER TEST SUITE application be released?
I am developing IVI drivers and require a method to validate if it is IVI complient. I see that there is a tool available to do this. When will the IVI Specific Driver Test Suite application be released?
Hi,
You may want to post this query under the Instrument Drivers/IVI section for a faster response. You probably inadvertently posted (or it got posted; it happens) under Lookout (Industrial Automation Software) section.
Regards,
Khalid -
When will the RAW support for Nikon DF be release?
Anyone know when they will release the RAW support for Nikon DF?
Anyone who knows that, would not be allowed to post this information here. Only the Apple developers could tell you, and they never announce this kind of information in advance, sorry.
-
When will the new sony Z4 or Z3+ be released in Australia?
Hello, Sony, and almost all manufacturers, rarely announce new products until just before release, so they can keep selling their present stock .Predicting a release is pure supposition. You could ring Sony, but I predict the reply! It also depends which network/s decide to sell their product, and if they demand any software corrections or enhancements. Thanks
There has yet to be an official announcement for Australia, the last hints Sony gave suggested July, but alas that didn't happen.
You can register here: https://www.telstra.com.au/eoi/keep-informed/ and will get information sent to you once it does become available. -
This [http://img638.imageshack.us/img638/4186/screenshot20110226at124.png (Image)File menuitem not released after closing Import window.]
It has been there since early Firefox 4 betas. With 3.6 and 3.5 of Firefox it happened with the Tools and Bookmarks menuitem, also on Leopard and Snow Leopard the same way like the screenshot above. It happens more often that I would like. I'm not in the File menu at all and yet it's highlighted. I've closed the Firefox window and reopened a new window but the File menu remains active until I actively press it again or any other menu in the Firefox 4 menubar.
You can try it by choosing the File menu -> Import and then simply close the Import window and return to Firefox 4 for a browsing session. Does the File menuitem remain active? Happens each time now that I figured out the correct trigger that I mentioned with the Import window.Hi Rick & Todd
thanks for testing & responding
@ Rick - ProRes cannot be fixed with color management. At all. It is a problem that adobe has setting a correct quicktime gamma flag.
I am color-tight if re-importing encoded file back in to AE or any other adobe app. When exporting to PR or Quicktime in General, something is going terribly wrong.
@ Todd - This whole thing did not leave me alone and I have figured out what the problem is (aside from the Quicktime issue)
If AE's Audio Hardware Preferences is set to anything else than built-in audio this problem occurs. Setting it to Built-in Audio all the issues are remedied.
@ Todd - I have Crash Reporter Enabled.. but AE never crashes ;-)
@ Todd - I spent the better half of this year beta testing PT 11 for AVID along with another dedicated set of folks... The reason we test so long prior to release is to get rid of all the small issues that should never surface in a commercial software. Of Course you cannot get all of them but such as testing the audio hardware capabilites of AE prior to a major release should have been cought by the beta crew.. If any.
The quicktime issues are long standing - how about opening contact with Apple ( you are a developer and entitled to Apple Support) and tell them about the problem. And have them help you.
I mean, you offer Speedgrade which is a fantastic app, PPRO, AE & PS (All great) but what good is greatness if neihter is able to deliver. The quicktime file is being displayed with a .8955 gamma offset (What one would have to offset the quicktime file by) when viewed in any other app than adobe's That is a lot. -
Will the new IPod nano 7 generation be released tomorrow ?
Does anyone know when it will be?
Since you think I'm smart, I suggest you wait until there is a news release from Apple that they are shipping pre-orders and they will be in stores on October __, 2012.
We are all just users like you are and if anyone posting here actually knew the date they would be under a Non-Disclosure Agreement (NDA) and could not tell you. Not even carl. -
Carplay was announced back in March/14. Manufacturers like Pioneer have been selling aftermarket systems with the promise that a firmware to support Carplay would be released "in the Summer of 2014". Summer is gone and no firmware. When contacting Pioneer they say everything is ready on their side and they are waiting on Apple.
How long do we have to wait for Apple to get their act together? If you can't keep commitments it's better not to announce anything.prrper wrote:
Carplay was announced back in March/14. Manufacturers like Pioneer have been selling aftermarket systems with the promise that a firmware to support Carplay would be released "in the Summer of 2014". Summer is gone and no firmware. When contacting Pioneer they say everything is ready on their side and they are waiting on Apple.
How long do we have to wait for Apple to get their act together? If you can't keep commitments it's better not to announce anything.
I am sure you saw it came out yesterday. Updated my 4000NEX and now have CarPlay up and running. -
How much will the new Iphone 16gb black be when released?
What is the uk price for a black 16gb black iphone 5?
You can look this up yourself.
Click Store at the top of this page. -
When will the next version of Crystal Reports be released ?
I had asked this question last year and was told by the SAP agent there would be a new version of Crystal Reports released in 2015. Is this still true ? Are I better to wait or should I be looking to migrate to 2013 (currently on 2011) ?
ThanksHi Craig,
CR 2013 is just a rebranded CR 2011 that was released alongside BI 4.1.
I can't say for sure if 2015 is the year when a 'new' CR version would be released.
-Abhilash -
Regarding Alter System Kill Session
Hi Guys,
I have to do db refresh from the build .For this I have to kill the sessions and drop the users and recreate the users with the latest build.As the application is running and there are some idle sessions, I have to kill the sessions and drop the users for that I am using a code as below
DECLARE
v_alt_stmt VARCHAR2(1000) := 'ALTER SYSTEM KILL SESSION ''';
v_kill_stmt VARCHAR2(1000);
CURSOR cur_session IS
SELECT s.type type,
s.sid sid,
s.serial# srl_no,
s.username user_name,
s.PROGRAM prog_name
FROM v$session s JOIN gv$process p ON p.addr = s.paddr and s.type='USER';
BEGIN
EXECUTE IMMEDIATE 'ALTER SYSTEM ENABLE RESTRICTED SESSION';
DBMS_OUTPUT.PUT_LINE('The Session has been put in the restricted mode');
FOR v_cur_ssn IN cur_session
LOOP
BEGIN
v_kill_stmt := v_alt_stmt || v_cur_ssn.sid || ',' || v_cur_ssn.srl_no || '''';
DBMS_OUTPUT.PUT_LINE(v_kill_stmt);
EXECUTE IMMEDIATE v_kill_stmt;
EXCEPTION
WHEN others THEN
-- DBMS_OUTPUT.PUT_LINE('The current sessions sid is ' || v_cur_ssn.sid || ' and the srl no is ' || v_cur_ssn.srl_no || ' can not be killed');
END;
END LOOP;
EXECUTE IMMEDIATE 'ALTER SYSTEM DISABLE RESTRICTED SESSION';
DBMS_OUTPUT.PUT_LINE('The restricted mode of the system has been removed');
END;
But sometimes after killing the sessions there are some os processes are going on,to avoid that I have to use 'ALTER SYSTEM DISCONNECT SESSION ''' and 'MMEDIATE' it is workig fine .
Can Any one tell me the logical difference between kill sessions and disconnect
Any information will be highly appreciated.
Thanks in advance
Prafulla>
Can Any one tell me the logical difference between kill sessions and disconnect
>
Disconnect can be used to disconnect immediately without waiting for any ongoing transactions to complete and recovers all session resousrces.
Kill rolls back ongoing transactions and partially recovers session resources.
Kill is simiilar to SHUTDOWN IMMEDIATE while disconnect is more like SHUTDOWN ABORT.
See DISCONNECT SESSION Clause in the SQL Language doc
http://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_2013.htm
>
Use the DISCONNECT SESSION clause to disconnect the current session by destroying the dedicated server process (or virtual circuit if the connection was made by way of a Shared Sever).
•The IMMEDIATE setting disconnects the session and recovers the entire session state immediately, without waiting for ongoing transactions to complete.
>
And KILL SESSION in the same doc next section
>
The KILL SESSION clause lets you mark a session as terminated, roll back ongoing transactions, release all session locks, and partially recover session resources.
IMMEDIATE Specify IMMEDIATE to instruct Oracle Database to roll back ongoing transactions, release all session locks, recover the entire session state, and return control to you immediately. -
Dear all,
If we kill session at OS LEVEL by using the command "KILL -9 <SPID>"
or
At the database level if we kill the session by issuing the command <alter system kill session 'sid,serial#' immediate>
If any dml transaction is going on suppose "UPDATE" statement , in the middle of the transaction if we kill the transaction at OS LEVEL or at the DATABASE LEVEL , that particular transaction will rollback or it won't.
Please help me regarding this.
Regards,
Vamsi.844795 wrote:
Dear all,
If we kill session at OS LEVEL by using the command "KILL -9 <SPID>"
or
At the database level if we kill the session by issuing the command <alter system kill session 'sid,serial#' immediate>
If any dml transaction is going on suppose "UPDATE" statement , in the middle of the transaction if we kill the transaction at OS LEVEL or at the DATABASE LEVEL , that particular transaction will rollback or it won't.
Please help me regarding this.Why you didn't search for this in the Oracle documentation?
http://download.oracle.com/docs/cd/E11882_01/server.112/e17120/manproc008.htm#ADMIN11192
Aman.... -
Ora-01940 in the old versione there was the possibility to kill session
I have tried to drp a user that remain connect.
I receive the error : ORA-01940.
I USE DB 10G
in release 9 the was the possibility (with enterprise manager) to kill all the session of the user.
In DB 10 where is this function ??
I have try to foun in the menu but i have not found it ( i cannot shutdown the database because there is a lot of user that are connect)
Than'ksDon't know of OEM, but if you want to kill all user's sessions, then that's very easy from Sql*Plus (as DBA or SYSDBA)
Connected to:
Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> get killsess
1 set pages 0
2 set feed off
3 set veri off
4 accept USR prompt 'Enter Username : '
5 spool kill_sessions.sql
6 select 'set feed on' from dual;
7 select 'alter system kill session '||chr(39)||sid||','||serial#||chr(39)||';'
8 from v$session
9 where username = upper('&USR')
10 /
11* spool off
SQL> @killsess
Enter Username : scott
set feed on
alter system kill session '244,1087';
alter system kill session '253,768';
SQL> @kill_sessions
System altered.
System altered.
SQL> -
How to find the killed session and machine name
Hi,
At the time of batch job running .somebody killed that session .let me know how to find out the particular user name db level or oslevel .from which machine they killed how to find out at OS level . but when i have set the audit_trail=os only SYSDBA user activities are audited not the other user activities.
The server is AIX and db version 11i .provide the query for finding or os level .
thanks,
DBC.
Edited by: dbc001 on Mar 26, 2013 9:48 PMAre you sure that somebosy had killed the session? Did you get any error regarding kill session? Is there any other errors you can see in logs?its suspect only....
>
How that job was scheduled?...actually we have lot of source systems, from those source system we are getting the data into BI machine, by using BI apps team process data and trigger load jobs @db
Apps team is having database unix logins aswell as db logins to process their requests.
Your OS admin can check the history upto some extent? Check if he has auditing enabled at OS level?we are in the process of checking with OS sysadmin.
upto now we didnt got any clue....apps team successfully re-ran failed job. -
What determines when the My Timesheet item will display in the Resource Availability Page?
Can someone point me to where I can get more information on the My Timesheet item that displays in the Details section of the Resource Availability page? I cannot figure out where this information is coming from or what determines how many My Timesheet
lines you see.
In one Project Server environment, I noticed that each user had 3-4 My Timesheet line items in the Resource Availability page. The period I was looking at spanned 8 weeks and all of those weeks were in the future. I checked the Manage Timesheets
page for one of the users that had 4 My Timesheet items in the Resource Availability page. The user did not have any timesheets created for the 8-week period I was reporting on in the Resource Availability page. To make matters more confusing,
some resources only had 3 My Timesheet line items in the Resource Availability page for the same period. So it seems like something other than active timesheets for the period is dictating how many My Timesheet lines display. Also curious was the
fact that ALL of the My Timesheet items for all users in the Resource Availability page (7 or 8 people) showed "0h" for all of the periods displayed.
I decided to look into this further in a separate Project Server environment, because I didn't have access to the first one at the time. Both environments were configured to not use single entry mode and used resource plans to calculate allocation.
In this second environment, I entered hours against an administrative task classified as non-working time for one week and submitted / approved this sheet. I entered hours against a project task for a second week and submitted / approved this sheet.
I then used the Resource Availability page and "reported" on a period including those periods (20-week period total). I didn't see a single My Timesheet item. Not even any showing the "0h" designation I had seen in the first environment.
So long story short, I cannot figure out the criteria that dictates when a My Timesheet item displays. And I also can't figure out the purpose. If the Resource Availability page is designed to show planned work (either through the planned allocations
stored in resource plans or planned assignments through project schedules), what is the point of the My Timesheet values? Wouldn't planned work be captured in the project line items? If it's for administrative, non-working time only, why would
the My Timesheet items not show up in the second environment scenario? Any help / insight would be appreciated.Hi,
After investing a lot of time i found one link which is talking about My Timesheet in resource availability page.
I believe link providing proper explanation though i would like to test it on my system.
http://social.technet.microsoft.com/Forums/en-US/projectserver2010general/thread/83e46a4d-3c05-4dda-8566-669b12b673f4
kirtesh -
Hi,
There are many answers in this forum related with my question but could not complete answer.
I have problem with process count in db. Firstly I killed sessions
alter system kill session 'xxx,yyyy';
and then queried v$session. The status of sessions were changed as killed but in v$process it showed that the count of process same as before.
So I decided to create profile and set idle time.
select * from v$resource_limit
RESOURCE_NAME CURRENT_UTILIZATION MAX_UTILIZATION INITIAL_ALLOCATION LIMIT_VALUE
processes 459 466 500 500
sessions 459 467 555 555
select * from dba_profiles
PROFILE RESOURCE_NAME RESOURCE_TYPE LIMIT
myUser_PROFILE IDLE_TIME KERNEL 2880 (2 days)
select username,profile from dba_users
USERNAME PROFILE
myUser myUser_PROFILE
select
p.spid,
s.username,
s.sid,
s.serial#,
to_char(s.logon_time, 'Dy dd Mon HH24:MI:SS') start_time,
s.status
from V$PROCESS p, V$SESSION s
where s.paddr = p.addr
and s.username is not null;
SPID USERNAME SID SERIAL# START_TIME STATUS
3880 myUser 181 102 Wed 24 Mar 19:37:10 SNIPED
5135 myUser 71 190 Wed 24 Mar 20:41:00 SNIPED
5259 myUser 422 3,794 Wed 24 Mar 20:47:31 SNIPED
5666 myUser 189 197 Wed 24 Mar 21:15:35 SNIPED
32109 myUser 421 3,746 Thu 25 Mar 21:57:07 SNIPED
32371 myUser 344 10,518 Thu 25 Mar 22:16:31 SNIPED
32395 myUser 65 28 Thu 25 Mar 22:18:01 SNIPED
32518 myUser 35 205 Thu 25 Mar 22:23:37 SNIPED
19703 myUser 40 18 Fri 26 Mar 21:03:24 SNIPED
19870 myUser 242 106 Fri 26 Mar 21:12:05 SNIPED
19965 myUser 212 11,276 Fri 26 Mar 21:19:10 SNIPED
23054 myUser 215 535 Sat 27 Mar 00:08:01 SNIPED
23668 myUser 17 6,237 Sat 27 Mar 00:48:25 SNIPED
26200 myUser 218 1,323 Sat 27 Mar 03:44:07 SNIPED
18830 myUser 388 256 Sun 28 Mar 00:40:10 INACTIVE
18894 myUser 177 461 Sun 28 Mar 00:41:35 INACTIVE
18954 myUser 357 36 Sun 28 Mar 00:45:09 INACTIVE
19124 myUser 52 325 Sun 28 Mar 00:53:38 INACTIVE
14697 myUser 448 2 Mon 29 Mar 00:06:05 INACTIVE
14741 myUser 447 6 Mon 29 Mar 00:07:53 INACTIVE
14786 myUser 449 3 Mon 29 Mar 00:09:26 INACTIVE
8678 SYS 461 10,762 Mon 29 Mar 10:45:00 ACTIVEI think pmon should kill process related with killed session but it does not.
Please explain me how it happens,what should I do.
After while I will again get error as 'ORA-00020: maximum number of processes (%s) exceeded'
Thanks in advance
Edited by: catastrophe on Mar 28, 2010 11:24 PMHi,
When you are killing an oracle session which is created by some unix shell script you need to follow some other steps to kill that session.
When you kill a session using sid and serial# it kills only oracle session but does not frees unix process associated with that session.
To perform it correctly pls do the following.
SQL> ;
1 select s.sid, s.serial#, p.pid, p.spid, p.username
2 from v$session s, v$process p
3 where s.paddr=p.addr
4* and s.username='SCOTT'
SQL> /
SID SERIAL# PID SPID USERNAME
530 32662 40 14258 oracle
462 47581 49 17344 kuldeep
$ ptree 17344
4974 /usr/sbin/inetd -s
10598 in.telnetd
10603 login -p -d /dev/pts/1 -h 172.24.242.183
10671 -ksh
14814 sqlplus /
17344 oracleffdt01 (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))Kill deepest process in ptree output i.e. 17344
Edited by: [email protected] on Mar 29, 2010 4:25 PM
Maybe you are looking for
-
Logic Pro X In, Most Other Functions Out
Anyone else have this problem? Since installing Logoc Pro X onto my MacBook Pro (purchased March 2013, 2.3 GHz Intel Core i7, 8 GB, OS 10.8.4) I've lost use of my Epson printer, Toast Titanium, and my internal disc drive. Suggestions?
-
I am trying to create a mySQL DB through JAVA program (query). The Query : stmt.executeUpdate("CREATE DATABASE employee;"); is not working. PLEASE HELP ME................. The program is as follows. try Connection con =null; Class.forName("org.gjt.mm
-
Validating the value in the table element
hello all, I have a column in the table element as editable and i want to validate the value entered in the editable column with value in another column.can this achieved without selecting the row in the table...like on change of value et
-
How do I create a transparent image (cutout) on top of a solid one?
Hello. I am trying to use Pathfinder>Minus front to create transparent rays over text outlines, but am having trouble. Here is a link to how it should appear: http://graphicmechanic.com/IMAGES/ingen.png. It's nearly exactly how I'd like it to look bu
-
Making 3channel 32 bit images from 1 channel 8 bit images ( channel combining)
Hi guys Although I have a simple problem, i could not solve it yet. I am tring to combine opencv and labview by using .dll.I succesfully process and read 8bit images from opencv to display on labview as a 8bit images. My problem encounters here. Whe