Professional Documents
Culture Documents
Table
SELECT
INSERT
UPDATE
Security
SELECT policies
DELETE
SELECT
Id
149
Security 3
2 SELECT 145
policies
145
4 149
Function:
... 147
1 WHERE account_mgr_id = 148
147
...
149
5
148
Account manager 148
Context
Implements
Attribute Value
Attached Associated
Security
to a with a
Session package policies
session
Context created.
Security
policies
ADD_POLICY oe_access_policy
DECLARE
BEGIN
DBMS_RLS.ADD_POLICY (
'OE', Object schema
'CUSTOMERS', Table name
'OE_ACCESS_POLICY', Policy name
'OE', Function schema
'ORDERS_APP_PKG.THE_PREDICATE', Policy function
'SELECT, UPDATE, DELETE', Statement types
FALSE, Update check
TRUE); Enabled
END;
/
COUNT(*) ACCOUNT_MGR_ID
---------- --------------
111 145
76 147
58 148
74 149
1
CONNECT AM148/oracle
SELECT customer_id, customer_last_name
FROM oe.customers;
CUSTOMER_ID CUSTOMER_LAST_NAME
----------- -----------------
...
58 rows selected.
• USER_POLICIES
• ALL_POLICIES
• DBA_POLICIES
• ALL_CONTEXT
• DBA_CONTEXT
SELECT *
FROM all_context;
ADD_POLICY_GROUP
Context
Implements
Attribute Value
Attached Associated
Security
to a with a
Session package policies
session