I made this script:
sid=test
cat=tcatalog
targetww=`cat /xxx/xxx`
catww=`cat /xxx/xxx`
rman target $targetww@$test catalog $catww@$cat
This connect to the target and catalog rman databases. Next you see is the rman prompt so you can give rman commands. The problem is 'you can see the passwords in de 'ps' list'.
So I made this:
sid=test
cat=tcatalog
targetww=`cat /xxx/xxx`
catww=`cat /xxx/xxx`
rman target << EOF
$targetww@$test
catalog $catww@$cat
EOF
But this does not work. I don't get de rman prompt. Please help.
sid=test
cat=tcatalog
targetww=`cat /xxx/xxx`
catww=`cat /xxx/xxx`
rman target $targetww@$test catalog $catww@$cat
This connect to the target and catalog rman databases. Next you see is the rman prompt so you can give rman commands. The problem is 'you can see the passwords in de 'ps' list'.
So I made this:
sid=test
cat=tcatalog
targetww=`cat /xxx/xxx`
catww=`cat /xxx/xxx`
rman target << EOF
$targetww@$test
catalog $catww@$cat
EOF
But this does not work. I don't get de rman prompt. Please help.