June 2016
Intermediate to advanced
388 pages
5h 49m
English
In this recipe, you'll drop an existing privilege analysis policy. It has to be disabled before dropping; otherwise, you'll receive an error.
You'll need an existing user who can manage privilege analysis policies (has the CAPTURE_ADMIN role and the SELECT ANY DICTIONARY privilege), for example, the SYSTEM user and an existing privilege analysis policy.
$ sqlplus system
ALL_PRIV_POL, which you created in the first recipe in this chapter):
SQL> BEGIN
SYS.DBMS_PRIVILEGE_CAPTURE.DROP_CAPTURE(
name => '<policy_name>');
END;
/
Figure 57 - Drop policy
Read now
Unlock full access