PL/SQL New Features and Enhancements in Oracle Database 12c Release 1 (12.1)
Learn about the new features and enhancements to PL/SQL in Oracle 12c Release 1 (12.1).
oracle 12cconfigurationintermediate
by OracleDba
15 views
Learn about the new features and enhancements to PL/SQL in Oracle 12c Release 1 (12.1).
123456789101112131415161718192021
-- Pre-12c : Still valid in 12c.
CREATE OR REPLACE LIBRARY my_lib IS '/path/to/my_lib.so';
/
-- 12c : Using Directory to specify path to object.
CREATE OR REPLACE DIRECTORY my_dir AS '/path/to/";
CREATE LIBRARY my_lib AS 'my_lib.so' IN my_dir;
/
--12c : Using credential.
BEGIN
DBMS_CREDENTIAL.create_credential(
credential_name => 'my_cred',
username => 'me',
password => 'my_password');
END;
/
CREATE OR REPLACE LIBRARY my_lib IS '/path/to/my_lib.so' CREDENTIAL my_cred;
/Please to add comments
No comments yet. Be the first to comment!