GBase 8s
安装配置
问答

初始化实例时报错

发表于2025-08-26 19:26:29137次浏览3个评论

我在初始化实例时有以下报错,请问有人知道原因及解决方法?

 

 

 

## 日志

gbasedbt@test-host3:/u01/gbase/tmp$ cat online.log

19:13:40  GBase Database Server Started.
19:13:40  Requested shared memory segment size rounded from 4308KB to 4788KB

Tue Aug 26 19:13:42 2025

08/26/25 19:13:42  Requested shared memory segment size rounded from 111337KB to 111340KB
08/26/25 19:13:42  Successfully added a bufferpool of page size 2K.

08/26/25 19:13:42  Requested shared memory segment size rounded from 811337KB to 811340KB
08/26/25 19:13:43  Successfully added a bufferpool of page size 16K.

08/26/25 19:13:43  Event alarms enabled.  ALARMPROG = '/u01/gbase/etc/alarmprogram.sh'
08/26/25 19:13:43  Dynamically allocated new virtual shared memory segment (size 18180KB)
08/26/25 19:13:43  Memory sizes:resident:4788 KB, virtual:973516 KB, no SHMTOTAL limit
08/26/25 19:13:43  Booting Language <c> from module <>
08/26/25 19:13:43  Loading Module <CNULL>
08/26/25 19:13:43  Booting Language <builtin> from module <>
08/26/25 19:13:43  Loading Module <BUILTINNULL>
08/26/25 19:13:48  Initializing vp class vrrp success, classid 24
08/26/25 19:13:48  DR: DRAUTO is 0 (Off)
08/26/25 19:13:48  DR: ENCRYPT_HDR is 0 (HDR encryption Disabled)
08/26/25 19:13:48  Event notification facility epoll enabled.
08/26/25 19:13:48  CCFLAGS2 value set to 0x200
08/26/25 19:13:48  SQL_FEAT_CTRL value set to 0x8008
08/26/25 19:13:48  SQL_DEF_CTRL value set to 0x4b0
08/26/25 19:13:48  GBase Database Server Version 12.10.FC4G1TL Software Serial Number AAA#B000000
08/26/25 19:13:48  Your evaluation license will expire on 2026-08-26 00:00:00

08/26/25 19:13:48  Dynamically allocated new virtual shared memory segment (size 8192KB)
08/26/25 19:13:48  Memory sizes:resident:4788 KB, virtual:981708 KB, no SHMTOTAL limit
08/26/25 19:13:50  GBase Database Server Initialized -- Complete Disk Initialized.
08/26/25 19:13:50  Started 1 B-tree scanners.
08/26/25 19:13:50  B-tree scanner threshold set at 5000.
08/26/25 19:13:50  B-tree scanner range scan size set to -1.
08/26/25 19:13:50  B-tree scanner ALICE mode set to 6.
08/26/25 19:13:50  B-tree scanner index compression level set to med.
08/26/25 19:13:50  Warning: Invalid (non-existent/blobspace/disabled) dbspace listed
           in DBSPACETEMP: 'tempdbs01'
08/26/25 19:13:50  Dataskip is now OFF for all dbspaces
08/26/25 19:13:50  Building 'sysmaster' database ...
08/26/25 19:13:50  Checkpoint Completed:  duration was 0 seconds.
08/26/25 19:13:50  Tue Aug 26 - loguniq 1, logpos 0x424, timestamp: 0xb1 Interval: 2

08/26/25 19:13:50  Maximum server connections 0 
08/26/25 19:13:50  Checkpoint Statistics - Avg. Txn Block Time 0.000, # Txns blocked 1, Plog used 6, Llog used 1

08/26/25 19:13:50  On-Line Mode
08/26/25 19:13:51  listener-thread: err = -956: oserr = 0: errstr = gbasedbt@localhost.localdomain[test-host3]: Client host or user gbasedbt@localhost.localdomain[test-host3] is not trusted by the server.

08/26/25 19:14:31  listener-thread: err = -956: oserr = 0: errstr = gbasedbt@localhost.localdomain[test-host3]: Client host or user gbasedbt@localhost.localdomain[test-host3] is not trusted by the server.

08/26/25 19:14:32  listener-thread: err = -956: oserr = 0: errstr = gbasedbt@localhost.localdomain[test-host3]: Client host or user gbasedbt@localhost.localdomain[test-host3] is not trusted by the server.

08/26/25 19:14:32  listener-thread: err = -956: oserr = 0: errstr = gbasedbt@localhost.localdomain[test-host3]: Client host or user gbasedbt@localhost.localdomain[test-host3] is not trusted by the server.

08/26/25 19:14:32  listener-thread: err = -956: oserr = 0: errstr = gbasedbt@localhost.localdomain[test-host3]: Client host or user gbasedbt@localhost.localdomain[test-host3] is not trusted by the server.

08/26/25 19:14:33  Checkpoint Completed:  duration was 0 seconds.
08/26/25 19:14:33  Tue Aug 26 - loguniq 1, logpos 0x6018, timestamp: 0x66f Interval: 5

08/26/25 19:14:33  Maximum server connections 2 
08/26/25 19:14:33  Checkpoint Statistics - Avg. Txn Block Time 0.000, # Txns blocked 0, Plog used 0, Llog used 2

08/26/25 19:14:33  Error building 'sysmaster' database.
08/26/25 19:14:33  See '/tmp/buildsmi.175187'.
08/26/25 19:14:34  Building 'sysadmin' database ...
08/26/25 19:14:34  Booting Language <spl> from module <>
08/26/25 19:14:34  Loading Module <SPLNULL>
08/26/25 19:14:34  Loading Module <$GBASEDBTDIR/lib/liboracle.udr>
08/26/25 19:14:34  pid 175187: ELF .eh_frame section missing in /u01/gbase/gls/dll/64-libicudata.so.48
08/26/25 19:14:34  The C Language Module </u01/gbase/lib/liboracle.udr> loaded
08/26/25 19:14:35  Loading Module <$GBASEDBTDIR/extend/excompat.1.0/excompat.bld>
08/26/25 19:14:35  pid 175187: ELF .eh_frame section missing in /u01/gbase/gls/dll/64-libicudata.so.48
08/26/25 19:14:35  The C Language Module </u01/gbase/extend/excompat.1.0/excompat.bld> loaded
08/26/25 19:14:35  SCHAPI: SQL Error -329, ISAM Error -111 in file /u01/gbase/etc/sysadmin/db_create.sql at line 20
08/26/25 19:14:35  Error building 'sysadmin' database.
08/26/25 19:14:35  SCHAPI: SQL Error -359, ISAM Error -111 while dropping database sysadmin.
08/26/25 19:14:35  Error building 'sysadmin' database.
08/26/25 19:19:47  Checkpoint Completed:  duration was 0 seconds.
08/26/25 19:19:47  Tue Aug 26 - loguniq 1, logpos 0xd34018, timestamp: 0xddfb Interval: 6

08/26/25 19:19:47  Maximum server connections 2 
08/26/25 19:19:47  Checkpoint Statistics - Avg. Txn Block Time 0.000, # Txns blocked 0, Plog used 7, Llog used 3374

 

初始化实例:

gbasedbt@test-host3:~$ oninit -ivy
Your evaluation license will expire on 2026-08-26 00:00:00
Warning: Parameter duplicated in config file.
Only the first occurrance will be used. (ROOTPATH)
Warning: Parameter duplicated in config file.
Only the first occurrance will be used. (ROOTSIZE)
Warning: Parameter duplicated in config file.
Only the first occurrance will be used. (LTAPEDEV)
Warning: Parameter duplicated in config file.
Only the first occurrance will be used. (PHYSBUFF)
Warning: Parameter duplicated in config file.
Only the first occurrance will be used. (LOGBUFF)
Warning: Parameter duplicated in config file.
Only the first occurrance will be used. (LOCKS)
Warning: Parameter duplicated in config file.
Only the first occurrance will be used. (CLEANERS)
Warning: Parameter duplicated in config file.
Only the first occurrance will be used. (DEF_TABLE_LOCKMODE)
Warning: Parameter duplicated in config file.
Only the first occurrance will be used. (SHMVIRTSIZE)
Warning: Parameter duplicated in config file.
Only the first occurrance will be used. (MULTIPROCESSOR)
Warning: Parameter duplicated in config file.
Only the first occurrance will be used. (STACKSIZE)
Warning: Parameter duplicated in config file.
Only the first occurrance will be used. (DUMPSHMEM)
Warning: Config file contains multiple values for this parameter that are
considered duplicates. Only the first of these values will be used. (VPCLASS)
Warning: Parameter duplicated in config file.
Only the first occurrance will be used. (ALLOW_NEWLINE)
Warning: Parameter duplicated in config file.
Only the first occurrance will be used. (DS_NONPDQ_QUERY_MEM)
Warning: Parameter duplicated in config file.
Only the first occurrance will be used. (TEMPTAB_NOLOG)
Warning: Parameter duplicated in config file.
Only the first occurrance will be used. (USERMAPPING)
Reading configuration file '/u01/gbase/etc/onconfig.gbase01'...succeeded
Creating /GBASEDBTTMP/.infxdirs...succeeded
Allocating and attaching to shared memory...succeeded
Creating resident pool 4310 kbytes...succeeded
Creating infos file "/u01/gbase/etc/.infos.gbase01"...succeeded
Linking conf file "/u01/gbase/etc/.conf.gbase01"...succeeded
Initializing rhead structure...rhlock_t 16384 (512K)... rlock_t (2656K)... Writing to infos file...succeeded
Initialization of Encryption...succeeded
Initializing ASF...succeeded
Initializing Dictionary Cache and SPL Routine Cache...succeeded
Bringing up ADM VP...succeeded
Creating VP classes...succeeded
Forking main_loop thread...succeeded
Initializing DR structures...succeeded
Forking 1 'soctcp' listener threads...succeeded
Starting tracing...succeeded
Initializing 8 flushers...succeeded
Initializing log/checkpoint information...succeeded
Initializing dbspaces...succeeded
Opening primary chunks...succeeded
Validating chunks...succeeded
Creating database partition...succeeded
Initialize Async Log Flusher...succeeded
Starting B-tree Scanner...succeeded
Init ReadAhead Daemon...succeeded
Init DB Util Daemon...succeeded
Initializing DBSPACETEMP list...succeeded
Init Auto Tuning Daemon...succeeded
Checking database partition index...succeeded
Initializing dataskip structure...succeeded
Checking for temporary tables to drop...succeeded
Updating Global Row Counter...succeeded
Forking onmode_mon thread...succeeded
Creating periodic thread...succeeded
Creating periodic thread...succeeded
Starting scheduling system...succeeded
Verbose output complete: mode = 5
 

 

评论

登录后才可以发表评论
hugolin发表于 11个月前
08/26/25 19:14:33 Error building 'sysmaster' database.
08/26/25 19:14:33 See '/tmp/buildsmi.175187'.
看下/tmp/buildsmi.175187文件信息
用户头像
liaosnet发表于 11个月前
listener-thread: err = -956: oserr = 0: errstr = gbasedbt@localhost.localdomain[test-host3]: Client host or user gbasedbt@localhost.localdomain[test-host3] is not trusted by the server.

应当是这个报错,导致的初始化失败。
将所有的IP和主机名对应关系都写入到/etc/hosts中去。
AlvinKam发表于 10个月前
我改用"静默安装",安装成功了