使用客户端软件GBaseDataStudio连接的时候报Cannot read system catalog (sysusers).

客户在使用GBaseDataStudio时,testuser账户连接报错。问题在于无法读取sysusers系统目录。通过设置GL_USEGLU环境变量解决,禁用该变量并重启数据库后,testuser连接恢复正常。
摘要由CSDN通过智能技术生成

今天客户遇到GBaseDataStudio使用普通用户testuser连接,测试连接正常,但是开始连接的时就会报报Cannot read system catalog (sysusers)。

我远程登陆过去使用gbasedbt连接可以正常连接。使用testuser测试dbaccess 

su - testuser

[gbasedbt@localhost ~]$ dbaccess testdb -

-211    Cannot read system catalog <error-text>.
-103    ISAM error: illegal key descriptor (too many parts or too long).

[gbasedbt@localhost ~]$ finderr 211     通过finderr 211命令,查询报错信息:
    *   DATABASE statement, systables or sysusers not read; the
        database was not selected (no current database; for subsequent
        operations, see error -349). If this error was accompanied by
        ISAM error 103, try setting GL_USEGLU=1 in your environment
        before starting the instance.

检查环境变量发现GL_USEGLU=1


[gbasedbt@localhost ~]$ cat profile.gbaseserver
export GBASEDBTSERVER=gbaseserver
export GBASEDBTDIR=/data/gbase/install
export GBASEDBTSQLHOSTS=/data/gbase/install/etc/sqlhosts.gbaseserver
export ONCONFIG=onconfig.gbaseserver
export PATH=/data/gbase/install/bin:$PATH
export GL_USEGLU=1
export DB_LOCALE=zh_CN.utf8
export CLIENT_LOCALE=zh_CN.utf8
[gbasedbt@localhost ~]$

注释掉export GL_USEGLU=1,并重启数据库onmode -ky ,oninit -vy

使用testuser用户连接GBaseDataStudio,恢复正常

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值