Exforsys

Online Training

how to access other schema synonym inside a trigger

This is a discussion on how to access other schema synonym inside a trigger within the Oracle JDeveloper forums, part of the Programming Talk category; I created two schemas:-RMS, STG Two roles:-rmsintg, stgintg rmsintg is associated to RMS stgintg is associated to STG ...


Go Back   Exforsys > Programming Talk > Oracle JDeveloper

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-12-2008, 05:36 AM
Junior Member
 
Join Date: Mar 2008
Posts: 2
mlvarma is on a distinguished road
how to access other schema synonym inside a trigger

I created two schemas:-RMS, STG

Two roles:-rmsintg, stgintg
rmsintg is associated to RMS
stgintg is associated to STG

stg> I created a table S1
stg> Insert, Update, Delete, Select privileges on this (S1) table are granted to rmsintg(RMS user) role.
stg> created a public synonym for S1.

Rms>in this user I created a trigger s1_aiudr_tr
In this trigger there is insert statement
Insert into S1(…..so on)
Here I am getting error “INSuffient privileges”
I’m able to insert into S1 in sql window. But inside a trigger it is firing that error. Could you help me out of this problem.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-12-2008, 05:37 AM
Junior Member
 
Join Date: Mar 2008
Posts: 2
mlvarma is on a distinguished road
Quote:
Originally Posted by mlvarma View Post
I created two schemas:-RMS, STG

Two roles:-rmsintg, stgintg
rmsintg is associated to RMS
stgintg is associated to STG

stg> I created a table S1
stg> Insert, Update, Delete, Select privileges on this (S1) table are granted to rmsintg(RMS user) role.
stg> created a public synonym for S1.

Rms>in this user I created a trigger s1_aiudr_tr
In this trigger there is insert statement
Insert into S1(…..so on)
Here I am getting error “INSuffient privileges”
I’m able to insert into S1 in sql window. But inside a trigger it is firing that error. Could you help me out of this problem.

thanks and regards
ml varma
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-18-2008, 10:49 PM
Junior Member
 
Join Date: Apr 2008
Posts: 2
Flowermyface is on a distinguished road
Post beginning month on the internet

this place is neat i have some friends on this site and they said nobody will pick on me here im quiet and listen. i joined elsewhere and they told me i was a newbie and posted in the wrong area sorry guys i am learning. be nice to me and im sure i can help you somehow thank you

im slowing understanding i never had internet my whole life because my dad was against computers now that im out of the house HAH he cant stop me now
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply


Thread Tools

Posting Rules
You may not post new questions
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
Oracle Enterprise Single Sign-On Write-Up JaySan Oracle Tutorials 0 03-01-2008 02:39 PM
Recover Data from Corrupt MS Access Database lokeshm Other DBs 0 06-24-2007 01:53 AM
Linux Frequently Asked Questions with Answers (Part 2 of 6) rkiesling@mainmatter.com Tech FAQ 0 05-03-2004 06:55 AM
MS Windows 32-Bit File Access Meta-FAQ Mike McCormick Tech FAQ 0 04-17-2004 07:27 AM
[FAQ] FileMaker Pro - database for Macintosh and Windows Martin Trautmann Tech FAQ 0 04-17-2004 07:26 AM


All times are GMT -4. The time now is 01:19 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.