Solved

HOw to remove a policy function from a table

Posted on 2007-10-01
2
5,462 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
2 Comments
 
LVL 73

Accepted Solution

by:
sdstuber earned 500 total points
Comment Utility
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
Comment Utility
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now