[转帖]ORA-16775错误信息11387-0-0--搜狗_MySQL, Oracle及数据库讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  MySQL, Oracle及数据库讨论区 »
总帖数
2
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 2883 | 回复: 1   主题: [转帖]ORA-16775错误信息11387-0-0--搜狗        上一篇   下一篇 
LarsDash
注册用户
等级:新兵
经验:66
发帖:1
精华:0
注册:2018-10-8
状态:离线
发送短消息息给LarsDash 加好友    发送短消息息给LarsDash 发消息
发表于: IP:您无权察看 2019-9-19 11:21:16 | [全部帖] [楼主帖] 楼主

测试环境:RHEL 5.4 + Oracle 11.2.0.3 DG
现象:起初是在使用DG Broker进行switchover切换测试时,报错ORA-16775,提示有可能有数据丢失,不允许switchover.

DGMGRL> switchover to prod1
Performing switchover NOW, please wait...Error: ORA-16775: target standby database in broker operation has potential data loss

Failed.
Unable to switchover, primary database is still "sbdb1"

进一步查询归档传输情况,发现最新的几个归档都没有传输成功,此时alert还没有报错,但可以通过查询v$archive_dest确认错误信息:

SQL> select error from v$archive_dest where dest_id = 2;ERROR-----------------------------------------------------------------
ORA-00088: command cannot be executed by shared server

错误的提示非常明确了,再看下oerr的帮助:

$ oerr ora 8800088, 00000, "command cannot be executed by shared server "// *Cause:  Debug command issued on shared server.// *Action: Reissue the command using a dedicated server.

问题明确了,处理起来也非常简单,进一步检查发现tnsnames.ora中的配置没有显示指定(SERVER = DEDICATED),而恰好数据库配置了共享连接。所以我们只需要修改显示指定(SERVER = DEDICATED)即可,例如这样:

PROD1 =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = xxx01.example.com)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVER = DEDICATED)      --这里显示指定
      (SERVICE_NAME = PROD1.us.oracle.com)
    )
  )

注意主备库都需要同步修改,修改完成后,没有再进行任何操作,就可以看到之前没有传输的归档自动传输成功。
此时再次进行switchover切换测试就可以成功了。




赞(0)    操作        顶端 
联动大白
注册用户
等级:列兵
经验:91
发帖:0
精华:0
注册:2015-5-27
状态:离线
发送短消息息给联动大白 加好友    发送短消息息给联动大白 发消息
发表于: IP:您无权察看 2019-11-28 0:30:00 | [全部帖] [楼主帖] 2  楼

为了方便大家阅读,我对文章中错误号来解释一下吧!

Error Id: ORA-00088

Title: command cannot be executed by shared server

Description:

command cannot be executed by shared server

Action:

Reissue the command using a dedicated server.

Cause:

Debug command issued on shared server.


Error Id: ORA-16775

Title: target standby database in broker operation has potential data loss

Description:

target standby database in broker operation has potential data loss

Action:

Query the SendQEntries monitorable property on the primary database to see which redo logs are missing. Confirm that the redo transport service on the primary database is functioning correctly by checking its status using the StatusReport monitorable property. Perform log switches on the primary database in order to activate the redo log gap fetching mechanism. Once all redo logs are available on the target standby database, reissue the broker command.

Cause:

The target standby database in the broker operation did not have all the redo logs from the primary database. The switchover or protection mode upgrade to maximum protection could not be performed.


也许你已明白,但对一个人有用也是我存在的理由!^_^ By:持之以恒的大白

-- 来自: 北京联动北方科技有限公司



赞(0)    操作        顶端 
总帖数
2
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论