How To Detect Client Session Has Terminated From Within PL/SQL Logic (Doc ID 310924.1)

Last updated on JULY 05, 2017

Applies to:

PL/SQL - Version: 8.1.7.4 to 11.2.0.2 - Release: 8.1.7 to 11.2
Information in this document applies to any platform.

Goal

How to raise an exeption in PL/SQL when the client session/process has terminated. To allow clean closure of all open cursors and handles.

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms