| | Data Loading Loading data into OTM / G-Log through CSVs, XML, and the UI. |  | 
October 2nd, 2007, 15:47
| | Junior Member | | Join Date: Jun 2007
Posts: 24
Thanks: 6
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0 | | | ORA-28115:policy with check option violation The following query
insert into shipment_stop(SHIPMENT_GID,STOP_NUM,LOCATION_GID)V ALUES('RAJ01EPUDO.SUMMER',1,'RAJ01EPUDO.PUDO ID')
throws the following error
java.sql.SQLException: ORA-28115: policy with check option violation
but the same is working fine in DBA.ADMIN.
Kindly suggest a way to implement this without any issues in RAJ01EPUDO.ADMIN | 
October 2nd, 2007, 16:26
| | Senior Member and Blogger | | Join Date: May 2007
Posts: 170
Thanks: 4
Thanked 31 Times in 31 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 2 | | | Re: ORA-28115:policy with check option violation Hi,
1. How are you running that insert command ? (from within an automation agent ?)
2. What version of OTM are you on ?
3. Does the RAJ01EPUDO.ADMIN user have a custom VPD profile associated ? | 
October 2nd, 2007, 17:52
| | Junior Member | | Join Date: Jun 2007
Posts: 24
Thanks: 6
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0 | | | Re: ORA-28115:policy with check option violation Quote:
Originally Posted by bmj_23 Hi,
1. How are you running that insert command ? (from within an automation agent ?)
2. What version of OTM are you on ?
3. Does the RAJ01EPUDO.ADMIN user have a custom VPD profile associated ? | I am running this query using Automation Agent.
While I check the Log the log shows policy with check option violation .
While i try to insert the query using sql.SqlServlet(Backend) i get the following error:
java.sql.SQLException: ORA-28115: policy with check option violation. | 
October 2nd, 2007, 18:35
|  | Site Moderator | | Join Date: Jun 2006 Location: West Chester, PA
Posts: 816
Thanks: 53
Thanked 199 Times in 121 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 10 | | | Re: ORA-28115:policy with check option violation Moshe,
I would refer back to your VPD Policies, as the error indicates that you are either trying to change the very column that a table is restricted on, or that you are trying to insert a row that will not satisfy the viewing policy.
This also explains why it works as DBA.ADMIN (i.e. no VPD restrictions) and not as the user that you're logged in as.
Thanks,
Chris | 
October 3rd, 2007, 13:55
| | Junior Member | | Join Date: Mar 2007 Location: Chicago
Posts: 20
Thanks: 2
Thanked 1 Time in 1 Post
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0 | | | Re: ORA-28115:policy with check option violation Moshe, Do you have multiple domains? If so, which domain is the agent in and which domain are you trying to insert the record to? I think I have had similar issues when trying to use an agent to act on objects in other domains... one question, though, why are you trying to insert a shipment stop?? | 
October 3rd, 2007, 14:42
| | Member | | Join Date: Mar 2007 Location: Bedfordshire England
Posts: 48
Thanks: 3
Thanked 9 Times in 8 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0 | | | Re: ORA-28115:policy with check option violation I agree
I have seen this error when trying to insert data into Domain X from Domain Y. | 
October 3rd, 2007, 19:14
| | Junior Member | | Join Date: Jun 2007
Posts: 24
Thanks: 6
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0 | | | java.sql.SQLException: ORA-28115: policy with check option violation When I write the following query to insert shipment through backend
INSERT INTO SHIPMENT(SHIPMENT_GID,SHIPMENT_XID,START_TIME,END_ TIME)VALUES('RAJ01EPUDO.JES','M',TO_DATE( '2-DEC-2006', 'DD-MON-YYYY' ),TO_DATE( '3-DEC-2006', 'DD-MON-YYYY' ))
I get the following error:
java.sql.SQLException: ORA-28115: policy with check option violation
Can you provide me a solution to resolve the same | 
October 4th, 2007, 11:23
| | Member | | Join Date: Mar 2007 Location: Bedfordshire England
Posts: 48
Thanks: 3
Thanked 9 Times in 8 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0 | | | Re: java.sql.SQLException: ORA-28115: policy with check option violation in your insert statement - you do not reference the domain_name field.
Therefore OTM thinks you're trying to write to PUBLIC - and you're not allowed to write to public unless you're logged in as DBA.ADMIN
Hope this helps
Gary  | | The Following 2 Users Say Thank You to cunninghamg For This Useful Post: | |  | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | |