Unloads the specified dynamic library. The functions in the library will no longer be accessible until the library is loaded again.
PROCEDURE Ora_Ffi.Unload_Library
(libHandle libHandleType);
libHandle | A handle to the library to be unloaded. |
/* First load a dll library */
PROCEDURE register_libs IS
test_lib Ora_Ffi.Libhandletype;
BEGIN
/* Load the testlib.dll library
from directory C:/libs/ */
testlib_lhandle := ora_ffi.load_library
('C:/libs/', 'testlib.dll');
END;
/* Generate PL/SQL Package containing
funtions from the test library. */
PROCEDURE define_c_funcs IS
...
Ora_Ffi.Genereate_Foreign (testlib_lhandle,
'test_Ffi_Pkg')';
...
END;
/* Unload the library */
PROCEDURE unload_libs IS
BEGIN
/* Unload the dll library assigned to the
library handle 'test_lib.' */
Ora_Ffi.Unload_library(testlib_lhandle);
...
END;