环境: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内容合理性。
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直接安装即可。 2. /etc/sysctl.conf 增加oracle用户内容