CentOS-6.5-x86_64静默安装Oracle11g(11.2.0.1.0)
一、环境说明
1、使用VMware Workstation 12 Pro安装的CentOS-6.5-x86_64
2、配置的固定IP地址192.168.183.14
3、第一次安装Oracle11g数据库,版本11.2.0.1.0
二、Oracle11.2.0.1.0安装包
官网下载:https://www.oracle.com/database/technologies/112010-linx8664soft.html
linux.x64_11gR2_database_1of2.zip
linux.x64_11gR2_database_2of2.zip
三、确认主机名
[oracle@oracle ~]$ hostname
oracle
四、修改主机名
[root@oracle ~] vim /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.183.14 oracle ##增加这一行
五、关闭防火墙
[root@oracle oracle]# service iptables status
Table: filter
Chain INPUT (policy ACCEPT)
num target prot opt source destination
1 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
2 ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0
3 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
4 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22
5 REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
Chain FORWARD (policy ACCEPT)
num target prot opt source destination
1 REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
Chain OUTPUT (policy ACCEPT)
num target prot opt source destination
[root@oracle oracle]# service iptables stop
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Flushing firewall rules: [ OK ]
iptables: Unloading modules: [ OK ]
[root@oracle oracle]# service iptables status
iptables: Firewall is not running.
[root@oracle oracle]#
六、使用SCP工具将oracle安装包上传到/home/oracle/Downloads
[oracle@oracle ~]$ cd /home/oracle/Downloads
[oracle@oracle Downloads]$ ls
linux.x64_11gR2_database_1of2.zip linux.x64_11gR2_database_2of2.zip
[oracle@oracle Downloads]$
七、Linux x86-64 有以下补丁软件包要求
具体可见官网:https://docs.oracle.com/cd/E11882_01/install.112/e24326/toc.htm#BHCIFHBE
八、安装缺少的系统补丁包
这边我是采用的创建本地yum源、进行补丁的yum安装
1、下载相应版本的镜像文件iso
这边我是采用的阿里镜像站,下载的CentOS-6.5-x86_64-bin-DVD1.iso
镜像链接:https://mirrors.aliyun.com/centos-vault/6.5/isos/x86_64/
2、将iso文件通过scp工具上传到/soft/
路径下 (创建soft文件夹 mkdir soft
)
3、mkdir /mnt/centos65
4、mount -o loop /soft/CentOS-6.5-x86_64-bin-DVD1.iso /mnt/centos65
(重启失效)
5、查看挂载情况 df -h
[root@oracle ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 18G 11G 6.6G 61% /
tmpfs 931M 72K 931M 1% /dev/shm
/dev/sda1