Support Questions

Find answers, ask questions, and share your expertise

oozie ssh-action execute command failed

avatar
Contributor

my ssh-action problem is that, run "ls" or"pwd" or "mkdir dirtest" or "java -version" with ssh action is successful. but, when i run "sqlplus","sqlplus user/pass","sqlplus user/pass@localhost/pdb1 @test.sql " is failed and there is not any useful log in "log" tab or "oozie-oozie" directory. and you know i want execute some oracle sql statement bu oozie ssh action. thank you very much.

1 ACCEPTED SOLUTION

avatar
Contributor

hello.everyone.  the first step in ssh-action is "source /home/oracle/bash_profile",and then you can run oracle command. thanks

View solution in original post

2 REPLIES 2

avatar
Super Collaborator

This looks like it is a duplicate of what I already answered in: this thread

avatar
Contributor

hello.everyone.  the first step in ssh-action is "source /home/oracle/bash_profile",and then you can run oracle command. thanks