当前位置:网站首页>[informix] Resolving startup errors and solutions
[informix] Resolving startup errors and solutions
2022-08-05 04:14:00 【little panic】
目录
2、Create backup logical log files
一、启动命令
oninit -ivy
查看日志:onstat -m(This statement is only displayed20Line log to see the full log attmp下)
二、报错1(Stack benefits)
报错内容
[[email protected] informix]$ oninit -ivy
bad INFORMIXSERVER[[email protected] informix]$ cd data/
shared memory not initialized for INFORMIXSERVER '<NULL>'
解决1
1、修改 "~/.bash_profile"文件,加入如下环境变量
vi . bash_profile
export INFORMIXDIR=/opt/IBM/Informix_Software_Bundle
export INFORMIXSQLHOSTS=$INFORMIXDIR/etc/sqlhosts
export ONCONFIG=onconfig.tramsserver
export INFORMIXSERVER=tramsserver
export PATH=$INFORMIXDIR/bin:.:$PATH
2、保存后执行
source .bash_profile
三、报错2(权限不对)
报错内容
[[email protected] ~]$ oninit -v
attn: Ignoring unknown or deprecated config parameter (PHYSDBS)
Reading configuration file '/opt/informix//etc/onconfig.tramsserver'...succeeded
Allocating and attaching to shared memory...succeeded
Creating resident pool 4310 kbytes...succeeded
Creating infos file "/opt/informix//etc/.infos.tramsserver"...succeeded
Linking conf file "/opt/informix//etc/.conf.tramsserver"...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
Initializing encryption-at-rest if necessary...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 SDS Server network connections...succeeded
Initializing log/checkpoint information...succeeded
Initializing dbspaces...succeeded
Opening primary chunks...FAILED
oninit: Fatal error in shared memory initialization
WARNING: server initialization failed or timed out.
Check the message log, online.log, for errors.查看日志
23:59:37 The chunk '/opt/informix/data/rootdbs' must have READ/WRITE permissions for owner (600).
23:59:37 oninit: Fatal error in shared memory initialization
解决2
[[email protected] data]$ cd /opt/informix/data/
[[email protected] data]$ chmod 600 rootdbs
四、报错3(Logical log is full)
报错内容
Initializing DBSPACETEMP list...succeeded
解决3
1、View the logical log
[[email protected] ~]$ onstat -l
IBM Informix Dynamic Server Version 12.10.FC9DE -- Fast Recovery -- Up 00:16:18 -- 148084 Kbytes
Physical Logging
Buffer bufused bufsize numpages numwrits pages/io
P-2 0 64 0 0 0.00
phybegin physize phypos phyused %used
1:263 25000 7819 0 0.00
Logical Logging
Buffer bufused bufsize numrecs numpages numwrits recs/pages pages/io
L-2 0 32 1 1 1 1.0 1.0
Subsystem numrecs Log Space used
OLDRSAM 1 44
Buffer Waiting
Buffer ioproc flags
L-2 0 0x21 0
address number flags uniqid begin size used %used
44d04f88 1 U------ 1 1:25263 5000 5000 100.00
44afef68 2 U------ 2 1:30263 5000 5000 100.00
44bb8f40 3 U------ 3 1:35263 5000 5000 100.00
44bb8fa8 4 U------ 4 1:40263 5000 5000 100.00
44ce8c50 5 U------ 5 1:45263 5000 5000 100.00
44ce8cb8 6 U---C-L 6 1:50263 5000 4999 99.98
6 active, 6 total2、Create backup logical log files
[[email protected] informix]$ mkdir Logicallog_bak
[[email protected] informix]$ cd Logicallog_bak/
[[email protected] Logicallog_bak]$ touch 20220801
[[email protected] Logicallog_bak]$ ll
总用量 0
-rw-rw-r-- 1 informix informix 0 8月 2 00:54 20220801
[[email protected] Logicallog_bak]$ chmod 600 20220801
[[email protected] Logicallog_bak]$
3、Modify the backup file path
cd /opt/informix/etc
vim onconfig.tramsserver
LTAPEDEV /opt/informix/Logicallog_bak/20220801
或者LTAPEDEV /dev/null
4、Perform automatic backups
[[email protected] Logicallog_bak]$ ontape -a
Performing automatic backup of logical logs.
Please mount tape 1 on /opt/informix/Logicallog_bak/20220801 and press Return to continue ...
Logbackup failed - No log backup allowed during recovery.
This tape contains no log data
Program over.
五、报错4(err = -951)
报错内容
5:17:03 Get Shadow Password for user [informix] failed!
15:17:03 Check for password aging/account lock-out.
15:17:03 listener-thread: err = -951: oserr = 0: errstr = [email protected]: Incorrect password or user [email protected] is not kno.
解决4
/etc/shadowPermissions are too dead,修改/etc/shadow其它用户可读,But this is not the final solution!
The ultimate reason is to implement it yourselfchown -R informix:informix /home/informix Changed some file permissions inside.
解决办法:重装!!!
六、重启
[[email protected] data]$ oninit -vy
attn: Ignoring unknown or deprecated config parameter (PHYSDBS)
Reading configuration file '/opt/informix//etc/onconfig.tramsserver'...succeeded
Allocating and attaching to shared memory...succeeded
Creating resident pool 4310 kbytes...succeeded
Creating infos file "/opt/informix//etc/.infos.tramsserver"...succeeded
Linking conf file "/opt/informix//etc/.conf.tramsserver"...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
Initializing encryption-at-rest if necessary...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 SDS Server network connections...succeeded
Initializing log/checkpoint information...succeeded
Initializing dbspaces...succeeded
Opening primary chunks...succeeded
Validating chunks...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 VP cache drain thread...succeeded
Creating limits manager thread...succeeded
Starting scheduling system...succeeded
Verbose output complete: mode = 5边栏推荐
猜你喜欢

Mysql的undo log详解

小程序_动态设置tabBar主题皮肤
![[BJDCTF2020]EasySearch](/img/60/464de3bcdda876171b9f61ad31bff1.png)
[BJDCTF2020]EasySearch

How to solve the three major problems of bank data collection, data supplementary recording and index management?

token, jwt, oauth2, session parsing
![[BSidesCF 2019]Kookie](/img/29/19e7c244feb86b37ab32a53aa11f25.png)
[BSidesCF 2019]Kookie

日志导致线程Block的这些坑,你不得不防

10 years of testing experience, worthless in the face of the biological age of 35

测试薪资这么高?刚毕业就20K
![[BJDCTF2020] EasySearch](/img/60/464de3bcdda876171b9f61ad31bff1.png)
[BJDCTF2020] EasySearch
随机推荐
Bosses, I noticed that a mysql CDC connector parameters scan. The incremental. Sna
UE4 通过互动(键盘按键)开门
UE4 第一人称角色模板 添加蹲伏功能
【8.1】代码源 - 【第二大数字和】【石子游戏 III】【平衡二叉树】
GC Gaode coordinate and Baidu coordinate conversion
[GYCTF2020]EasyThinking
UE4 为子弹蓝图添加声音和粒子效果
AUTOCAD——标注关联
什么是ASEMI光伏二极管,光伏二极管的作用
2022软件测试工程师最全面试题
write the story about us
Redis key basic commands
Based on holding YOLOv5 custom implementation of FacePose YOLO structure interpretation, YOLO data format conversion, YOLO process modification"
1007 Climb Stairs (贪心 | C思维)
特征预处理
How to solve complex distribution and ledger problems?
【8.2】代码源 - 【货币系统】【硬币】【新年的问题(数据加强版)】【三段式】
【8.4】代码源 - 【数学】【历法】【删库】【不朴素的数列(Bonus)】
Mysql's redo log detailed explanation
Spark Basics [Introduction, Getting Started with WordCount Cases]