Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Oracle 11g Anti-hacker's Cookbook

You're reading from  Oracle 11g Anti-hacker's Cookbook

Product type Book
Published in Oct 2012
Publisher Packt
ISBN-13 9781849685269
Pages 302 pages
Edition 1st Edition
Languages
Author (1):
Adrian Neagu Adrian Neagu
Profile icon Adrian Neagu

Table of Contents (16) Chapters

Oracle 11g Anti-hacker's Cookbook
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Operating System Security Securing the Network and Data in Transit Securing Data at Rest Authentication and User Security Beyond Privileges: Oracle Virtual Private Database Beyond Privileges: Oracle Label Security Beyond Privileges: Oracle Database Vault Tracking and Analysis: Database Auditing Index

Granting exemptions from VPD policies


Normally, once a policy is declared on an object it cannot be bypassed regardless of the user's privileges.

However, there are situations when a user has to have access rights on all data from an object that has a policy applied. In this recipe, we will show how to make an exemption from VPD policies.

In this recipe we will exempt the user HR from all the policies declared within the HR schema.

How to do it...

  1. Connect as the user HR and issue a SELECT statement against the VIEW_REG_DATA_VPD view as follows:

    SQL> conn HR
    Enter password:
    Connected.
    SQL> select first_name,last_name from view_reg_data_vpd where phone_number='650.507.9833';
    
    no rows selected
    
    SQL>
    
  2. Here on the view view_reg_data_vpd we have the policy "regions_vpd_policy" enforced.

    Grant.
    
  3. Connect as system and exempt the HR user from any VPD policy as follows:

    SQL> conn system
    Enter password:
    Connected.
    SQL> GRANT EXEMPT ACCESS POLICY TO HR;
    
    Grant succeeded.
    
    SQL>
    
  4. Connect as...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}