Database - RAC/Scalability (MOSC)

MOSC Banner

RAC RMAN backup script not working

edited Feb 3, 2020 4:04AM in Database - RAC/Scalability (MOSC) 10 commentsAnswered

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.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center