ITPub博客

首页 > Linux操作系统 > Linux操作系统 > RMAN can not open in Linux

RMAN can not open in Linux

原创 Linux操作系统 作者:tonykorn97 时间:2007-09-14 00:00:00 0 删除 编辑

今天发现运行rman的时候出现:

oracle@oracle:~> rman target /
rman: can't open target

搜索一下,发现rollingpig 的文章,马上就解决了!在此表示感谢

rollingpig 具体解决办法如下:


在Linux系统中,有时候会发现无法启动rman

如:

rman target / nocatalog

会报错

rman: can't open target

这纯属一个误会 : )

原因是因为 在linux中,有一个其他工具正好也叫 rman .

运行一下:

[rollingpig@dbperf oracle] which rman

/usr/X11R6/bin/rman


[rollingpig@dbperf oracle] /usr/X11R6/bin/rman target / /usr/X11R6/bin/rman: can't open target

[rollingpig@dbperf oracle] echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/orabin/product/9.2.0/bin

所以,我们需要把ORACLE_HOME/bin的path放在:/usr/X11R6/bin 之前就可以了
[rollingpig@dbperf oracle] export PATH=$ORACLE_HOME/bin:$PATH


[rollingpig@dbperf oracle] rman target / nocatalog

Recovery Manager: Release 9.2.0.6.0 - Production

Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.

connected to target database: PERFSTAT (DBID=3977240740)
using target database controlfile instead of recovery catalog

RMAN>

好了,现在可以正常使用rman 了……

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/312079/viewspace-245764/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2007-12-05

  • 博文量
    1854
  • 访问量
    2088283