RAC RMAN backup script not working
Hi:
We are using oracle version 12.1.0.2 and I have the rman backup script. But it is not working when I try to schedule it in cron job. It works fine when I manually run it. When I export the oracle home with export ORACLE_HOME=/u01/app/oracle/product/12.1.0 and then go to rman and @run_full_backup_gen4prod.rman to run, it runs fine with no issue. So I believe my backup script is fine. But my shell script, when I schedule it to cron job, it will say ORA-12154: TNS:could not resolve the connect identifier specified as if my shell script it does not recognize the ORACLE_BIN variable that I have set in there. Please advise. Thank you.