Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle kill session

-- Get ORACLE Session IDs (SID and SERIAL#)
SELECT SID, SERIAL#, STATUS, SERVER FROM V$SESSION WHERE USERNAME = '<username>';
-- Kill session (and wait for rollback if any...)
ALTER SYSTEM KILL SESSION 'SID,SERIAL#' IMMEDIATE;
Comment

kill session inactive oracle

select 'ALTER SYSTEM KILL SESSION '''||SID||','||SERIAL#||''' IMMEDIATE;' from v$session where status <> 'ACTIVE';
Comment

oracle kill sessions script

ALTER SYSTEM DISCONNECT SESSION 'sid,serial#' POST_TRANSACTION;
ALTER SYSTEM DISCONNECT SESSION 'sid,serial#' IMMEDIATE;
Comment

PREVIOUS NEXT
Code Example
Sql :: sql query to get column names and data types in sql server 
Sql :: sql server check version 
Sql :: mysql find tables with column name 
Sql :: restart postgresql.service Failed to restart postgresql.service: Unit not found. 
Sql :: mysql first day of year 
Sql :: find mysql version linux 
Sql :: oracle list packages 
Sql :: sql query to make a existing column auto increment 
Sql :: autoincrement sqlite command 
Sql :: oracle search source code 
Sql :: psql filed name alter 
Sql :: sql auto update dupdated_at 
Sql :: oracle time 24h 
Sql :: oracle start job 
Sql :: set database timezone mysql 
Sql :: postgresql print variable 
Sql :: oracle current date without time 
Sql :: mysql text type max length 
Sql :: file /etc/init.d/mysql not exists 
Sql :: sql try catch 
Sql :: mysql greater thatn a week ago 
Sql :: oracle list next running jobs 
Sql :: oracle detect invalid password 
Sql :: funzioni plsql 
Sql :: Odoo Service is not coming up with postgresql read replica (slave) 
Sql :: postgresql random number 
Sql :: mysql reset auto increment 
Sql :: DUPLICATE column values 
Sql :: my sql version 
Sql :: postgresql transaction discard all 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =