shell script permission denied error
Posted: Sun Apr 24, 2016 6:32 pm
I have an execute command stage in a sequence job. I am running the following command in the execute command stage:
sqlplus Userid/Pwd@SrcName < /fullpath/MySqScript.sql
When I try to execute the sequence job, I get the following error:
seqJob..JobControl (@ExecCmd1): Executed:
sqlplus Userid/Pwd@SrcName < /fullpath/MySqScript.sql;
Reply=1
Output from command ====>
sh: /fullpath/MySqScript.sql: Permission denied
I tried doing the other way as well:
Command: sqlplus
Parameters: Userid/Pwd@SrcName < /fullpath/MySqScript.sql
Same result. The file, MySqScript.sql, has full chmod 777 permissions. Any ideas?
[Note: Title changed since this technically isn't a "SQL Plus" error - Andy]
sqlplus Userid/Pwd@SrcName < /fullpath/MySqScript.sql
When I try to execute the sequence job, I get the following error:
seqJob..JobControl (@ExecCmd1): Executed:
sqlplus Userid/Pwd@SrcName < /fullpath/MySqScript.sql;
Reply=1
Output from command ====>
sh: /fullpath/MySqScript.sql: Permission denied
I tried doing the other way as well:
Command: sqlplus
Parameters: Userid/Pwd@SrcName < /fullpath/MySqScript.sql
Same result. The file, MySqScript.sql, has full chmod 777 permissions. Any ideas?
[Note: Title changed since this technically isn't a "SQL Plus" error - Andy]