PL/SQL (MOSC)

MOSC Banner

Oracle Database 11.2 linux can't kill external program started by job

edited Oct 19, 2016 5:00AM in PL/SQL (MOSC) 2 commentsAnswered

I am running Oracle DB 11.2 on RHEL 7. I have tables, procedures, etc. and other things work fine.

I've design a method of starting a java application in the background.

java swing screen calls -> DB procedure which starts external job -> which calls an OS bash script (call it appcontrol) -> which starts a java application.

The java application has a shutdown hook.

If, at the OS command level, I execute the appcontrol script to start the java app and then stop the java app (using SIGTERM and the apps PID), it works fine; shutdown hook gets called, app terminates, no problem.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center