Kill session script error
Hello,
I have create kill session script but while execute getting error. find the below scripts.
(script name is t.sh)
sqlplus -s '/as sysdba' << EOF
alter user test account lock;
spool kill_session.sql
set heading off;
select 'alter system kill session ' || '''' || sid || ',' || serial# || '''' || ' immediate;' from v$session
where username ='TEST';
spool off;
*@$ORACLE_HOME/scripts/kill_session.sql*
EOF
Error:_
*[oracle@indpund0201 scripts]$ ./t.sh*
User altered.
select 'alter system kill session ' || '''' || sid || ',' || serial# || '''' || ' immediate;' from v
ERROR at line 1:
ORA-00942: table or view does not exist
Please suggest.
RK wrote:
select 'alter system kill session ' || '''' || sid || ',' || serial# || '''' || ' immediate;' from v$session
where username ='TEST';
The $ character has a special meaning in shell scripting. The shell will read it as follows:
.. from v${session}
where:
$session = environment variableAs there is no such variable the code will be parsed as follows:
.. from vAnd thus result in the following error (table/object called v does not exist):
select 'alter system kill session ' || '''' || sid || ',' || serial# || '''' || ' immediate;' from v
ERROR at line 1:
ORA-00942: table or view does not exist
Solution - escape the $ character as follows:
.. from v\$sessionIt should work...
Similar Messages
-
Hi,
I need to create a script to kill all sessions in cron before I shutdown the DB using cron too.Can someone help me with the script?I'm using Oracle9i.Here is the script I use.I have 2 instance in the same database,I use the same script for the other instance and it works with no error,but when I apply the same script for this instance,It hangs.and I have to then shut it down myself.
export ORACLE_HOME=/u01/oracle
export ORACLE_SID=MYSID
export LOGFILE=/u01/oracle/bck.log
sqlplus -s /nolog 2>/dev/null <<EOF >> $LOGFILE
connect /as sysdba
shutdown immediate;
exit
EOF -
As stated previously...I have removed and re-installed Firefox, but am still getting "script error" when shutting it down and going to "restore session" when opening. Please advise what to do about this problem. Thank you.
Firefox 21 and Firefox 22 running on Windows 7 have been reported to take a long time to "wake up" from sleep. I realize hibernation is different than sleep, but... this is the closest match for your description.
Some users have reported that this problem is resolved in Firefox 23 (currently in beta). Others have had inconsistent luck with minimizing Firefox before letting Windows sleep and other measures.
Please check out this (very long) thread for more information: [https://support.mozilla.org/questions/961898 browser freezes after resuming from sleep]
Or jump to the part about Firefox 23: https://support.mozilla.org/questions/961898?page=3#answer-457321
The fact that this just started recently suggests perhaps it is related to another program or update, but I don't think anyone has confirmed the exact interaction that causes the problem. -
Regarding error in alert -- immediate kill session
Dear Gurus
os - linux4.5
oracle -10.2.0.4
i have an error in my alert log file for node 2 as below(i m posting here main text what i found)
Immediate Kill Session#: 73, Serial#: 39455
Immediate Kill Session: sess: 0x402337f0ca0 OS pid: 17058
Immediate Kill Session#: 74, Serial#: 38391
Immediate Kill Session: sess: 0x402337f2208 OS pid: 25083
Immediate Kill Session#: 76, Serial#: 6725
Immediate Kill Session: sess: 0x40233833af0 OS pid: 17018
Immediate Kill Session#: 128, Serial#: 54171
Immediate Kill Session: sess: 0x4023383a5f8 OS pid: 25861
Sun Aug 14 14:25:31 2011
Process OS id : 25861 alive after kill
Errors in file /u01/app/oracle/admin/prod/udump/prod_ora_8179.trc
Immediate Kill Session: sess: 0x40233a3c1f8 OS pid: 28900
Immediate Kill Session#: 534, Serial#: 12002
Immediate Kill Session: sess: 0x40233a598e8 OS pid: 16102
Sun Aug 14 14:35:30 2011
ALTER SYSTEM SET service_names='prod' SCOPE=MEMORY SID='prod2';
Sun Aug 14 21:00:50 2011
Thread 2 advanced to log sequence 3684 (LGWR switch)
Current log# 3 seq# 3684 mem# 0: +RLOG_GROUP/prod/redo03.log
Mon Aug 15 18:56:50 2011
Thread 2 advanced to log sequence 3685 (LGWR switch)
trace file text is as
post info) last post received: 109 0 4
last post received-location: kslpsr
last process to post me: 40233693738 1 6
last post sent: 0 0 24
last post sent-location: ksasnd
last process posted by me: 40233693738 1 6
(latch info) wait_event=0 bits=0
Process Group: DEFAULT, pseudo proc: 0x40233786f80
O/S info: user: oracle, term: UNKNOWN, ospid: 21196 (DEAD)
OSD pid info: Unix process pid: 21196, image: oracle@dbrac2
Short stack dump: unable to dump stack due to error 72
Dump of memory from 0x00000402336539E0 to 0x0000040233653BE8
402336539E0 00000010 00000000 1DC35CE0 00000402 [.........\......]
402336539F0 00000010 000313A7 1DC60660 00000402 [........`.......]
40233653A00 00000003 000313A7 312D7370 00000402 [........ps-1....]
40233653AE0 00000007 000313A7 00000000 00000000 [................]
40233653AF0 00000000 00000000 00000000 00000000 [................]
Repeat 14 times
40233653BE0 00000000 00000000
SO: 0x402336a9318, type: 2, owner: (nil), flag: INIT/-/-/0x00
(process) Oracle pid=55, calls cur/top: (nil)/0x401fe14f1c8, flag: (0) -
int error: 0, call error: 0, sess error: 0, txn error 0
(post info) last post received: 109 0 4
last post received-location: kslpsr
last process to post me: 40233693738 1 6
last post sent: 0 0 24
last post sent-location: ksasnd
last process posted by me: 40233693738 1 6
(latch info) wait_event=0 bits=0
Process Group: DEFAULT, pseudo proc: 0x40233786f80
O/S info: user: oracle, term: UNKNOWN, ospid: 21597 (DEAD)
OSD pid info: Unix process pid: 21597, image: oracle@dbrac2
Short stack dump: unable to dump stack due to error 72
Dump of memory from 0x0000040233655858 to 0x0000040233655A60
40233655850 0000000C 00000000 [........]
40233655860 1DD637A8 00000402 00000010 000313A7 [.7..............]
40233655870 FE14F1C8 00000401 00000003 000313A7 [................]
40233655880 312CC588 00000402 00000013 0003129B [..,1............]
40233655890 33D61950 00000402 0000000B 000313A7 [P..3............]
402336558A0 339F1338 00000402 00000004 0003129B [8..3............]
402336558B0 28A937E8 00000402 00000007 000313A7 [.7.(............]
402336558C0 6259D858 00000401 00000053 000313A7 [X.Yb....S.......]
402336558D0 28A938C8 00000402 00000007 000313A7 [.8.(............]
402336558E0 28A956B8 00000402 00000007 000313A7 [.V.(............]
402336558F0 28A95798 00000402 00000007 000313A7 [.W.(............]
40233655900 28A9F000 00000402 00000007 000313A7 [...(............]
40233655910 28A9E9E0 00000402 00000007 000313A7 [...(............]
40233655920 00000000 00000000 00000000 00000000 [................]
Repeat 19 times
(latch info) wait_event=0 bits=0
Process Group: DEFAULT, pseudo proc: 0x40233786f80
O/S info: user: oracle, term: UNKNOWN, ospid: 27060 (DEAD)
OSD pid info: Unix process pid: 27060, image: oracle@dbrac2
Short stack dump: unable to dump stack due to error 72
Dump of memory from 0x0000040233653FF8 to 0x0000040233654200
40233653FF0 0000000A 00000000 [........]
40233654000 1DC35E78 00000402 00000010 000313A7 [x^..............]
40233654010 1DCD4AF0 00000402 00000003 000313A7 [.J..............]
Repeat 16 times
please give some hint what actually is it and why
also at the end in my alert what does it means
ALTER SYSTEM SET service_names='prod' SCOPE=MEMORY SID='prod2'
regardsBy any chance if you back in the alert log just a little more does an ORA-00600 error appear before the immediate kill session messages? I found a few problem reports on the Oracle support site that might be of interest if there is:
ORA-00600 [1301] - Instance Terminated by PMON After Killing Sessions
ORA-600 [4072] Is Possible After Killing A Session Or Cancelling a Operation [ID 1113829.1]
Database Crash ORA-00600: [ksqcmi:res3], [], [], [], [], [], [], [] and ORA-00600: [1100], [ID 1327043.1]
HTH -- Mark D Powell -- -
Hi ..
any one can tell me how to kill session through Script in Oracle Open Script..?Do you mean how to stop the current virtual user or stop all the virtual users in the OLT session?
I previously posted this on how one virtual user can stop itself.
Re: How to stop single VU, java-code -
JSF Ajax script error in IE8 while session times out
We have JSF 1.1, Richfaces a4j 3.1.6 in our application.
We get an empty page with the script error when the session timesout. When we make any ajax request after the session expires, the script error pops up. We noticed this only in IE8.
I get this error on IE8 for session timeout.
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; MS-RTC LM 8)
Timestamp: Fri, 28 May 2010 15:26:37 UTC
Message: Object doesn't support this property or method
Line: 83
Char: 390
Code: 0
URI: http://localhost:8080/sir/loan/a4j_3_1_6.GAorg.ajax4jsf.javascript.AjaxScript.jsf
Appreciate your help.Upgrade your ancient technology. JSF 1.2.12 at the least with Richfaces 3.3.3.
OR
accept that your ancient technology will have flaws and live with them. -
Alter system kill session always gives ORA-00030
Hello
Im writing a tool for oracle and one of its features requires killing user session (Im connecting with JDBC). The database Im testing on is 11.2.0.2.
I find the sid and the serial# without problems, than I issue the "alter system kill session 'x,y' immediate" command.
So far so good, but I always get an ORA-00030 error saying this session cannot be found.
I double check and the session does exist in the database.
Because I want the tool to make the kill, killing via the OS is not an option.
Its doesn't look like a permission problem because it gives the same error even when connected as system.
Whats wrong ? does this kill command work at all ? Whats its limitations ?
Thanks
Guy Shilo
Edited by: user13266377 on Jun 9, 2011 1:15 AMuser13266377 wrote:
Hello
Im writing a tool for oracle and one of its features requires killing user session (Im connecting with JDBC). The database Im testing on is 11.2.0.2.
I find the sid and the serial# without problems, than I issue the "alter system kill session 'x,y' immediate" command.
So far so good, but I always get an ORA-00030 error saying this session cannot be found.
I double check and the session does exist in the database.
Because I want the tool to make the kill, killing via the OS is not an option.
Its doesn't look like a permission problem because it gives the same error even when connected as system.
Whats wrong ? does this kill command work at all ? Whats its limitations ?
Thanks
Guy Shilo
Edited by: user13266377 on Jun 9, 2011 1:15 AMyou cannot kill the session already killed or disconnected from the session.
refer the link:- this may help you to write scripts to kill session using dbms_scheduler
Grant restricted and kill sessions. -
A problem within a third-party application is causing it to create and abandon Oracle sessions. At times three hundred or more abandoned sessions accumulated in the instance. The software company is working on the problem. Oracle's background processes will get rid of those sessions after several hours, but at times there were so many they caused the server to start using paging space. We wrote a SQL*Plus script to identify the abandoned sessions and kill them with command "alter system kill session <sid, serial#> immediate;". We automated the execution of the script a week ago. Today I noticed that in my udump directory an Oracle trace file has been created each time our script kills a session. A single trace file is created regardless of how many sessions are killed. No errors appear in the trace file.
Is the creation of these trace files an indication that problems have occurred or are they there for information only?
Since I know how and why the sessions are being killed, is it safe to ignore the trace files?
Thank you,
BillThe OS is AIX 5.2. The database server is 10.2.0.2. We are in the processing of upgrading to AIX 7.1 and database server 11.2.0.3.6.
The script does not enable tracing for the SQL*Plus session.
Below is the alert log message from a session killed at 11:22, and the corresponding trace file created at that same time:
From alert_<sid>.log:
Wed Jul 31 11:22:01 2013
Immediate Kill Session#: 1119, Serial#: 59885
Immediate Kill Session: sess: 70000014dc4a7e0 OS pid: 267254
/u02/admin/EXPRESS/udump $ ls -l express_ora_113358.trc
-rw-r----- 1 oracle dba 2276 Jul 31 11:22 express_ora_113358.trc
/u02/admin/EXPRESS/udump $ pg express_ora_113358.trc
Dump file /u02/admin/EXPRESS/udump/express_ora_113358.trc
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
ORACLE_HOME = /u01/app/oracle/product/10.2.0
System name: AIX
Node name: navis
Release: 2
Version: 5
Machine: 0005CD8C4C00
Instance name: EXPRESS
Redo thread mounted by this instance: 1
Oracle process number: 225
Unix process pid: 113358, image: oracleEXPRESS@navis
*** ACTION NAME:() 2013-07-31 11:22:01.181
*** MODULE NAME:(SQL*Plus) 2013-07-31 11:22:01.181
*** SERVICE NAME:(EXPRESS.WORLD) 2013-07-31 11:22:01.181
*** SESSION ID:(1723.61000) 2013-07-31 11:22:01.181
SO: 70000014d44d278, type: 2, owner: 0, flag: INIT/-/-/0x00
(process) Oracle pid=463, calls cur/top: 0/700000139166298, flag: (0) -
int error: 0, call error: 0, sess error: 0, txn error 0
(post info) last post received: 108 0 4
last post received-location: kslpsr
last process to post me: 70000014d36c398 1 6
last post sent: 0 0 24
last post sent-location: ksasnd
last process posted by me: 70000014d36c398 1 6
(latch info) wait_event=0 bits=0
Process Group: DEFAULT, pseudo proc: 70000014d6aec00
O/S info: user: oracle, term: UNKNOWN, ospid: 267254
OSD pid info: Unix process pid: 267254, image: oracleEXPRESS@navis
Short stack dump:
ksdxfstk+002c<-ksdxcb+04e4<-sspuser+0074<-00004CB0<-nttrd+0120<-nsprecv+0750<-ns
rdr+0114<-nsdo+1714<-nsbrecv+0040<-nioqrc+04a8<-opikndf2+0688<-opitsk+088c<-opii
no+0990<-opiodr+0adc<-opidrv+0474<-sou2o+0090<-opimai_real+01bc<-main+0098<-__st
art+0090
Dump of memory from 0x070000014D2CC3B0 to 0x070000014D2CC5B8
70000014D2CC3B0 00000004 00000000 07000001 39DA8D48 [............9..H]
70000014D2CC3C0 00000010 0003139D 07000001 39166298 [............9.b.]
70000014D2CC3D0 00000003 0003139D 07000001 4C73D508 [............Ls..]
70000014D2CC3E0 0000000B 0003139D 07000001 4DC4A7E0 [............M...]
70000014D2CC3F0 00000004 00031291 00000000 00000000 [................]
70000014D2CC400 00000000 00000000 00000000 00000000 [................]
Repeat 26 times
70000014D2CC5B0 00000000 00000000 [........]
Thanks,
Bill -
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 -
hi,
i am using oracle 11gr1 in windows server service pack2.i have generated scripts to kill the user using alter system kill session 'sid,serial# and then dropping the same user.But at times i get the error that cannot drop user who is currently connected .when i check the state of the user in v$session it is in killed state.i want to avoid this and kill the user perfectly.
can anyone tell me the solution or suggestion for this????
thanks in advance
Edited by: 793097 on Dec 17, 2010 3:12 AMA remote session open a server session, this is the one you must kill.
I'm not sure, but when you kill a session the relation between v$process and v$session disapear. Then all you can do is wait.
Perhaps I am wrong. Try this,
select 'kill -9 ' || b.spid from v$process where b.addr = <v$session killed paddr>;
And run the kill in OS, if OS is linux or unix...
I am very sorry that we never help to you...
793097 Newbie
Handle: 793097
Status Level: Newbie (15)
Registered: Sep 6, 2010
Total Posts: 94
Total Questions: 57 (49 unresolved)
Read this http://forums.oracle.com/forums/ann.jspa?annID=718 -
ALTER SYSTEM KILL SESSION 에 대하여(ORA-30)
제품 : ORACLE SERVER
작성날짜 : 1997-07-30
ALTER SYSTEM KILL SESSION 에 대하여
--- Problem
사용자는 다음과 같은 상황에서 session 을 kill 하려는 시도를 하게 된다.
1. os 에는 process 가 존재하지 않지만, v$session 에는 active 로 존재하고
있을 경우
2. shadow process 는 살아 있는데, client machine 을 rebooting 한 경우
3. session 이 걸고 있던 lock 을 release 해야 할 경우
4. OS 나 Oracle 의 자원을 지나치게 많이 사용하여 성능을 저하시키는
process
그런데, alter system kill session ('sid, serial#'); 후에 다음과 같은
에러가 발생할 경우가 있다.
ora-00030, 00000, "user session ID does not exist"
// *Cause: The user session id no longer exists, probably because the
// session was logged out.
// *Action: Use a valid session ID.
--- 원인과 대책
kill session을 할 수 없는 이유는 PMON이 이미 이 session을 delete하고 있는
중이기 때문이다. 즉, PMON 이 dead session 을 clean-up 하고 있는 중에는
serial number의 값이 증가한다.
문제는 PMON이 process를 kill하는 시간인데, transaction의 크기에 따라,
PMON의 rollback 시간이 결정된다. 먼저 PMON은 dead process를 찾아내어,
이 process가 사용한 resource 를 release하는 시도를 한다.
PMON은 계속 이 작업을 시도하다가 마침내, free buffer의 부족으로 더 이상
resource를 free-up 하지 못하게 된다.
이 때, 이 process를 delete하고 있다는 message를 trace file에 출력하는데,
이것은 process를 delete하는 데 필요한 resource(data cache 내의 free buffer)
의 부족으로 위의 작업이 지연되고 있다는 의미이다.
PMON이 process 를 clean-up 할 때 걸리는 시간은, 5분에서 24 시간까지 소요
될 수 있다. 문제는 이 process가 hold 하고 있는 lock으로 인해 특정 작업이
수행되지 못하는 데 있다. MTS 를 사용할 때는 configuration MTS setting,
sqlnet.expire_time 사용)에 따라 다르지만, clean-up 작업을 하는데 72 시간이
소요된 경우도 있다.
아직까지는 PMON이 작업을 마칠 때까지 기다리는 방법 또는 db를 restartup하는
방법 밖에는 없다.
--- PMON 의 작업
PMON은 network failure 나 기타의 원인으로 생긴 old process connection을
clean-up 하는 역할을 한다. 그런데, PMON 은 clean-up 해야 하는 connection
중에 정해진 개수 만큼의 transaction 을 rollback 할 수 있는데, 이 값은
initSID.ora 의 cleanup_rollback_entries(default = 20) 에 의해 결정된다.
예를 들어, 1000 개의 uncommitted update가 있다면, 일정한 시간마다
cleanup_rollback_entries 의 개수 만큼의 record 만 rollback 할 수 있으므로
이 작업 동안에 lock 은 그대로 유지된다.
PMON 은 위의 작업 이외에 DB maintenance 역할이 있으므로, 위의 rollback 이
비교적 빠르게 처리되지 못할 수도 있다. 이러한 rollback을 빠르게 처리하기
위하여 cleanup_rollback_entries 를 늘릴 수도 있다. 그러나, 그 만큼 일정
시간 동안 PMON 의 작업이 많아지게 되므로, 다른 사용자들의 작업 요청이
느려지게 되는 trade-off 가 있으므로, 신중히 고려한 후에 수정하는 것이
바람직하다.
alter system kill session 에 의해서도 위와 같이 rollback 이 이루어지는데,
이 session 이 완전히 clean-up 되기 전까지 v$session, v$process에 남아 있게
된다.
--- ALTER SYSTEM KILL SESSION 을 하기 전에 ...
kill session 을 원할 경우는 다음의 순서대로 작업하는 것이 좋다.
1. kill the user process first
2. wait for 3 - 4 minutes
3. query v$session
4. if any information find in v$session, query v$lock
like
select count(*) from v$lock where SID ='sid';
위의 count(*) 가 0 이 아니라면, 아직 PMON 이 rollback을 끝내지 못한 경우
이므로 다시 얼마 후에 v$lock 을 조회하여 lock 의 개수가 감소하였는지
반복적으로 확인한다.
만약, 이 값이 전혀 변하지 않았다면, ALTER SYSTEM KILL SESSION 을 수행하고
v$session, v$lock을 query 하여 변화가 있는지 확인하여 변화가 있다면,
좀 더 기다린다.
그래도, v$lock 의 count(*) 가 0 이 되지 않을 경우, 마지막으로 수행할 수
있는 유일한 방법은 instance 를 restartup 하는 것이다.user13266377 wrote:
Hello
Im writing a tool for oracle and one of its features requires killing user session (Im connecting with JDBC). The database Im testing on is 11.2.0.2.
I find the sid and the serial# without problems, than I issue the "alter system kill session 'x,y' immediate" command.
So far so good, but I always get an ORA-00030 error saying this session cannot be found.
I double check and the session does exist in the database.
Because I want the tool to make the kill, killing via the OS is not an option.
Its doesn't look like a permission problem because it gives the same error even when connected as system.
Whats wrong ? does this kill command work at all ? Whats its limitations ?
Thanks
Guy Shilo
Edited by: user13266377 on Jun 9, 2011 1:15 AMyou cannot kill the session already killed or disconnected from the session.
refer the link:- this may help you to write scripts to kill session using dbms_scheduler
Grant restricted and kill sessions. -
I am getting a "script error" when I close out the internet, specifically Firefox. My backup internet explorer does not do this. This is slowing down the process of opening/closing Firefox. When I open Mozilla, I get "restore session" even though I have closed everything down. I have "removed program" and re-downloaded Mozilla 3 times and still this problem persists. What is causing it and how do I fix it?
-> Update All your Firefox Plugins
* https://www.mozilla.org/en-US/plugincheck/
* '''When Downloading Plugins Update setup files, Remove Checkmark from Downloading other Optional Softwares with your Plugins (e.g. Toolbars, McAfee, Google Chrome, etc.)'''
* Restart Firefox
Check and tell if its working. -
Script Error in SE80 WDA Workbench WDYN Comp Layout
Hello folks,
I'm not sure whether to post this in the Basis Forum or somewhere completely different, but I'll try here first:
We've got a strange occurence since today within TA SE80 when opening WebDynpro Components and Navigating into the Layout of a View. The following script error is thrown repeatedly:
It doesn't seem to be a local problem since all co-workers I asked to check this were able to reproduce it. For some, me including, unfortunately, the error reoccurs infinitely, i.e. the error is thrown infinitley so that I can't even close the modus anymore and have to kill my SAP-GUI via the task manager. Naturally, developing is not possible at the moment :-/
I haven't found any threads/notes (neither manually nor via ANST) concerning this particular problem yet. Has anyone ever encountered something similar?
We are using WinXP SP3 with IE7 (please suppress the urge to tell me to use an up-to-date OS/Browser, I can't helpt it).
Backend System: NW AS 7.03 ABAP Stack 731 Level 11, ECC 606 (EHP 6) with SAP_HR 604 Level 73 and EA_HR 607 (HR-Renewal 1) Level 24
Cheers, Lukas
EDIT: P.S. I haven't implemented any notes recently that could cause this and nobody else I have asked so far did so either.
Message was edited by: Lukas WeigeltHi Kiran,
unfortunately the note is long obsolete for my system (see my opening post). I checked every MIME-Object (both those mentioned in the note and those that are not) for duplicates nevertheless - there are none.
That you pointed me to this note got me thinking though. We have recently applied several UR-Notes up to Patch 731 ST13/II in consultation with the SAP DEV support for unified rendering (because we opened some messages concerning accessibility problems). Could this script error be a side effect of doing that? Up until now, there have never been problems applying UR-Notes higher than the actual current Stack, this would be the first time.
I also checked for UR patches again today and found there now is one more patch available we have not yet implemented, i.e. Patch 731 ST13/III.... maybe I should implement that one as well, clutching at straws.
In any case thank you a lot so far, Kiran, thanks to you pointing to the note 1608760 I finally know what to search for, i.e. "view designer" and component BC-DWB-WD-ABA. My next step will be searching for more notes concerning this component. I'll get back here and put down some feedback once I've searched a bit.
Cheers, Lukas -
Adobe Flash/Photoshop/After Effects CS4 Installation - Internet Explorer Script Error
Greetings everyone. Another Adobe Installation disaster story.
I'm trying to install the aforementioned products (Flash, Photoshop, After Effects) on my computer, but I get about 20 "Internet Explorer Script Error"'s every time. [I don't even use Internet Explorer] I don't understand why the installation worked on a different computer I own but not this one. Both of them are running Windows XP Home.
I've already tried removing all Adobe Products, using msicuu2.exe, CS4CleanupScript from Adobe, etc...
This is the install log that was generated for Flash.
Any and all help would be greatly appreciated. Thanks in advance.
[ 1572] Mon Jan 26 02:11:43 2009 INFO
*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
Visit http://www.adobe.com/go/loganalyzer/ for more information
*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
START - Installer Session
*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
RIBS version: 2.0.133.0
-------------------- BEGIN - Proxy File Summary - BEGIN --------------------
AdobeCode: {02FD2912-C5C4-41f0-B7D2-0C1871EB9565}
Path: C:\Documents and Settings\Chu\Desktop\Adobe CS4\Flash Professional\Adobe CS4\payloads\AdobeFlash10-es-ExtensionFL30\AdobeFlash10-es-ExtensionFL30.boot.xml
AdobeCode: {043A67CA-08C4-4669-A2A1-B03F6D8D509C}
Path: C:\Documents and Settings\Chu\Desktop\Adobe CS4\Flash Professional\Adobe CS4\payloads\AdobeWinSoftLinguisticsPluginAll\AdobeWinSoftLinguisticsPluginAll.boot.xml
AdobeCode: {064F0D64-1F54-4F4B-953E-BAED5D7E69B2}
Path: C:\Documents and Settings\Chu\Desktop\Adobe CS4\Flash Professional\Adobe CS4\payloads\AdobePDFSettings9-mul\AdobePDFSettings9-mul.boot.xml
AdobeCode: {092DF7B0-6E10-4718-9763-9704CC4E6EF9}
Path: C:\Documents and Settings\Chu\Desktop\Adobe CS4\Flash Professional\Adobe CS4\payloads\AdobeALMAnchorService2-mul\AdobeALMAnchorService2-mul.boot.xml
AdobeCode: {0967604F-33E6-4C6B-934B-157C3AB4ED4C}
Path: C:\Documents and Settings\Chu\Desktop\Adobe CS4\Flash Professional\Adobe CS4\payloads\AdobeExtensionManager2All\AdobeExtensionManager2All.boot.xml
AdobeCode: {0A621EC5-B98B-45C9-95FE-A7D0DA3150EA}
Path: C:\Documents and Settings\Chu\Desktop\Adobe CS4\Flash Professional\Adobe CS4\payloads\AdobeFlashPlayer10_axDbg_mul\AdobeFlashPlayer10_axDbg_mul.proxy.xml
AdobeCode: {14A5A29B-D252-4575-B40C-695B8D8B34D5}
Path: C:\Documents and Settings\Chu\Desktop\Adobe CS4\Flash Professional\Adobe CS4\payloads\AdobeBridge3All\AdobeBridge3All.boot.xml
AdobeCode: {195C539A-1546-43A8-A224-C03FE427F47D}
Path: C:\Documents and Settings\Chu\Desktop\Adobe CS4\Flash Professional\Adobe CS4\extensions\AdobeFlash10-es_MXLanguagePack\AdobeFlash10-es_MXLanguagePack.proxy.xml
AdobeCode: {2965A5F0-0326-4479-B140-F5799BD025B7}
Path: C:\Documents and Settings\Chu\Desktop\Adobe CS4\Flash Professional\Adobe CS4\payloads\AdobeCameraRaw5.0All\AdobeCameraRaw5.0All.boot.xml
AdobeCode: {2B47D5DE-E019-4130-AB69-2DAB4DEEBB0A}
Path: C:\Documents and Settings\Chu\Desktop\Adobe CS4\Flash Professional\Adobe CS4\payloads\AdobeColorJA_ExtraSettings2-mul\AdobeColorJA_ExtraSettings2-mul.boot.xml
AdobeCode: {2BD22DAB-D025-4c9a-A62E-DAD828393885}
Path: C:\Documents and Settings\Chu\Desktop\Adobe CS4\Flash Professional\Adobe CS4\payloads\AdobeFlash10-en-ExtensionFL30\AdobeFlash10-en-ExtensionFL30.boot.xml
AdobeCode: {3095E614-711B-48D2-BAAF-0CA9D9968F68}
Path: C:\Documents and Settings\Chu\Desktop\Adobe CS4\Flash Professional\Adobe CS4\payloads\AdobeOutputModuleAll\AdobeOutputModuleAll.boot.xml
AdobeCode: {3251BB24-1889-4BB4-9774-BA0D57FE7D0E}
Path: C:\Documents and Settings\Chu\Desktop\Adobe CS4\Flash Professional\Adobe CS4\extensions\AdobeFlash10-en_GBLanguagePack\AdobeFlash10-en_GBLanguagePack.proxy.xml
AdobeCode: {34BBC769-B1F1-412A-8663-50B2EAB6D5A9}
Path: C:\DocumGreat, it got cut off.
Anyways, this is the important part, since it says "ignoring original data since install source is local."
Updated source path: C:\Documents and Settings\Chu\Desktop\Adobe CS4\Flash Professional\Adobe CS4
Updating media info for: {02FD2912-C5C4-41f0-B7D2-0C1871EB9565}, Effective: {02FD2912-C5C4-41f0-B7D2-0C1871EB9565}
Ignoring original data since install source is local
Type: 0, Volume Order: 1, Media Name: Adobe CS4, Path: C:\Documents and Settings\Chu\Desktop\Adobe CS4\Flash Professional\Adobe CS4\payloads\AdobeFlash10-es-ExtensionFL30\AdobeFlash10-es-ExtensionFL30.msi
Updating media info for: {043A67CA-08C4-4669-A2A1-B03F6D8D509C}, Effective: {043A67CA-08C4-4669-A2A1-B03F6D8D509C}
Ignoring original data since install source is local
Type: 0, Volume Order: 1, Media Name: Adobe CS4, Path: C:\Documents and Settings\Chu\Desktop\Adobe CS4\Flash Professional\Adobe CS4\payloads\AdobeWinSoftLinguisticsPluginAll\AdobeWinSoftLinguisticsPluginAll.msi
Updating media info for: {064F0D64-1F54-4F4B-953E-BAED5D7E69B2}, Effective: {064F0D64-1F54-4F4B-953E-BAED5D7E69B2}
Ignoring original data since install source is local
Type: 0, Volume Order: 1, Media Name: Adobe CS4, Path: C:\Documents and Settings\Chu\Desktop\Adobe CS4\Flash Professional\Adobe CS4\payloads\AdobePDFSettings9-mul\AdobePDFSettings9-mul.msi
Updating media info for: {092DF7B0-6E10-4718-9763-9704CC4E6EF9}, Effective: {092DF7B0-6E10-4718-9763-9704CC4E6EF9}
Ignoring original data since install source is local
Type: 0, Volume Order: 1, Media Name: Adobe CS4, Path: C:\Documents and Settings\Chu\Desktop\Adobe CS4\Flash Professional\Adobe CS4\payloads\AdobeALMAnchorService2-mul\AdobeALMAnchorService2-mul.msi
Updating media info for: {0967604F-33E6-4C6B-934B-157C3AB4ED4C}, Effective: {0967604F-33E6-4C6B-934B-157C3AB4ED4C}
Ignoring original data since install source is local
Type: 0, Volume Order: 1, Media Name: Adobe CS4, Path: C:\Documents and Settings\Chu\Desktop\Adobe CS4\Flash Professional\Adobe CS4\payloads\AdobeExtensionManager2All\AdobeExtensionManager2All.msi
Updating media info for: {0A621EC5-B98B-45C9-95FE-A7D0DA3150EA}, Effective: {0A621EC5-B98B-45C9-95FE-A7D0DA3150EA}
Ignoring original data since install source is local
Type: 0, Volume Order: 1, Media Name: Adobe CS4, Path: C:\Documents and Settings\Chu\Desktop\Adobe CS4\Flash Professional\Adobe CS4\payloads\AdobeFlashPlayer10_axDbg_mul\AdobeFlashPlayer10_axDbg_mul.msi
Updating media info for: {14A5A29B-D252-4575-B40C-695B8D8B34D5}, Effective: {14A5A29B-D252-4575-B40C-695B8D8B34D5}
Ignoring original data since install source is local
Type: 0, Volume Order: 1, Media Name: Adobe CS4, Path: C:\Documents and Settings\Chu\Desktop\Adobe CS4\Flash Professional\Adobe CS4\payloads\AdobeBridge3All\AdobeBridge3All.msi
Updating media info for: {195C539A-1546-43A8-A224-C03FE427F47D}, Effective: {195C539A-1546-43A8-A224-C03FE427F47D}
Ignoring original data since install source is local
Type: 0, Volume Order: 1, Media Name: Adobe CS4, Path: C:\Documents and Settings\Chu\Desktop\Adobe CS4\Flash Professional\Adobe CS4\extensions\AdobeFlash10-es_MXLanguagePack\AdobeFlash10-es_MXLanguagePack.msi
Updating media info for: {2965A5F0-0326-4479-B140-F5799BD025B7}, Effective: {2965A5F0-0326-4479-B140-F5799BD025B7}
Ignoring original data since install source is local
Type: 0, Volume Order: 1, Media Name: Adobe CS4, Path: C:\Documents and Settings\Chu\Desktop\Adobe CS4\Flash Professional\Adobe CS4\payloads\AdobeCameraRaw5.0All\AdobeCameraRaw5.0All.msi
Updating media info for: {2B47D5DE-E019-4130-AB69-2DAB4DEEBB0A}, Effective: {2B47D5DE-E019-4130-AB69-2DAB4DEEBB0A}
Ignoring original data since install source is local
Type: 0, Volume Order: 1, Media Name: Adobe CS4, Path: C:\Documents and Settings\Chu\Desktop\Adobe CS4\Flash Professional\Adobe CS4\payloads\AdobeColorJA_ExtraSettings2-mul\AdobeColorJA_ExtraSettings2-mul.msi
Updating media info for: {2BD22DAB-D025-4c9a-A62E-DAD828393885}, Effective: {2BD22DAB-D025-4c9a-A62E-DAD828393885}
Ignoring original data since install source is local
Type: 0, Volume Order: 1, Media Name: Adobe CS4, Path: C:\Documents and Settings\Chu\Desktop\Adobe CS4\Flash Professional\Adobe CS4\payloads\AdobeFlash10-en-ExtensionFL30\AdobeFlash10-en-ExtensionFL30.msi
Updating media info for: {3095E614-711B-48D2-BAAF-0CA9D9968F68}, Effective: {3095E614-711B-48D2-BAAF-0CA9D9968F68}
Ignoring original data since install source is local
Type: 0, Volume Order: 1, Media Name: Adobe CS4, Path: C:\Documents and Settings\Chu\Desktop\Adobe CS4\Flash Professional\Adobe CS4\payloads\AdobeOutputModuleAll\AdobeOutputModuleAll.msi
Updating media info for: {3251BB24-1889-4BB4-9774-BA0D57FE7D0E}, Effective: {3251BB24-1889-4BB4-9774-BA0D57FE7D0E}
Ignoring original data since install source is local
Type: 0, Volume Order: 1, Media Name: Adobe CS4, Path: C:\Documents and Settings\Chu\Desktop\Adobe CS4\Flash Professional\Adobe CS4\extensions\AdobeFlash10-en_GBLanguagePack\AdobeFlash10-en_GBLanguagePack.msi
Updating media info for: {34BBC769-B1F1-412A-8663-50B2EAB6D5A9}, Effective: {34BBC769-B1F1-412A-8663-50B2EAB6D5A9}
Ignoring original data since install source is local
Type: 0, Volume Order: 1, Media Name: Adobe CS4, Path: C:\Documents and Settings\Chu\Desktop\Adobe CS4\Flash Professional\Adobe CS4\extensions\DeviceCentral2LP-fr_CA\DeviceCentral2LP-fr_CA.msi
Updating media info for: {395FC443-B34B-4E77-9928-23C147FC83F1}, Effective: {395FC443-B34B-4E77-9928-23C147FC83F1}
Ignoring original data since install source is local
Type: 0, Volume Order: 1, Media Name: Adobe CS4, Path: C:\Documents and Settings\Chu\Desktop\Adobe CS4\Flash Professional\Adobe CS4\payloads\AdobeTypeSupport9-mul\AdobeTypeSupport9-mul.msi
Updating media info for: {3A4D8E3D-83E0-425F-A8FB-B04538CDC2A0}, Effective: {3A4D8E3D-83E0-425F-A8FB-B04538CDC2A0}
Ignoring original data since install source is local
Type: 0, Volume Order: 1, Media Name: Adobe CS4, Path: C:\Documents and Settings\Chu\Desktop\Adobe CS4\Flash Professional\Adobe CS4\payloads\AdobeCSIAll\AdobeCSIAll.msi
Updating media info for: {3C2CCCD6-CB9D-4288-8B3D-EF7AEC16C35B}, Effective: {3C2CCCD6-CB9D-4288-8B3D-EF7AEC16C35B}
Ignoring original data since install source is local
Type: 0, Volume Order: 1, Media Name: Adobe CS4, Path: C:\Documents and Settings\Chu\Desktop\Adobe CS4\Flash Professional\Adobe CS4\payloads\AdobeFlash10-mul\AdobeFlash10-mul.msi
Updating media info for: {3CD02B3D-9EEE-4786-95A8-73E7BA8558CA}, Effective: {3CD02B3D-9EEE-4786-95A8-73E7BA8558CA}
Ignoring original data since install source is local
Type: 0, Volume Order: 1, Media Name: Adobe CS4, Path: C:\Documents and Settings\Chu\Desktop\Adobe CS4\Flash Professional\Adobe CS4\payloads\AdobeDriveAll\AdobeDriveAll.msi
Updating media info for: {3D9625C4-525A-4368-932D-749B91B3B222}, Effective: {3D9625C4-525A-4368-932D-749B91B3B222}
Ignoring original data since install source is local
Type: 0, Volume Order: 1, Media Name: Adobe CS4, Path: C:\Documents and Settings\Chu\Desktop\Adobe CS4\Flash Professional\Adobe CS4\payloads\AdobeFlash10-fr-ExtensionFL30\AdobeFlash10-fr-ExtensionFL30.msi
Updating media info for: {490F274E-689A-4ECF-AC3E-322347ED7613}, Effective: {490F274E-689A-4ECF-AC3E-322347ED7613}
Ignoring original data since install source is local
Type: 0, Volume Order: 1, Media Name: Adobe CS4, Path: C:\Documents and Settings\Chu\Desktop\Adobe CS4\Flash Professional\Adobe CS4\payloads\AdobeExtendScriptToolkit3.0.0All\AdobeExtendScriptToolkit3.0.0All.msi
Updating media info for: {53560287-20EA-4EB6-9B5C-5B1EC080350A}, Effective: {53560287-20EA-4EB6-9B5C-5B1EC080350A}
Ignoring original data since install source is local
Type: 0, Volume Order: 1, Media Name: Adobe CS4, Path: C:\Documents and Settings\Chu\Desktop\Adobe CS4\Flash Professional\Adobe CS4\payloads\kuler2.0-mul\kuler2.0-mul.msi
Updating media info for: {5746C6E3-DC6E-4762-9445-F89C50B5E1D2}, Effective: {5746C6E3-DC6E-4762-944 -
Hi,
I kill a session with the commands:
select username, sid, serial#, status from v$session where username like 'RION%'
alter system kill session 'sid, serial#'
and if I give again the first select command at the status column appears KILLED. I want not to have KILLED in the status column.
Thank you,
Mihaelahi all,
As u know you are seeing the status of at v$session view as killed, I wanna confirm that this will exists in two senario.
When a Session is in inactive state and a kill command on that session is issued then the "status" column of v$session will be updated as killed as to indicate/mark as it is killed, and the "server " column will be updated as psuedo. when the user again try to connect to the session user will receive 0ra-00028 error and the entry will be removed from v$session.
Another senario is that the transaction is at its half way, either in commiting or at the roleback stage for that partucular session then also you can find that the v$table is updated as above.
more information, go through the documentation, at the Server Process handling section.
i hope it cleared your confussion,
Maybe you are looking for
-
T-code required for Substitution
Hi all, This is regarding the query on substitution that I want to write, as per my knowledge t-code OBBH is used for FI substitutions. But when I came across the t-code GGB1 there I found the application area as sales order specific substitution whe
-
Photoshop CS6 Lag in windows 8
Hello, I did a search in the forum, but couldn't find something specific to windows 8. When photoshop CS6 was released. I took it for a spin on windows 7. Everything worked perfectly. Then my school offered it at a reduced price and we got a free ver
-
I am in India and have an unlimited subscription for US calls since around a year.. I usually call my girl friend in US to her cell phone from my skype account (from my pc). Is there a way I can call to from my cell phone itself without signing in to
-
Dear all; I have attached one document say Drawing with REV 0 in DIR ,Now I want to replace the Old drawing with latest revision say REV R1 at same time I dont want to replace the old REV 0 .How to solve this problem with version management In DMS
-
Tables without borders print with borders
I have had trouble getting right-aligned graphics to print when I print my documentation. So I am inserting the graphics into tables, which eliminates that problem. My new problem is that, although I have configured the tables to have no cell borders