Dropping the analysis

In this recipe, you'll drop an existing privilege analysis policy. It has to be disabled before dropping; otherwise, you'll receive an error.

Getting ready

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.

How to do it...

  1. Connect to the database as system or a user who has appropriate privileges:
    $ sqlplus system
    
  2. Drop a privilege analysis policy (for example, 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

  3. Verify that all the records about ...

Get Oracle Database 12c Security 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.