7 Replies Latest reply on Apr 8, 2014 8:56 PM by rp0428

    I can´t execute an shell script called from a java class


      Hello everybody,


      My java class doesn't execute a shell sript,

      I had given the java io file permission read and execute  over the script shell to the user who execute the java class, also I executed the script shell  in the console each RAC server using oracle user session and the srcript shell works. My team DBA told me that " The user server process is oracle".

      My script shell resides in all RAC server file system

      the last result looks as follows:


      No Funcionando!!

      java.io.IOException: /home/gi91591/reppostpago/bin/compacta_archivo.sh not found

              at java.lang.OracleProcess.create(Native Method)

              at java.lang.OracleProcess.construct(OracleProcess.java:111)

              at java.lang.OracleProcess.<init>(OracleProcess.java:41)

              at java.lang.OracleProcess.start(OracleProcess.java:381)

              at java.lang.ProcessBuilder.start(ProcessBuilder.java:483)

              at java.lang.Runtime.exec(Runtime.java:591)

              at java.lang.Runtime.exec(Runtime.java:429)

              at java.lang.Runtime.exec(Runtime.java:326)

              at BIC_JAV_UTIL.RunThis(BIC_JAV_UTIL:16)

      of course, the script file exist on my file system, it has the suitable permission as the test result i got each time I executed on the console.

      My Oracle version is on Rac ASM.


      A appreciate any Idea you could send me.