cron에서 sqlplus: command not found
단순히 shell 파일을 실행시킬 경우 문제없이 잘 된다.그러나 크론으로 실행시켰을 경우 sqlplus 명령어를 찾을 수 없다는 메세지가 뜬다.메세지는 크론메일로 확인이 가능하다.(/var/spool/mail/계정)sqlplus: command not found 결론부터 말하자면, 환경변수가 맞지 않아서이다.실행되는 계정의 환경변수를 변경해주기도 하지만, 대부분 shell 파일에 환경변수를 재설정하여 사용하는 것 같다. 나같은 경우는 path를 지정해주지 않았음. export ORACLE_SID=PRODexport ORACLE_BASE=/oracleexport ORACLE_OWNER=oracleexport ORACLE_HOME=/oracle/product/10.2.0export PATH=$PATH:$OR..
2013.08.22