ubuntu 9.04下安装oracle 11g需要注意的几点:(1)oracle 不支持ubuntu,并且linux内核版本相关,(2)注意oracle与本机jdk的冲突
ubuntu 9.04下安装oracle 11g需要注意的几点:
(1)oracle 不支持ubuntu,并且linux内核版本相关,
(2)注意oracle与本机jdk的冲突的问题,以及中文乱码的问题
本机参数:
(1) ubuntu 版本: linux zhanghc-ubuntu 2.6.28-15-generic #48-ubuntu smp wed jul 29 08:54:56 utc 2009 i686 gnu/linux
(2)oracle11g版本: linux x86 的 oracle 数据库 11g 第 1 版 (11.1.0.6.0)
安装步骤:
第一步:
修改x server 的默认设置,,点菜单的system -> administration -> login window(系统->管理->登录窗口),选择“security(安全)”选项卡,取消“deny tcp connections to the xserver(拒绝tcp连接到x服务器)”的勾,重启xserver(或者重启系统)。然后在
终端输入: xhost +127.0.0.1
第二步:
安装必要的个工具:
终端输入:sudo apt-get install build-essential libaio1 gawk ksh libmotif3 alien libtool lsb-rpm
第三步:
修改一些ubuntu的/bin/sh的默认连接:
终端输入:
root@zhanghc-ubuntu:~# cd /bin
root@zhanghc-ubuntu:/bin# ls -l /bin/sh
lrwxrwxrwx 1 root root 4 2008-04-28 19:59 /bin/sh -> dash
root@zhanghc-ubuntu:/bin# ln -sf bash /bin/sh
root@zhanghc-ubuntu:/bin# ls -l /bin/sh
lrwxrwxrwx 1 root root 4 2008-05-01 22:51 /bin/sh -> bash
第四步:
增加用户和组:
终端输入:
root@zhanghc-ubuntu:/bin# cd /root
root@zhanghc-ubuntu:~# addgroup oinstall
root@zhanghc-ubuntu:~# addgroup dba
root@zhanghc-ubuntu:~# addgroup nobody
root@zhanghc-ubuntu:~# usermod -g nobody nobody
root@zhanghc-ubuntu:~# useradd -g oinstall -g dba -p password -d /home/oracle -s /bin/bash oracle
root@zhanghc-ubuntu:~# mkdir /home/oracle
root@zhanghc-ubuntu:~# chown -r oracle:dba /home/oracle
root@zhanghc-ubuntu:~# ln -s /usr/bin/awk /bin/awk
root@zhanghc-ubuntu:~# ln -s /usr/bin/rpm /bin/rpm
root@zhanghc-ubuntu:~# ln -s /usr/bin/basename /bin/basename
root@zhanghc-ubuntu:~# mkdir /etc/rc.d
root@zhanghc-ubuntu:~# for i in 0 1 2 3 4 5 6 s ; do ln -s /etc/rc$i.d /etc/rc.d/rc$i.d ; done
root@zhanghc-ubuntu:~# mkdir -p /u01/app/oracle
root@zhanghc-ubuntu:~# chown -r oracle:dba /u01
第八步:
系统默认值:
(1)增加下面这些到/etc/sysctl.conf文件的末尾:
fs.file-max = 65535
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 1024 65535
net.core.rmem_default = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144
(2)增加下面这些到/etc/security/limits.conf文件末尾:
oracle soft nproc 2047
oracle hard nproc 16383
oracle soft nofile 1023
oracle hard nofile 65535
(3)增加下面这些到/etc/pam.d/login文件末尾:
session required /lib/security/pam_limits.so
session required pam_limits.so
增加完成后执行下面的命令:sysctl -p