Automate rman login with shell script

  • From: sundar mahadevan <sundarmahadevan82@xxxxxxxxx>
  • To: Oracle-L@xxxxxxxxxxxxx
  • Date: Fri, 9 Dec 2011 15:38:09 -0500

Hi All,
I have done the following similar with sqlplus -s but cant get this for
rman. Not sure what i am doing wrong. i tried it with "echo -e" as well but
cant get it to work. Has anyone got this to work? Thanks in advance.
cmd="rman target sys@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx auxiliary
sys@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx@/u01/app/oracle/sm/build_cricprodls.rcv
<<EOF\n
PasswordOfPrim\n
PasswordOfLogstdby\n
EOF"

eval "$cmd"


--
//www.freelists.org/webpage/oracle-l


Other related posts: