Q

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


This was last published in August 2002

Dig Deeper on Oracle database design and architecture

PRO+

Content

Find more PRO+ content and other member only offers, here.

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.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close