[SQL*LOADER/JAVA] Cannot run program "SQLLDR
deltawi
Messages postés
14
Statut
Membre
-
deltawi Messages postés 14 Statut Membre -
deltawi Messages postés 14 Statut Membre -
Bonjour,
Je débute en JAVA et je developpe un programme qui est supposé importer des informations depuis un fichier .txt vers ma table. J'ai essayer d'utiliser SQL*LOADER mais ceci me renvoie une erreur. Je Bloque et je ne sais pas comment la résoudre!. Voici le Code utilisée :
try
{
String sqlldrCmd = "SQLLDR CONTROL=C:/Users/HP/Desktop/test.ctl "+
"LOG=C:/Users/HP/Desktop/test.log"+
"DATA=C:/Users/HP/Desktop/test.txt USERID=login/pasword"+
"BAD=C:/Users/HP/Desktop/test.bad ERRORS=999 "+
"LOAD=2000 SKIP=0";
System.out.println("SQLLDR Started");
Runtime rt = Runtime.getRuntime();
Process proc = rt.exec(sqlldrCmd);
System.out.println("SQLLDR Ended");
}
catch (Exception e)
{
e.printStackTrace();
}
ceci me revoie l'erreur suivante :
java.io.IOException: Cannot run program "SQLLDR": CreateProcess error=2, Le fichier spécifié est introuvable
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at com.rgagnon.howto.Exec.main(Exec.java:43)
Caused by: java.io.IOException: CreateProcess error=2, Le fichier spécifié est introuvable
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 5 more
--> J'espère que vous pourriez m'aider. Merci !
Je débute en JAVA et je developpe un programme qui est supposé importer des informations depuis un fichier .txt vers ma table. J'ai essayer d'utiliser SQL*LOADER mais ceci me renvoie une erreur. Je Bloque et je ne sais pas comment la résoudre!. Voici le Code utilisée :
try
{
String sqlldrCmd = "SQLLDR CONTROL=C:/Users/HP/Desktop/test.ctl "+
"LOG=C:/Users/HP/Desktop/test.log"+
"DATA=C:/Users/HP/Desktop/test.txt USERID=login/pasword"+
"BAD=C:/Users/HP/Desktop/test.bad ERRORS=999 "+
"LOAD=2000 SKIP=0";
System.out.println("SQLLDR Started");
Runtime rt = Runtime.getRuntime();
Process proc = rt.exec(sqlldrCmd);
System.out.println("SQLLDR Ended");
}
catch (Exception e)
{
e.printStackTrace();
}
ceci me revoie l'erreur suivante :
java.io.IOException: Cannot run program "SQLLDR": CreateProcess error=2, Le fichier spécifié est introuvable
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at com.rgagnon.howto.Exec.main(Exec.java:43)
Caused by: java.io.IOException: CreateProcess error=2, Le fichier spécifié est introuvable
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 5 more
--> J'espère que vous pourriez m'aider. Merci !