Link to home
Start Free TrialLog in
Avatar of Ricotti
Ricotti

asked on

FRM-40735: POST-QUERY trigger raised unhandled exception ORA-00942 on a multirecord datablock form as a new user.

The user that owns the tables runs the form fine with no errors but when I create a new user and grant privileges and create synonyms for the new user and then run the form as the new user I receive the following error FRM-40735: POST-QUERY trigger raised unhandled exception ORA-00942.

I have granted SELECT, INSERT, UPDATE, DELETE for the tables needed for the form to a new role I created named NETOPS_EMP. I have granted NETOPS_EMP role to my new user. I have logged in as my new user and created synonyms for the tables necessary for the form(matching table names exactly). I have sifted through my post query trigger for any line that might have schema specific path but there is none(which is good). I am kind of at a stuck point, is there any privilege I may be missing?  I have even tried granting the dba role to the new user but I still have the same error. Its gotta a be a rights/privilege issue since the form works perfectly fine as one user and gets an error as a new user.

Thanks for your help!

Ricotti
Avatar of Bigfam5
Bigfam5

Permission through roles can be somewhat tricky.  Try giving the permission directly to the 'new_user' and see if this resolves the error.  Also, you might try giving the REFERENCES privilege
ASKER CERTIFIED SOLUTION
Avatar of Mark Geerlings
Mark Geerlings
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Ricotti

ASKER

Thank you all for the feedback! I ended up recompiling the post query trigger in the form but this time logged in as the new user and blam it pointed me to what it could not see in the database. I had accidentally created an incorrect synonym for the new user. On my original statement CREATE SYNONYM <TABLENAME> FOR <SCHEMA.OOPSWRONGTABLE>. Yeah I pointed to the wrong table for my SYNONYM. :(  Markgeer I always forget about Tableviews, that is a good suggestion which would probably cut down a little bit of the hour glassing.:) The Check1, Check2, Check3 is also a good idea, I will use this if I get really stumped on some code.

Thank you again!

Ricotti