您的位置:首页 > 博客中心 > 数据库 >

CentOS 6.5安装Oracle 11.2.0.4------CentOS 6.5安装

时间:2022-03-14 03:23

规划:

IP:192.168.213.199 mask: 255.255.255.0 gateway:192.168.213.1 DNS1:202.101.172.35

磁盘分区:

磁盘总大小:25G

/u01 5*1024 5120M 数据库软件分区至少大于5G

/oradata 12*1024 12288M 数据库文件分区

/swap 1100*2M

/ 剩下

1. 插入光盘

2.直接回车进入下一步

3.选择安装时语言,这里选择简体中文

4.选择键盘

5. 选择存储设备,这里用的普通硬盘直接选择基本存储设备

6.设置计算机名

7.配置网络

8.选择时钟时区,这里很重要我们选择亚洲/上海

9.设置密码,尽量设置密码复杂强度

弱密码会有以下提示,这里测试环境不用理

10.创建分区

注意先划boot分区,可以不用划,但是划boot分区不能是lvm,大小200M以内足已

划分lvm

格式化分区

11.选择安装组件

选择Basic Server-现在自定义

去掉java平台及Perl支持

应用程序选择Emacs及互联网应用程序

桌面可全选

开始安装

安装完成

重新引导

注意设置NTP

添加host记录

[root@ORA11G-DG1 ~]# cat /etc/hosts

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4

::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

192.168.213.199 ORA11G-DG1

[root@ORA11G-DG1 ~]#

关闭selinux

[root@ORA11G-DG1 ~]# sed -i ‘/SELINUX/s/enforcing/disabled/‘ /etc/selinux/config

[root@ORA11G-DG1 ~]# cat /etc/sysconfig/selinux

# 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

# SELINUXTYPE= can take one of these two values:

# targeted - Targeted processes are protected,

# mls - Multi Level Security protection.

SELINUXTYPE=targeted

热门排行

今日推荐

热门手游