ericwong0914 发表于 2007-08-20 21:11

Informix问题求教,让我很头疼!

大虾们:

   小弟一套环境:SUN Solaris 10 SPARC + Informix IDS 7.31.UD8
   Informix启动后,运行大约一天日志就开始疯狂报错,

17:23:51listener-thread: err = -27001: oserr = 0: errstr = : Read error occurred during connection attempt.

   17:23:52listener: poll return with non T_LISTEN/T_DISCONNECT event

   17:23:52listener-thread: err = -25573: oserr = 13: errstr = : Network driver cannot accept a connection on the port.System error = 13.
   17:23:53listener: poll return with non T_LISTEN/T_DISCONNECT event

   17:23:53listener-thread: err = -25573: oserr = 13: errstr = : Network driver cannot accept a connection on the port. System error = 13.
   17:23:54listener: poll return with non T_LISTEN/T_DISCONNECT event

   数据库状态正常,而已经连上的应用也正常,就是无法建立新连接。连DBACCESS都连不上。

   查了一下,oserr=13是Permission Denied,在网络操作时发生Permisson Denied,请问这个问题会发生在哪里?

帮小弟分析一下吧,非常感激!!

ericwong0914 发表于 2007-08-20 21:12

回复 #1 ericwong0914 的帖子

配置文件,第1部分:

# Root Dbspace Configuration

ROOTNAME      rootdbs         # Root dbspace name
ROOTPATH      /dev/vx/rdsk/app_dg/lv_rootdbs
                              # Path for device containing root dbspace
ROOTOFFSET      0               # Offset of root dbspace into device (Kbytes)
ROOTSIZE      400000          # 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      380000          # Physical log file size (Kbytes)

# Logical Log Configuration

LOGFILES      12            # Number of logical log files
LOGSIZE60000

# Diagnostics

MSGPATH         /opt/informix/app_online.log # System message log file path
CONSOLE         /dev/console    # System console message path
ALARMPROGRAM    /opt/informix/etc/log_full.sh # Alarm program path
SYSALARMPROGRAM /opt/informix/etc/evidence.sh # System Alarm program path
TBLSPACE_STATS1

# System Archive Tape Device

TAPEDEV         /export/home/informixdb-bak/app_db               # Tape device path
#TAPEDEV      /dev/rmt/0m
TAPEBLK         64            # Tape block size (Kbytes)
TAPESIZE      8192000         # Maximum amount of data to put on tape (Kbytes)

# Log Archive Tape Device

LTAPEDEV      /dev/null       # Log tape device path
LTAPEBLK      64            # Log tape block size (Kbytes)
LTAPESIZE       819200          # Max amount of data to put on log tape (Kbytes)

# Optical

STAGEBLOB                     # Informix Dynamic Server/Optical staging area

# System Configuration

SERVERNUM       1               # Unique id corresponding to a Dynamic Server instance
DBSERVERNAME    app_online# Name of default database server
DBSERVERALIASES app_online_net # List of alternate dbservernames
NETTYPE         ipcshm,1,100,CPU # Configure poll thread(s) for nettype
NETTYPE         tlitcp,2,150,NET # Configure poll thread(s) for nettype

[ 本帖最后由 ericwong0914 于 2007-8-20 21:15 编辑 ]

ericwong0914 发表于 2007-08-20 21:12

配置文件,第2部分!

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       6               # Number of user (cpu) vps
SINGLE_CPU_VP   0               # If non-zero, limit number of cpu vps to one

NOAGE         1               # Process aging
AFF_SPROC       0               # Affinity start processor
AFF_NPROCS      0               # Affinity number of processors

# Shared Memory Parameters

LOCKS         1000000         # Maximum number of locks
BUFFERS         100000          # Maximum number of shared buffers
NUMAIOVPS                     # Number of IO vps
PHYSBUFF      64            # Physical log buffer size (Kbytes)
LOGBUFF         64            # Logical log buffer size (Kbytes)
LOGSMAX         20            # Maximum number of logical log files
CLEANERS      8               # Number of buffer cleaner processes
SHMBASE         0xa000000         # Shared memory base address
SHMVIRTSIZE   51200         # initial virtual shared memory segment size
SHMADD          51200         # Size of new shared memory segments (Kbytes)
SHMTOTAL      0               # Total shared memory (Kbytes). 0=>unlimited
CKPTINTVL       3600            # Check point interval (in sec)
LRUS            32            # Number of LRU queues
LRU_MAX_DIRTY   1               # LRU percent dirty begin cleaning limit
LRU_MIN_DIRTY   0               # LRU percent dirty end cleaning limit
LTXHWM          50            # Long transaction high water mark percentage
LTXEHWM         60            # Long transaction high water mark (exclusive)
TXTIMEOUT       0x12c             # Transaction timeout (in sec)
STACKSIZE       32            # Stack size (Kbytes)

# System Page Size
# BUFFSIZE - Dynamic Server no longer supports this configuration parameter.
#            To determine the page size used by Dynamic Server on your platform
#            see the last line of output from the command, 'onstat -b'.


# Recovery Variables
# OFF_RECVRY_THREADS:
# Number of parallel worker threads during fast recovery or an offline restore.
# ON_RECVRY_THREADS:
# Number of parallel worker threads during an online restore.

OFF_RECVRY_THREADS 20            # Default number of offline worker threads
ON_RECVRY_THREADS 30            # Default number of online worker threads

# Data Replication Variables
# DRAUTO: 0 manual, 1 retain type, 2 reverse type
DRAUTO          0               # DR automatic switchover
DRINTERVAL      1               # DR max time between DR buffer flushes (in sec)
DRTIMEOUT       60            # DR network timeout (in sec)
DRLOSTFOUND   /opt/informix/etc/dr.lostfound # DR lost+found file path

# CDR Variables
CDR_LOGBUFFERS2048            # size of log reading buffer pool (Kbytes)
CDR_EVALTHREADS 1,2             # evaluator threads (per-cpu-vp,additional)
CDR_DSLOCKWAIT5               # DS lockwait timeout (seconds)
CDR_QUEUEMEM    4096            # Maximum amount of memory for any CDR queue (Kbytes)
CDR_LOGDELTA    30            # % of log space allowed in queue memory
CDR_NUMCONNECT16            # Expected connections per server

ericwong0914 发表于 2007-08-20 21:13

配置文件,第3部分

CDR_NIFRETRY    300             # Connection retry (seconds)
CDR_NIFCOMPRESS 0               # Link level compression (-1 never, 0 none, 9 max)

# Backup/Restore variables
BAR_ACT_LOG   /tmp/bar_act.app.log
BAR_MAX_BACKUP0
BAR_RETRY       1
BAR_NB_XPORT_COUNT 10
BAR_XFER_BUF_SIZE 31
BAR_BSALIB_PATH /opt/informix/lib/libbsa.so
# Informix Storage Manager variables
ISM_DATA_POOL   ISMDiskData   # If the data pool name is changed, be sure to
                              # update $INFORMIXDIR/bin/onbar.Change to
                              # ism_catalog -create_bootstrap -pool <new name>
ISM_LOG_POOL    ISMDiskLogs

# Read Ahead Variables
RA_PAGES      10            # Number of pages to attempt to read ahead
RA_THRESHOLD    5               # Number of pages left before next group

# Dynamic Server equivalent of DBTEMP for SE. This is the list of dbspaces
# that the Dynamic Server SQL Engine will use to create temp tables etc.
# If specified it must be a colon separated list of dbspaces that exist
# when the Dynamic Server system is brought online.If not specified, or if
# all dbspaces specified are invalid, various ad hoc queries will create
# temporary files in /tmp instead.

DBSPACETEMPtempdbs

# DUMP*:
# The following parameters control the type of diagnostics information which
# is preserved when an unanticipated error condition (assertion failure) occurs
# during Dynamic Server operations.
# For DUMPSHMEM, DUMPGCORE and DUMPCORE 1 means Yes, 0 means No.

DUMPDIR         /opt/informix/temp # Preserve diagnostics in this directory
DUMPSHMEM       1               # Dump a copy of shared memory
DUMPGCORE       0               # Dump a core image using 'gcore'
DUMPCORE      0               # Dump a core image (Warning:this aborts Dynamic Server)
DUMPCNT         1               # Number of shared memory or gcore dumps for
                              # a single user's session

FILLFACTOR      90            # Fill factor for building indexes

# method for Dynamic Server to use when determining current time
USEOSTIME       0               # 0: use internal time(fast), 1: get time from OS(slow)

# Parallel Database Queries (pdq)
MAX_PDQPRIORITY 100             # Maximum allowed pdqpriority
DS_MAX_QUERIES                  # Maximum number of decision support queries
DS_TOTAL_MEMORY               # Decision support memory (Kbytes)
DS_MAX_SCANS    1048576         # Maximum number of decision support scans
DATASKIP      off             # List of dbspaces to skip

OPTCOMPIND      0               # To hint the optimizer
ONDBSPACEDOWN   2               # Dbspace down option: 0 = CONTINUE, 1 = ABORT, 2 = WAIT
LBU_PRESERVE    0               # Preserve last log for log backup
OPCACHEMAX      0               # Maximum optical cache size (Kbytes)

# HETERO_COMMIT (Gateway participation in distributed transactions)
# 1 => Heterogeneous Commit is enabled
# 0 (or any other value) => Heterogeneous Commit is disabled
HETERO_COMMIT   0

# Optimization goal: -1 = ALL_ROWS(Default), 0 = FIRST_ROWS
OPT_GOAL      -1

# Optimizer DIRECTIVES ON (1/Default) or OFF (0)
DIRECTIVES      1

# Status of restartable restore
RESTARTABLE_RESTORE off
BAR_DEBUG_LOG   /tmp/bar_dbug.log # ON-Bar Debug Log - not in /tmp please

[ 本帖最后由 ericwong0914 于 2007-8-20 21:16 编辑 ]

cwj79410 发表于 2007-08-20 23:19

ROOTSIZE是否太小了点才390M

ericwong0914 发表于 2007-08-21 00:42

ROOTSIZE目前还剩得非常多,基本够用了。

cwj79410 发表于 2007-08-21 07:51

---------------------from log----------------------------------
> 23:05:26 Booting Language <spl> from module <>
> 23:05:26 Loading Module <SPLNULL>
> 23:06:38 listener-thread: err = -27001: oserr = 0: errstr = : Read
> error occurred during connection attempt.
>
> 23:06:39 listener: poll return with non T_LISTEN/T_DISCONNECT event
>
> 23:06:39 listener-thread: err = -25573: oserr = 13: errstr = : Network
> driver cannot accept a connection on the port.
> System error = 13.
> 23:06:40 listener: poll return with non T_LISTEN/T_DISCONNECT event
> -----------------end log--------------------------------------
>
> Please let me know if there is a solution or workaround.
> Any help will be highly appreciated.

The first recommendation would be to upgrade off an old, no longer
supported version of IDS onto something more recent - like 10.00.

Presumably, you are not using new system - this is an old system that
has been working for ages.
This appears to occuring at about the time you're booting IDS - what
did you change in the Solaris environment to make it break?

If you are using a new system, why on earth did you install such an
old version of IDS?

tangmei958 发表于 2007-08-21 08:53

我想你应该查以下你的操作系统方面的问题.
SUN Solaris 10 SPARC网络服务方面和以前的版本有很大的变化

[ 本帖最后由 tangmei958 于 2007-8-21 08:56 编辑 ]

shanshl 发表于 2007-08-24 12:40

执行dbaccess是什么用户,是不是该用户就没有操作数据库的权限。

xjfirst 发表于 2007-08-24 13:17

ONCONFIG中有两个地方可以改一下试试:
1、NETTYPE:NETTYPE tlitcp,6,70,NET,同时建议把NETTYPE ipcshm,1,100,CPU这一项注释掉。
2、BUFFER:现有的配置是不是小了一点。如果内存还有空余,这个可以加一下。
页: [1] 2
查看完整版本: Informix问题求教,让我很头疼!