龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > 操作系统 > LINUX系统 >

[原]ubuntu 9.04 Oracle 11g

时间:2013-01-16 16:00来源:未知 作者:admin 点击:
分享到:
1.安装wcid sudo aptitude install wicd 2.安装Oracle ruijc@jackalope:~$sudo apt-get install unzip build-essential x11-utils rpm ksh lsb-rpm libaio1 ruijc@jackalope:~$ sudo su - root@jackalope:~# cd /bin root@jackalope:/bin# ls -l /bin/sh

1.安装wcid
   sudo aptitude install wicd

2.安装Oracle
ruijc@jackalope:~$sudo apt-get install unzip build-essential x11-utils rpm ksh lsb-rpm libaio1

ruijc@jackalope:~$ sudo su -

root@jackalope:~# cd /bin

root@jackalope:/bin# ls -l /bin/sh
lrwxrwxrwx 1 root root 4 2009-05-26 12:58 /bin/sh -> dash

root@jackalope:/bin# ln -sf /bin/bash /bin/sh

root@jackalope:/bin# ls -l /bin/sh
lrwxrwxrwx 1 root root 9 2009-05-26 13:27 /bin/sh -> /bin/bash

root@jackalope:/bin#

root@jackalope:/bin# cd

root@jackalope:~# addgroup oinstall
Adding group `oinstall' (GID 1001) ...
Done.

root@jackalope:~# addgroup dba
Adding group `dba' (GID 1002) ...
Done.

root@jackalope:~# addgroup nobody
Adding group `nobody' (GID 1003) ...
Done.

root@jackalope:~# usermod -g nobody nobody

root@jackalope:~# useradd -g oinstall -G dba -p password -d /home/oracle -s /bin/bash oracle

root@jackalope:~# mkdir /home/oracle

root@jackalope:~# chown -R oracle:dba /home/oracle

root@jackalope:~# ln -s /usr/bin/awk /bin/awk

root@jackalope:~# ln -s /usr/bin/rpm /bin/rpm

root@jackalope:~# ln -s /usr/bin/basename /bin/basename

root@jackalope:~# mkdir /etc/rc.d

root@jackalope:~# 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@jackalope:~# mkdir -p /u01/app/oracle

root@jackalope:~# chown -R oracle:dba /u01

root@jackalope:~#

----------------
root@jackalope:~# cd /etc

root@jackalope:/etc# cp sysctl.conf sysctl.conf.original

root@jackalope:/etc# vi sysctl.conf
#Edit it, adding the following lines to the bottom of the file:
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 = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 262144

root@jackalope:/etc# cd /etc/security/

root@jackalope:/etc/security# cp limits.conf limits.conf.original

root@jackalope:/etc/security# vi limits.conf
#Add the following lines to the bottom of the file:
oracle soft nproc 2047
oracle hard nproc 16383
oracle soft nofile 1023
oracle hard nofile 65535

root@jackalope:/etc/security#

root@jackalope:/etc/security#cd /etc/pam.d/

root@jackalope:/etc/pam.d# sysctl -p
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 = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 262144
root@jackalope:/etc/pam.d# logout
ruijc@jackalope:~$ logout
Connection to 192.168.254.118 closed.

ruijc@jackalope:~$

ruijc@jackalope:~$ unzip Oracle.11g.Release.1.linux_11gR1_database.zip
Archive:  Oracle.11g.Release.1.linux_11gR1_database.zip
   creating: database/
   creating: database/doc/
   creating: database/doc/dcommon/
   creating: database/doc/dcommon/css/
  inflating: database/doc/dcommon/css/blafdoc.css
  inflating: database/doc/dcommon/css/bp_layout.css
(...)
  inflating: database/stage/properties/oracle.server_Custom.properties
  inflating: database/stage/properties/oracle.server_PE.properties
  inflating: database/welcome.html

ruijc@jackalope:~$

ruijc@jackalope:~$ whoami
ruijc

ruijc@jackalope:~$ sudo su -

root@jackalope:~# su - oracle

oracle@jackalope:~$ export DISPLAY=127.0.0.1:0.0

oracle@jackalope:~$ cd /home/ruijc/database

oracle@jackalope:/home/ruijc/database$ ./runInstaller -jreLoc /usr/lib/jvm/java-6-sun/jre
Starting Oracle Universal Installer...


精彩图集

赞助商链接