分页: 1 / 1

Ubuntu 9.04安装Oracle 11,备案!!

发表于 : 2009-07-12 22:48
ankoe

代码: 全选

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



Re: Ubuntu 9.04安装Oracle 11,备案!!

发表于 : 2009-07-12 22:49
ankoe
以上个人测试成功,未有问题!!!

Re: Ubuntu 9.04安装Oracle 11,备案!!

发表于 : 2009-07-12 22:54
oneleaf
我一直都参考这个,安装了很多了,也没有什么大问题,只是重启后需要手工运行来启动oracle。
http://www.pythian.com/news/968/install ... ardy-heron

Re: Ubuntu 9.04安装Oracle 11,备案!!

发表于 : 2009-07-17 18:24
saberqin
我按LZ的代码为什么到了这一步有这样的问题呢??

代码: 全选

~$ logout
bash: logout: 不是登陆 shell: 请使用 “exit”


Re: Ubuntu 9.04安装Oracle 11,备案!!

发表于 : 2009-07-25 18:48
ighack
我也有楼上的问题

Re: Ubuntu 9.04安装Oracle 11,备案!!

发表于 : 2009-07-25 19:37
hubert_star
1 用 centos做生产环境,oracle 11g支持的很好,或者其他rpm系的,问题都很少
2 用 arch做本机开发环境,装oracle 11g这个aur包

以上,均可一步到位

只有ubuntu,要专门写一个教程

Re: Ubuntu 9.04安装Oracle 11,备案!!

发表于 : 2009-07-25 23:37
ankoe
saberqin 写了:我按LZ的代码为什么到了这一步有这样的问题呢??

代码: 全选

~$ logout
bash: logout: 不是登陆 shell: 请使用 “exit”

ruijc@ubuntu-laptop:~$ logout
bash: logout: 不是登陆 shell: 请使用 “exit”
ruijc@ubuntu-laptop:~$

嘿。。。,因为用的是当前用户的shell,所以要用exit,用logout是在用su -切换用户时才用logout退出所切换到用户的命令环境。

Re: Ubuntu 9.04安装Oracle 11,备案!!

发表于 : 2009-07-26 16:32
jety
不能安装,配置没问题,但未通过ORACLE要求,出现警告信息,说无法识别系统
不知是不是意味着ORACLE 11G无法在UB安装?

Re: Ubuntu 9.04安装Oracle 11,备案!!

发表于 : 2009-07-26 17:35
ankoe
jety 写了:不能安装,配置没问题,但未通过ORACLE要求,出现警告信息,说无法识别系统
不知是不是意味着ORACLE 11G无法在UB安装?
skip过系统检测就行。我的装了没问题的。

Re: Ubuntu 9.04安装Oracle 11,备案!!

发表于 : 2010-11-19 16:10
wyl-19
我按照你的装是装好了,可是怎么重启一后就起不了了?
还有就是可不可一把界面的安装过程也说一下哈?
谢谢了 :em11

Re: Ubuntu 9.04安装Oracle 11,备案!!

发表于 : 2010-12-01 21:14
latitude6410
忽略未通过的必需先决条件。继续...
准备从以下地址启动 Oracle Universal Installer /tmp/OraInstall2010-12-01_09-12-39PM. 请稍候...在 /usr/lib/jvm/java-6-sun/jre/bin/java 中未找到 Java 运行时环境。因此, 无法运行 Oracle Universal Installer。
请访问 http://www.javasoft.com 并安装 JRE 版本 1.3.1 或更高版本, 然后重试。
: 没有那个文件或目录

这个要怎么解决啊!!!

Re: Ubuntu 9.04安装Oracle 11,备案!!

发表于 : 2011-02-17 15:28
newsea
好文.

Re: Ubuntu 9.04安装Oracle 11,备案!!

发表于 : 2011-08-11 21:31
tq03fbw
mark 正在试

Re: Ubuntu 9.04安装Oracle 11,备案!!

发表于 : 2011-11-24 21:22
smary920
latitude6410 写了:忽略未通过的必需先决条件。继续...
准备从以下地址启动 Oracle Universal Installer /tmp/OraInstall2010-12-01_09-12-39PM. 请稍候...在 /usr/lib/jvm/java-6-sun/jre/bin/java 中未找到 Java 运行时环境。因此, 无法运行 Oracle Universal Installer。
请访问 http://www.javasoft.com 并安装 JRE 版本 1.3.1 或更高版本, 然后重试。
: 没有那个文件或目录

这个要怎么解决啊!!!
下载最近的java。。安装完之后。。在java的目下。。在/lib/fonts里建立fallback。。在里面放一个你喜欢的中文字体。。如雅黑
在./runInstaller -jreLoc /(这里输入你java的目录)

Re: Ubuntu 9.04安装Oracle 11,备案!!

发表于 : 2012-03-08 17:17
dailiangkeyboy
学习学习