ORA_FFI.FIND_FUNCTION
built-in functionThis 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
.
FUNCTION ORA_FFI.FIND_FUNCTION
(libhandle libHandleType,
funcname VARCHAR2)
RETURN funcHandleType;
FUNCTION ORA_FFI.FIND_FUNCTION
(libname VARCHAR2,
funcname VARCHAR2)
RETURN funcHandleType;
Parameter |
Description |
|
A library handle returned by |
|
The name of the function to be located. |
|
The name of the library the function is in. |
A handle to the specified function.
/* 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;
About the ORA_FFI
built-in package
Copyright © 1984, 2005, Oracle. All rights reserved.