Solved

HOw to remove a policy function from a table

Posted on 2007-10-01
2
5,839 Views
Last Modified: 2013-12-19
I've imported a database into Oracle 10g. How do I remove policy functions from tables? When I try to display data from some tables I get the ORA-28100: policy function schema LBACSYS is invalid. Any thoughts?
0
Comment
Question by:dodgerfan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 74

Accepted Solution

by:
sdstuber earned 500 total points
ID: 19994249
First, find the policies on that table

SELECT *
  FROM all_policies
 WHERE object_owner = 'YOUR_SCHEMA' AND object_name = 'YOUR_TABLE'


Then remove them, substituting "YOUR_POLICY" with whatever you get from the previous query

exec dbms_rls.drop_policy('YOUR_SCHEMA','YOUR_TABLE','YOUR_POLICY');
0
 
LVL 28

Expert Comment

by:Naveen Kumar
ID: 19994529
If you can query dba_ views, then use that instead of all_policies

SELECT *
  FROM dba_policies
 WHERE object_owner = 'YOUR_SCHEMA' AND object_name = 'YOUR_TABLE'
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question