鍦↖BM涓婃煡鍒幫細(xì)
DB2 v8.1鐢變簬java铏氭嫙鏈虹増鏈笉琚敮鎸侊紝鎵浠ュ畨瑁呬嬌鐢╠b2setup鏃犳硶瀹夎銆傜炕璇戝茍璁板綍涓嬫潵
Red Hat Enterprise Linux濂藉儚鏀寔jvm 鍦?.4.1浠ヤ笂錛屽洜姝ら渶瑕佹浛鎹8.1瀹夎浠嬭川涓殑jvm.寤鴻錛欼BM version of the Java SDK 1.4.1(鎴戜嬌鐢ㄧ殑鏄疭un SDK 1.4.2_04鍒嗕負(fù)涓や釜姝ラ錛?. java SDK 瀹夎銆?. DB2瀹夎)
java SDK
- 涓嬭澆SDK (sun,ibm閮芥湁錛屽叿浣撶綉鍧蹇樹簡錛屼互鍚庡啀琛ュ惂錛?
- 瀹夎SDK rpm -ivh j2sdk-1_4_2_04-linux-i586-rpm (鎴戜笅鐨勬槸錛歫2sdk-1_4_2_04-linux-i586-rpm.bin 鍦╨inux涓嬫嫹璐濆埌鏈満錛岃繍琛岋細(xì)./j2sdk-1_4_2_04-linux-i586-rpm.bin銆傜劧鍚巖pm瀹夎鍗沖彲)
- 淇敼/etc/profile鏂囦歡,閰嶇疆java璺緞(鍖呮嫭JAVA_HOME銆丆LASSPATH銆乸ath錛夋敞鎰忓ぇ灝忓啓銆?
DB2
- copy 浠嬭川鍒扮‖鐩樹笂錛屼富瑕佺洰鐨勬槸鍙互淇敼鑷甫鐨刯vm (濡? cp -R /media/cdrom/* <temporary_directory>)
- 鍒犻櫎 db2/linux/java 鐨勭洰褰?(濡? rm -Rf <temporary_directory>/db2/linux/java)
- 鍒涘緩鈥渏ava鈥漧ink鎸囧埌Java1.4.1鐨勭洰褰?(濡?: ln -s /opt/IBMJava2-141 /<temporary_directory>/db2/linux/java)
- 瀹夎浜?.. (e.g.: <temporary_directory>/db2setup)
IBM鍘熸枃錛氾紙http://www-306.ibm.com/software/data/db2/linux/validate/rhel3faq.html錛?/P>
Yes, there is a workaround. However it is not officially supported by IBM and is therefore provided for informational purposes only. You could use IBM's version of the Java 1.4.1 environment instead of 1.3.1 that is shipped with the DB2 install image. Note that IBM does not support either 1.3.1 or 1.4.1 (SR1) on RHEL 3 yet. To use this unsupported workaround, you first need to install the IBM version of the Java SDK 1.4.1. Depending on which version of the DB2 install image/CD you have, perform the following steps.
If you have a DB2 UDB V8.1 GA (or level prior to 8.1.4) install image/CD:
- Copy its contents to the hard disk (e.g.: cp -R /media/cdrom/* <temporary_directory>) where the <temporary_directory> is large enough to hold the install image.
- Delete the db2/linux/java sub-directory.
(e.g.: rm -Rf <temporary_directory>/db2/linux/java)
- Create a symbolic link called java to point to the Java 1.4.1 directory.
(e.g.: ln -s /opt/IBMJava2-141 /<temporary_directory>/db2/linux/java)
- Ensure the DISPLAY is exported properly and launch the installer.
(e.g.: <temporary_directory>/db2setup)
If you have DB2 install image / CD refreshed at Version 8.1.4 or later:
- Set the following environment variables: export DB2USELOCALJRE=TRUE
export JAVA_HOME=<path to 1.4.1 JVM>
(e.g.: export JAVA_HOME=/opt/IBMJava2-141)
- Launch db2setup from the same shell

]]>