热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

RMAN的“rman:can‘topentarget”错误

在Linux上,安装完成之后,在测试RMAN时可能会遇到如下错误:[oracle@smsdbrac1oracle]$rmantarget/


  在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 -helprman    [-f ]    [-S(ource of man page passed in)] [-F(ormatted man page passed in)]    [-r ] [-l ]    [-V(olume) ] [-U(RLs as hyperlinks)]    [-b (show subsections)] [-k(eep head/foot)]    [-n(ame of man page) ] [-s(ection) ]    [-p(aragraph mode toggle)] [-t(abstops spacing) ]    [-N(ormalize spacing, changebars)] [-y (zap hyphens toggle)]    [-K (declare that page has no breaks)]    [-d(iff) (diff of old page source to incorporate)]    [-M(essage) (included verbatim at end of Name section)]    [-R(ebus words for TkMan)] [-C (enable Tcl/Tk formatting)]    [-o (no op)] [-O (no op with arg)]    [-q(uiet--don't report warnings)] [-h(elp)] [-v(ersion)]    []


  修正这个问题,我们只需要在Oracle用户的环境变量下,将$ORACLE_HOME/bin放在PATH变量前就可以了:

  export PATH=$ORACLE_HOME/bin:${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin

  重新登录使环境变量生效,现在Oracle能找到正确的rman了:

[oracle@smsdbrac1 oracle]$ su - oraclePassword: [oracle@smsdbrac1 oracle]$ which rman~/product/10.2.0/db/bin/rman

 


本文作者:


  在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 -helprman    [-f ]    [-S(ource of man page passed in)] [-F(ormatted man page passed in)]    [-r ] [-l ]    [-V(olume) ] [-U(RLs as hyperlinks)]    [-b (show subsections)] [-k(eep head/foot)]    [-n(ame of man page) ] [-s(ection) ]    [-p(aragraph mode toggle)] [-t(abstops spacing) ]    [-N(ormalize spacing, changebars)] [-y (zap hyphens toggle)]    [-K (declare that page has no breaks)]    [-d(iff) (diff of old page source to incorporate)]    [-M(essage) (included verbatim at end of Name section)]    [-R(ebus words for TkMan)] [-C (enable Tcl/Tk formatting)]    [-o (no op)] [-O (no op with arg)]    [-q(uiet--don't report warnings)] [-h(elp)] [-v(ersion)]    []


  修正这个问题,我们只需要在Oracle用户的环境变量下,将$ORACLE_HOME/bin放在PATH变量前就可以了:

  export PATH=$ORACLE_HOME/bin:${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin

  重新登录使环境变量生效,现在Oracle能找到正确的rman了:

[oracle@smsdbrac1 oracle]$ su - oraclePassword: [oracle@smsdbrac1 oracle]$ which rman~/product/10.2.0/db/bin/rman

 


本文作者:

推荐阅读
author-avatar
无聊的紫布丁
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有