Calling a SQL script from another SQL script: Suppose we have two script files, main.sql and sub.sql. To call sub.sql from main.sql write in main.sql: @sub.sql The SQL code in sub.sql will be run as if it is written in main.sql Calling a java method from a shell script: We can only call main method of a class, by running that class with a java command line execution. #!/bin/ksh # Here I have already compiled Test.java echo "Running Test" java Test Calling a shell script from a Java method: You can run it using exec method of Runtime Object. Sample code: import java.util.*; import java.io.*; class Execx{ public static void main(String args[]) { Runtime r=Runtime.getRuntime(); try{ r.exec("javaex.sh"); }catch(IOException e){ e.printStackTrace(); } } } But check this link also: http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html Calling a stored procedure from Java: The following code puts the SQL statement into a string...