Search notes:

SQLPATH - kill

kill.sql terminates a session that is identified by its sid, without to also specify the session's serial#.
--
--
--          Kills the session specified with the SID as argument.
--
--                  SQLPLUS> @kill 190
--
--          whereas the required SID can be determined with a
--
--                  SQLPLUS> select SID, .., ... from v$session where ... 
--
declare
  sid_      number := &1;
  serial_   number;

begin

  select serial# into serial_ from v$session where sid = sid_;

--execute immediate 'alter system kill       session ''' || sid_ || ',' || serial_ || ''' immediate';
  execute immediate 'alter system disconnect session ''' || sid_ || ',' || serial_ || ''' immediate';

end;
/
Github repository Oracle-SQLPATH, path: /kill.sql

See also

A list of sessions is returned by ses.sql.
Oracle: files for ORACLE_PATH / SQLPATH

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758198438, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/SQL-Plus/sqlpath/kill(66): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78