
ExtProc - Perl interface to the Oracle Perl External Procedure Library

use ExtProc;

The ExtProc module provides several functions that return useful data from an Oracle database connection. It is only useful from the Oracle Perl External Procedure Library (extproc_perl).

Returns the name of the database the client is connected to.
Returns the username used to connect to Oracle.
Returns the session ID of the current connection
Throws a user-defined Oracle exception. Note that the Perl subroutine will probably complete after this function is called, but no return values should be accepted by the calling client.
If you are familiar with the pre-0.97 method of using DBI callbacks, see dbi_connect for more information.
use DBI; use ExtProc; # connect back to the calling database my $dbh = ExtProc->dbi_connect();
NOTE: External procedures are stateless, so there is no concept of a persistent connection to the database. Therefore, you must run the DBI->connect method once per transaction.

Jeff Horwitz <jeff@smashing.org>

perl(1), perlembed(1), DBI(3), DBD::Oracle(3)