RMAN can not open in Linux

tonykorn97發表於2007-09-14

今天發現執行rman的時候出現:

:~> 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部落格 ” ,連結:http://blog.itpub.net/312079/viewspace-245764/,如需轉載,請註明出處,否則將追究法律責任。

相關文章