GBase 8s 学习常见问题

28 篇文章 47 订阅
26 篇文章 26 订阅

安装

安装过程中报“The version file is not exist.”错误

出现这个问题的原因可能为操作系统没有unzip命令。当在使用最小化安装的操作系统上安装GBase 8s时,安装程序先要对一些资源进行解压,由于没有unzip,gzip等一些基本命令,可能导致部分资源没有正确解压,在后续的访问中报如“The version file is not exist”类错误。

GBase 8s使用了商业的安装软件制作程序,商业的安装软件没有处理这些异常,GBase 8s安装程序暂时无法捕获这类异常并处理处理。

[root@centos1 install]# ./ids_install 
Preparing to install...
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...

Launching installer...

===============================================================================
GBase Software Bundle                            (created with InstallAnywhere)
-------------------------------------------------------------------------------

Preparing CONSOLE Mode Installation...




===============================================================================
Getting Started
---------------


PRESS <ENTER> TO CONTINUE: 



===============================================================================
The version file is not exist.
------------------------------

The version file is not exist.

PRESS <ENTER> TO ACCEPT THE FOLLOWING (OK): 
[root@centos1 install]# 

安装过程中报“The specified installation path is not secure”错误。

出现这个问题的原因可能为:

  1. 安装目录被设置了过大的权限,导致其它用户有权限写数据库目录中的文件。这对于一个数据库系统来说,是非常严重的安全问题。建议检查安装目录的权限,并将安装目录及上级目录设置为755的权限。
  2. 在使用root用户安装时,指定了一个非root的文件夹,也可能出现上面错误。
The specified installation path is not secure. Either enter a different path or
exit the installation application and run the onsecurity utility.
root: onsecurity  "/opt/GBASE/"
Non root: onsecurity -p "/opt/GBASE/" 

启动数据库时报共享内存错误

安装好GBase 8s后,启动数据库报“Allocating and attaching to shared memory…FAILED”。出现这个错误主要是申请共享内存失败,需要检查两个方面:

  1. 是否已经启动数据库。当数据库实例已经处于运行状态时,再次执行oninit -vy时,会出现这个报错信息。可以使用onstat -命令,检查一下数据库实例的状态。
  2. 服务器中是否运行了其它应用程序,占用了大量的服务器内存,导致GBase 8s 在启动时,由于服务器内存不足而报错。可以使用free -g命令检查一下服务器的可用内存数量。
Your evaluation license will expire on 2022-06-09 12:00:00
oninit: Fatal error in shared memory creation
Reading configuration file '/opt/gbase/etc/onconfig.gbaseserver'...succeeded
Creating /GBASEDBTTMP/.infxdirs...succeeded
Allocating and attaching to shared memory...FAILED

WARNING: server initialization failed or timed out.
Check the message log, online.log, for errors.

应用

执行SQL语句时报“908: Attempt to connect to database server (gbaseserver_36) failed.”错误。

  1. 如果在本地操作GBase 8s 数据库报错,可能是数据库的服务没有启动,可以使用 onstat - 命令查看数据库是否在线。
  2. 如果不是访问本机的GBase 8s,需要检查一下安装GBase 8s 的服务器,是否开启了防火墙。请正确配置防火墙或关闭防火墙后再试。
[gbasedbt@train ~]$ dbaccess - -
Your evaluation license will expire on 2022-06-09 12:00:00
> create database demodb with log;

  908: Attempt to connect to database server (gbaseserver_36) failed.

  201: A syntax error has occurred.
Error in line 1
Near character position 1
> 


选择一个数据库时报“Database not found or no system permission”

当使用gbasedbt启动dbaccess时,出现上述问题,先检查一下,选择的数据库是否已经创建。

> database mydb;

Database closed.


  329: Database not found or no system permission.

  111: ISAM error:  no record found.
Error in line 1
Near character position 12
> 

工具

如何解决dbaccess中不能使用方向键查看历史命令和左右移动问题。

可以使用rlwray处理一下,具体方法参考:

如何解决dbaccess中不能使用方向键查看历史命令和左右移动问题

  • 0
    点赞
  • 14
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值