OEL上使用yum install oracle-validated 简化主机配置工作
环境:OEL 5.7 + Oracle 10.2.0.5 RAC
如果你正在用OEL(Oracle Enterprise Linux)系统部署Oracle,那么可以使用yum安装oracle-validated包来简化主机配置的部分工作。
配置好yum本地源后,直接执行一条命令
yum install oracle-validated
检查发现它会自动做以下几件事:
1)安装oracle依赖包
2)/etc/sysctl.conf 增加oracle用户内容
3)/etc/security/limits.conf 增加oracle用户内容
4)创建Oracle 用户和相关组
这极大的简化了系统主机配置阶段我们要做的工作内容。
当然我们需要根据实际情况最好要确认/etc/sysctl.conf /etc/security/limits.conf内容合理性。
1. 安装oracle依赖包
yum install oracle-validated
```
[root@oradb28 yum.repos.d]# yum install oracle-validated
Loaded plugins: rhnplugin, security
This system is not registered with ULN.
ULN support will be disabled.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package oracle-validated.x86_64 0:1.1.0-14.el5 set to be updated
ISO/filelists | 3.1 MB 00:00
--> Processing Dependency: gdb for package: oracle-validated
--> Processing Dependency: sysstat for package: oracle-validated
--> Processing Dependency: /usr/lib/libaio.so for package: oracle-validated
--> Processing Dependency: glibc-headers for package: oracle-validated
--> Processing Dependency: unixODBC-devel for package: oracle-validated
--> Processing Dependency: /usr/lib64/libodbccr.so for package: oracle-validated
--> Processing Dependency: gcc-c++ for package: oracle-validated
--> Processing Dependency: libaio-devel for package: oracle-validated
--> Processing Dependency: gcc for package: oracle-validated
--> Processing Dependency: elfutils-libelf-devel for package: oracle-validated
--> Processing Dependency: compat-gcc-34-c++ for package: oracle-validated
--> Processing Dependency: /usr/lib/gcc/x86_64-redhat-linux/4.1.1/libstdc++.a for package: oracle-validated
--> Processing Dependency: /usr/lib/libodbc.so.1 for package: oracle-validated
--> Processing Dependency: compat-gcc-34 for package: oracle-validated
--> Processing Dependency: /usr/lib/libc.so for package: oracle-validated
--> Processing Dependency: /usr/lib64/libaio.so for package: oracle-validated
--> Processing Dependency: /usr/lib64/libc.so for package: oracle-validated
--> Processing Dependency: /usr/lib/libodbccr.so for package: oracle-validated
--> Processing Dependency: kernel-headers for package: oracle-validated
--> Processing Dependency: libXp.so.6 for package: oracle-validated
--> Processing Dependency: libdb-4.2.so()(64bit) for package: oracle-validated
--> Processing Dependency: libodbc.so.1()(64bit) for package: oracle-validated
--> Running transaction check
---> Package compat-db.x86_64 0:4.2.52-5.1 set to be updated
---> Package compat-gcc-34.x86_64 0:3.4.6-4.1 set to be updated
---> Package compat-gcc-34-c++.x86_64 0:3.4.6-4.1 set to be updated
---> Package elfutils-libelf-devel.x86_64 0:0.137-3.el5 set to be updated
--> Processing Dependency: elfutils-libelf-devel-static-x86_64 = 0.137-3.el5 for package: elfutils-libelf-devel
---> Package gcc.x86_64 0:4.1.2-51.el5 set to be updated
---> Package gcc-c++.x86_64 0:4.1.2-51.el5 set to be updated
---> Package gdb.x86_64 0:7.0.1-37.el5 set to be updated
---> Package glibc-devel.i386 0:2.5-65 set to be updated
---> Package glibc-devel.x86_64 0:2.5-65 set to be updated
---> Package glibc-headers.x86_64 0:2.5-65 set to be updated
---> Package kernel-uek-headers.x86_64 0:2.6.32-200.13.1.el5uek set to be updated
---> Package libXp.i386 0:1.0.0-8.1.el5 set to be updated
---> Package libaio-devel.i386 0:0.3.106-5 set to be updated
---> Package libaio-devel.x86_64 0:0.3.106-5 set to be updated
---> Package libstdc++-devel.x86_64 0:4.1.2-51.el5 set to be updated
---> Package sysstat.x86_64 0:7.0.2-11.el5 set to be updated
---> Package unixODBC.i386 0:2.2.11-7.1 set to be updated
---> Package unixODBC.x86_64 0:2.2.11-7.1 set to be updated
---> Package unixODBC-devel.i386 0:2.2.11-7.1 set to be updated
---> Package unixODBC-devel.x86_64 0:2.2.11-7.1 set to be updated
--> Running transaction check
---> Package elfutils-libelf-devel-static.x86_64 0:0.137-3.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
===================================================================================================================================================================================================================
Package Arch Version Repository Size
Installing:
oracle-validated x86_64 1.1.0-14.el5 ISO 24 k
Installing for dependencies:
compat-db x86_64 4.2.52-5.1 ISO 1.6 M
compat-gcc-34 x86_64 3.4.6-4.1 ISO 4.3 M
compat-gcc-34-c++ x86_64 3.4.6-4.1 ISO 13 M
elfutils-libelf-devel x86_64 0.137-3.el5 ISO 24 k
elfutils-libelf-devel-static x86_64 0.137-3.el5 ISO 64 k
gcc x86_64 4.1.2-51.el5 ISO 5.3 M
gcc-c++ x86_64 4.1.2-51.el5 ISO 3.8 M
gdb x86_64 7.0.1-37.el5 ISO 2.4 M
glibc-devel i386 2.5-65 ISO 2.0 M
glibc-devel x86_64 2.5-65 ISO 2.4 M
glibc-headers x86_64 2.5-65 ISO 594 k
kernel-uek-headers x86_64 2.6.32-200.13.1.el5uek ISO 724 k
libXp i386 1.0.0-8.1.el5 ISO 22 k
libaio-devel i386 0.3.106-5 ISO 12 k
libaio-devel x86_64 0.3.106-5 ISO 11 k
libstdc++-devel x86_64 4.1.2-51.el5 ISO 2.8 M
sysstat x86_64 7.0.2-11.el5 ISO 187 k
unixODBC i386 2.2.11-7.1 ISO 830 k
unixODBC x86_64 2.2.11-7.1 ISO 835 k
unixODBC-devel i386 2.2.11-7.1 ISO 743 k
unixODBC-devel x86_64 2.2.11-7.1 ISO 799 k
Transaction Summary
Install 22 Package(s)
Upgrade 0 Package(s)
Total download size: 42 M
...这里省略后面安装的输出提示,按提示输入y直接安装即可。
<h1 id="2">2. /etc/sysctl.conf 增加oracle用户内容</h1>
cat /etc/sysctl.conf 确认如下是自动增加的内容:
For 11g, Oracle-Validated setting for fs.file-max is 6815744
For 10g, uncomment 'fs.file-max = 327679', and comment 'fs.file-max = 6553600' entry and re-run sysctl -p
fs.file-max = 327679
fs.file-max = 6815744
Oracle-Validated setting for kernel.msgmni is 2878
kernel.msgmni = 2878
Oracle-Validated setting for kernel.msgmax is 8192
kernel.msgmax = 8192
Oracle-Validated setting for kernel.msgmnb is 65536
kernel.msgmnb = 65536
Oracle-Validated setting for kernel.sem is '250 32000 100 142'
kernel.sem = 250 32000 100 142
Oracle-Validated setting for kernel.shmmni is 4096
kernel.shmmni = 4096
Oracle-Validated setting for kernel.shmall is 1073741824
kernel.shmall = 1073741824
Oracle-Validated setting for kernel.shmmax is 4398046511104 on x86_64 and 4294967295 on i386 architecture. Refer Note id 567506.1
kernel.shmmax = 4398046511104
Oracle-Validated setting for kernel.sysrq is 1
kernel.sysrq = 1
Oracle-Validated setting for net.core.rmem_default is 262144
net.core.rmem_default = 262144
For 11g, Oracle-Validated setting for net.core.rmem_max is 4194304
For 10g, uncomment 'net.core.rmem_max = 2097152', comment 'net.core.rmem_max = 4194304' entry and re-run sysctl -p
net.core.rmem_max = 2097152
net.core.rmem_max = 4194304
Oracle-Validated setting for net.core.wmem_default is 262144
net.core.wmem_default = 262144
For 11g, Oracle-Validated setting for net.core.wmem_max is 1048576
For 10g, uncomment 'net.core.wmem_max = 262144', comment 'net.core.wmem_max = 1048576' entry for this parameter and re-run sysctl -p
net.core.wmem_max = 262144
net.core.wmem_max = 1048576
Oracle-Validated setting for fs.aio-max-nr is 3145728
fs.aio-max-nr = 3145728
For 11g, Oracle-Validated setting for net.ipv4.ip_local_port_range is 9000 65500
For 10g, uncomment 'net.ipv4.ip_local_port_range = 1024 65000', comment 'net.ipv4.ip_local_port_range = 9000 65500' entry and re-run sysctl -p
net.ipv4.ip_local_port_range = 1024 65000
net.ipv4.ip_local_port_range = 9000 65500
Oracle-Validated setting for vm.min_free_kbytes is 51200 to avoid OOM killer
vm.min_free_kbytes = 51200
可以看到每条内核参数都有清晰明了的注释,我这里是安装10g RAC,那么就按照注释说明,将那些For 10g的参数启用即可。
<h1 id="3">3. /etc/security/limits.conf 增加oracle用户内容</h1>
cat /etc/security/limits.conf 确认如下是自动增加的内容:
Oracle-Validated setting for nofile soft limit is 131072
oracle soft nofile 131072
Oracle-Validated setting for nofile hard limit is 131072
oracle hard nofile 131072
Oracle-Validated setting for nproc soft limit is 131072
oracle soft nproc 131072
Oracle-Validated setting for nproc hard limit is 131072
oracle hard nproc 131072
Oracle-Validated setting for core soft limit is unlimited
oracle soft core unlimited
Oracle-Validated setting for core hard limit is unlimited
oracle hard core unlimited
Oracle-Validated setting for memlock soft limit is 50000000
oracle soft memlock 50000000
Oracle-Validated setting for memlock hard limit is 50000000
oracle hard memlock 50000000
由于我接下来要安装Oracle10g RAC,只用到一个oracle用户,所以这里不需要修改,如果你装的是11g RAC,则需要手工添加grid用户的资源使用限制条目。
<h1 id="4">4. 创建Oracle 用户和相关组</h1>
查看已经创建了oracle用户,组oinstall和dba
[root@oradb28 cdrom]# id oracle
uid=54321(oracle) gid=54321(oinstall) groups=54321(oinstall),54322(dba) context=root:system_r:unconfined_t:SystemLow-SystemHigh
安装RAC需要确定各节点oracle用户和组的uid,gid保持一致,由于它自动生成的uid和gid的对应数字很大,所以一般都一致。
这样一来,在OEL系统上安装Oracle前的主机配置系列工作将得到简化,我们不必再去过多的考虑需要哪些依赖包和内核参数设置的问题了。
OEL上使用yum install oracle-validated 简化主机配置工作的更多相关文章
- 在OEL 5.4 32bit上使用yum install命令遇到的问题
在OEL 5.4 32bit上使用yum install命令遇到的问题 [root@localhost yum.repos.d]# yum install elfutils-libelf-devel- ...
- centos yum install oracle java
How to install Java on CentOS 7 | Linuxizehttps://linuxize.com/post/install-java-on-centos-7/ CentOS ...
- yum install nginx-没有可用软件包 nginx。
1. 错误提示 Centos 7下安装nginx,使用yum install nginx,报错提示没有可用的软件包.具体错误提示如下: 已加载插件:fastestmirror, product-id, ...
- yum install错误 系统环境:Oracle Linux5.4 在通过yum安装软件时出现以下错误:
1.yum配置文件 1 [root@rh168 yum.repos.d]# cat yum.repo 2 [base] 3 name=Oracle linux 4 baseurl=file:/// ...
- Linux下的上传和下载yum install -y lrzsz
先使用命令 yum install -y lrzsz rz 上传 或者直接拖动 sz 要下的文件 回车
- Linux 使用yum install安装mysql登陆不上解决办法
CentOS yum安装mysql后 Can’t connect to local MySQL server through socket ‘/var/lib/ CentOS Can’t connec ...
- Install Oracle 10g on Red Hat Linux 5.3 Step by Step
一.虚拟机配置 1. 虚拟机(VBox 4.3.12) 2. 配置虚拟机网卡网络.选择host-only.VirtualBox Host-Only Network网卡IP为设置为192.168.1.1 ...
- yum install oracle-validated
背景 当时心血来潮要在linux搞oracle,可一顿折腾,大约两个周时间,主要是各种环境的检测麻烦,在redhat上操作也不如centos有利. 命令 yum install oracle-vali ...
- 创建虚拟机和安装centos7 & install oracle
win7 x64位+VMware12+centos7 x64位+oracle 11g R2安装详解(一) 一.虚拟机安装oracle11g R2的安装环境: 1.win7 x64位 ...
随机推荐
- js学习笔记:操作iframe
iframe可以说是比较老得话题了,而且网上也基本上在说少用iframe,其原因大致为:堵塞页面加载.安全问题.兼容性问题.搜索引擎抓取不到等等,不过相对于这些缺点,iframe的优点更牛,跨域请求. ...
- 快速构建H5单页面切换骨架
在Web App和Hybrid App横行的时代,为了拥有更好的用户体验,单页面应用顺势而生,单页面应用简称`SPA`,即Single Page Application,就是只有一个HTML页面的应用 ...
- ASP.NET Core 折腾笔记一
前言: 在ASP.NET Core 1.0时,曾折腾过一次,后因发现不了System.Data而停止. 更因VS2015提示过期Delete掉VS了,其实主要还是笔记本的硬盘空间吃紧. 快双十一了,本 ...
- “四核”驱动的“三维”导航 -- 淘宝新UI(需求分析篇)
前言 孔子说:"软件是对客观世界的抽象". 首先声明,这里的"三维导航"和地图没一毛钱关系,"四核驱动"和硬件也没关系,而是为了复杂的应用而 ...
- 关于Vue.js 2.0 的 Vuex 2.0,你需要更新的知识库
应用结构 实际上,Vuex 在怎么组织你的代码结构上面没有任何限制,相反,它强制规定了一系列高级的原则: 应用级的状态集中放在 store 中. 改变状态的唯一方式是提交mutations,这是个同步 ...
- Android 问题汇总(持续更新)
Q1:Error:(93, 12) 错误: 需要常量表达式 问题描述:这个问题是在添加一个module到项目中时遇到的,主要原因是因为原来module中的R文件是不会以final形式存在的,但是在mo ...
- AES加密
package com.edu.hpu; import java.math.BigInteger; import java.security.MessageDigest; import java.se ...
- 算法与数据结构(十五) 归并排序(Swift 3.0版)
上篇博客我们主要聊了堆排序的相关内容,本篇博客,我们就来聊一下归并排序的相关内容.归并排序主要用了分治法的思想,在归并排序中,将我们需要排序的数组进行拆分,将其拆分的足够小.当拆分的数组中只有一个元素 ...
- peer not authenticated的终极解决方案
一.前述 使用httpclient发起https请求时,可能会遇到如下异常: javax.net.ssl.SSLPeerUnverifiedException: peer not authentica ...
- C# 工厂模式+虚方法(接口、抽象方法)实现多态
面向对象语言的三大特征之一就是多态,听起来多态比较抽象,简而言之就是同一行为针对不同对象得到不同的结果,同一对象,在不同的环境下得到不同的状态. 实例说明: 业务需求:实现一个打开文件的控制台程序的d ...