Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RDA execution

Status
Not open for further replies.

grapes12

Technical User
Mar 2, 2010
124
ZA
Morning guys,

I am running oracle 11g, on solaris 10.
I need to run the rda.sh script everyday, via a crontab.Problem is it needs operator intervention to type in the password, how can I pass the password in the script?

Any help will be much appreciated
 
setup this script
Code:
#!/bin/ksh

export ORAENV_ASK=NO
export ORACLE_SID=MAC
PATH=$PATH:/usr/local/bin
. oraenv
unset ORAENV_ASK

PASS="sun8"
WORKDIR=/u1/oracle/product/11.2.0/db_1/rda
echo "$PASS" | $WORKDIR/rda.sh -v > $WORKDIR
But not accepting password
Any help will be highly appreciated
 

Try using "expect".
[3eyes]

----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
I missed the message from LKBrwnDBA. Sorry

Bill
Lead Application Developer
New York State, USA
 
Morning,

We dont have expect on our Solaris box.
Is there any other way?
 
no one does, you have your system administrator download and install it. every linux box I have used has had it installed.

Bill
Lead Application Developer
New York State, USA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top