首页 / 数据库 / MySQL / CentOS 7(同Red Hat Linux)安装Oracle 11gR2最全最细攻略
CentOS 7(同Red Hat Linux)安装Oracle 11gR2最全最细攻略
前瞻:
1. 安装Gnome桌面版X86_64版本的CentOS 7系统(或者相对应版本的Red Hat Linux等)。 2. 下载安装并激活Xmanager Enterprise 5用于对linux系统的连接访问以及数据传输等。 3. 下载解压缩oracle 11g r2 for linux的程序包,并将其中的[database/stage/Components/oracle.jdk/1.5.0.17.0/1/DataFiles/all.jar]内添加文件夹[fallback]以及放入文件[simsun.ttf]。PS。此步骤用于解决中文状态下安装oracle的乱码问题,也可尝试修改环境变量的方式解决。安装oracle:
步骤一:安装前的配置与部署
1. 配置服务器的IP地址
a. 通过网络连接部分配置linux的固定ip地址b. 配置[/etc/hosts],通过vi编辑器进行编辑,加入固定ip的相关信息,如下: [root@bogon ~]# vi /etc/hosts//在文件最后添加ip地址信息//如:192.168.3.222 oracle 11g
2. 关闭网络防火墙和selinux
进入root。关闭禁用防火墙:[root@bogon ~]# systemctl status firewalld.service //查看防火墙的运行状态 //。。省略 Active: active (running) since 六 2016-08-27 08:54:09 CST; 18min ago //。。表明正在运行 [root@bogon ~]# systemctl stop firewalld.service //关闭防火墙 [root@bogon ~]# systemctl status firewalld.service //再次查看防火墙的运行状态 Active: inactive (dead) since 六 2016-08-27 09:15:16 CST; 10s ago [root@bogon ~]# systemctl disable firewalld.service //禁用防火墙 //。。省略关闭禁用selinux[root@bogon ~]# vi /etc/selinux/config
/* # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=disabled //此处改为disabled # SELINUXTYPE= can take one of three two values: # targeted - Targeted processes are protected, # minimum - Modification of targeted policy. Only selected processes are protected. # mls - Multi Level Security protection. SELINUXTYPE=targeted */重启linux,root下reboot。