您的位置:首页 > 数据库 > Oracle

oracle9204在redhat enterprise linux 5中安装

2011-06-15 15:38 1376 查看
2 OS参数要求vi /etc/sysctl.conf , 在行末添加以下内容
#use for oracle
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default=262144
net.core.rmem_max=262144
net.core.wmem_default=262144
net.core.wmem_max=262144
再运行sysctl -p应用以上参数
如图:

3 vi /etc/security/limits.conf 行末添加以下内容
#use for oracle
* soft nproc 2047
* hard nproc 16384
* soft nofile 1024
* hard nofile 65536
如图:
4 vi /etc/pam.d/login 行末添加以下内容
  session required pam_limits.so
  
  如图:
  
  
  
5 vi /etc/selinux/config 确保以下内容
SELINUX=disabled
关闭SELIINUX
如图:

到此准备安装Oracle的相关参数告一段落。

[root@localhost ~]# groupadd dba
[root@localhost ~]# groupadd oinstall
[root@localhost ~]# useradd oracle -g oinstall -G dba
[root@localhost ~]# passwd oracle
Changing password for user oracle.
New UNIX password:
BAD PASSWORD: it is too simplistic/systematic
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@localhost ~]#

[root@localhost ~]# mkdir -p /u01/app/oracle
[root@localhost ~]# chown -R oracle.oinstall /u01/app/oracle
[root@localhost ~]# chmod -R 775 /u01/app/oracle

6
[oracle@localhost oracle9204forLinux]$ zcat ship_9204_linux_disk1.cpio.gz |cpio -idmv

***********************************
[oracle@localhost Disk1]$ ./runInstaller
[oracle@localhost Disk1]$ Initializing Java Virtual Machine from /tmp/OraInstall2008-02-26_11-22-33PM/jre/bin/java. Please wait...
/tmp/OraInstall2008-02-26_11-22-33PM/jre/bin/i386/native_threads/java: error while loading shared libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or directory

linux enterprise 5中第二张盘:
[root@localhost Server]# rpm -Uvh compat-libstdc++-33-3.2.3-61.i386.rpm
warning: compat-libstdc++-33-3.2.3-61.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
package compat-libstdc++-33-3.2.3-61 is already installed

因为java需要libstdc++-libc6.1-1[/b].so.2动态库,于是在linux[/b]下边做了个ln:ln -s /usr/lib/libstdc++-libc6.2-2.so.3 /usr/lib/libstdc++-libc6.1-1[/b].so.2

[oracle@localhost Disk1]$ ./runInstaller
[oracle@localhost Disk1]$ Initializing Java Virtual Machine from /tmp/OraInstall2008-02-26_11-49-10PM/jre/bin/java. Please wait...
Error occurred during initialization of VM
Unable to load native library: /tmp/OraInstall2008-02-26_11-49-10PM/jre/lib/i386/libjava.so: symbol __libc_wait, version GLIBC_2.0 not defined in file libc.so.6 with link time reference

到http://www.opennet.ru/soft/ora_inst/下载
p3006854_9204_LINUX.zip
[/b]

开始安装9.2.0

运行runInstaller之前,需要打补丁3006854: 注意,必须以root身份运行.
# unzipp3006854_9204_LINUX.zip[/b]
会在当前目录下创建一个目录,进入到该目录中
# cd 3006854
# ./rhel3_pre_install.sh

如果报告如下错误:
-bash: ./rhel3_pre_install.sh: Permission denied

修改一下权限就可以了:
# chmod +x *.sh

然后就可以运行runInstaller安装. 操作过程不再赘述.

但问题又出来,界面上显示”欢迎使用“正确,下面显示的中文都为框框。

解决中文乱码
从www.sun.com网站 https://sdlc5b.sun.com/ECom/EComActionServlet/DownloadPage:~:com.sun.sunit.sdlc.content.DownloadPageInfo;jsessionid=64EEED9FF5D0857E4F5E7F92156040AA;jsessionid=64EEED9FF5D0857E4F5E7F92156040AA 下载j2sdk-1_4_2_16-linux-i586.bin的JDK
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: