Using Oracle Enterprise Manager for managing VPD
Next, we will create a policy that will be applied on UPDATE
statements that will ensure that the salaries of employees who currently make less than 3000 USD and who do not earn a commission will receive an additional 1500 USD raise when the UPDATE
statement is executed.
Getting ready
All steps will be performed on the HACKDB
database.
How to do it...
- Connect as
HR
and create a new table namedemployees_test_vpd
, based on theemployees
table as follows:SQL> conn HR Enter password: Connected. SQL> create table employees_test_vpd as select * from employees where salary is not null and commission_pct is null; Table created.
- Connect as
system
and create theSALRISE_POL_FUNC
policy function defined on the ...
Get Oracle 11g Anti-hacker's Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.