第一步:利用光盘配置本地yum源
过程参见我的日志: http://redcisco.blog.163.com/blog/static/231050062201412271518496/
第二步:利用yum工具安装以下rpm包,若知明细,请认真学习OCP。
yum install compat-* -y
yum install control-* -y
yum install gcc-* -y
yum install glibc-* -y
yum install libaio-* -y
yum install libstdc++-* -y
yum install make-* -y
yum install pdksh-* -y
yum install sysstat-* -y
对于最后一个rpm包,由于依赖性的原因,需要的手动右键安装
libXp-1.0.0-8.1.el5.i386.rpm
第三:修改内核参数文件(共四个),已保证Oracle的预安装准备成功。
vi /etc/sysctl.conf 行末添加以下内容
# 20091208 add content for oracle install
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
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
执行下述命令:#sysctl -p,
导入刚才写入的参数,不执行,oracle在后面安装前的检测会报警。
vi /etc/security/limits.conf 行末添加以下内容
# 20071212 add content for oracle install
soft nproc 2047
hard nproc 16384
soft nofile 1024
hard nofile 65536
vi /etc/pam.d/login 行末添加以下内容
# 20071212 add content for oracle install
session required pam_limits.so
vi /etc/selinux/config
SELINUX=disabled
第四:利用unzip工具将/ocp目录下的Oracle10g-10201-Linux-X32.zip压缩文件直接解压
#mkdir /opc//自己创建的目录
[root@localhost
ocp]#unzip Oracle10g-10201-Linux-X32.zip
[root@localhost ocp]# ls -al
drwxr-xr-x. 3 oracle oinstall 4096 2月 22 18:18 .
dr-xr-xr-x. 26 root root 4096 2月 22 17:20 ..
drwxr-xr-x. 6 root root 4096 7月 3 2005 database
-rwxr-xr-x. 1 root root 668734007 6月 10 2010 Oracle10g-10201-Linux-X32.zip
第五:修改权限
[root@localhost ~]
# chown -R oracle:oinstall /ocp
[root@localhost /]# ls -al
总用量 116
drwxr-xr-x. 3 oracle oinstall 4096 2月 22 18:18 ocp
[root@localhost /]
# export DISPLAY=:0.0//环境变量
[root@localhost /]
# xhost +
access control disabled, clients can connect from any host
//同一个终端下!
[root@localhost /]# su - oracle
[oracle@localhost ~]$
export LANG=en_US
[oracle@localhost ~]$
cd /ocp/database
[oracle@localhost database]$ ls -al
total 36
drwxr-xr-x. 6 oracle oinstall 4096 Jul 3 2005 .
drwxr-xr-x. 3 oracle oinstall 4096 Feb 22 18:18 ..
drwxr-xr-x. 9 oracle oinstall 4096 Jul 3 2005 doc
drwxr-xr-x. 5 oracle oinstall 4096 Jul 3 2005 install
drwxr-xr-x. 2 oracle oinstall 4096 Jul 3 2005 response
-rwxr-xr-x. 1 oracle oinstall 1327 Jul 3 2005 runInstaller//恭喜
drwxr-xr-x. 9 oracle oinstall 4096 Jul 3 2005 stage
-rwxr-xr-x. 1 oracle oinstall 5213 Jul 3 2005 welcome.html
[oracle@localhost database]$ ./runInstaller//可执行文件
//检查系统配置是否符合要求,然后出现“Oracle DataBase 10g安装”对话框
Starting Oracle Universal Installer...
Checking installer requirements...
Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
Passed
All installer requirements met.
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2014-02-22_06-21-52PM.
Please wait ...
[oracle@localhost database]$