ORA_FFI.UNLOAD_LIBRARY
built-in procedureThis procedure 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);
Parameter |
Description |
|
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.GENERATE_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;
About the ORA_FFI
built-in package
Copyright © 1984, 2005, Oracle. All rights reserved.