The object is initialized twice

【产品名称】oceanbasep社区版

【产品版本】obproxy-3.1.0-1.el7.x86_64.rpm

oceanbase-ce-3.1.0-2.el7.x86_64.rpm

oceanbase-ce-libs-3.1.0-2.el7.x86_64.rpm

【问题描述】ERROR 4005 (HY000): The object is initialized twice

请问如何重新初始化。

Server version: 5.7.25 OceanBase 3.1.0 (r-) (Built May 30 2021 11:21:29)

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.

MySQL [(none)]> set session ob_query_timeout=1000000000; alter system bootstrap ZONE ‘zone1’ SERVER ‘192.168.95.72:2882’ , ZONE ‘zone2’ SERVER ‘192.168.95.74:2882’ , ZONE ‘zone3’ SERVER ‘192.168.95.21 6:2882’;

Query OK, 0 rows affected (0.01 sec)

ERROR 4005 (HY000): The object is initialized twice

MySQL [(none)]>

MySQL [(none)]> set session ob_query_timeout=1000000000; alter system bootstrap ZONE ‘zone1’ SERVER ‘192.168.95.72:2882’ , ZONE ‘zone2’ SERVER ‘192.168.95.74:2882’ , ZONE ‘zone3’ SERVER ‘192.168.95.216:2882’;

Query OK, 0 rows affected (0.00 sec)

ERROR 4005 (HY000): The object is initialized twice

BootStrap失败,建议查看错误日志,纠正后,需要删除生成的数据和日志文件,重新执行BootStrap。可以参考下这篇文章 https://www.oceanbase.com/docs/apsaradb-for-oceanbase/apsaradb-for-oceanbase-2/V2.1/nebg1e

这个链接不存在了还是怎么的,打开没有内容呢

我也是遇到了同样的问题,我并没有执行bootstrap也报了错误:ERROR 4005 (HY000): The object is initialized twice。


还是要请问一下如何重新执行初始化操作,需要把observer关闭然后把所有的数据目录清除吗?