Home > Database > Mysql Tutorial > Lubuntu 12.10 桌面版安装Oracle 11g

Lubuntu 12.10 桌面版安装Oracle 11g

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 17:26:26
Original
1357 people have browsed it

在网上找到在 LUbuntu 12.10 桌面版上成功安装 Oracle11g 的相关资料。记录之。

在网上找到在 LUbuntu 12.10 桌面版上成功安装 Oracle11g 的相关资料。记录之。

1、 安装依赖项
sudo apt-get install gcc make binutils libc6 libc6-dev lesstif2 rpm libmotif3  libstdc++5  libaio1 libaio-dev

2、 创 建 ORACLE 用 户
sudo addgroup oinstall
sudo addgroup dba
sudo addgroup nobody
sudo usermod -g nobody nobody
sudo useradd -g oinstall -G dba -m -d /home/oracle -s /bin/bash oracle
sudo passwd oracle

3、 创 建 ORACLE 安装目 录
sudo mkdir  /opt/oracle
sudo mkdir /opt/oraInventory
sudo chown -R oracle:oinstall /opt/oracle
sudo chown -R oracle:oinstall /opt/oraInventory

4、修改/etc/sysctl.conf,修改linux 内核参数
sudo gedit /etc/sysctl.conf  在文件最后添加
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000


运行一下命令更新内核参数
sudo sysctl -p

5、添加对oracle用户的内核限制,
sudo gedit /etc/security/limits.conf 在文件最后添加:
oracle soft nproc 2047
oracle hard nproc 16383
oracle soft nofile 1023
oracle hard nofile 65535

6、
检查/etc/pam.d/login,,增加以下行(实际已有了不用增加)
session required pam_limits.so


检查/etc/pam.d/su,增加以下行(实际已有了不用增加)
session required pam_limits.so
 

7、因为Oracle 默认Linux 系统是Red Hat ,模仿Red Hat
创建文件的链接,使Ubuntu 的目录结构与Red Hat 一致
sudo ln -s /usr/bin/awk /bin/awk
sudo ln -s /usr/bin/rpm /bin/rpm
sudo ln -s /usr/bin/basename /bin/basename
sudo ln -s /usr/lib/x86_64-linux-gnu /usr/lib64


sudo mkdir /etc/rc.d
sudo ln -s /etc/rc0.d /etc/rc.d/rc0.d
sudo ln -s /etc/rc1.d /etc/rc.d/rc1.d
sudo ln -s /etc/rc2.d /etc/rc.d/rc2.d
sudo ln -s /etc/rc3.d /etc/rc.d/rc3.d
sudo ln -s /etc/rc4.d /etc/rc.d/rc4.d
sudo ln -s /etc/rc5.d /etc/rc.d/rc5.d
sudo ln -s /etc/rc6.d /etc/rc.d/rc6.d
sudo ln -s /etc/init.d /etc/rc.d/init.d


编辑/etc/RedHat-release。
su
echo 'Red Hat Linux release 5' > /etc/redhat-release

linux

Related labels:
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template