Oracle12c for CentOs6.5安装
来源:互联网 发布:9月21网络大电影票房 编辑:程序博客网 时间:2024/05/18 00:11
1. 检查软硬件要求
a. 物理内存
[root@ora12c ~]# grep MemTotal/proc/meminfo
MemTotal: 1907580 kB
b. Swap配置
[root@ora12c ~]# grep SwapTotal/proc/meminfo
SwapTotal: 4194296 kB
c. Tmp可用空间
[root@ora12c ~]# df -h /tmp
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 36G 11G 24G 31% /
d. 剩余磁盘空间
[root@ora12c ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 36G 11G 24G 31% /
tmpfs 932M 72K 932M 1% /dev/shm
/dev/sda1 97M 34M 59M 37% /boot
/dev/sr0 4.2G 4.2G 0 100% /mnt/cdrom
e. 剩余磁内存和swap大小
[root@ora12c ~]# free
total used free shared buffers cached
Mem: 1907580 1786076 121504 0 20664 1521880
-/+ buffers/cache: 243532 1664048
Swap: 4194296 0 4194296
f. 操作系统检查(12c只能安装在64位系统)
[root@ora12c ~]# uname -a
Linux ora12c 2.6.32-431.el6.x86_64 #1 SMPFri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
2. 最小存储要求
a. 磁盘需求
Enterprise Edition
6.4 GB
b. Tmp需求
1GB
3. 最小内存要求
Ram
swap
Between 1GB and 2GB
1.5 times sizes of RAM
Between 2GB and 16GB
Equal to the size of RAM
More than 16 GB
16 GB
4. 软件包安装
[root@ora12c ~]# yum -y install binutils compat-libcap1compat-libstdc++-33 compat-libstdc++-33.i686 gcc gcc-c++ glibc glibc.i686glibc-devel glibc-devel.i686 ksh libgcc libgcc.i686 libstdc++ libstdc++.i686libstdc++-devel libstdc++-devel.i686 libaio libaio.i686 libaio-devellibaio-devel.i686 ibXext ibXext.i686 libX11 libX11.i686 libxcb libxcb.i686libXi libXi.i686 make sysstat
5. 安装Linux pam(待定)
6. 创建操作系统组合用户
[root@ora12c ~]# groupadd oinstall
[root@ora12c ~]# groupadd dba
[root@ora12c ~]# grep dba /etc/group
[root@ora12c ~]# grep oinstall /etc/group
[root@ora12c ~]# id oracle
id: oracle: No such user
[root@ora12c ~]# useradd -g oinstall -G dbaoracle
[root@ora12c ~]# passwd oracle
7. 配置内核参数
[root@ora12c ~]# vim /etc/sysctl.conf
kernel.shmall = 4294967296
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
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 = 1048586
"/etc/sysctl.conf" 51L, 1458Cwritten
# 使内核参数生效
[root@ora12c ~]# sysctl –p
8. 配置资源限制
[root@ora12c ~]# vi/etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
oracle hard stack 32768
9. 创建目录
[root@ora12c ~]# mkdir -p/u01/app/oracle/product/12.1.0/db_1
[root@ora12c ~]# chown -R oracle.oinstall/u01
[root@ora12c ~]# chmod -R 775 /u01/app/
10. 配置环境变量
[oracle@ora12c ~]$ cat .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startupprograms
PATH=$PATH:$HOME/bin
export PATH
########## for Oracle ##########
ORACLE_BASE=/u01/app/oracle
export ORACLE_BASE
ORACLE_HOME=/u01/app/oracle/product/12.1.0/db_1
export ORACLE_HOME
ORACLE_SID=ora12c
export ORACLE_SID
PATH=$PATH:.:$ORACLE_HOME/bin
export PATH
11. 解压缩安装即可
- Oracle12c for CentOs6.5安装
- Centos6.5安装Oracle12c安装笔记
- Oracle12c安装记录(centos6.5,命令行)
- CentOS6.8安装Oracle12C数据库
- CentOS6.5(X64)下全字符方式安装ORACLE12C
- Ganglia 安装 for centos6.5
- mysql for centos6.5 安装
- Nginx1.6 for centos6.5安装
- hadoop-2.7.1 For CentOS6.5安装
- centos6.5 安装navicat for mysql
- Mysql5.6 for Centos6.5 二进制安装
- mplayer for centos6 安装
- Oracle12c ADG for Centos7
- oracle12C RAC GI + UDEV + ASM 在centos6下安装详细步骤
- phpMyAdmin for CentOS6.5安装、配置与使用
- Mysql5.6 for Centos6.5源码编译安装
- Linux6安装Oracle12c
- Solaris11_X86安装Oracle12c
- 如何在AngularJs中调用第三方插件库
- Spark GraphX在淘宝的实践
- mysql 存储过程 游标 循环
- 回首2016,拥抱2017
- python常用命令
- Oracle12c for CentOs6.5安装
- pyalgotrade-坑2-slippage错误-------python学习笔记34
- 实现邮箱验证功能的代码
- Ubuntu 16.04远程登录服务器--ssh的安装和配置
- 原生js格式化json和格式化xml的方法
- 一个字母引发的血案 java.io.File中mkdir()和mkdirs()
- 基于用户的协同过滤算法和基于物品的协同过滤算法之java实现
- 实现MD5加密的代码
- 七、带你进入神奇的symfony世界