ubuntu 9.04 安装oracle 11g

为当前最终发行版之前的所有版本提供支持
回复
头像
wyl-19
帖子: 64
注册时间: 2009-10-22 0:08
送出感谢: 0
接收感谢: 0

ubuntu 9.04 安装oracle 11g

#1

帖子 wyl-19 » 2010-11-19 17:03

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...



这是别人写的,我安装了可以的

那位大虾可一把安装时的选项详细的说一下?再有就是怎么启动和关闭?
羽穹寒风。。。。。。天空之城。。。。。绝赞卡农。。。。。。
头像
wyl-19
帖子: 64
注册时间: 2009-10-22 0:08
送出感谢: 0
接收感谢: 0

Re: ubuntu 9.04 安装oracle 11g

#2

帖子 wyl-19 » 2010-11-19 17:06

oracle 11g的下载地址



ed2k://|file|[%E7%94%B2%E9%AA%A8%E6%96%87%E6%95%B0%E6%8D%AE%E5%BA%93.11g.Release.1.].linux_11gR1_database.zip|1844533232|3fa875993667c3bf951b71b88e640557|h=4HZOJOR7KPISKYTWNV2RVZYUW4JL2XBB|/ed2k://|file|[%E7%94%B2%E9%AA%A8%E6%96%87%E6%95%B0%E6%8D%AE%E5%BA%93.11g.Release.1.].A.Brief.Look.at.Oracle.Database.11g.ppt|1370624|18a878895de519018ba14785dc5e3ea4|h=LOYWKU7J6BYAHTO443OPGRUS6TBUEM53|/


http://download.oracle.com/otn/linux/or ... tabase.zip
羽穹寒风。。。。。。天空之城。。。。。绝赞卡农。。。。。。
回复

回到 “老旧版本支持”