otmfaqForumsBlogsRegister
FAQMembers ListCalendarToday's PostsSearch


 Subscribe Blogs:RSS
 Subscribe Forums:RSS
 Follow New Posts:Twitter
OTMFAQ Home
OTMFAQ Blogs
OTMFAQ Forums
OTM Wiki

OTM SIG
OTM Wiki
MavenWire

Go Back   Oracle OTM / G-Log GC3 Community Support > OTM / G-Log - Functional Topics > Data Loading
Reload this Page

java.sql.SQLException: ORA-28115: policy with check option violation


Data Loading Loading data into OTM / G-Log through CSVs, XML, and the UI.

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old October 2nd, 2007, 16:47
Junior Member
 
Join Date: Jun 2007
Posts: 24
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 6
Thanked 0 Times in 0 Posts
Rep Power: 0
moshe is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old October 2nd, 2007, 17:26
Senior Member and Blogger
 
Join Date: May 2007
Posts: 200
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 4
Thanked 36 Times in 35 Posts
Rep Power: 3
bmj_23 will become famous soon enough
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 ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old October 2nd, 2007, 18:52
Junior Member
 
Join Date: Jun 2007
Posts: 24
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 6
Thanked 0 Times in 0 Posts
Rep Power: 0
moshe is on a distinguished road
Re: ORA-28115:policy with check option violation

Quote:
Originally Posted by bmj_23 View Post
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old October 2nd, 2007, 19:35
chrisplough's Avatar
Site Moderator
 
Join Date: Jun 2006
Location: West Chester, PA
Posts: 1,156
Blog Entries: 8
Groans: 0
Groaned at 1 Time in 1 Post
Thanks: 137
Thanked 256 Times in 159 Posts
Rep Power: 10
chrisplough is a jewel in the roughchrisplough is a jewel in the roughchrisplough is a jewel in the rough
Send a message via AIM to chrisplough
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
__________________
Chris Plough
MavenWire

www.MavenWire.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old October 3rd, 2007, 14:55
Member
 
Join Date: Mar 2007
Location: Chicago
Posts: 40
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 2
Thanked 1 Time in 1 Post
Rep Power: 0
tangfj is on a distinguished road
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??
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old October 3rd, 2007, 15:42
Member
 
Join Date: Mar 2007
Location: Bedfordshire England
Posts: 83
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 4
Thanked 15 Times in 12 Posts
Rep Power: 3
cunninghamg is on a distinguished road
Send a message via AIM to cunninghamg Send a message via MSN to cunninghamg Send a message via Skype™ to cunninghamg
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old October 3rd, 2007, 20:14
Junior Member
 
Join Date: Jun 2007
Posts: 24
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 6
Thanked 0 Times in 0 Posts
Rep Power: 0
moshe is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old October 4th, 2007, 12:23
Member
 
Join Date: Mar 2007
Location: Bedfordshire England
Posts: 83
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 4
Thanked 15 Times in 12 Posts
Rep Power: 3
cunninghamg is on a distinguished road
Send a message via AIM to cunninghamg Send a message via MSN to cunninghamg Send a message via Skype™ to cunninghamg
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 2 Users Say Thank You to cunninghamg For This Useful Post:
bmj_23 (October 4th, 2007), svenhaul (July 31st, 2008)
Reply


Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Managing Carrier Contracts and Insurance Policy DMOORE Feature Requests and Inquiries 0 October 16th, 2008 20:48
Least Cost Option Vs Fastest Delivery cool_brat Planning 1 September 24th, 2008 16:21
Delete 'Edit' option from smartlinks on shipments new_otm Branding, Screen Sets, XSL/CSS and Translations 2 May 23rd, 2008 20:33
Option Button in Report Parameters Nisha Reports / BI / FTI and Other Analytics 0 August 24th, 2007 14:47
[SOLVED] Installation Error: Security Violation: User:'DBA.ADMIN' has insufficient p chrisplough Installation and Upgrades 4 July 5th, 2007 02:53



All times are GMT. The time now is 13:24.
Copyright © 2006-2009, Open Book Solutions LLC. All rights reserved.


Inactive Reminders By Icora Web Design

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40