database administration - how to schedule a job on Oracle SQL developer to execute shell command "Java -Jar /Home/JavaFile.jar" each one minute? -


i create oracle job runs every 1 minute run command java -jar /home/file_name.jar", using oracle sql developer on windows environment connect oracle db on linux environment.

step 1 need first load java program in oracle can run on jvm installed in oracle database... ref link http://docs.oracle.com/cd/b19306_01/java.102/b14187/chthree.htm

step 2 need create function or procedure run java program say

create or replace function helloworld return varchar2     language java name 'hello.world () return java.lang.string'; 

step 3 need create job or scheduler in oracle run oracle function internally call java method. follow link create job http://docs.oracle.com/cd/e11882_01/server.112/e25494/scheduse.htm#admin12381


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

excel vba - VBA Proxy auto-configuration for http requests -

sql server 2008 - split ssrs expression between 2 words -