Home  >  Article  >  Database  >  Ubuntu 7.10中安装Oracle 10.2.0 企业版过程

Ubuntu 7.10中安装Oracle 10.2.0 企业版过程

WBOY
WBOYOriginal
2016-06-07 16:51:301019browse

安装环境:Ubuntu 7.10与Oracle 10.2.0 企业版 一, 检查硬件需求及内存硬盘需求。内存512M,swap分区500M二,安装需要的包sudo

安装环境:Ubuntu 7.10与Oracle 10.2.0 企业版

一,, 检查硬件需求及内存硬盘需求。
内存512M,swap分区500M

二,安装需要的包
sudo apt-get install gcc make binutils lesstif2 libc6 libc6-dev rpm libmotif3 libaio1 libstdc++5 alien

三,添加用户和组
sudo groupadd oinstall
sudo groupadd dba
sudo groupadd oper
sudo useradd -g oinstall -G dba oracle
sudo passwd oracle

四,将oracle安装文件拷贝到目录/u01下,并解压设置权限
sudo mkdir /u01
sudo chown -R oracle /u01
sudo chmod -R 777 /u01
Oracle解压目录为/u01/ORACLE10GR2/database

五,修改sysctl.conf
sudo gedit /etc/sysctl.conf

添加如下行:
kernel.shmmax = 3147483648
kernel.shmmni = 4096
kernel.shmall = 2097152
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000

然后运行 sudo sysctl -p 使设置生效

六,修改 limits.conf
sudo gedit /etc/security/limits.conf
添加
* soft nproc 2407
* hard nproc 16384
* soft nofile 1024
* hard nofile 65536

七,建立oracle的安装目录
sudo mkdir -p /u01/app/oracle/product/10.2.0/db_1
sudo chown -R oracle.oinstall /u01

八,建立一个 /etc/RedHat-release文件,添加下行
redhat-4
或Red Hat Linux release 4.1

八,设置环境变量
sudo gedit /home/oracle/.profile

添加如下行
# add for oracle
ORACLE_BASE=/u01/app/oracle;export ORACLE_BASE

ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1;export ORACLE_HOME

ORACLE_SID=orcl;export ORACLE_SID

ORACLE_TERM=xterm; export ORACLE_TERM

PATH=/usr/sbin:$PATH; export PATH

PATH=$ORACLE_HOME/bin:$PATH; export PATH

LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH

CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH

if [ $USER = "oracle" ]; then

if [ $SHELL = "/bin/ksh" ]; then

ulimit -p 16384

ulimit -n 65536

else

ulimit -u 16384 -n 65536

fi

fi

#end add for 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