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

 找回密码
 注册

QQ登录

只需一步,快速开始

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

[Oracle] 无法传日志到物理备库,日志报:1017 ORA-16191

[复制链接]
跳转到指定楼层
楼主
发表于 2025-9-15 04:05:25 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
又遇到这个问题,主库老是无法往物理备库传日志,报:

Mon Sep 15 03:40:38 2025
Error 1017 received logging on to the standby
------------------------------------------------------------
Check that the primary and standby are using a password file
and remote_login_passwordfile is set to SHARED or EXCLUSIVE,
and that the SYS password is same in the password files.
      returning error ORA-16191



两边密码一样的

在备库日志文件中,发现以下错误:

Mon Sep 15 03:34:01 2025
Errors in file /u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_ora_6842.trc:
ORA-00604: error occurred at recursive SQL level 1
ORA-16000: database open for read-only access
ORA-06512: at line 19
Mon Sep 15 03:42:36 2025
Errors in file /u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_ora_7815.trc:
ORA-00604: error occurred at recursive SQL level 1
ORA-16000: database open for read-only access
ORA-06512: at line 19



orcl_ora_7815.trc

Error in executing triggers on connect internal
*** 2025-09-15 03:42:36.925
dbkedDefDump(): Starting a non-incident diagnostic dump (flags=0x0, level=0, mask=0x0)
----- Error Stack Dump -----
ORA-00604: error occurred at recursive SQL level 1
ORA-16000: database open for read-only access
ORA-06512: at line 19

*** 2025-09-15 03:43:08.532
*** 2025-09-15 03:43:08.532 1213 krsv.c
krsv_fg_so_init: Cleanup action 1

*** 2025-09-15 03:43:08.532
Stopping background process MMNL

*** 2025-09-15 03:43:09.554
Stopping background process MMON

*** 2025-09-15 03:43:10.578
Managed Recovery: Cancel posted.

*** 2025-09-15 03:43:11.625
ksukia: Starting kill, flags = 1
ksukia: Attempt 1 to kill process oracle@his1, OS id=4582
ksukia: killed 1 out of 1 processes.

*** 2025-09-15 03:43:12.690
ksukia: Starting kill, flags = 1
ksukia: killed 0 out of 0 processes.

*** 2025-09-15 03:43:14.868
*** 2025-09-15 03:43:14.868 1292 krsv.c
krsv_fg_so_delete: Process state object
175439236: Cleanup shutdown
*** 2025-09-15 03:43:14.868 4343 krsh.c
ARCH: Archival disabled due to shutdown: 1089

*** 2025-09-15 03:43:15.891
*** 2025-09-15 03:43:15.891 4343 krsh.c
ARCH: Archival disabled due to shutdown: 1089


看来有什么东西在执行,
看以前帖子,可能有触发器,
执行:
ALTER SYSTEM SET "_system_trig_enabled"=FALSE;

再去查看,发现日志开始执行恢复了。

看来问题解决。

这个问题,说明,备库有触发器,可能导致主库无法向备库传日志。

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

使用道具 举报

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

本版积分规则

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

GMT+8, 2026-4-17 21:21 , Processed in 0.231486 second(s), 20 queries .

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

© 2001-2020

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