Home > Back-end >  Using external command to invoke Java oracle data pump backup error
Using external command to invoke Java oracle data pump backup error

Time:09-25

Problem description:
Web project using the Runtime. GetRuntime (). The exec (sysCmd); "Expdp" command oracle database backup in the Windows under normal operation, but Was in a Linux environment after the release of execution has an error: "always run the program" expdp ": the error=2, No to the file or directory"
. I write the same code out alone in a Java class, compile and execute in the Linux environment, can the normal backup, but on the web project using the wrong, but Was released after the newspaper do you have who know the reason?
  • Related