[Operation and Maintenance|Database] When the database is migrated to the Jincang database, the reason why the sys_user table reports an error

references

Jincang database fields_Jincang database KingBase8 migration SQL problem summary ,
kingbase database cannot find self-defined SYS_USER and other tables

reason

The table sys_user exists in the database, and the system table sys_user exists in the Renmin University Jincang database. The table conflict causes the system table sys_user to be queried when querying in the code, not the table we built.

Solution: Set ordinary users to ignore system tables. system log in to the database and execute:

alter system set search_path = "$USER", PUBLIC,SYS_CATALOG;
select sys_reload_conf();  #这个语句是让上面的命令生效的。

Guess you like

Origin blog.csdn.net/macaiyun0629/article/details/133277497