签到成功

知道了

CNDBA社区CNDBA社区

Oracle 18c Sharding ORA-03783: no new shard to deploy 问题解决方法

2018-10-13 17:23 2578 0 原创 Oracle 18c
作者: dave

搭建Sharding 环境中,在部署过程中提示ORA-02783的错误:http://www.cndba.cn/cndba/dave/article/3082

http://www.cndba.cn/cndba/dave/article/3082

[dave@www.cndba.cn admin]$ gdsctl
GDSCTL: Version 18.0.0.0.0 - Production on Sat Oct 13 17:18:53 CST 2018

Copyright (c) 2011, 2018, Oracle.  All rights reserved.

Welcome to GDSCTL, type "help" for information.

Current GSM is set to SHARDDIRECTOR
GDSCTL>
GDSCTL> deploy
deploy: examining configuration...
deploy: shards configured successfully
GSM Warnings: 
CATALOG:ORA-03783: no new shard to deploy

在MOS上有个bug,可能会存在这个问题,该bug存在12.2版本,在18.1已经修复,我们测试的版本是18.1,所以不应该是这个bug:
Bug 26481301 : ORA-03783 IN RTI 20406487/20378002/20384818/20256061http://www.cndba.cn/cndba/dave/article/3082

进一步推测和shardgroup有关系,因为shard默认的shardgroup是standby的,即使不指定deploy_as选项,默认就是standby。http://www.cndba.cn/cndba/dave/article/3082

http://www.cndba.cn/cndba/dave/article/3082
http://www.cndba.cn/cndba/dave/article/3082http://www.cndba.cn/cndba/dave/article/3082
http://www.cndba.cn/cndba/dave/article/3082

GDSCTL> add shardgroup -shardgroup standby_grp -deploy_as active_standby -region region2
```shell
在搭建环境的时候,我同时创建了2个shardgroup,一个主,一个备,但在添加shard的时候,值给主组添加了shard。如下:
```shell
[dave@www.cndba.cn admin]$ gdsctl
GDSCTL: Version 18.0.0.0.0 - Production on Sat Oct 13 17:18:53 CST 2018

Copyright (c) 2011, 2018, Oracle.  All rights reserved.

Welcome to GDSCTL, type "help" for information.

Current GSM is set to SHARDDIRECTOR
GDSCTL>
GDSCTL> config shard
Name                Shard Group         Status    State       Region    Availability 
----                -----------         ------    -----       ------    ------------ 
sh164               primary_grp         U         Created     region1   PENDING      
sh165               primary_grp         U         none        region1   -            
sh166               primary_grp         U         none        region1   -            

GDSCTL> config shardgroup
Shard Group         Chunks Region              Shard space         
-----------         ------ ------              -----------         
primary_grp         12     region1             shardspaceora       
standby_grp         12     region2             shardspaceora

删除备组或者往备组添加shard,就可以正常部署了:http://www.cndba.cn/cndba/dave/article/3082http://www.cndba.cn/cndba/dave/article/3082

GDSCTL> remove shardgroup -shardgroup standby_grp
The operation completed successfully
GDSCTL> config shardgroup
Shard Group         Chunks Region              Shard space         
-----------         ------ ------              -----------         
primary_grp         12     region1             shardspaceora       

GDSCTL> config shard
Name                Shard Group         Status    State       Region    Availability 
----                -----------         ------    -----       ------    ------------ 
sh164               primary_grp         U         Created     region1   PENDING      
sh165               primary_grp         U         none        region1   -            
sh166               primary_grp         U         none        region1   -            

[dave@www.cndba.cn admin]$ gdsctl
GDSCTL: Version 18.0.0.0.0 - Production on Sat Oct 13 17:18:53 CST 2018

Copyright (c) 2011, 2018, Oracle.  All rights reserved.

Welcome to GDSCTL, type "help" for information.

Current GSM is set to SHARDDIRECTOR
GDSCTL>
GDSCTL> deploy
deploy: examining configuration...
deploy: deploying primary shard 'sh164' ...
Remote job failed with error: 
EXTERNAL_LOG_ID="job_75039_95",
USERNAME="oracle"
For more details:
  select destination, output from all_scheduler_job_run_details
  where job_name='SHARD_SH164_NETCA'
deploy: NETCA failed at destination 'shard1'
deploy: deploying primary shard 'sh165' ...
deploy: network listener configuration successful at destination 'shard2'
deploy: starting DBCA at destination 'shard2' to create primary shard 'sh165' ...
deploy: deploying primary shard 'sh166' ...
deploy: network listener configuration successful at destination 'shard3primary'
deploy: starting DBCA at destination 'shard3primary' to create primary shard 'sh166' ...
deploy: waiting for 2 DBCA primary creation job(s) to complete...
deploy: waiting for 2 DBCA primary creation job(s) to complete...
deploy: waiting for 2 DBCA primary creation job(s) to complete...
deploy: waiting for 2 DBCA primary creation job(s) to complete...
deploy: waiting for 2 DBCA primary creation job(s) to complete...
deploy: waiting for 2 DBCA primary creation job(s) to complete...
deploy: waiting for 2 DBCA primary creation job(s) to complete...
deploy: waiting for 2 DBCA primary creation job(s) to complete...
deploy: waiting for 2 DBCA primary creation job(s) to complete...
deploy: waiting for 2 DBCA primary creation job(s) to complete...
deploy: waiting for 2 DBCA primary creation job(s) to complete...
deploy: waiting for 2 DBCA primary creation job(s) to complete...

版权声明:本文为博主原创文章,未经博主允许不得转载。

用户评论
* 以下用户言论只代表其个人观点,不代表CNDBA社区的观点或立场
dave

dave

关注

人的一生应该是这样度过的:当他回首往事的时候,他不会因为虚度年华而悔恨,也不会因为碌碌无为而羞耻;这样,在临死的时候,他就能够说:“我的整个生命和全部精力,都已经献给世界上最壮丽的事业....."

  • 2262
    原创
  • 3
    翻译
  • 578
    转载
  • 192
    评论
  • 访问:8081907次
  • 积分:4349
  • 等级:核心会员
  • 排名:第1名
精华文章
    最新问题
    查看更多+
    热门文章
      热门用户
      推荐用户
        Copyright © 2016 All Rights Reserved. Powered by CNDBA · 皖ICP备2022006297号-1·

        QQ交流群

        注册联系QQ