728x90

Technote (troubleshooting)


Problem(Abstract)

You are installing IDS. You noticed that there are several Java errors. You run the following command:

java -version 

JVMJ9VM011W Unable to load j9jit23: 
/home/informix/IDS_JRE/bin/libj9jit23.so: cannot restore segment prot 
after reloc: Permission denied 
JVMJ9VM011W Unable to load jclscar_23: 
/home/informix/IDS_JRE/bin/libjclscar_23.so: cannot restore segment prot 
after reloc: Permission denied 
Could not create the Java virtual machine.

Cause

SELinux is turned on


Resolving the problem

Turn off SELinux



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

728x90
728x90

서버: Oracle SPARC T5-2

CPU: 2장 (각 16 코어, 128 가상프로세서, 총 32코어, 256 가상프로세서) 

OS: Oracle Solaris 10 Update 9

RAM: 256GB

DBMS: IBM Informix 12.10.FC2 Workgroup Edition


작년에 Fernando Nunes씨가 포스팅한 글에서의 환경은 HP-UX Itanium이긴 하였으나 결과적으로 원인은 같은 것으로 보인다.


# ./ids_install

Preparing to install...

Extracting the JRE from the installer archive...

Unpacking the JRE...

Extracting the installation resources from the installer archive...

Configuring the installer for this system's environment...


Launching installer...


./ids_install: /tmp/install.dir.13028/Solaris/resource/jre/jre/bin/java: 실행할수 없음



GNU tar를 쓰면 해결된다는 글이 다수 있어 시도해보았다.

솔라리스에 다행히 gtar가 설치되어 있었다.


# mv /usr/sbin/tar /usr/sbin/tar_old

# mv /usr/sfw/bin/gtar /usr/sfw/bin/tar


GNU tar를 사용해서 해결은 되었으나 결국에는 제품 설치 패키지내의 파일이름이 길거나 공백이 있지 않나 싶다. 



설치하면서 인스턴스를 생성하는 옵션을 지정할 때에는 다른 오류가 있었다.

===============================================================================

Server Instance Creation

------------------------


Create a server instance?


  ->1- Yes - create an instance

    2- No - do not create an instance


ENTER THE NUMBER FOR YOUR CHOICE, OR PRESS <ENTER> TO ACCEPT THE DEFAULT::


인스턴스를 생성하도록 선택한 다음 진행하면 아래와 같이 설치 중 오류가 발생한다.


===============================================================================

Installing...

-------------


 [==================|==================|==================|==================]

 [------------------|------------------|------------------|------------------]

#

# A fatal error has been detected by the Java Runtime Environment:

#

#  SIGSEGV (0xb) at pc=0xffffffff7e94ddfc, pid=13656, tid=2

#

# JRE version: 6.0_17-b04

# Java VM: Java HotSpot(TM) 64-Bit Server VM (14.3-b01 mixed mode solaris-sparc )

# Problematic frame:

# C  [libc.so.1+0x4ddfc]

#

# An error report file with more information is saved as:

# /tmp/install.dir.13656/hs_err_pid13656.log

#

# If you would like to submit a bug report, please visit:

#   http://java.sun.com/webapps/bugreport/crash.jsp

# The crash happened outside the Java Virtual Machine in native code.

# See problematic frame for where to report the bug.

#


인스턴스 생성하는 옵션에서 No를 선택하면 오류없이 설치된다.

에러 로그 파일을 열어보면 자바 스택이 보이는데 자바 버전, 서버 환경 등의 원인등으로 추측할 수 밖에.



http://informix-technology.blogspot.kr/2013/04/1210-install-issue-on-hp-ux-problema-na.html

http://community.flexerasoftware.com/archive/index.php?t-188987.html

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


728x90
728x90

AIX용 Informix C-ISAM을 기본 설치 디렉토리인 /usr에 설치할 때 발생하는 오류입니다.

스크립트상 오류인지 /usr 디렉토리에 라이브러리를 설치하지 못하도록 한 것인지는 정확히 모르겠습니다만 

다른 디렉토리로는 잘 설치됩니다.

현재까지 확인한 결과로는 7.26.FC2, 7.26.FC3 버전에서 문제가 있었습니다.


./installisam (설치 스크립트 실행)


....


You may specify a target location for these files other than "/usr"

at this time if you so desire.  Do you wish to change the target

location for the directories?


Enter Y to change target directory or RETURN to continue.

(여기서 Y 옵션을 선택하면 디렉토리를 지정하여 설치할 수 있습니다. 엔터를 입력하면 /usr에 설치합니다.)


The default target directory of /usr will be used.

Moving Binaries to /usr/bin

./installisam[190]: test: 0403-004 Specify a parameter with this command.

./installisam[194]: test: 0403-004 Specify a parameter with this command.

Making

Usage: mkdir [-p] [-m mode] Directory ...

Usage: chmod [-R] [-f] [-h] {u|g|o|a ...} {+|-|=} {r|w|x|X|s|t ...} File ...

        chmod [-R] [-f] [-h] OctalNumber File ...

        Changes the permission codes for files or directories.

Moving Libraries to

Usage: mv [-I] [-i | -f] [-E{force|ignore|warn}] [--] src target

   or: mv [-I] [-i | -f] [-E{force|ignore|warn}] [--] src1 ... srcN directory

chmod: *lib*isam*.*: A file or directory in the path name does not exist.

chmod: llib-lisam: A file or directory in the path name does not exist.

chmod: *libifisam*.s*: A file or directory in the path name does not exist.

ar: 0707-100 /*lib*isam*.a does not exist.

ranlib: 0654-601 Execution of ar failed

Usage: ranlib [-t] [-X {32|64|32_64}] [--] file ...

ar: 0707-100 /libisamnls.a does not exist.

ranlib: 0654-601 Execution of ar failed

Usage: ranlib [-t] [-X {32|64|32_64}] [--] file ...

Moving Headers to /usr/include

Moving Localization files to /usr/gls


C-ISAM Installation Complete.


설치하는 과정에서 라이브러리(lib) 파일은 복사가 되지 않습니다.

installisam 스크립트를 살펴보면 라이브러리 경로가 지정되어 있지 않습니다.


BIN='bcheck dblog glfiles'

BINDIR='/usr/bin'


LIB='*lib*isam*.* llib-lisam'

SHLIB='*libifisam*.s*'

LIBDIR=''


INCL='isam.h decimal.h'

INCLDIR='/usr/include'


GLS='gls'

GLSDIR='/usr'


기본적으로 Informix C-ISAM을 설치하면 다음 네 개의 디렉토리에 파일이 설치가 됩니다.

bin

lib

include

gls


설치시 지정한 디렉토리가 만약에 /home/informix/cisam 이라고 한다면 각각 다음 위치에 설치 될 것입니다.

/home/informix/cisam/bin

/home/informix/cisam/lib

/home/informix/cisam/include

/home/informix/cisam/gls



해결책 ① 설치 스크립트인 installisam을 다음과 같이 수정하는 방법이 있습니다.

LIBDIR='' → LIBDIR='/usr/lib'


해결책 ② 설치 수행 중에 설치 디렉토리를 /usr로 지정하는 방법이 있습니다.


You may specify a target location for these files other than "/usr"

at this time if you so desire.  Do you wish to change the target

location for the directories?


Enter Y to change target directory or RETURN to continue.

Y (디렉토리를 변경하려면 Y를 입력합니다.)

Enter new target directory.

/usr (설치할 디렉토리 위치 /usr을 지정합니다.)

You have selected /usr as the new target directory.

If this is correct enter Y.

Y (최종 확인합니다.)


Moving Binaries to /usr/bin

Moving Libraries to /usr/lib

Moving Headers to /usr/include

Moving Localization files to /usr/gls


C-ISAM Installation Complete.


③ 라이브러리 파일을 직접 복사합니다.

압축을 해제하면 다음 파일이 있습니다. 직접 /usr/lib 디렉토리에 복사,이동해도 됩니다.


libifisam.a

libifisam.so

libifisamx.so

libisam.a

libisamnls.a

llib-lisam



내용을 가져가실때는 출처를 명시해주시기 바랍니다.

728x90
728x90
인포믹스 윈도우용 제품 설치시 기본 인스턴스명은 ol_informix1210 과 같은 형식입니다.

재미있게도 제품을 언인스톨 했다가 같은 이름으로 재설치하려고 하면 인스턴스명이 ol_informix1210_1로 지정됩니다.


ol_informix1210으로 하려고 해도 이미 인스턴스가 있다고 합니다. 지웠는데도 불구하고 말이지요.


인스턴스명과 포트명은 일반적으로 c:\windows\system32\driver\etc\services 파일에 기록이 되는데


설치제거시에는 파일에서 기록이 없어지지 않습니다.


이 파일에서 사용하지 않는 인스턴스명은 직접 삭제해주면 설치를 할 수 있습니다.



출처 : 

http://stackoverflow.com/questions/7029290/ghost-informix-instances-in-windows



728x90

+ Recent posts