A script-enabled browser is required for this page to function properly.

ORA_FFI.FIND_FUNCTION built-in function

This function locates and returns the function handle for the specified function. You can retrieve the function handle by specifying either a function name or a library name. The function must previously have been registered with ORA_FFI.REGISTER_FUNCTION.

Syntax


FUNCTION ORA_FFI.FIND_FUNCTION
(libhandle libHandleType,
funcname VARCHAR2)
RETURN funcHandleType; 

FUNCTION ORA_FFI.FIND_FUNCTION
(libname VARCHAR2,
funcname VARCHAR2)
RETURN funcHandleType;

Parameters

Parameter

Description

libhandle

A library handle returned by ORA_FFI.LOAD_LIBRARY or ORA_FFI.FIND_LIBRARY.

funcname

The name of the function to be located.

libname

The name of the library the function is in.

Returns

A handle to the specified function.

Example


/* Find foreign function handle for 
a given foreign library handle and 
foreign function name */

BEGIN
  ...
  funchandle := ORA_FFI.FIND_FUNCTION
  (libhandle, 'my_func');
  ...
END;

/* Find foreign function handle for 
a given foreign function and
foreign library names */
BEGIN
  ...
  funchandle := ORA_FFI.FIND_FUNCTION
  (libhandle, 'my_func');
  ...
END;

See also

About the ORA_FFI built-in package

ORA_FFI built-in package