This type specifies a handle to a foreign function. You can use ORA_FFI.FIND_FUNCTION
to obtain the handle.
TYPE ORA_FFI.FUNCHANDLETYPE;
/* This example uses ORA_FFI.FUNCHANDLETYPE */
PROCEDURE define_c_funcs IS
getresult_fhandle ORA_FFI.FUNCHANDLETYPE;
foo_fhandle ORA_FFI.FUNCHANDLETYPE;
BEGIN
/* Register the info for function getresult */
getresult_fhandle := ORA_FFI.REGISTER_FUNCTION
(testlib_lhandle, 'getresult');
...
/* Register the info for function foo */
foo_fhandle := ORA_FFI.REGISTER_FUNCTION
(testlib_lhandle,'foo');
...
END;
About the ORA_FFI built-in package
Copyright © 1984, 2005, Oracle. All rights reserved.