rman在SSH報錯
2015-09-15 17:45
281 查看
在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 了。
如:
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 了。
相关文章推荐
- 整数划分系列问题(动态规划)
- Ray Caster Maze
- UIViewController/旋转
- 新贵(NEWMEN)魔键 KB-835U 爽手有线键盘 29.9元
- SortedDictionary
- 【C++】合并两个排序的链表,要求合并后仍然是有序的
- java命名规则
- 二进制求子集
- Linq入门详解(Linq to Objects)
- ie from表单中 a 内部有input 不会跳转
- 脚本加密与解密
- 了解隐式接口和编译期的多态(Effective C++_41)
- iOS开发之 各种传值总结
- BZOJ 1008 [HNOI2008]越狱 (组合数 简单公式)
- 【Linux探索之旅】第三部分第三课:监视系统活动,滴水不漏
- Android之Animation动画的介绍及用法
- 安卓的学习之路Fragment的创建的几种方式
- eclipse mar 创建rest风格webservice ---->针对cxf(未完善)
- 单例模式(一)
- 黑马程序员---Java基础---函数和数组