Q
Problem solve Get help with specific problems with your technologies, process and projects.

Calling a Java method from a trigger

I want to call a Java method from a trigger. 1. I have written a trigger upon insertion of a table; it will call a stored procedure of Oracle.
2. I have written a stored procedure in Oracle which will call the Java method. But, it is giving the error that the class file does not exist. What do I have to do?

Can you run your Java stored procedure manually from SQL*Plus? I'd start debugging the problem there. If the Java stored proc can be run manually, then it is most likely a permissions problem. The owner of the trigger must be granted EXECUTE permissions to this Java stored proc directly, not through a role. Triggers and other stored procs cannot see permissions that are granted through a role.

For More Information


Dig Deeper on Oracle database design and architecture

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide.com

SearchDataCenter

SearchContentManagement

SearchHRSoftware

Close