First we need to load up the package that is used to access the context.
To achieve this log on as the schema owner that security will be applied to
and then execute the sql script located at
source/sql/admin/datasecurity/CreateCtxPackage.sql.
This will create the required packages and a stored procedure set_userid(...).
This can be later executed from sql*plus or through java (explained in the How-To section Propagating Security Rules from the Business Tier to the Data Tier)
Note : If the package is already created and you need to drop the package use the script located at source/sql/admin/datasecurity/DropCtxPackage.sql
|