红联Linux门户
Linux帮助

RMAN的"rman: can't open target"错误

发布时间:2008-04-25 21:22:01来源:红联作者:weidrson
在Linux上,安装完成之后,在测试RMAN时可能会遇到如下错误:

[oracle@smsdbrac1 oracle]$ rman target /
rman: can't open target

这是由于调用的是非Oracle的RMAN的缘故:

[oracle@smsdbrac1 oracle]$ which rman
/usr/X11R6/bin/rman

在X11R6下存在一个名为rman的命令:

[oracle@smsdbrac1 bin]$ ./rman -help
rman
[-f ]
[-S(ource of man page passed in)] [-F(ormatted man page passed in)]
[-r ] [-l ] <br> [-V(olume) <colon-separated list>] [-U(RLs as hyperlinks)] <br> [-b (show subsections)] [-k(eep head/foot)] <br> [-n(ame of man page) <string>] [-s(ection) <string>] <br> [-p(aragraph mode toggle)] [-t(abstops spacing) <number>] <br> [-N(ormalize spacing, changebars)] [-y (zap hyphens toggle)] <br> [-K (declare that page has no breaks)] <br> [-d(iff) <file> (diff of old page source to incorporate)] <br> [-M(essage) <text> (included verbatim at end of Name section)] <br> [-R(ebus words for TkMan)] [-C (enable Tcl/Tk formatting)] <br> [-o (no op)] [-O <arg> (no op with arg)] <br> [-q(uiet--don't report warnings)] [-h(elp)] [-v(ersion)] <br> [<filename>] <br> <br>修正这个问题,我们只需要在Oracle用户的环境变量下,将$ORACLE_HOME/bin放在PATH变量前就可以了: <br> <br>export PATH=$ORACLE_HOME/bin:${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin <br> <br>重新登录使环境变量生效,现在Oracle能找到正确的rman了: <br> <br>[oracle@smsdbrac1 oracle]$ su - oracle <br>Password: <br>[oracle@smsdbrac1 oracle]$ which rman <br>~/product/10.2.0/db/bin/rman </div> </div> <div class="jiaocheng"> <div class="wenzhang"> 文章评论 </div> <div class="post_content"> <div class="responsesWrapper"> <h3 class="comments-title">共有 <span class="commentCount">0</span> 条评论</h3> <ol class="commentlist"> </ol> <ol class="commentlist"> <li class="comment"> <div class="media"> </div> </li> </ol> <div class="respond" role="form"> <form action="" method="post" class="commentform"> <textarea class="form-control" rows="3" id="comment" onkeydown="if(event.ctrlKey&&event.keyCode==13){document.getElementById('submit').click();return false};" placeholder="当你的才华还撑不起你的野心时,那你就应该静下心来评论下..." tabindex="1" name="comment"></textarea> <div class="commentform-info"> <label id="author_name" for="author"> <input class="form-control" id="author" type="text" tabindex="2" value="" name="author" placeholder="昵称[必填]" required=""> </label> </div> <div class="btn-group commentBtn" role="group"> <input name="submit" type="submit" id="submit" class="btn btn-sm btn-danger btn-block" value="发表评论"> </div> <input type="hidden" name="tid" value="88246"> </form> </div> </div> </div> </div> <div class="jiaocheng pindaosuiji"> <h3>频道文章</h3> <ul class="linuxdiyfwenzhang"> <li><a href="view_9909.html" target="_blank">Oracel实例恢复详细分析总汇</a></li> <li><a href="view_10713.html" target="_blank">图解MySQL数据库的安装和操作</a></li> <li><a href="view_11363.html" target="_blank">Oracle 10G 中的“回收站”</a></li> <li><a href="view_11977.html" target="_blank">给SQL Server 2005学习者的建议</a></li> <li><a href="view_12181.html" target="_blank">Oracle 深入分析性能调整的四个误区</a></li> <li><a href="view_12991.html" target="_blank">SQL数据操作基础(初级)3</a></li> <li><a href="view_15824.html" target="_blank">mysql 4.0.21安装经验谈</a></li> <li><a href="view_17067.html" target="_blank">教你怎么样卸载Oracle 9i</a></li> <li><a href="view_18125.html" target="_blank">oracle exp/imp命令详解</a></li> <li><a href="view_18941.html" target="_blank">Oracle数据库自动启动失灵</a></li> </ul> </div> </div> <div class="linuxtuijian"> <div class="tbox"> <h3>最新教程</h3> <ul class="tuijianjiaocheng"> <li><a href="view_570122.html" target="_blank">在Ubuntu、Debian上安装Endless Sky</a></li> <li><a href="view_570121.html" target="_blank">改写函数提高SQL效率的研究</a></li> <li><a href="view_569211.html" target="_blank">阿里云发布自研商用关系型数据库POLARDB</a></li> <li><a href="view_436217.html" target="_blank">Mysql主从备份下,主写入十万条数据,从服务器有一条没写入怎么发现</a></li> <li><a href="view_424245.html" target="_blank">马哥linux门徒计划2.0震撼上市,加量不加价!</a></li> <li><a href="view_423876.html" target="_blank">谁有linux 安装Oracle必须的rpm包?</a></li> <li><a href="view_420324.html" target="_blank">Linux精品之捕捉mysql中不可忽视的知识点(一)</a></li> <li><a href="view_420120.html" target="_blank">马哥linux分享之捕捉mysql中不可忽视的知识点</a></li> <li><a href="view_416106.html" target="_blank">国内有没有免费的数据库软件?</a></li> <li><a href="view_413350.html" target="_blank">Oracle学习路线图及建议</a></li> </ul> </div> </div> <div class="linuxtuijian"> <div class="tbox"> <h3>随机推荐</h3> <ul class="tuijianjiaocheng"> <li><a href="view_4791.html" target="_blank">在UNIX系统下安装MySQL</a></li> <li><a href="view_6067.html" target="_blank">安装MySQL(UNIX)</a></li> <li><a href="view_8778.html" target="_blank">让服务进程中自动加载Mysql服务</a></li> <li><a href="view_9675.html" target="_blank">如何学习Oracle?</a></li> <li><a href="view_9909.html" target="_blank">Oracel实例恢复详细分析总汇</a></li> <li><a href="view_12713.html" target="_blank">手工安装Oracle全文检索工具</a></li> <li><a href="view_16115.html" target="_blank">MySQL手册版本 5.0.20-MySQL优化(三)</a></li> <li><a href="view_16116.html" target="_blank">MySQL手册版本 5.0.20-MySQL优化(二)</a></li> <li><a href="view_16585.html" target="_blank">Oracle SOA Suite 开发者预览版发布</a></li> <li><a href="view_16691.html" target="_blank">解除数据表的锁定</a></li> </ul> </div> </div> </div> <div class="footer"> <p> <a href="http://www.linuxdiyf.com/about/" target="_blank" rel="nofollow">关于我们</a> | <a href="http://www.linuxdiyf.com/about/hezuo.htm" target="_blank" rel="nofollow">合作</a> | <a href="http://www.linuxdiyf.com/about/contact.htm" target="_blank" rel="nofollow">联系我们</a> </p> <p> © linuxdiyf.com 红联Linux门户 版权所有 </p> <script> (function(){ var bp = document.createElement('script'); bp.src = '//push.zhanzhang.baidu.com/push.js'; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </div> </body> </html>