尝试调整Oracle DB 12.2分片配置。有一个DB作为分片目录,另两个DB作为分片。只是要测试此功能,因此在同一ORACLE_HOME中的同一台计算机上运行树DB。使用复合分片方法。
所有事情根据官方文档完成。正如我所见,GDSCTL> config
没有显示任何错误。但是:
GDSCTL>config shard
Name Shard Group Status State Region Availability
---- ----------- ------ ----- ---------- --------
ape002 shrdgrp_oper Ok Replicated reg_oper PENDING
ape003 shrdgrp_arch Ok Replicated reg_arch PENDING
在文档中的示例中,状态为“已部署”,可用性为“在线”和“ READ_ONLY”。每次尝试重新部署时,我都会得到:
GDSCTL>deploy
deploy: examining configuration...
deploy: requesting chunk deployment on shards in shardgroup 'shrdgrp_oper' via GSM ...
deploy: requesting chunk deployment on shards in shardgroup 'shrdgrp_arch' via GSM ...
deploy: shards configured successfully
GSM Warnings:
shrdgrp_oper ape002:ORA-45598: Shard is in converted state , it should be either "PRIMARY" or "PHYSICAL STANDBY".
ORA-06512: at "GSMADMIN_INTERNAL.DBMS_GSM_DBADMIN", line 3865
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 79
ORA-06512: at "GSMADMIN_INTERNAL.DBMS_GSM_DBADMIN", line 3827
ORA-06512: at "GSMADMIN_INTERNAL.DBMS_GSM_DBADMIN", line 3861
ORA-06512: at line 1 (ngsmoci_execute)
shrdgrp_arch ape003:ORA-45598: Shard is in converted state , it should be either "PRIMARY" or "PHYSICAL STANDBY".
ORA-06512: at "GSMADMIN_INTERNAL.DBMS_GSM_DBADMIN", line 3865
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 79
ORA-06512: at "GSMADMIN_INTERNAL.DBMS_GSM_DBADMIN", line 3827
ORA-06512: at "GSMADMIN_INTERNAL.DBMS_GSM_DBADMIN", line 3861
ORA-06512: at line 1 (ngsmoci_execute)
在分片目录中,我得到:
SQL> alter session enable shard ddl;
ERROR:
ORA-02521: attempted to enable shard DDL in a non-shard database
尽管在这两个分片中,alter session
仍然有效。无法找到此“待定”可用性的含义,即等待的内容以及完成该过程所需的操作。
有人可以帮助我使其正常工作吗?