Executing commands through java

loading data into tables by using ctl file using java code


String filearra[]= {CTL file name};

for (int i = 0; i < filearra.length; i++)

try


{
String command = "sqlldr databasename/password  control = C:\\ctl file path"+filearra[i]+" log=C:\\log file path  direct=false parallel=true skip_index_maintenance=false;";


Process process = Runtime.getRuntime().exec(command);

} catch (IOException e)


{

e.printStackTrace();

}
 

Comments

Popular Posts