- 错误码参考
- SQL标准错误码说明
- 第三方库错误码说明
- GAUSS-00001 -- GAUSS-00100
- GAUSS-00101 -- GAUSS-00200
- GAUSS-00201 -- GAUSS-00300
- GAUSS-00301 -- GAUSS-00400
- GAUSS-00401 -- GAUSS-00500
- GAUSS-00501 -- GAUSS-00600
- GAUSS-00601 -- GAUSS-00700
- GAUSS-00701 -- GAUSS-00800
- GAUSS-00801 -- GAUSS-00900
- GAUSS-00901 -- GAUSS-01000
- GAUSS-01001 -- GAUSS-01100
- GAUSS-01101 -- GAUSS-01200
- GAUSS-01201 -- GAUSS-01300
- GAUSS-01301 -- GAUSS-01400
- GAUSS-01401 -- GAUSS-01500
- GAUSS-01501 -- GAUSS-01600
- GAUSS-01601 -- GAUSS-01700
- GAUSS-01701 -- GAUSS-01800
- GAUSS-01801 -- GAUSS-01900
- GAUSS-01901 -- GAUSS-02000
- GAUSS-02001 -- GAUSS-02100
- GAUSS-02101 -- GAUSS-02200
- GAUSS-02201 -- GAUSS-02300
- GAUSS-02301 -- GAUSS-02400
- GAUSS-02401 -- GAUSS-02500
- GAUSS-02501 -- GAUSS-02600
- GAUSS-02601 -- GAUSS-02700
- GAUSS-02701 -- GAUSS-02800
- GAUSS-02801 -- GAUSS-02900
- GAUSS-02901 -- GAUSS-03000
- GAUSS-03001 -- GAUSS-03100
- GAUSS-03101 -- GAUSS-03200
- GAUSS-03201 -- GAUSS-03300
- GAUSS-03301 -- GAUSS-03400
- GAUSS-03401 -- GAUSS-03500
- GAUSS-03501 -- GAUSS-03600
- GAUSS-03601 -- GAUSS-03700
- GAUSS-03701 -- GAUSS-03800
- GAUSS-03801 -- GAUSS-03900
- GAUSS-03901 -- GAUSS-04000
- GAUSS-04001 -- GAUSS-04100
- GAUSS-04101 -- GAUSS-04200
- GAUSS-04201 -- GAUSS-04300
- GAUSS-04301 -- GAUSS-04400
- GAUSS-04401 -- GAUSS-04500
- GAUSS-04501 -- GAUSS-04600
- GAUSS-04601 -- GAUSS-04700
- GAUSS-04701 -- GAUSS-04800
- GAUSS-04901 -- GAUSS-04999
- GAUSS-05101 -- GAUSS-05200
- GAUSS-05801 -- GAUSS-05900
- GAUSS-05901 -- GAUSS-05999
- GAUSS-06101 -- GAUSS-06200
- GAUSS-50000 -- GAUSS-50999
- GAUSS-51000 -- GAUSS-51999
- GAUSS-52000 -- GAUSS-52999
- GAUSS-53000 -- GAUSS-53999
GAUSS-02001 -- GAUSS-02010
链接复制成功!
GAUSS-02001: "could not fdatasync data file num %d, fd %d: %m"
SQLSTATE: XX000
错误原因:无法sync文件到磁盘,根据%m报错信息确定具体原因。
解决办法:根据报错信息,确定是否为磁盘只读或者为磁盘空间满,根据具体的原因进行修复。
GAUSS-02002: "received incorrect data page checksum at: rnode[%u,%u,%u], blocknum[%u], segno[%u], pageoffset[%u], size[%u], queueoffset[%u/%u]"
SQLSTATE: XX000
错误原因:备机收到主机发送的数据页CRC校验不通过。
解决办法:检查网络环境,确定当前是否存在丢包现象。
GAUSS-02004: "could not receive the ongoing mode infomation from the primary server: %s"
SQLSTATE: XX000
错误原因:备机接收不到主机的运行模式信息。
解决办法:"1. 网络连接超时异常/当前主机业务压力大,调整当前网络环境/调整业务压力。2. 主机异常关闭,检查主机异常关闭原因。"
GAUSS-02005: "invalid response from primary server"
SQLSTATE: XX000
错误原因:备机收到主机发送的系统标识消息长度错误。
解决办法:检查网络环境,确定当前是否存在丢包现象。
GAUSS-02006: "the mode of the remote server must be primary, current is %d"
SQLSTATE: XX000
错误原因:主机当前状态不是处于Primary。
解决办法:通过gs_om -t status --detail命令查询当前一对主备的连接信息,确认与postgresql.conf配置文件中replconninfo1以及replconninfo2字段配置匹配。
GAUSS-02007: "could not receive database system identifier and timeline ID from the primary server: %s"
SQLSTATE: XX000
错误原因:"备机向主机进行system校验,主机返回失败。根据""%s""给出的主备连接返回的错误信息进行处理。"
解决办法:"1. 网络连接超时异常/当前主机业务压力大,调整当前网络环境/调整业务压力。2. 主机异常关闭,检查主机异常关闭原因。"
GAUSS-02008: "database system identifier differs between the primary and standby"
SQLSTATE: XX000
错误原因:"备机向主机进行system校验,主机和备机的唯一标识system ID不同。初步判断为主备第一次建立连接。"
解决办法:需要重建备机,集群环境下CM会在此情况下自动重建备机。
GAUSS-02009: "timeline %u of the primary does not match recovery target timeline %u"
SQLSTATE: XX000
错误原因:"备机向主机进行system校验,主机和备机的当前时间线不同。初步判断为主机发生过备份恢复并切换时间线。"
解决办法:需要重建备机,集群环境下CM会在此情况下自动重建备机。
GAUSS-02010: "could not start DATA streaming: %s"
SQLSTATE: XX000
错误原因:"备机向主机请求开启数据复制失败。根据""%s""给出的主备连接返回的错误信息进行处理。"
解决办法:"1. 网络连接超时异常/当前主机业务压力大,调整当前网络环境/调整业务压力。2. 主机异常关闭,检查主机异常关闭原因。"
