今天客户遇到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,恢复正常