2026. 8. 4. 12:42 오라클
10g rac 설치시 에러조치
설치 환경
RHEL 5.5
2Node RAC 10.2.0.5
====================
- 10g rac 설치관련 오류처리
1. 설치 이미지에서 oraparam.ini 수정 반영
vi /10201_clusterware_linux_x86_64/install/oraparam.ini
redhat-5 추가
2. runInstaller 실행시 오류나므로 libXp-1.0.0-8.i386.rpm 사전 설치
rac1:/install/clusterware> ./runInstaller
********************************************************************************
Please run the script rootpre.sh as root on all machines/nodes. The script can be found at the toplevel of the CD or stage-area. Once you have run the script, please type Y to proceed
Answer 'y' if root has run 'rootpre.sh' so you can proceed with oracle Clusterware installation.
Answer 'n' to abort installation and then ask root to run 'rootpre.sh'.
********************************************************************************
Has 'rootpre.sh' been run by root? [y/n] (n)
y
Starting oracle Universal Installer...
Checking installer requirements...
Checking operating system version: must be redhat-5, redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
Passed
All installer requirements met.
Preparing to launch oracle Universal Installer from /tmp/OraInstall2018-11-30_09-32-42PM. Please wait ...rac1:/install/clusterware> oracle Universal Installer, Version 10.2.0.1.0 Production
Copyright (C) 1999, 2005, oracle. All rights reserved.
Exception java.lang.UnsatisfiedLinkError: /tmp/OraInstall2018-11-30_09-32-42PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory occurred..
java.lang.UnsatisfiedLinkError: /tmp/OraInstall2018-11-30_09-32-42PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at sun.security.action.LoadLibraryAction.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
at sun.awt.DebugHelper.<clinit>(Unknown Source)
at java.awt.Component.<clinit>(Unknown Source)
at oracle.sysman.oii.oiif.oiifm.OiifmGraphicInterfaceManager.<init>(OiifmGraphicInterfaceManager.java:222)
at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.createInterfaceManager(OiicSessionInterfaceManager.java:193)
at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.getInterfaceManager(OiicSessionInterfaceManager.java:202)
at oracle.sysman.oii.oiic.OiicInstaller.getInterfaceManager(OiicInstaller.java:436)
at oracle.sysman.oii.oiic.OiicInstaller.runInstaller(OiicInstaller.java:926)
at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:866)
Exception in thread "main" java.lang.NoClassDefFoundError
at oracle.sysman.oii.oiif.oiifm.OiifmGraphicInterfaceManager.<init>(OiifmGraphicInterfaceManager.java:222)
at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.createInterfaceManager(OiicSessionInterfaceManager.java:193)
at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.getInterfaceManager(OiicSessionInterfaceManager.java:202)
at oracle.sysman.oii.oiif.oiifm.OiifmAlert.<clinit>(OiifmAlert.java:151)
at oracle.sysman.oii.oiic.OiicInstaller.runInstaller(OiicInstaller.java:984)
at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:866)
3. root.sh 실행시 에러발생하므로 사전 대처
[root@rac1 crs]# /oracle/oraInventory/orainstRoot.sh
Changing permissions of /oracle/oraInventory to 770.
Changing groupname of /oracle/oraInventory to dba.
The execution of the script is complete
[root@rac1 crs]# /oracle/crs/ORCL/root.sh
WARNING: directory '/oracle/crs' is not owned by root
WARNING: directory '/oracle' is not owned by root
Checking to see if oracle crs stack is already configured
/etc/oracle does not exist. Creating it now.
Setting the permissions on OCR backup directory
Setting up NS directories
Failed to upgrade oracle Cluster Registry configuration
조치방법
cd $crs_HOME/bin
p4679769_10201_Linux-x86-64 을 다운받아 clsfmt.bin 화일을 대체해 준다.
기존 화일은 rename 해주고 해당 화일로 대체한다.
[root@rac1 bin]# chown oracle:dba clsfmt.bin
[root@rac1 bin]# chmod 755 clsfmt.bin
dd 로 ocr, vote 화일을 다시 초기화한다.
root.sh 실행...
[root@rac1 ORCL]# ./root.sh
WARNING: directory '/oracle/crs' is not owned by root
WARNING: directory '/oracle' is not owned by root
Checking to see if oracle crs stack is already configured
Setting the permissions on OCR backup directory
Setting up NS directories
oracle Cluster Registry configuration upgraded successfully
WARNING: directory '/oracle/crs' is not owned by root
WARNING: directory '/oracle' is not owned by root
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 crs=49896 EVMC=49898 and EVMR=49897.
node <nodenumber>: <nodename> <private interconnect name> <hostname>
node 1: rac1 rac1-priv rac1
node 2: rac2 rac2-priv rac2
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Now formatting voting device: /dev/raw/raw1
Now formatting voting device: /dev/raw/raw2
Now formatting voting device: /dev/raw/raw3
Format of 3 voting devices complete.
Startup will be queued to init within 90 seconds.
Adding daemons to inittab
Expecting the crs daemons to be up within 600 seconds.
CSS is active on these nodes.
rac1
CSS is inactive on these nodes.
rac2
Local node checking complete.
Run root.sh on remaining nodes to start crs daemons.
3. vip 실행관련 에러 사전작업 (1번에서만 해도 된다)
증상 :
1번은 잘 되나 2번에서 또 에러
[root@rac2 ORCL]# ./root.sh
WARNING: directory '/oracle/crs' is not owned by root
WARNING: directory '/oracle' is not owned by root
Checking to see if oracle crs stack is already configured
/etc/oracle does not exist. Creating it now.
Setting the permissions on OCR backup directory
Setting up NS directories
oracle Cluster Registry configuration upgraded successfully
WARNING: directory '/oracle/crs' is not owned by root
WARNING: directory '/oracle' is not owned by root
clscfg: EXISTING configuration version 3 detected.
clscfg: version 3 is 10G Release 2.
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 crs=49896 EVMC=49898 and EVMR=49897.
node <nodenumber>: <nodename> <private interconnect name> <hostname>
node 1: rac1 rac1-priv rac1
node 2: rac2 rac2-priv rac2
clscfg: Arguments check out successfully.
NO KEYS WERE WRITTEN. Supply -force parameter to override.
-force is destructive and will destroy any previous cluster
configuration.
oracle Cluster Registry for cluster has already been initialized
Startup will be queued to init within 90 seconds.
Adding daemons to inittab
Expecting the crs daemons to be up within 600 seconds.
CSS is active on these nodes.
rac1
rac2
CSS is active on all nodes.
Waiting for the oracle crsD and EVMD to start
oracle crs stack installed and running under init(1M)
Running vipca(silent) for configuring nodeapps
/oracle/crs/ORCL/jdk/jre//bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
일단 continue 눌러서 진행하고 완료한다.
vip가 fail되는 상황이므로 root유저로 수동으로 생성해 줘야된다.. <------- vip 가 생성되야 나머지 resource 들도 생성되므로 지금은 resource가 아무것도 없다.
조치 :
vi
$GRID_HOME/bin/vipca
$GRID_HOME/bin/srvctl
LD_ASSUME_KERNEL 찾아서 해당 부분에
unset LD_ASSUME_KERNEL 를 넣고 반영한다.
다시 root 유저에서 vipca 실행
======================================
후속 패치작업 10.2.0.5
Specify Home Details에 HOME,PATH 넣는 부분은 아래와 같이 수정
Oracrs10g_home
/oracle/crs/ORCL
진행하고 마무리는 각 노드에서
[root@rac1 ~]# /oracle/crs/ORCL/install/root102.sh
Creating pre-patch directory for saving pre-patch clusterware files
Completed patching clusterware files to /oracle/crs/ORCL
Relinking some shared libraries.
Relinking of patched files is complete.
WARNING: directory '/oracle/crs' is not owned by root
WARNING: directory '/oracle' is not owned by root
Preparing to recopy patched init and RC scripts.
Recopying init and RC scripts.
Startup will be queued to init within 30 seconds.
Starting up the crs daemons.
Waiting for the patched crs daemons to start.
This may take a while on some systems.
.
10205 patch successfully applied.
clscfg: EXISTING configuration version 3 detected.
clscfg: version 3 is 10G Release 2.
Successfully deleted 1 values from OCR.
Successfully deleted 1 keys from OCR.
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 crs=49896 EVMC=49898 and EVMR=49897.
node <nodenumber>: <nodename> <private interconnect name> <hostname>
node 1: rac1 rac1-priv rac1
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
clscfg -upgrade completed successfully
Creating '/oracle/crs/ORCL/install/paramfile.crs' with data used for crs configuration
Setting crs configuration values in /oracle/crs/ORCL/install/paramfile.crs
[root@rac1 ~]#






