- 错误码参考
- 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-00511 -- GAUSS-00520
链接复制成功!
GAUSS-00511: "source database '%s' is being accessed by other users"
SQLSTATE: 55006
错误原因:当前访问的数据库正在被其他用户访问会话。
解决办法:请检查当前访问的数据库是否正在被其他用户访问,这样会导致数据不一致的情况,需要关闭和退出其他用户访问,并重新尝试登录。
GAUSS-00512: "encoding '%s' does not match locale '%s'"
SQLSTATE: 22023
错误原因:当前创建的数据库指定的字符编码与指定的字符分类得到的字符编码不匹配。
解决办法:请求确认当前创建的数据库指定的字符编码是否指定的字符分类得到的字符编码一致,如果不一致,请在重新创建数据时指定为一致。
GAUSS-00513: "database '%s' does not exist"
SQLSTATE: 3D000
错误原因:DROP DATABASE语法删除一个数据库时,该数据库不存在或者是一个无效的数据库。
解决办法:DROP DATABASE语法删除一个数据库时,请确认当前删除的数据库是否为一个已经创建的有效的数据库。
GAUSS-00514: "cannot drop a template database"
SQLSTATE: 42809
错误原因:试图删除模板数据库template0或template1,为非法操作。
解决办法:系统默认模板数据库template0或template1不能被删除,请重新指定需要删除的数据库。
GAUSS-00515: "cannot drop the currently open database"
SQLSTATE: 55006
错误原因:当前待删除的数据库正在被其他用户打开,不能执行删除操作。
解决办法:请确认当前待删除的数据库是否正在被其他用户打开,并通知用户退出后再次尝试执行删除操作。
GAUSS-00516: "cannot drop the default database"
SQLSTATE: 42809
错误原因:试图删除系统缺省的默认数据库postgres,为无效操作。
解决办法:系统缺省的默认数据库postgres不能被删除,请确认操作是否正确。
GAUSS-00517: "database '%s' is being accessed by other users"
SQLSTATE: 55006
错误原因:当前待删除的数据库正在被其他用户访问。
解决办法:请检查当前待删除的数据库是否正在被其他用户访问,这样会导致数据不一致的情况,需要关闭和退出其他用户访问,并重新尝试删除该数据库。
GAUSS-00518: "Deletion of sequences on database %s not completed"
SQLSTATE: XX000
错误原因:系统内部错误。
解决办法:请联系技术支持工程师提供技术支持。
GAUSS-00519: "permission denied to rename database"
SQLSTATE: 42501
错误原因:当前用户没有权限修改数据库名称。
解决办法:请确认执行当前修改数据库名称操作的用户是否为数据库所有者权限的用户或管理员用户。
GAUSS-00520: "current database cannot be renamed"
SQLSTATE: 0A000
错误原因:非法操作:不能修改正在使用的数据库名称。
解决办法:请确认是否需要修改当前正在使用的数据库名称,该操作为非法操作,请勿修改正在使用的数据库名称。
