Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

create trigger issue

Status
Not open for further replies.

maswien

Technical User
Sep 24, 2003
1,286
CA

Hi,

We have an application from vendor that creates a trigger in the database when it's installed.

The SQL like following:

CREATE TRIGGER XXXX.TR_insert
BEFORE INSERT ON XXXX.COMP
FOR EACH ROW
BEGIN
SELECT XXXX.S_COMP.nextval
INTO YYYY.genT.unique_num
FROM dual;
:new.theKey:=YYYY.genT.unique_num;
END;

S_COMP: is a sequence owned by YYYY
genT: a package owned by YYYY

When this sql is run, oracle told me there is compile error, but when I type 'show error', I got nothing. I appreciate any kind of help!!
 
But who is running the trigger? They may need explicit grants to use the package / sequence.
 

Thanks dbtoo2001,

The SYS user who has the DBA role to run this setup script.
 

I was prompted with a login window to ORACLEtechnology network. I don't have password for that
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top