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/下载
如果报告如下错误:
修改一下权限就可以了:
然后就可以运行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
#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
相关文章推荐
- Redhat-Linux-Enterprise-AS4-Up2上安装Oracle amd64_db_9204
- Redhat-Linux-Enterprise-AS4-Up2上安装Oracle amd64_db_9204
- RedHat enterprise linux 5下安装 oracle 10g
- 在RedHat.Enterprise.Linux_v6.3系统中安装Oracle_11gR2教程
- 32位RedHat Enterprise Linux 5 Update 4下安装Oracle10.2.0.1(转载)
- Redhat Enterprise Linux 5 安装 Oracle 10g release 2
- 在RedHat Enterprise Linux 上Oracle 9i的安装配置与调优
- RedHat.Enterprise.Linux_v6.3系统中安装Oracle_11gR2教程(64bit 成功案例及修改)
- Redhat Enterprise Linux 6.4 安装Oracle JDK替换OpenJDK
- linux redhat enterprise 4 上安装 oracle9i
- 在RedHat.Enterprise.Linux_v6.3系统中安装Oracle_11gR2教程
- RedHat_Enterprise_Linux_5_下安装Oracle
- RedHat Enterprise Linux 7下安装 Oracle 12C
- Oracle 11g R2 For RedHat Enterprise Linux 5.5 安装说明
- RedHat Enterprise linux 安装Oracle 需要的软件
- RedHat Enterprise Linux 5 .3 64 位上安装oracle client
- "RedHat Enterprise Linux 7下安装 Oracle 12C"相关脚本下载
- RedHat enterprise linux 5.3 X64下安装64位Oracle 11g (未测试)
- redhat enterprise linux 4上安装oracle 10.2.0 的艰辛历程
- Redhat Enterprise Linux 6.3 x86_64 安装oracle 11g R2