快速殺掉Oracle的Session
單位伺服器上的Oracle突然出現無法連線的現象,提示程式已經達到了最大的限制,奇怪!線上不過幾個人為什麼達到了500個程式?肯定是由於程式錯誤造成大量死程式留在系統中。但是殺掉這些死程式卻很麻煩。在網上找了半天終於發現Orakill這個命令!
C:>orakill -help
Usage: orakill sid thread
where sid = the Oracle instance to target
thread = the thread id of the thread to kill
The thread id should be retrieved from the spid column of a query such as:
select spid, osuser, s.program from
v$process p, v$session s where p.addr=s.paddr
這是Orakill的幫助提示,根據此提示,找出所有狀態為Inactive的程式session,然後並記下paddr,用上面的語句找出這個session所對應的spid,用orakill sid spid殺掉。
面對一大堆的死程式,只好用批處理的辦法進行處理,最終問題解決。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/18966/viewspace-833593/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- MySQL:Innodb如何快速殺掉堵塞會話的思考MySql會話
- Oracle session traceOracleSession
- windows上殺掉指定名稱的程式Windows
- 批次殺執行某條sql的sessionSQLSession
- 查殺oracle的阻塞Oracle
- 教你如何使用tcpkill殺掉tcp連線TCP
- oracle的會話如何自殺?Oracle會話
- wdaproxy 啟動,即被系統殺掉程序,求解。
- 實現關閉程式函式,殺掉pchunter函式
- MySQL檢視及殺掉連結方法大全MySql
- oracle中的processes,session,transaction引數詳解OracleSession
- 將程式在後臺執行和殺掉後臺的程式
- Oracle DBLink bug引發的故障(Session Hang Memory leak)OracleSession
- 快速實現 Tomcat 叢集 Session 共享TomcatSession
- Oracle檢視已被使用的open_cursors&session_cached_cursorsOracleSession
- Oracle Session每日統計功能實現XLAMOracleSession
- Spring Boot redis分散式session快速配置Spring BootRedis分散式Session
- 一文快速回顧 Session 和 CookieSessionCookie
- 幹掉Session?這個跨域認證解決方案真的優雅!Session跨域
- oracle 會話(session)被鎖瞭解決方法Oracle會話Session
- 如何在無響應的Linux系統中殺掉記憶體消耗最大的程式Linux記憶體
- Oracle快速找回被刪除的表Oracle
- oracle 什麼時候才回收v$session 中status='KILLED'的程式OracleSession
- 【TUNE_ORACLE】等待事件之IO等待“read by other session”Oracle事件Session
- 【oracle 殺死繁忙程式 ORA-00054】實驗Oracle
- go windows鎖屏 && 關閉桌面(殺掉檔案資源管理器)GoWindows
- Oracle大表快速建立索引Oracle索引
- 快速顯示oracle錯誤號的含義Oracle
- Oracle 如何快速的 duplicate 一個資料庫Oracle資料庫
- 「看圖」誰想幹掉誰?程式語言相愛相殺何時休
- Cloud Foundry Session Affinity(Sticky Session)的實現CloudSession
- [20180918]disconnect session和kill session的區別.txtSession
- AWS瘋狂投入資料庫 難道僅為幹掉Oracle?資料庫Oracle
- 【Oracle】常用工具-oracle sql developer快速安裝使用教程OracleSQLDeveloper
- PHP Session的用法PHPSession
- oracle快速定位資料庫瓶頸Oracle資料庫
- keycloak~關於session idle和session max的解釋Session
- oracle快速拿到重建控制檔案語句的方法二Oracle
- 呼叫幾個介面,快速實現社交遊戲“劇本殺”遊戲