linux redhat & Oracle

rman创建 DG 备库时报错:ORA-17629

2020-05-13  本文已影响0人  重庆思庄

[oracle@pridb ~]$ rman target / auxiliary sys/oraclesys@sbdb2 

Recovery Manager: Release 11.2.0.1.0 - Production on Wed Jul 24 21:36:45 2013

Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.

connected to target database: pridb (DBID=1818030427)

connected to auxiliary database: sbdb2 (not mounted)

RMAN>

duplicate target database for standby nofilenamecheck

from active database

dorecover

SPFILE

SET db_unique_name = 'sbdb2'

SET log_archive_dest_1 = 'LOCATION=/u01/flash_recovery_area/pridb/archivelog/ VALID_FOR=(ALL_LOGFILES,ALL_ROLES)'

SET log_archive_dest_2 = 'SERVICE=pridb REOPEN=60 VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=pridb'

SET fal_client = 'sbdb2'

SET fal_server = 'pridb'

SET control_files = '/u01/oradata/sbdb2/control01.ctl',' /u01/flash_recovery_area/sbdb2/control02.ctl';

Starting Duplicate Db at 2013/07/24 21:37:08

allocated channel: ORA_AUX_DISK_1

channel ORA_AUX_DISK_1: SID=1 device type=DISK

contents of Memory Script:

{

backup as copy reuse

targetfile '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/orapwpridb' auxiliary format

'/u01/app/oracle/product/11.2.0/dbhome_1/dbs/orapwsbdb2' targetfile

'/u01/app/oracle/product/11.2.0/dbhome_1/dbs/spfilepridb.ora' auxiliary format

'/u01/app/oracle/product/11.2.0/dbhome_1/dbs/spfilesbdb2.ora' ;

sql clone "alter system set spfile= ''/u01/app/oracle/product/11.2.0/dbhome_1/dbs/spfilesbdb2.ora''";

}

executing Memory Script

Starting backup at 2013/07/24 21:37:09

allocated channel: ORA_DISK_1

channel ORA_DISK_1: SID=28 device type=DISK

RMAN-03009: failure of backup command on ORA_DISK_1 channel at 03/23/2020 21:37:10

ORA-17629: Cannot connect to the remote database server

ORA-17627: ORA-12170: TNS: 连接超时; logon denied

ORA-17629: Cannot connect to the remote database server

continuing other job steps, job failed will not be re-runRMAN-00571: ===========================================================

RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============

RMAN-00571: ===========================================================

RMAN-03002: failure of Duplicate Db command at 03/23/2020 21:37:11

RMAN-03015: error occurred in stored script Memory Script

RMAN-03009: failure of backup command on ORA_DISK_1 channel at 03/23/2020 21:37:11

ORA-17629: Cannot connect to the remote database server

ORA-17627: ORA-12170: TNS: 连接超时; logon denied

ORA-17629: Cannot connect to the remote database server

分析:

备库今天才安装,发生TNS访问拒绝,尝试从主库登录备库,发现了TNS-12170的错误。

检查防火墙,发现防火墙没有开启端口,由于是内部使用,暂时把防火墙关闭,问题解决。

解决:

systemctl disable firewalld

systemctl stop firewalld

附:

备库:CENTOS 7.7 +oracle 11.2.0.1

12cOCP认证培训
上一篇 下一篇

猜你喜欢

热点阅读