Home >Database >Mysql Tutorial >SUSE Enterprise Linux 11企业版安装Oracle 11.2

SUSE Enterprise Linux 11企业版安装Oracle 11.2

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 17:02:151045browse

折腾了下,我居然在SUSE Enterprise Linux 11企业版下把Oracle 11g装上了。这个已经是非常难得。 记得10年前,如果你能在Linux下

折腾了下,我居然在SUSE Enterprise Linux 11企业版下把Oracle 11g装上了。这个已经是非常难得。

记得10年前,如果你能在Linux下装上Oracle,那基本是很牛逼的人物。现在在linux下装Oracle,估计已经比以前简单很多了,加上文档也很完善。

记录一下全过程,如果有人做成脚本,那就牛逼。

用到的软件

vmware workstation 7.1

SuSE企业版11 sp1 DVD 版

Oracle 11gR2

linux_11gR2_database_1of2.zip

linux_11gR2_database_2of2.zip


1:安装SuSE 11 sp1

我是在vmware workstation里安装,40G硬盘,2G内存,全过程的安装,都基本是用默认,安装的过程,也基本没啥可调整的。

为了减少麻烦,我安装是用英文安装,,这样就避免掉作者遇到的问题。另外打开ssh端口,这样方便很多。

2:安装必备软件

启动后,进入图形界面,需要装几个软件包,不如装的过程,就会失败。进入到命令行下,

zypper install binutils-2.19 gcc-4.3 gcc-c++-4.3 glibc-2.9 glibc-devel-2.9 ksh-93t libstdc++33-3.3.3 libstdc++43-4.3.3_20081022 libstdc++43-devel-4.3.3_20081022 libaio-0.3.104 libaio-devel-0.3.104 libgcc43-4.3.3_20081022 libstdc++-devel-4.3 make-3.81 sysstat-8.1.5 unixODBC-32bit-2.2.12 unixODBC-devel-32bit-2.2.12

3:进行基本设置

/etc/sysctl.conf 加上如下内容

fs.aio-max-nr = 1048576

fs.file-max = 6815744

kernel.shmall = 2097152

kernel.shmmax = 536870912

kernel.shmmni = 4096

 

kernel.sem = 250 32000 100 128

net.ipv4.ip_local_port_range = 9000 65500

net.core.rmem_default = 262144

net.core.rmem_max = 4194304

net.core.wmem_default = 262144

net.core.wmem_max = 1048586

net.ipv4.tcp_wmem = 262144 262144 262144

net.ipv4.tcp_rmem = 4194304 4194304 4194304

 

# /sbin/sysctl –p   使修改的参数立即生效


创建oracle用户和组及安装目录

 

oracle ( 第一个问题就在这里,必须加 -m )

mkdir –p /fantlam/oracle 

 

su – oracle

oracle@linuxsight:/home/oracle> vi .profile 添加

 

ORACLE_BASE=/fantlam

ORACLE_HOME=$ORACLE_BASE/oracle

ORACLE_SID=fantlam

PATH=$ORACLE_HOME/bin:$PATH

export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH

 

oracle@linuxsight:/home/oracle> exit (退出登录让设置生效)

# su – oracle

oracle@linuxsight:/home/oracle> env | grep ORA

ORACLE_SID=fantlam

ORACLE_BASE=/fantlam

ORACLE_HOME=/fantlam/oracle

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn