重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 4317|回复: 0
打印 上一主题 下一主题

[安装] rman创建 DG 备库时报错:ORA-17629

[复制链接]
跳转到指定楼层
楼主
发表于 2020-3-23 21:51:29 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
[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


分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-11-26 23:29 , Processed in 0.105964 second(s), 20 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表