Exforsys

Free 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 stg> I ...

Go Back   Exforsys > Programming Talk > Oracle JDeveloper

Exforsys.com

  #1 (permalink)  
Old 03-12-2008, 06: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, 06: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, 11: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
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB 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 02-11-2008 06:32 PM
Recover Data from Corrupt MS Access Database lokeshm Other DBs 0 06-24-2007 02:53 AM
Linux Frequently Asked Questions with Answers (Part 2 of 6) rkiesling@mainmatter.com Tech FAQ 0 05-03-2004 07:55 AM
MS Windows 32-Bit File Access Meta-FAQ Mike McCormick Tech FAQ 0 04-17-2004 08:27 AM
[FAQ] FileMaker Pro - database for Macintosh and Windows Martin Trautmann Tech FAQ 0 04-17-2004 08:26 AM


All times are GMT -4. The time now is 06:53 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
Copyright 2004 - 2009 Exforsys Inc. All rights reserved.