LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1378|回复: 1

求助:suse 10.1下安装oracle 9.2出现下面的问题!有实际安装说明!

[复制链接]
发表于 2006-10-10 13:18:50 | 显示全部楼层 |阅读模式


图中,我装到88%时,后面的shell中显示“Exception in thread 'main' ”,然后就程序就死了。我的安装说明如下面的代码区:
请问下,如何解决?
多谢!


  1. Installation of Oracle 9i (R2) on SUSE Linux 9.1, 9.2, 9.3 and 10.1


  2. This paper (HOWTO) describes step-by-step installation of Oracle 9i database software on SUSE LINUX 9.1, 9.2, 9.3 and 10.1.

  3. This paper covers following steps:
  4. Pre-Instalation Tasks
  5. Download & Install
  6. Post-Instalation Tasks
  7. Common Installation Errors


  8. Pre-Instalation Tasks
  9. 1. Create oracle User Account

  10. Login as root and create te user oracle which belongs to dba group.
  11. su -
  12. # groupadd dba
  13. # useradd -g dba oracle
  14. # mkdir /home/oracle
  15. # chown oracle:dba /home/oracle


  16. 2. Setting System parameters
  17. Edit the /etc/sysctl.conf and add following lines:
  18. kernel.sem = 250 32000 100 128
  19. kernel.shmmax = 2147483648
  20. kernel.shmmni = 128
  21. kernel.shmall = 2097152
  22. kernel.msgmnb = 65536
  23. kernel.msgmni = 2878
  24. fs.file-max = 65536
  25. net.ipv4.ip_local_port_range = 1024 65000
  26. Note: You need execute "sysctl -p" command or reboot system to apply above settings.

  27. Edit the /etc/security/limits.conf file and add following lines:
  28. * - nproc 16384
  29. * - nofile 16384

  30. 3. Setting Oracle Enviroment
  31. Edit the /home/oracle/.bash_profile file and add following lines:

  32. Settings for SuSE 9.1, 9.2 and 9.3 only. For SuSE 10.1 use the next settings.
  33. ORACLE_BASE=/opt/oracle
  34. ORACLE_HOME=$ORACLE_BASE/920
  35. ORACLE_SID=MY_ORACLE
  36. LD_LIBRARY_PATH=$ORACLE_HOME/lib
  37. LD_ASSUME_KERNEL=2.4.1
  38. PATH=$PATH:$ORACLE_HOME/bin

  39. export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH PATH LD_ASSUME_KERNEL

  40. Settings for SuSE 10.1 only. For SeSE 9.1, 9.2 and 9.3 use the above settings. Note setting of LD_ASSUME_KERNEL in 10.1 will cause incorrect functionality of OS.
  41. ORACLE_BASE=/opt/oracle
  42. ORACLE_HOME=$ORACLE_BASE/920
  43. ORACLE_SID=MY_ORACLE
  44. LD_LIBRARY_PATH=$ORACLE_HOME/lib
  45. PATH=$PATH:$ORACLE_HOME/bin

  46. export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH PATH

  47. Save the .bash_profile and execute following commands for load new enviroment:
  48. cd /home/oracle
  49. . .bash_profile


  50. 4. Create base directory for Oracle

  51. Login as root and create base directory for Oracle ($ORACLE_BASE).
  52. su -
  53. # cd /opt
  54. # mkdir oracle
  55. # chown oracle:dba oracle


  56. Download & Install
  57. 1. Download and install required .rpm packages

  58. Some additional packages are required for succesful instalation of Oracle software. To check wheter required packages are installed on your operating system use following command:
  59. rpm -q gcc glibc-devel libstdc++ libstdc++-devel cpp

  60. If some package is not installed download it from SUSE ftp server or direct from 9.1, 9.2, 9.3 locations or install it from installation media.

  61. Download the gcc_old-2.95.3-175.2.i586.rpm package.

  62. Install the required packages using the rpm command:
  63. # rpm -ivh gcc-3.3.4-11.i586.rpm \
  64. glibc-devel-2.3.3-118.i586.rpm \
  65. libstdc++-3.3.4-11.i586.rpm \
  66. libstdc++-devel-3.3.4-11.i586.rpm \
  67. cpp-3.3.4-11.i586.rpm \
  68. compat-2004.9.6-2.i586.rpm \
  69. gcc_old-2.95.3-175.2.i586.rpm

  70. If all required packages were installed succesfuly then login as root and switch the GCC3 compiler binary with GCC2 compiler binary as following:
  71. su -
  72. # cd /usr/bin
  73. # mv ./gcc ./gcc3
  74. # mv /opt/gcc295/bin/gcc ./gcc


  75. 2. Download the Java Runtime Enviroment (j2re-1_3_1_15-linux-i586.bin) from the Sun website. Keep in mind you need to download j2re1.3.1_11 or higher (Note: Install JRE 1.3.1_1x version only).

  76. Login as root and make the the file executable and then execute it. When the JRE is exracted move the "jre1.3.1_15" di rectory to "/opt" directory.
  77. # chmod +x j2re-1_3_1_15-linux-i586.bin
  78. # ./j2re-1_3_1_15-linux-i586.bin

  79. # mv jre1.3.1_15 /opt/

  80. 3. Download the Oracle 9i (9.2.0.4) software from Oracle website.
  81. Extract the files using following command:
  82. gunzip ship_9204_linux_disk1.cpio.gz
  83. gunzip ship_9204_linux_disk2.cpio.gz
  84. gunzip ship_9204_linux_disk3.cpio.gz

  85. cpio -idmv < ship_9204_linux_disk1.cpio
  86. cpio -idmv < ship_9204_linux_disk2.cpio
  87. cpio -idmv < ship_9204_linux_disk3.cpio

  88. When all archives were extracted you've got three directories Disk1, Disk2 and Disk3.
  89. Edit the Disk1/install/linux/oraparam.ini and modify JRE_LOCATION variable and set path to our JRE installation from Step 2.

  90. JRE_LOCATION=/opt/jre1.3.1_15

  91. 4. Start the Oracle software installation process.

  92. Now the system is prepared for Oracle software installation. To start the installation process execute the following commands:
  93. cd Disk1
  94. ./runInstaller

  95. When network configuration assistant and database configuration assistant has failed during startup then do following steps:
  96. cd /opt/oracle/920
  97. rm JRE
  98. ln -s /opt/jre1.3.1_15 JRE
  99. su -
  100. # cd /opt/oracle/920/JRE/bin
  101. # ln -s java jre
  102. # cd i386/native_threads
  103. # ln -s java jre

  104. Click on "Retry" button.


  105. Post-Instalation Tasks
  106. 1. Switch back the GCC binaries
  107. su -
  108. # cd /usr/bin
  109. # mv ./gcc ./gcc296
  110. # mv ./gcc3 ./gcc


  111. 2. Change of JRE path in Oracle Universal Installer

  112. Edit the $ORACLE_BASE/oui/oraparam.ini file and modify the value of JRE_LOCATION to /opt/jre1.3.1_15


  113. Common Installation Errors
  114. Unable to load native library: /tmp/OraInstall2005-01-08_11-11-34AM/jre/lib/i386/libjava.so: symbol __libc_wait, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
  115. Solution: Install new JRE 1.3.1 version. Edit the Disk1/install/linux/oraparam.ini and set path to new JRE for JRE_LOCATION variable. For more information see Download & Install section.

  116. Error in invoking target install of makefile /opt/oracle/920/ctx/lib/ins_ctx.mk
  117. Error in invoking target install of makefile /opt/oracle/920/precomp/lib/ins_precomp.mk
  118. Error in invoking target install of makefile /opt/oracle/920/plsql/lib/ins_plsql.mk
  119. Error in invoking ntcontab.o of makfile /opt/oracle/920/network/lib/ins_net_client.mk
  120. Solution: Install the gcc_old-2.95.3-175.2.i586.rpm (gcc 2.95) package and change the GCC binaries. For more information see Download & Install section.

  121. Starting Oracle Intelligent Agent.../opt/oracle/920/bin/dbsnmpwd: line 156: 2861 Segmentation fault nohup $ORACLE_HOME/bin/dbsnmp $* >>$DBSNMP_WDLOGFILE 2>&1
  122. /opt/oracle/920/bin/dbsnmpwd: line 156: 2873 Segmentation fault nohup $ORACLE_HOME/bin/dbsnmp $* >>$DBSNMP_WDLOGFILE 2>&1
  123. /opt/oracle/920/bin/dbsnmpwd: line 156: 2884 Segmentation fault nohup $ORACLE_HOME/bin/dbsnmp $* >>$DBSNMP_WDLOGFILE 2>&1
  124. /opt/oracle/920/bin/dbsnmpwd: line 156: 2895 Segmentation fault nohup $ORACLE_HOME/bin/dbsnmp $* >>$DBSNMP_WDLOGFILE 2>&1
  125. Solution: Download and apply patch nr.: 3238244 from http://metalink.oracle.com.

  126. Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using 'localhost:0.0' as the value of the DISPLAY variable.
  127. Solution: Execute "export DISPLAY=:0.0" (as oracle user) and "xhost +" as user who has opened X session (for example logged in KDE, GNOME, etc.). If the value is other than 127.0.0.1 or localhost you should "xhost +" on client machine.

复制代码

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
 楼主| 发表于 2006-10-11 12:41:15 | 显示全部楼层
哪位知道啊?帮帮我吧!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表