Oracle 10g 在linux redhat 5.4系统安装过程
实验环境
操作系统: linux 5.4
日期:2010-09-04
实验目标
成功的安装Oracle 10g 在linux redhat 5.4系统安过程
实验步骤
1,安装相关的软件包
清单如下:
rpm -ivh binutils-2.17.50.0.6-14.el5.i386.rpm
rpm -ivh binutils-devel-2.17.50.0.6-14.el5.i386.rpm
rpm -ivh compat-db-4.2.52-5.1.i386.rpm
rpm -ivh compat-libstdc++-296-2.96-138.i386.rpm
rpm -ivh compat-libstdc++-33-3.2.3-61.i386.rpm
rpm -ivh control-center-2.16.0-16.el5.i386.rpm
rpm -ivh control-center-devel-2.16.0-16.el5.i386.rpm
rpm -ivh gcc-4.1.2-48.el5.i386.rpm
rpm -ivh gcc-c++-4.1.2-48.el5.i386.rpm
rpm -ivh glibc-2.5-49.i386.rpm
rpm -ivh glibc-common-2.5-49.i386.rpm
rpm -ivh libgnome-2.16.0-6.el5.i386.rpm
rpm -ivh libgnome-devel-2.16.0-6.el5.i386.rpm
rpm -ivh libstdc++-4.1.2-48.el5.i386.rpm
rpm -ivh libstdc++-devel-4.1.2-48.el5.i386.rpm
rpm -ivh make-3.81-3.el5.i386.rpm
rpm -ivh pdksh-5.2.14-36.el5.i386.rpm
rpm -ivh sysstat-7.0.2-3.el5.i386.rpm
rpm -ivh screen-4.0.3-1.el5_4.1.i386.rpm
rpm -ivh gnome-screensaver-2.16.1-8.el5.i386.rpm
rpm -ivh setarch-2.0-1.1.i386.rpm
rpm -ivh libaio-0.3.106-5.i386.rpm
rpm -ivh libaio-devel-0.3.106-5.i386.rpm
rpm -ivh libXp-1.0.0-8.1.el5.i386.rpm
rpm -ivh libXp-devel-1.0.0-8.1.el5.i386.rpm
2,编辑vi /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
net.core.rmem_default=262144
net.core.rmem_max=262144
net.core.wmem_default=262144
net.core.wmem_max=262144
执行命令生效:/sbin/sysctl –p
3,编辑vi /etc/security/limits.conf文件,在末尾添加下列行
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
4,建立相关的安装目录
mkdir /opt
mkdir /opt/app
mkdir /opt/app/oracle
5,建立dba,oinstall组与oracle用户
#groupadd oinstall
#groupadd dba
#useradd oracle -g oinstall -G dba
#passwd oracle
#chown -R oracle.oinstall /opt
6,执行命令,使其进入图形安装模式
xhost +
7,切换到oracle用户 (su - oracle)
编辑.bash_profile文件,添加如下行,设置oracle用户的环境变量
TMP=/tmp;TMPDIR=$TMP;export TMPDIR
ORACLE_BASE=/opt/app/oracle;export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1;export ORACLE_HOME
ORACLE_SID=orcl;export ORACLE_SID
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
执行命令,立即生效:source /opt/app/oracle/.bash_profile
8,解压oracle安装文件
tar -xvzf 10201_database_linux32.tar.gz
9,安装oracle
执行命令./runInstaller
安装完成之后,再执行两个脚本就可以了:
使用root用户来执行该脚本,分别执行/opt/app/oracle/oraInventory/orainstRoot.sh和/opt/app/oracle/product/10.2.0/db_1/root.sh
退出安装界面
切换到oracle用户进入SQL操作界面:
Sqlplus / as sysdba (sqlplus / nolog)
SQL>
查看是否可以进入web界面管理oracle10g数据库
执行命令:emctl status dbconsole
启动web界面:emctl start dbconsole
停止web界面:emctl stop dbconsole
(默认安装完oracle之后就已经启动oracle 10g 的web的管理界面)
在火狐浏览器输入http://127.0.0.1 :1158/em进入web操作界面
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/24546326/viewspace-672578/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/24546326/viewspace-672578/