ORACLE-FAQ:rman:can't open target
2014-05-14 12:09
295 查看
在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 <ASCII|roff|TkMan|Tk|Sections|HTML|XML|MIME|LaTeX|LaTeX2e|RTF|pod>]
[-S(ource of man page passed in)] [-F(ormatted man page passed in)]
[-r <man reference printf string>] [-l <title printf string>]
[-V(olume) <colon-separated list>] [-U(RLs as hyperlinks)]
[-b (show subsections)] [-k(eep head/foot)]
[-n(ame of man page) <string>] [-s(ection) <string>]
[-p(aragraph mode toggle)] [-t(abstops spacing) <number>]
[-N(ormalize spacing, changebars)] [-y (zap hyphens toggle)]
[-K (declare that page has no breaks)]
[-d(iff) <file> (diff of old page source to incorporate)]
[-M(essage) <text> (included verbatim at end of Name section)]
[-R(ebus words for TkMan)] [-C (enable Tcl/Tk formatting)]
[-o (no op)] [-O <arg> (no op with arg)]
[-q(uiet--don't report warnings)] [-h(elp)] [-v(ersion)]
[<filename>]
修正这个问题,我们只需要在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 - oracle
Password:
[oracle@smsdbrac1 oracle]$ which rman
~/product/10.2.0/db/bin/rman
-The End-
[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 <ASCII|roff|TkMan|Tk|Sections|HTML|XML|MIME|LaTeX|LaTeX2e|RTF|pod>]
[-S(ource of man page passed in)] [-F(ormatted man page passed in)]
[-r <man reference printf string>] [-l <title printf string>]
[-V(olume) <colon-separated list>] [-U(RLs as hyperlinks)]
[-b (show subsections)] [-k(eep head/foot)]
[-n(ame of man page) <string>] [-s(ection) <string>]
[-p(aragraph mode toggle)] [-t(abstops spacing) <number>]
[-N(ormalize spacing, changebars)] [-y (zap hyphens toggle)]
[-K (declare that page has no breaks)]
[-d(iff) <file> (diff of old page source to incorporate)]
[-M(essage) <text> (included verbatim at end of Name section)]
[-R(ebus words for TkMan)] [-C (enable Tcl/Tk formatting)]
[-o (no op)] [-O <arg> (no op with arg)]
[-q(uiet--don't report warnings)] [-h(elp)] [-v(ersion)]
[<filename>]
修正这个问题,我们只需要在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 - oracle
Password:
[oracle@smsdbrac1 oracle]$ which rman
~/product/10.2.0/db/bin/rman
-The End-
相关文章推荐
- ORACLE RMAN 命令三
- [翻译自mos文章]Oracle多租户选项-12c,FAQ
- Oracle RMAN 备份及不完全恢复(删除archievelog)
- Oracle 10G 新特性——RMAN
- 基于Linux下 Oracle 备份策略(RMAN)
- Oracle SQL FAQ
- Oracle 单实例 迁移到 RAC 实例 -- 使用RMAN 异机恢复
- Oracle RMAN恢复带有OFFLINE数据文件的数据库
- [转]Oracle DB 使用RMAN将数据库移植到ASM存储区
- 探索ORACLE之RMAN_02基本使用
- Oracle 使用RMAN COPY 移动 整个数据库 位置 示例
- 比较简单windows系统不用RMAN的oracle数据库热备脚本
- ORACLE RMAN备份--差异增量与累积增量的策略实例图
- Oracle 11gR2 使用 RMAN duplicate from active database 复制数据库
- oracle rman命令总结
- Oracle 利用RMAN 完成数据迁移
- Oracle Faq(如何在ORACLE中更改表的列名和顺序 )
- Oracle RMAN 实践
- 完整的oraclerman备份恢复的例子
- oracle 12c:新特性-RMAN中的表恢复和分区恢复