初始化数据库的问题
执行oninit-ivy后报错误信息:Could not fork a virtual processor: errno = 12 系统配置,参数配置。。online.log信息。。PLS 在linux上
#define ENOMEM 12 /* Out of memory */
应该是配置有问题,看看BUFFER和SHMVIRTSIZE。
内核的shmmax设置 # Root Dbspace Configuration
ROOTNAME rootdbs # Root dbspace name
ROOTPATH /informix/dbs/rootdbs # Path for device containing root dbspace
ROOTOFFSET 4 # Offset of root dbspace into device (Kbytes)
ROOTSIZE 547112 # Size of root dbspace (Kbytes)
# Disk Mirroring Configuration Parameters
MIRROR 0 # Mirroring flag (Yes = 1, No = 0)
MIRRORPATH # Path for device containing mirrored root
MIRROROFFSET 0 # Offset into mirrored device (Kbytes)
# Physical Log Configuration
PHYSDBS phydbs # Location (dbspace) of physical log
PHYSFILE 547112 # Physical log file size (Kbytes)
# Logical Log Configuration
LOGFILES 3 # Number of logical log files
LOGSIZE 1000 # Logical log size (Kbytes)
# Diagnostics
MSGPATH /informix/online.log # System message log file path
CONSOLE /dev/console # System console message path
# To automatically backup logical logs, edit alarmprogram.sh and set
# BACKUPLOGS=Y
ALARMPROGRAM /informix/etc/alarmprogram.sh # Alarm program path
TBLSPACE_STATS1 # Maintain tblspace statistics
# System Archive Tape Device
TAPEDEV /dev/null # Tape device path
TAPEBLK 32 # Tape block size (Kbytes)
TAPESIZE 10240 # Maximum amount of data to put on tape (Kbytes)
# Log Archive Tape Device
LTAPEDEV /dev/tapedev # Log tape device path
LTAPEBLK 32 # Log tape block size (Kbytes)
LTAPESIZE 10240 # Max amount of data to put on log tape (Kbytes)
# Optical
STAGEBLOB # Informix Dynamic Server staging area
# System Configuration
SERVERNUM 0 # Unique id corresponding to a OnLine instance
DBSERVERNAME cibsv # Name of default database server
DBSERVERALIASES # List of alternate dbservernames
NETTYPE ipcshm,1,150,CPU #soctcp,1,150,NET # Configure poll thread(s) for nettype
DEADLOCK_TIMEOUT 60 # Max time to wait of lock in distributed env.
RESIDENT 0 # Forced residency flag (Yes = 1, No = 0)
MULTIPROCESSOR1 # 0 for single-processor, 1 for multi-processor
NUMCPUVPS 2 # Number of user (cpu) vps
SINGLE_CPU_VP 0 # If non-zero, limit number of cpu vps to one
NOAGE 0 # Process aging
AFF_SPROC 0 # Affinity start processor
AFF_NPROCS 0 # Affinity number of processors
# Shared Memory Parameters
LOCKS 800000 # Maximum number of locks
BUFFERS 1000000 # Maximum number of shared buffers
NUMAIOVPS 2 # Number of IO vps
PHYSBUFF 128 # Physical log buffer size (Kbytes)
LOGBUFF 128 # Logical log buffer size (Kbytes)
CLEANERS 55555 # Number of buffer cleaner processes
SHMBASE 0x700000010000000 # Shared memory base address
SHMVIRTSIZE 8000 # initial virtual shared memory segment size
SHMADD 8192 # Size of new shared memory segments (Kbytes)
SHMTOTAL 0 # Total shared memory (Kbytes). 0=>unlimited
CKPTINTVL 300 # Check point interval (in sec)
LRUS 12 # Number of LRU queues
LRU_MAX_DIRTY 60.000000 # LRU percent dirty begin cleaning limit
LRU_MIN_DIRTY 50.000000 # LRU percent dirty end cleaning limit
TXTIMEOUT 0x12c # Transaction timeout (in sec)
STACKSIZE 64
# Dynamic Logging
# DYNAMIC_LOGS:
# 2 : server automatically add a new logical log when necessary. (ON)
硬件有多少内存、CPU?操作系统是什么?执行oninit -i 后,online.log里是怎么写的? AIX操作系统;
lsps -a
Page Space Physical Volume Volume Group Size %Used Active AutoType Chksum
hd6 hdisk0 rootvg 16384MB 6 yes yes lv 0
online.log错误提示:
14:35:57Loading Module <CNULL>
14:35:57Booting Language <builtin> from module <>
14:35:57Loading Module <BUILTINNULL>
14:36:00Dynamically allocated new virtual shared memory segment (size 8192KB)
14:36:02Could not fork a virtual processor: errno = 12
14:36:02Could not fork a virtual processor: errno = 12
14:36:02Could not fork a virtual processor: errno = 12
。。。。似乎你的空间存在些问题
ROOTSIZE > PHYSFILE+ LOGFILES * LOGSIZE ,并且还需要有空间。。。
页:
[1]