- 论坛徽章:
- 0
|
RMAN can not open in Linux,错误:rman: can't open target
在Linux系统中,有时候会发现无法启动rman
如:
rman
[email=target=sys/sys@test]target=sys/sys@test[/email]
会报错
rman: can't open target=sys/sys@test
这纯属一个误会 : )
原因是因为 在linux中,有一个其他工具正好也叫 rman .
解决方法:
[
[email=rollingpig@dbperf]rollingpig@dbperf[/email]
oracle] which rman
/usr/X11R6/bin/rman
[
[email=rollingpig@dbperf]rollingpig@dbperf[/email]
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 之前就可以了运行下面命令:
[
[email=rollingpig@dbperf]rollingpig@dbperf[/email]
oracle] export PATH=$ORACLE_HOME/bin:$PATH
[
[email=rollingpig@dbperf]rollingpig@dbperf[/email]
oracle] rman
[email=target=sys/sys@test]target=sys/sys@test[/email]
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>
-->
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/60453/showart_481307.html |
|