Oracle 8i Data Cartridge Developer's Guide Release 2 (8.1.6) Part Number A76937-01 |
|
Methods: Using C/C++ and Java , 3 of 13
A shared library is an operating system file, such as a Windows DLL or a Solaris shared object, that stores the coded implementation of external procedures. Access to the shared library from Oracle occurs by using an alias library, which is a schema object that represents the library within PL/SQL. For security, creation of an alias library requires DBA privileges. To create the alias library (such as DS_Lib in the following example), you must decide on the operating system location for the library, log in as a DBA or as a user with the CREATE
LIBRARY
PRIVILEGE
, and then enter a statement such as the following:
CREATE OR REPLACE LIBRARY DS_Lib AS '/data_cartridge_dir/libdatastream.so;
This example creates the alias library schema object in the database, and hereafter you can refer to the shared library by the name DS_Lib from within PL/SQL.
|
![]() Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
|