728x90


Problem(Abstract)

What to check when you receive error -952 "User's password is not correct for the database server"

Symptom

When you connect to a database you receive error -952 "User's password is not correct for the database server"

Cause

The error message indicates the authentication failed due to an invalid password. Under certain circumstances, error -952 could be returned even when the password is correct.

Possible causes are:


If you are using password shadowing, the following are also possible causes of this error:

154706 CANNOT CONNECT TO DATABASE SERVER AFTER IMPLEMENT ENHANCED SECURITY (C2LEVEL) on COMPAQ TRU64 V5.1 (ERROR 952)

Resolving the problem

Here are some hints on what you must consider when receiving error -952:

    Example:
       telnet <informix server hostname>

      Renew the password if you get an error saying that the password expired.
    Example:

    cd $INFORMIXDIR
    ls ./bin/oninit

    -rwsr-sr--   1 root     informix 8163428 Jul 23  2003 oninit

If your system uses shadow password, check the following:


WORKAROUND

If you are using password shadowing, try the following as a temporary solution. Please note this is only a temporary solution. Copying the shadow password will create a security breach and will go against the whole logic of using shadow passwords.

1. Find in the /etc/passwd file, the entry corresponding to the user.
    Example:

    informix:x:200:200:InformixAdministrator:/home/informix:/bin/ksh

    where x represents that the password is a shadow password


2. Find in the shadow file (etc/security/passwd for AIX, /etc/shadow for RedHat, Solaris, HP11i) the entry corresponding to the user.
    Example:

    informix:ow3/GUDb8r2rk:12103::::::

3. Find the shadow password (second field), from the entry from the shadow file

4. Copy the encrypted password from step 3. to the second position in the /etc/passwd file, corresponding to the password.
    Example:

    After the update, the entry in the /etc/passwd file will look like the following:

    informix:ow3/GUDb8r2rk:200:200:InformixAdministrator:/home/informix:/bin/ksh

Alternatively, if you are using password shadowing, try to temporarily disable shadow password use.



https://www-304.ibm.com/support/docview.wss?uid=swg21177527

728x90
728x90

IC69181: SQUARED BRACKET "[]" SUBSTRING OPERATION CREATES WORSE QUERY PLAN THAN CORRESPONDING SUBSTR() FUNCTION


https://www-304.ibm.com/support/docview.wss?uid=swg1IC69181



IC73640: WRONG RESULTS POSSIBLE FOR SQL QUERY WITH JOIN, LIKE WITH WILDCARD AND A SPECIFIC INDEX USED




IC62817: SELECT on INDEX WITH LIKE, UNDERSCORE AND LEADING OR FILTER RETURNS INCORRECT RESULTS






728x90
728x90

상태

① onstat -l 로 확인했을 때 logical log file 사용량이 모두 100%

② 인포믹스 엔진 상태

IBM Informix Dynamic Server Version 11.50.FC7 -- on-Line (CKPT REQ) -- Up 10 days 05:40:21 -- 258576 Kbytes


load또는 insert/delete/update로 인하여 logical log가 대량으로 발생할 때 Checkpoint pending 상태로 변경될 수 있다.

정상 상태로 변경하려면 다음 순서대로 수행한다.


1. onconfig 파일의 TAPEDEV, LTAPEDEV 파라미터 값을 확인하여 /dev/null로 변경한다.

2. ontape으로 logical log를 백업하려면 /dev/null 값을 사용할 수 없다. 따라서 symbolic link를 사용하여 /dev/null을 가리키도록 한다.

3. ontape -a

4. onstat - 로 확인하여 엔진 상태를 확인


이후에는 풀백업을 수행하도록 하고 TAPEDEV, LTAPEDEV 파라미터 값을 원래대로 변경하여 사용한다.

필요한 경우 logical log 추가 작업을 수행한다.

728x90
728x90

내용 : online.log 에서 발생하는 오류메시지

환경 : AIX 6.1, Informix 11.50

현상 : I/O 발생량 과다로 시스템 로드 증가


원인추정1. AIX 커널파라미터 확인 KAIO 활성화여부


/usr/sbin/chdev -l aio0 -a autoconfig=available

/usr/sbin/mkdev -l aio0


다음 문서에 따르면 AIX 6.1에서는 AIO 활성화가 필요없음

https://www-304.ibm.com/support/docview.wss?uid=swg21303183

http://www.eggheadcafe.com/software/aspnet/35814856/ids115-enable-aio-on-aix-61.aspx



원인추정2. IFMX_AIXAIO_NUM_REQ 파라미터 값 수정 (기본값 1024)


IFMX_AIXKAIO_NUM_REQ  파라미터 값을 AIX의  Maximum number of requests set for Kernel AIO 값을 참조하여 설정

https://www-304.ibm.com/support/docview.wss?uid=swg21188868


IBM AIX Version 6.1 Differences Guide

sg247559.pdf

sg247559.pdf
4.82MB
728x90
728x90

Problem(Abstract)

This article describes three common causes for listener-thread: err = -27001: Read error occurred during connection attempt errors.

Symptom

This error appears in the IBM® Informix® Dynamic Server (IDS) message log file (ONCONFIG configuration file parameter MSGPATH) and users are not able to connect to the database server.:

listener-thread: err = -27001: Read error occurred during connection attempt.


Resolving the problem

Common causes and solutions for the error are:

1. The connectivity files in the /INFORMIXTMP directory are not removed.

    The files are in the form of : VP.server_name.0100a

      server_name
        Database server name as was set in INFORMIXSERVER environment variable and associated with the tcp connections.
    Solution:

    Stop the database server, remove the files from the /INFORMIXTMP directory, and start the database server.

2. The onCONFIG file settings for the NETTYPE parameter are not correct. This error is widely seen involving tcp network connections when the VP class in the NETTYPE setting is set for CPU vp.

    Solution:

    As a work around Change the vp class setting for the NETTYPE configuration parameter from CPU to NET.

Factors outside of Informix that can cause 27001

3. An operating system resource limit was reached. Kernel parameters settings require changes.

    Solution:

    Check and possibly increase settings for the following kernel parameters or parameters equivalent to them depending on Unix platform:


4. Network problem. Perhaps the network is busy or packets are being lost. Monitor network and alleviate the problem.

5. Hardware involved in the system ( network card, cables, router, and so on ) is intermittently failing and causing the error.


728x90

'Informix > informix troubleshooting' 카테고리의 다른 글

CKPT REQ 상태 해결 방법  (0) 2011.03.12
KAIO: out of OS resources, errno = 11, pid = xxxxxxx  (0) 2011.03.02
err = -27001  (0) 2010.06.01
IDS Down DBSpace / Chunk  (0) 2010.05.19
Chunk Down 확인  (0) 2010.05.17
728x90

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


에러가 발생하는 경우


  1)  onconfig 에 설정되어 있는  poll thread 가 담당하는  connection 수가 부족한 경우에 에러가 날수

       있습니다. onconfig NETTYPE 설정을 변경하여 해결할수 있습니다.

   ) NETTYPE soctcp,<num pollthreads>,<num connections per pollthread>,CPU

        권장값 :  <num pollthreads> = NUMCPUVPS -1

        권장값 : <num connections per pollthread> = up to 250 or 300 for best performance

             NETTYPE tlitcp,1,100,NET # supports 100 connections : 1 * 100

        ==>  NETTYPE tlitcp,1,200,NET # supports 200 connections   : 1 * 200

  값이 설정되어 있지 않으면   default 값이  50 입니다. 현재 어떻게 설정되어 있는 지는 모르겠으나 지금

  설정되어 있는 값보다  크게 설정하십시요. 이 값의 재 설정 후에는 DB 를 재기동 하셔야 반영됩니다.


  2) 또 하는  OS   file descriptor  가 부족할 경우입니다. DB 단에서는  각 인스턴스 별로 chunk  갯수,

      VP 의 수, network connection 수 등의 값등이 OS file descriptor 자원을 필요로 합니다.

      값이 부족한 경우 로그에  27001 에러가 나면서  connection 이 안되는 경우도 있습니다.

  이 값은  OS Level 에서 조정하여야 하며,  ulimit -a 로 보시면 NFILES 이 갯수를 확인하시고,

  가능하면 무제한(unlimited) 으로 설정하시거나 지금의 값보다 크게 설정하도록 하십시요

728x90
728x90

Question

MustGather information for problems with down dbspaces/chunks. Gathering this information before calling IBM® support helps familiarize you with the troubleshooting process and saves you time.

Answer

Gathering general information

For IBM® Informix® products, gather the following information for any problem:

MustGather: General Information to collect for Informix Family product problems



Down DBSpace / Chunk information 



Processes to run

Read the operating system man pages and IDS documentation for usage and other information about the following commands, if necessary. Run the following commands and collect the output:


Files to collect

This section lists files to collect which are normally (or optimally) analyzed for this problem.


Submitting information to IBM Support 

Once you have collected your information, you can begin Problem Determination through the product Support web page, or simply submit the diagnostic information to IBM support.

You can submit files using one of following methods to help speed problem diagnosis:

See the Related information article, 
Submitting diagnostic information to IBM Technical Support for problem determination

http://www-01.ibm.com/support/docview.wss?uid=swg21270737

728x90
728x90
1. onstat -d 명령으로 dbspace 확인
$ onstat –d
 
Informix Dynamic Server Version 7.31.UD1    -- on-Line -- Up 16 days 05:57:23 -- 163008 Kbytes
 
Dbspaces
address  number   flags    fchunk   nchunk  flags    owner    name
1219a150 1        2        1        1        M        informix rootdbs
1219ad00 2        1        2        4        N        informix datadbs
1219adc0 3        1        5        1        N        informix datadbs2
1219ae80 4        1        7        3        N        informix datadbs3
4 active, 2047 maximum
 
Chunks
address  chk/dbs offset   size     free     bpages   flags pathname
1219a210 1   1   50       1000000  748319            PO-   /opt/informix/DBS/root_chk01
1219a310 1   1   50       1000000  0                 MO-   /opt/informix/DBS/mroot_chk01
1219a500 2   2   50       1000000  3                 PO-   /opt/informix/DBS/datadbs_chk01
1219a600 3   2   50       1000000  51                PO-   /opt/informix/DBS/datadbs_chk02
1219a700 4   2   50       1000000  957               PO-   /opt/informix/DBS/datadbs_chk03
1219a800 5   3   50       1000000  999947            PO-   /opt/informix/DBS/datadbs2_chk01
1219a900 6   2   50       1000000  615765            PO-   /opt/informix/DBS/datadbs_chk04
1219aa00 7   4   50       1000000  99947             PO-   /opt/informix/DBS/datadbs3_chk01
1219ab00 8   4   50       1000000  0                 PD-   /opt/informix/DBS/datadbs3_chk02
1219ac00 9   4   50       1000000  0                 PD-   /opt/informix/DBS/datadbs3_chk03
9 active, 2047 maximum
2. flags 두번째 값 확인. 'D'로 표시된 경우 Chunk Down 을 의미함.
3. Chunk가 raw-device 인지, cooked-file 인지 확인.
4. symbolic link 및 chunk에 문제가 없는지 dd 명령어등으로 액세스 가능 여부 확인.
5. mirror chunk 가 존재한다면 onspaces 명령으로 온라인 전환 가능.
onspaces -s db_acct -p /dev/mirror_chk1 -o 0 -O
6. 위의 경우로 해결할 수 없을 때는 onall 등의 유틸리티로 복구

 

* onall은 IBM에서 제공하는 인포믹스 복구용 프로그램입니다.

최신 또는 11 버전 이상의 버전에 대해서는 별도로 제공되지 않으며 IBM의 기술지원을 받아야 합니다.

 

* 11 버전 이상에서는 ASTOOL(Advanced Support tools)을 사용해 인포믹스 복구를 시도할 수 있습니다.다만 사용하기 위해서는 별도의 key generator가 필요하며 IBM에서만 제공됩니다.

728x90
728x90
$onstat - 
IBM Informix Dynamic Server Version 9.40.UC4     -- on-Line -- Up 7 days 16:45:20 -- 2812948 Kbytes

온라인 상태를 확인한다. 그런데 스크립트 실행시 쿼리 응답이 없을 경우
운영체제 계정의 패스워드를 확인해 볼 필요가 있다.
패스워드에 expiration이 정해져 있는지 확인하고 재설정하면 문제가 해결된다.
728x90

+ Recent posts