Oracle Linux 6.5安装Oracle 11gr2

终于开始安装ASM和RAC的行程了.

Linux下准备工作

vi /etc/selinux/config-------永久关闭selinux

SELINUX=disabled--------然后重启服务器

 

chkconfig iptables off 重启永久关闭防火墙

安装包

mount /dev/cdrom /mnt 
cd /mnt/cdrom/Server/Packages 
rpm -Uvh binutils-2*x86_64*   
rpm -Uvh glibc-2*x86_64* nss-softokn-freebl-3*x86_64*  
rpm -Uvh glibc-2*i686* nss-softokn-freebl-3*i686*   
rpm -Uvh compat-libstdc++-33*x86_64*   
rpm -Uvh glibc-common-2*x86_64*   
rpm -Uvh glibc-devel-2*x86_64*   
rpm -Uvh glibc-devel-2*i686*   
rpm -Uvh glibc-headers-2*x86_64*  
rpm -Uvh elfutils-libelf-0*x86_64*   
rpm -Uvh elfutils-libelf-devel-0*x86_64* 
rpm -Uvh gcc-4*x86_64*   
rpm -Uvh gcc-c++-4*x86_64*   
rpm -Uvh ksh-*x86_64*   
rpm -Uvh libaio-0*x86_64*   
rpm -Uvh libaio-devel-0*x86_64*   
rpm -Uvh libaio-0*i686*   
rpm -Uvh libaio-devel-0*i686*   
rpm -Uvh libgcc-4*x86_64*   
rpm -Uvh libgcc-4*i686*   
rpm -Uvh libstdc++-4*x86_64*   
rpm -Uvh libstdc++-4*i686*   
rpm -Uvh libstdc++-devel-4*x86_64*   
rpm -Uvh make-3.81*x86_64*   
rpm -Uvh numactl-devel-2*x86_64*   
rpm -Uvh sysstat-9*x86_64*   
rpm -Uvh compat-libstdc++-33*i686*   
rpm -Uvh compat-libcap*

查询是否安装如下包

rpm -q binutils compat-libstdc++-33 compat-gcc-34-c++ elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc glibc-common glibc-devel glibc-headers kernel-headers ksh libaio libaio-devel libgcc libgomp libstdc++ libstdc++-devel make sysstat numactl-devel unixODBC unixODBC-devel openmotif22 openmotif compat-db libXp

输出如下:

binutils-2.20.51.0.2-5.36.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.i686

package compat-gcc-34-c++ is not installed

elfutils-libelf-0.152-1.el6.x86_64
elfutils-libelf-devel-0.152-1.el6.x86_64
gcc-4.4.7-4.el6.x86_64
gcc-c++-4.4.7-4.el6.x86_64
glibc-2.12-1.132.el6.x86_64
glibc-2.12-1.132.el6.i686
glibc-common-2.12-1.132.el6.x86_64
glibc-devel-2.12-1.132.el6.x86_64
glibc-devel-2.12-1.132.el6.i686
glibc-headers-2.12-1.132.el6.x86_64
kernel-headers-2.6.32-431.el6.x86_64
ksh-20120801-10.el6.x86_64
libaio-0.3.107-10.el6.x86_64
libaio-0.3.107-10.el6.i686
libaio-devel-0.3.107-10.el6.x86_64
libaio-devel-0.3.107-10.el6.i686
libgcc-4.4.7-4.el6.x86_64
libgcc-4.4.7-4.el6.i686
libgomp-4.4.7-4.el6.x86_64
libstdc++-4.4.7-4.el6.x86_64
libstdc++-4.4.7-4.el6.i686
libstdc++-devel-4.4.7-4.el6.x86_64
make-3.81-20.el6.x86_64
sysstat-9.0.4-22.el6.x86_64
numactl-devel-2.0.7-8.el6.x86_64

package unixODBC is not installed
package unixODBC-devel is not installed
package openmotif22 is not installed

openmotif-2.3.3-6.1.el6_4.x86_64

package compat-db is not installed

libXp-1.0.0-15.1.el6.x86_64

继续安装包

# rpm -ivh compat-db-4.6.21-15.el6.x86_64.rpm compat-db42-4.2.52-15.el6.x86_64.rpm compat-db43-4.3.29-15.el6.x86_64.rpm   
# rpm -ivh compat-gcc-34-c++-3.4.6-19.el6.x86_64.rpm compat-gcc-34-3.4.6-19.el6.x86_64.rpm   
# rpm -ivh unixODBC-2.2.14-12.el6_3.x86_64.rpm unixODBC-devel-2.2.14-12.el6_3.x86_64.rpm   
# rpm -ivh openmotif-2.3.3-6.1.el6_4.x86_64.rpm openmotif22-2.2.3-19.el6.x86_64.rpm libXp-1.0.0-15.1.el6.x86_64.rpm

在每一个节点上添加安装Oracle Grid的用户、组和家目录,并设置权限。

/usr/sbin/groupadd -g 1000 oinstall

/usr/sbin/groupadd -g 1020 asmadmin

/usr/sbin/groupadd -g 1021 asmdba

/usr/sbin/groupadd -g 1022 asmoper

/usr/sbin/groupadd -g 1031 dba

/usr/sbin/groupadd -g 1032 oper

useradd -u 1100 -g oinstall -G asmadmin,asmdba,asmoper,oper,dba grid

useradd -u 1101 -g oinstall -G dba,asmdba,oper oracle

mkdir -p /u01/app/11.2.0/grid

mkdir -p /u01/app/grid

chown -R grid:oinstall /u01

mkdir /u01/app/oracle

chown oracle:oinstall /u01/app/oracle

chmod -R 775 /u01/

修改文件参数

# vi /etc/sysctl.conf
fs.aio-max-nr = 1048576 
fs.file-max = 6815744   
kernel.shmall = 2097152   
kernel.shmmax = 2147483648   
kernel.shmmni = 4096   
kernel.sem = 250 32000 100 128   
net.ipv4.ip_local_port_range = 9000 65500   
net.core.rmem_default = 4194304   
net.core.rmem_max = 4194304   
net.core.wmem_default = 262144   
net.core.wmem_max = 1048586

sysctl -p

文件描述符

cat >> /etc/security/limits.conf << EOF 
oracle  soft  nproc  2047   
oracle  hard  nproc  16384   
oracle  soft  nofile  1024   
oracle  hard  nofile  65536   
oracle  soft  stack  10240

修改登录模块

cat >> /etc/pam.d/login << EOF 
session required /lib64/security/pam_limits.so   
EOF

cd /mnt/install_DVD

cd Packages

ll | grep preinstall

-rw-r--r-- 1 root root 15524 Jan 16 2013 oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.x86_64.rpm

rpm -ivh oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.x86_64.rpm

在virtualbox再虚拟一个eth1.满足服务器要求

  • 每个服务器节点至少需要2块网卡,一块对外网络接口,一块私有网络接口(心跳)。
时间: 2024-10-07 23:11:08

Oracle Linux 6.5安装Oracle 11gr2的相关文章

RAC分解步骤之一,在oracle linux 4u4上安装oracle 10.2.0.1.0操作日志

练习oracle的rac组建过程,第一步,先练习4u4上安装oracle 10.2.0.1.0.直接安装rac,有些难度.从简单的做起.总RAC步骤,参照小布老师的RAC组建. 1. 启动vc,登陆vsphere 5.1 , 2. 新建一个虚拟机,Redhat 4 32bit 兼容的虚拟机,内存1G,硬盘30G.移除软驱,把光驱选择为ISO镜像文件. 3. 启动虚拟机,选择英文,选择美式键盘,选择custom,选择自己手动分区.分区为2个,一个swap,2100M,强制主分区,另一个为ext3,

Oracle Linux 5.8安装Oracle 10.2.0.5 x64

一.正常方式全新安装 1. oracle安装环境准备 (1) 确认安装以下包 # rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE}  (%{ARCH})\n' binutils compat-libstdc++-33 compat-gcc-34-c++ elfutils-libelf elfutils-libelf-devel elfutils-libelf-devel-static gcc gcc-c++ glibc glibc-common glibc-d

oracle linux 4.8安装oracle 10g rac环境之cluster安装

安装环境: 操作系统:oracle linux 4.8 64位 集群软件:10201_clusterware_linux_x86_64.cpio.gz 数据库:10201_database_linux_x86_64.cpio.gz cpu:1颗 内存:必须1.5G以上(一般是2G) 本地磁盘:20G(根分区17G,swap是4G,boot分区是512M) asm下载地址:http://www.oracle.com/technetwork/server-storage/linux/download

Oracle Linux 6.5安装Oracle 11.2.0.4 x64

1. oracle11g安装环境准备 采用OEL6.5 x64安装,安装过程与Redhat一致,安装过程中选中桌面,开发包,开发库,其它默认选项.   Desktops > X Window System    Development > Additional Development    Development > Development Tools 安装好后:   (1) 关闭selinux    (2) 关闭iptables    (3) 重启 2. 开始安装基础包(放入光盘.或挂

oracle linux 5.8安装oracle 10数据库

1.下载oracle luinux 5.8和oracle 10g数据库软件 2.操作系统安装 (1).图形化界面安装 (2).系统分区 /       根分区(9G) /home    安装oracle分区(10G) swap     交换分区(1G) (3).禁用防火墙 (4).禁用Selinux 3.搭建yum网络源 [[email protected] Server]# cd /etc/yum.repos.d/ [[email protected] yum.repos.d]# wget h

oracle linux 5.5安装oracle 11g rac环境

安装环境: 操作系统:oracle linux 5.5 64位 集群软件:linux.x64_11gR2_grid.zip 数据库:linux.x64_11gR2_database_1of1.zip,linux.x64_11gR2_database_1of2.zip asm软件:oracleasm-2.6.18-194.el5-2.0.5-1.el5.x86_64.rpm       oracleasmlib-2.0.4-1.el5.x86_64.rpm       oracleasm-supp

oracle linux 4.8安装oracle 10g rac环境之database安装

1.安装oracle database软件 [[email protected] ~]$ cd database/ [[email protected] database]$ ./runInstaller rac10g01节点: [[email protected] ~]# sh /u01/oracle/product/10.2.0.1/db_1/root.sh Running Oracle10 root.sh script... The following environment variab

oracle linux 6.5 安装 oracle 12cR2数据库(3)-手工静默建CDB库

? 参考步骤: dbca -silent -createDatabase -templateName General_Purpose.dbc -gdbname oradb.example.com -sid oradb -responseFile NO_VALUE -characterSet AL32UTF8 -memoryPercentage 30 -emConfiguration LOCAL ? Enter SYSTEM user password: password Enter SYS us

【翻译自mos文章】在Oracle Linux 7上安装11.2.0.4时遇到缺少 pdksh-5.2.14 包

在Oracle Linux 7上安装11.2.0.4时遇到缺少 pdksh-5.2.14 包 来源于: Missing pdksh-5.2.14 package during Oracle database 11.2.0.4 install on Oracle Linux 7 (文档 ID 1962046.1) 适用于: Oracle Database - Enterprise Edition - Version 11.2.0.4 to 11.2.0.4 [Release 11.2] Linux