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

ORA_FFI.UNLOAD_LIBRARY built-in procedure

This procedure unloads the specified dynamic library. The functions in the library will no longer be accessible until the library is loaded again.

Syntax


PROCEDURE ORA_FFI.UNLOAD_LIBRARY
(libhandle libHandleType);

Parameters

Parameter

Description

libhandle

A handle to the library to be unloaded.

Example


/* 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;

See also

About the ORA_FFI built-in package

ORA_FFI built-in package