nohup error

$nohup ./rmanbkp.sh
nohup: cannot run command ‘./rmanbkp.sh’: Permission denied
$chmod +x rmanbkp.sh
$nohup ./rmanbkp.sh
nohup: appending output to ‘nohup.out’
nohup: cannot run command ‘./rmanbkp.sh’: No such file or directory
The first line in rmanbkp.sh was
#!/usr/bin/sh
It might be a shell problem. Check ksh path
$which ksh
/bin/ksh
Change it to
#!/bin/ksh
Or, it might be a path problem. Check sh path
$which sh
/bin/sh
Change it to
#!/bin/sh
Reference:
1. http://docs.jach.hawaii.edu/JAC/JACUN/008.0/node42.html
2. http://www.gammon.com.au/forum/?id=8009&page=1

RMAN: can’t open target

$rman target / catalog
rman: can’t open target % ERROR INFO
Because there is another rman file in the system (use which to see the file location as follows). The ORACLE rman is in $ORACLE_HOME/bin.
$which rman
/usr/X11R6/bin/rman
Two ways to solve this problem:
1) Put $ORACLE_HOME/bin at the very beginning of $PATH in your environment
2) run [...]