rman中的ORA-12154: TNS: 无法解析指定的连接标识符

本文介绍了在使用Oracle RMAN时遇到的路径问题及解决方案。主要原因是RMAN的路径发生变化导致无法正常启动。通过手动指定完整的路径或者修改环境变量可以解决该问题。

      刚进入不了rman

 

 


G:\oracle\product\10.2.0\db_1>rman target sys/mzl@jxfgw nocatalog

恢复管理器: Release 10.2.0.1.0 - Production on 星期六 3月 8 10:34:34 2008

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00554: 内部恢复管理器程序包初始化失败
RMAN-04005: 目标数据库中存在错误:
ORA-12154: TNS: 无法解析指定的连接标识符

G:\oracle\product\10.2.0\db_1>

 

 

在网上查了一下,原来是

主要是RMAN的路径变了造成的.

手工直接到%oracle_home/bin/rman 就没有问题.

同时,修改环境变量,问题解决.

 

在ORACLE_HOME/bin/下运行就没问题.

G:\oracle\product\10.2.0\db_1\BIN>rman target sys/mzl@jxfgw nocatalog

恢复管理器: Release 10.2.0.1.0 - Production on 星期六 3月 8 10:36:57 2008

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

连接到目标数据库: JXFGW (DBID=25524211)
使用目标数据库控制文件替代恢复目录

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/12778571/viewspace-231111/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/12778571/viewspace-231111/

b2b-dg:/home/oracle#rman target sys/oracle@ecps auxiliary sys/oracle@ecpsdg Recovery Manager: Release 11.2.0.4.0 - Production on Fri Oct 24 17:26:34 2025 Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved. connected to target database: ECPS (DBID=3593407971) connected to auxiliary database: ECPS (not mounted) RMAN> duplicate target database for standby from active database nofilenamecheck; Starting Duplicate Db at 24-OCT-25 using target database control file instead of recovery catalog configuration for DISK channel 2 is ignored allocated channel: ORA_AUX_DISK_1 channel ORA_AUX_DISK_1: SID=350 device type=DISK contents of Memory Script: { backup as copy reuse targetfile '/home/app2/oracle/11.2.0.4/dbs/orapwecps1' auxiliary format '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/orapwecpsdg' ; } executing Memory Script Starting backup at 24-OCT-25 released channel: ORA_AUX_DISK_1 RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of Duplicate Db command at 10/24/2025 17:26:45 RMAN-05501: aborting duplication of target database RMAN-03015: error occurred in stored script Memory Script RMAN-12001: could not open channel ORA_DISK_1 RMAN-10008: could not create channel context RMAN-10003: unable to connect to target database ORA-12154: TNS:could not resolve the connect identifier specified
最新发布
10-25
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值