【 使用环境 】生产环境
【 使用版本 】4.0
【问题描述】可能因为和服务器直接断电有关,突然租户root@abc登录报错入附件图,这种情况下请问如何排查,和备份数据?谢谢各位帮忙解答
【附件及日志】

1 个赞
麻烦发下包含登陆报错时段的observer.log
另外4.0版本较老了,建议升级421最新的LTS版本
用诊断工具obdiag 2.5.0 版本的分析一下那段时间的前后几分钟的日志看看
obdiag analyze log --from "2023-10-08 10:25:00" --to "2023-10-08 11:30:00" \
--config obcluster.servers.nodes[0].ip=xx.xx.xx.1 \
--config obcluster.servers.nodes[1].ip=xx.xx.xx.xx.2 \
--config obcluster.servers.global.ssh_username=test \
--config obcluster.servers.global.ssh_password=****** \
--config obcluster.servers.global.home_path=/home/admin/oceanbase
https://www.oceanbase.com/docs/common-obdiag-cn-1000000001491175
解决方案:
sys租户设置internal_sql_execute_timeout
alter system set internal_sql_execute_timeout = “2m”;