新安装了Debian5,成功安装了oracle11g.记录过程如下。
1、升级一下系统
#apt-get update
#apt-get upgrade
2、安装需要的一些组件:
#apt-get install gcc make binutils lesstif2 libc6 libc6-dev rpm libmotif3 libaio1 libstdc++ gawk alien ksh
3、创建安装环境1
#mkdir /opt/oracle
#addgroup oinstall
#addgroup dba
#useradd -g oinstall -G dba -p passwd -d /home/oracle -s /bin/bash -m oracle
#passwd oracle
#chown -R oracle:oinstall /opt/oracle
#chown -R oracle:oinstall /opt/database(安装文件目录)
#ln -s /usr/bin/awk /bin/awk
#ln -s /usr/bin/rpm /bin/rpm
#ln -s /usr/bin/basename /bin/basename
#mkdir /etc/rc.d
#ln -s /etc/rc0.d /etc/rc.d/rc0.d
#ln -s /etc/rc1.d /etc/rc.d/rc1.d
#ln -s /etc/rc2.d /etc/rc.d/rc2.d
#ln -s /etc/rc3.d /etc/rc.d/rc3.d
#ln -s /etc/rc4.d /etc/rc.d/rc4.d
#ln -s /etc/rc5.d /etc/rc.d/rc5.d
#ln -s /etc/rc6.d /etc/rc.d/rc6.d
#ln -s /etc/init.d /etc/rc.d/init.d
#echo "Red Hat Linux release 4" > /etc/redhat-release
4、编辑/etc/sysctl.conf
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 65000
net.core.rmem_default = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144
5、编辑/etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16383
oracle soft nofile 1023
oracle hard nofile 65535
6、编辑/home/oracle/.bashrc增加如下内容
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=/opt/oracle/product/11.2.0/db_home1
export ORACLE_SID=ORCL
export PATH=$PATH:/opt/oracle/product/11.2.0/db_home1/bin
7、设置安装环境2
#xhost +
#su - oracle
$export DISPLAY=:0.0
$export LANG=C
$cd /opt/database
$./runInstaller -ignoreSysPrereqs
8、按照提示正常安装就可以了。可能出现一个组件检查窗口,选择全部忽略。
9、重新启动Debian系统后手动启动oracle11g的方法
$lsnrctl start
$sqlplus /nolog
sql/ conn /as sysdba
sql/ startup
sql/ quit
$emctl start dbconsole
阅读(1919) | 评论(0) | 转发(0) |