ORA_FFI.LOAD_LIBRARY
built-in functionThis function loads a specified dynamic library so that its functions can be registered.
FUNCTION ORA_FFI.LOAD_LIBRARY
(dirname VARCHAR2,libname VARCHAR2)
RETURN libHandleType;
Parameter |
Description |
|
The directory in which the library is located. |
|
The filename of the library. |
A handle to the foreign library. It returns a null handle if the library was unable to be found or loaded.
/* This example uses ORA_FFI.LOAD_LIBRARY */
PACKAGE test is
/* Declare testlib_lhandle as an ORA_FFI
library handle varible type. */
testlib_lhandle ORA_FFI.LIBHANDLETYPE;
...
END;
PACKAGE BODY test IS
PROCEDURE register_libs IS
BEGIN
/* Load the dynamic link library 'test.dll'
from the directory C:\libdir\ and return
the handle testlib_lhandle. */
testlib_lhandle := ORA_FFI.LOAD_LIBRARY
('C:\libdir\','test.dll');
...
END;
...
END;
About the ORA_FFI
built-in package
Copyright © 1984, 2005, Oracle. All rights reserved.