同时新建了一个数据库,输入rman target/后出现错误:

oracle@linux09:~> # rman target/
rman: can't open target/,查阅无数资料后,发现,其实是个小问题,只要设置一下环境变量就可以了!
linux09:/usr/X11R6/bin # su - oracle
-bash: [oracle=oracle]: command not found
linux09:/usr/X11R6/bin # which rman
/usr/X11R6/bin/rman
oracle@linux09:~> export PATH=$ORACLE_HOME/bin:${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin
oracle@linux09:~> rman target/
Recovery Manager: Release 11.1.0.6.0 - Production on 星期一 4月 18 10:12:51 2011
Copyright (c) 1982, 2007, Oracle.  All rights reserved.
connected to target database: ORCL (DBID=1273904753)
RMAN>
  问题顺利解决!!