Oracle Contexts
Version 12.1.0.2

General Information
Library Note Morgan's Library Page Footer
The Library is currently in the process of being upgraded from Oracle Database Version 11.2.0.3 to 12.1.0.1. Demos are being upgraded to reflect the new Container paradigm as well as EBR (Edition Based Redefinition) and may contain references to CDBs, PDBs, and other objects you may not be familiar with such as CDB_OBJECTS_AE: Welcome to 12c.
Dependencies
ALL_CONTEXT DBA_CONTEXT SESSION_CONTEXT
CDB_CONTEXT GLOBAL_CONTEXT V$CONTEXT
CONTEXT$    
 
Create Context
Create local context CREATE OR REPLACE CONTEXT <context_name> USING <plsql_package_name>;
CREATE OR REPLACE CONTEXT otp USING dbms_otp;

col schema format a30
col package format a30

SELECT *
FROM context$
WHERE package = 'DBMS_OTP';
Create global context CREATE OR REPLACE CONTEXT <context_name> USING <plsql_package_name> ACCESSED GLOBALLY;
CREATE OR REPLACE CONTEXT otp USING dbms_otp ACCESSED GLOBALLY;

col schema format a30
col package format a30

SELECT *
FROM context$
WHERE package = 'DBMS_OTP';
 
Drop Context
Drop Context drop context <context_name>;
drop context otp;

Related Topics
Advanced Queueing (DBMS_AQ)
Advanced Queueing (DBMS_AQADM)
DBMS_APPLICATION_INFO
DBMS_LOGSTDBY_CONTEXT
DBMS_RLS
DBMS_SESSION
DBMS_WM
Fine Grained Access Control
SYS_CONTEXT
System Privileges
Virtual Private Database

Morgan's Library Page Footer
This site is maintained by Dan Morgan. Last Updated: This site is protected by copyright and trademark laws under U.S. and International law. © 1998-2014 Daniel A. Morgan All Rights Reserved