两个 RMAN
今天群里有人问关于 RMAN 的问题,在 RHEL 里,输入 RMAN target / ,提示 rman: can't open target。刚开始一看以为是 target 数据库没有打开,或者没有设置 oracle_sid 之类的环境变量而无法找到 taget 数据库。但总觉得这个错误信息有点奇怪,不像是 RMAN 或者 Oracle 的错误信息。在 google 搜索了一下,终于知道是怎么回事了。
原来 RHEL 自己还带了个 RMAN 命令:
rman: /usr/X11R6/bin/rman /usr/bin/X11/rman
这个 RMAN 是一个开源项目,是将编译的 man pages 转换为可读格式的文件的:
PolyglotMan(1) PolyglotMan(1)
NAME
PolyglotMan, rman - reverse compile man pages from formatted form to a
number of source formats
SYNOPSIS
rman [ options ] [ file ]
DESCRIPTION
PolyglotMan takes man pages from most of the popular flavors of UNIX
and transforms them into any of a number of text source formats. Poly-
glotMan was formerly known as RosettaMan. The name of the binary is
still called rman , for scripts that depend on that name; mnemonically,
just think "reverse man". Previously PolyglotMan required pages to be
formatted by nroff prior to its processing. With version 3.0, it
prefers [tn]roff source and usually produces results that are better
yet. And source processing is the only way to translate tables. Source
format translation is not as mature as formatted, however, so try for-
matted translation as a backup.
In parsing [tn]roff source, one could implement an arbitrarily large
subset of [tn]roff, which I did not and will not do, so the results can
既然知道了原因,那么解决方法也就很明了了:
1.最笨的办法,将操作系统带的那个 RMAN 删除或者改名。
2.在运行 Oracle 的 RMAN 时,给出完整路径
3.修改 Oracle 用户的 .bash_profile,将 $ORACLE_HOME/bin 路径放到 $PATH 的最前面。
参考:
http://www.itpub.net/503204,1.html
http://www.cnoug.org/viewthread.php?tid=94122
Posted by Sky at 01:52 PM | Permalink | comments(1) | Edit | Database
Comments
老兄,我转一下,不介意吧:)
http://hi.baidu.com/archieyao/blog/item/ac2c4c2a820f783b5343c1b7.html
Commented by 匿名 | October 18, 2007 10:02 PM