If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > uSERNAME IN DB TRIGGERS.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-01-03, 01:45
gln_gln_48 gln_gln_48 is offline
Registered User
 
Join Date: Feb 2003
Location: hyderabad
Posts: 6
Post uSERNAME IN DB TRIGGERS.

I am using Oracle 8.0.3.0

I have 2 users scott and tom

both are having the same emp table.

I created a trigger on scott.emp for auditing and wants to update tom emp table simultanously.

So i tried to write

if inserting then
delete from tom.emp where emp_code =:new.emp_code;
insert into tom.emp (select * from ...);
end if;

User tom is not accepting?

Cam you kindly give the way.

The user is having every right to do that. I tried in sql it is working


gln
Reply With Quote
  #2 (permalink)  
Old 03-02-03, 15:25
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 5,171
Re: uSERNAME IN DB TRIGGERS.

It should work OK. What error are you getting?
__________________
Tony Andrews
http://tinyurl.com/tonyandrews
Reply With Quote
  #3 (permalink)  
Old 03-03-03, 05:08
NoviceNo1 NoviceNo1 is offline
Registered User
 
Join Date: Jan 2003
Location: Woking
Posts: 107
Re: uSERNAME IN DB TRIGGERS.

Quote:
Originally posted by andrewst
It should work OK. What error are you getting?
Hi,
As Andrewst suggested, the error is needed to identify the
problem. But assuming that you are getting " table or view
does not exist error".
All you have to do is login to tom and give access to the emp table
to scott.

SQL>connect tom/password@db_name

SQL> grant all on emp to scott;

Hope it Helps.
__________________
nn
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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