Heim > Datenbank > MySQL-Tutorial > Ubuntu 9.04成功安装Oracle 11G

Ubuntu 9.04成功安装Oracle 11G

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Freigeben: 2016-06-07 16:54:53
Original
938 Leute haben es durchsucht

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

linux

Verwandte Etiketten:
Erklärung dieser Website
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage