Database Backup and Recovery (MOSC)

MOSC Banner

How to find and set Oracle Environment variables to run RMAN script using crontab (cron job) in AIX

edited Jan 29, 2009 2:19AM in Database Backup and Recovery (MOSC) 7 commentsAnswered
Experts, I need to run cron job under AIX to take backup using RMAN script in a automated way. After calling shell script from cron job, getting error sqlplus not found. Surfeign web found, I need to set oracle environment before calling sqlplus. And the variables are

ORACLE_HOME=
ORACLE_SID=singerdb
ORACLE_TERM=
PATH=
TWO_TASK=
export ORACLE_HOME ORACLE_SID ORACLE_TERM PATH TWO_TASK

But I don't know how to get the values of these variables. Using 'grep | env' oracle I found

LOGIN=oracle
PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:/home/oracle/bin:/usr/bin/X11:/sbin:/u01/app/oracle/product/9.2.0/bin:.

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