linux 下 rman can't open target 的报错

把home/oracle下的.bash_profile修改为,$ORACLE_HOME/bin在先,$PATH:$HOME/bin在后,文件内容如下:

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs


unset USERNAME

ORACLE_BASE=/oracle/product/10.2.0/db_1
ORACLE_HOME=$ORACLE_BASE
ORACLE_SID=pixel
LD_LIBRARY_PATH=$ORACLE_HOME/lib
PATH=$ORACLE_HOME/bin

PATH=$PATH:$HOME/bin

export PATH

export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH PATH
export NLS_LANG="american_america.utf8"

你可能感兴趣的:(target)