- 32
- 0
- 约8.32千字
- 约 26页
- 2016-03-31 发布于湖北
- 举报
Linux AS 7.0安装 Oracle12c 12.1.0.2.0.doc
Linux AS 7.0
安装
Oracle12c 12.1.0.2.0
2015-02-15
目 录
一、安装检查准备 3
二、ORACLE 配置 3
1、禁用secure Linux 3
2、设置核心参数 3
3、设置oracle用户的shell limit 4
4、更改/etc/pam.d/login文件 4
5、新增组和用户 5
6、检查系统安装包 5
7、更改oracle用户环境变量 6
8、创建Oracle的安装目录 6
9、准备Oracle 12c安装文件 7
三、Oracle安装过程图解 8
一、2c数据库至少要有512MB的内存和至少1GB或者两倍内存大小的交换空间,对于系统内存大于2GB的服务器,交换空间可以介于2GB—4GB之间
RAM Swap Space Between 1 GB and 2 GB 1.5 times the size of RAM Between 2 GB and 16 GB Equal to the size of RAM More than 16 GB 16 GB
grep MemTotal /proc/meminfo
grep SwapTotal /proc/meminfo
防火墙暂时关闭。
安装AS 7.0尽量把Development Tools里的开发包都安装上,避免缺失文件。
二、ORACLE 1、禁用secure Linux
因为SELINUX对oracle有影响,所以把secure linux设成无效
通过编辑 vi /etc/selinux/config 文件禁用secure linux,确认其中的SELINUX标记如下:SELINUX=disabled。
2、设置核心参数
vi /etc/sysctl.conf
kernel.shmmax = 536870912 1073741824 2147483648
kernel.shmmni = 4096
kernel.shmall = 2097152
kernel.sem = 250 32000 100 128
fs.aio-max-nr = 1048576
fs.file-max = 6815744
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default=262144
net.core.rmem_max=4194304
net.core.wmem_default=262144
net.core.wmem_max=1048576
sysctl -p命令使得内核改变立即生效
kernel.shmmax = 536870912 1073741824 2147483648 分别代表1G、2G、4G
(根据系统物理内存大小,选择相应值)
[root@localhost ~]# sysctl -p
kernel.shmmax = 1073741824
kernel.shmmni = 4096
kernel.shmall = 2097152
kernel.sem = 250 32000 100 128
fs.aio-max-nr = 1048576
fs.file-max = 6815744
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
3、设置oracle用户的shell limit
vi /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
4、更改/etc/pam.d/login文件
添加下面的内容,使shell limit生效:
vi /etc/pam.d/login
session required pam_limits.so
5、新增组和用户
oinstall组中的成员用于管理Oracle数据库软件(即各种Oracle物理软件)。
dba组中的成员用于管理、操作数据库,在使用操作系统验证的情况下,dba组中的成员在数据库中拥有sysdba权限。
groupadd oinstall
groupadd dba
useradd oracle -g oinstall -G d
原创力文档

文档评论(0)