otmfaqForumsBlogsRegister
FAQMembers ListCalendarToday's PostsSearch


 Subscribe Blogs:RSS
 Subscribe Forums:RSS
OTMFAQ Home
OTMFAQ Blogs
OTMFAQ Forums
OTMFAQ Tutorials

OTM SIG
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
Thanks: 6
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 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: 170
Thanks: 4
Thanked 31 Times in 31 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 2
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
Thanks: 6
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 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: 847
Blog Entries: 7
Thanks: 53
Thanked 202 Times in 122 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 10
chrisplough has a spectacular aura aboutchrisplough has a spectacular aura aboutchrisplough has a spectacular aura about
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
Junior Member
 
Join Date: Mar 2007
Location: Chicago
Posts: 28
Thanks: 2
Thanked 1 Time in 1 Post
Groans: 0
Groaned at 0 Times in 0 Posts
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: 58
Thanks: 3
Thanked 10 Times in 9 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 2
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
Thanks: 6
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 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: 58
Thanks: 3
Thanked 10 Times in 9 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 2
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
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
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
Deleting 'send voucher interface' option from screenset Tuuk79 Branding, Screen Sets, XSL/CSS and Translations 4 February 12th, 2008 14:33
Event Time check Arun George Workflow 0 January 17th, 2008 22:06
java.lang.nullpointerexception sknmail@rediffmail.com Branding, Screen Sets, XSL/CSS and Translations 3 September 14th, 2007 14:51
Option Button in Report Parameters Nisha Reports / 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 03:01.
Copyright © 2008, Open Book Solutions LLC. All rights reserved.

Sponsored by MavenWire - MavenWire.com


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