yum安装oracle.docx_第1页
yum安装oracle.docx_第2页
yum安装oracle.docx_第3页
yum安装oracle.docx_第4页
yum安装oracle.docx_第5页
已阅读5页,还剩8页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

背景:阅读新闻使用yum快速部署Oracle安装环境(11g)日期:2014-09-03来源:Linux社区 作者:Leshami字体:大中小基于Linux安装过Oracle的童鞋们都应该清楚,安装Oracle的确是一件比较费时费力的差事,因为仅仅是前期的rpm包,内核参数,创建用户等等这些个步骤都让那些新手不免眼花缭乱,一不留神,就导致最终的安装过程中报错而不得不从头来过。现在基于Oracle Linux,Oracle仅仅需要通过安装oracle-rdbms-server-11gR2-preinstall RPM包即可全部搞定其余未安装的RPM包,解决之间的依赖关系,配置内核参数等等。客官,正在基于Oracle Linux 安装Oralce 11g?那就接着往下看。1、oracle-rdbms-server-11gR2-preinstall RPM 软件包的功能a、 Automatically downloading and installing any additional software packages and specific package versions needed for installing Oracle Grid Infrastructure and Oracle Database 12 c Release 1 (12.1) or 11g Release 2 (), with package dependencies resolved via yum or up2date capabilities.b、Creating the user oracle and the groups oinstall (for OraInventory) and dba (for OSDBA), which are used during database installation. (For security purposes, this user has no password by default and cannot log in remotely. To enable remote login, please set a password using the passwd tool.)c、Modifying kernel parameters in /etc/sysctl.conf to change settings for shared memory, semaphores, the maximum number of file descriptors, and so on. d、Setting hard and soft shell resource limits in /etc/security/limits.conf, such as the locked-in memory address space, the number of open files, the number of processes, and core file size.e、Setting numa=off in the kernel for x86_64 machines.2、操作步骤a、确保网络畅通,即可连接到Internet。b、已经安装了yum包管理工具。c、切换到目录 /etc/yum.repos.d/d、获取配置文件并进行相应修改wget/public-yum-ol6.repo(所需安装版本项下字段enabled=0更改为enabled=1)e、使用yum安装oracle-rdbms-server-11gR2-preinstall包(oracle-rdbms-server-11gR2-preinstall)f、校验内核修改日志及原文件备份情况- Author: Leshami- Blog :3、实战演习a、检查网络环境,确保网络畅通rootoel63 #cat /etc/issueOracle Linux Server release 6.3Kernel r on an mrootoel63 #PING(10) 56(84) bytes of data.64 bytes from 10: icmp_seq=1 ttl=54 time=39.2 ms64 bytes from 10: icmp_seq=2 ttl=54 time=42.2 msb、检查yum是否已安装rootoel63 #rpm -qa | grep yumyum-utils-1.1.30-14.el6.noarchPackageKit-yum-plugin-0.5.8-20.0.1.el6.x86_64yum-rhn-plugin-0.9.1-40.0.1.el6.noarchyum-plugin-security-1.1.30-14.el6.noarchyum-3.2.29-30.0.1.el6.noarchPackageKit-yum-0.5.8-20.0.1.el6.x86_64yum-metadata-parser-1.1.2-16.el6.x86_64c、切换到目录 /etc/yum.repos.d/rootoel63 #cd /etc/yum.repos.d/d、获取配置文件并进行相应修改rootoel63 yum.repos.d#wget/public-yum-ol6.repo-2014-05-16 14:41:51-/public-yum-ol6.repoResolving . 2, , 5Connecting to |2|:80. connected.HTTP request sent, awaiting response. 200 OKLength: 4233 (4.1K) text/plainSaving to: “public-yum-ol6.repo”100%= 4,233 -.-K/s in 0.001s2014-05-16 14:41:51 (5.76 MB/s) - “public-yum-ol6.repo” saved 4233/4233rootoel63 yum.repos.d# ls -hltrtotal 8.0K-rw-r-r-. 1 root root 4.2K Nov 25 04:58 public-yum-ol6.reporootoel63 yum.repos.d#vi public-yum-ol6.repo#本环境为Oracle Linux 6.3,因此修改了以下2个部分。即将需要安装的部分的enabled的值置为1ol6_u3_basename=Oracle Linux $releasever Update 3 installation media copy ($basearch)baseurl=/repo/OracleLinux/OL6/3/base/$basearch/gpgkey=file:/etc/pki/rpm-gpg/RPM-GPG-KEY-oraclegpgcheck=1enabled=1ol6_UEK_basename=Unbreakable Enterprise Kernel for Oracle Linux $releasever ($basearch)baseurl=/repo/OracleLinux/OL6/UEK/base/$basearch/gpgkey=file:/etc/pki/rpm-gpg/RPM-GPG-KEY-oraclegpgcheck=1enabled=1e、使用yum安装oracle-rdbms-server-11gR2-preinstall包rootoel63 yum.repos.d#yum install oracle-rdbms-server-11gR2-preinstallLoaded plugins: refresh-packagekit, securityol6_UEK_base | 1.2 kB 00:00 ol6_UEK_base/primary | 1.0 MB 00:01 ol6_UEK_base 36/36ol6_UEK_latest | 1.2 kB 00:00 ol6_latest | 1.4 kB 00:00 ol6_u3_base | 1.4 kB 00:00 ol6_u3_base/primary | 2.7 MB 00:11 ol6_u3_base 8452/8452Setting up Install ProcessResolving Dependencies- Running transaction check- Package oracle-rdbms-server-11gR2-preinstall.x86_64 0:1.0-9.el6 will be installed- Processing Dependency: gcc for package: oracle-rdbms-server-11gR2-preinstall-1.0-9.el6.x86_64- Processing Dependency: gcc-c+ for package: oracle-rdbms-server-11gR2-preinstall-1.0-9.el6.x86_64- Processing Dependency: compat-libcap1 for package: oracle-rdbms-server-11gR2-preinstall-1.0-9.el6.x86_64- Processing Dependency: ksh for package: oracle-rdbms-server-11gR2-preinstall-1.0-9.el6.x86_64- Processing Dependency: libaio-devel for package: oracle-rdbms-server-11gR2-preinstall-1.0-9.el6.x86_64- Processing Dependency: glibc-devel for package: oracle-rdbms-server-11gR2-preinstall-1.0-9.el6.x86_64- Processing Dependency: compat-libstdc+-33 for package: oracle-rdbms-server-11gR2-preinstall-1.0-9.el6.x86_64- Processing Dependency: libstdc+-devel for package: oracle-rdbms-server-11gR2-preinstall-1.0-9.el6.x86_64- Running transaction check- Package compat-libcap1.x86_64 0:1.10-1 will be installed- Package compat-libstdc+-33.x86_64 0:3.2.3-69.el6 will be installed- Package gcc.x86_64 0:4.4.7-4.el6 will be installed- Processing Dependency: libgomp = 4.4.7-4.el6 for package: gcc-4.4.7-4.el6.x86_64- Processing Dependency: cpp = 4.4.7-4.el6 for package: gcc-4.4.7-4.el6.x86_64- Processing Dependency: libgcc = 4.4.7-4.el6 for package: gcc-4.4.7-4.el6.x86_64- Processing Dependency: cloog-ppl = 0.15 for package: gcc-4.4.7-4.el6.x86_64- Package gcc-c+.x86_64 0:4.4.7-4.el6 will be installed- Processing Dependency: libstdc+ = 4.4.7-4.el6 for package: gcc-c+-4.4.7-4.el6.x86_64- Processing Dependency: libmpfr.so.1()(64bit) for package: gcc-c+-4.4.7-4.el6.x86_64- Package glibc-devel.x86_64 0:2.12-1.132.el6_5.1 will be installed- Processing Dependency: glibc = 2.12-1.132.el6_5.1 for package: glibc-devel-2.12-1.132.el6_5.1.x86_64- Processing Dependency: glibc-headers = 2.12-1.132.el6_5.1 for package: glibc-devel-2.12-1.132.el6_5.1.x86_64- Processing Dependency: glibc-headers for package: glibc-devel-2.12-1.132.el6_5.1.x86_64- Package ksh.x86_64 0:20120801-10.el6_5.4 will be installed- Package libaio-devel.x86_64 0:0.3.107-10.el6 will be installed- Package libstdc+-devel.x86_64 0:4.4.7-4.el6 will be installed- Running transaction check- Package cloog-ppl.x86_64 0:0.15.7-1.2.el6 will be installed- Processing Dependency: libppl_c.so.2()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64- Processing Dependency: libppl.so.7()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64- Package cpp.x86_64 0:4.4.7-4.el6 will be installed- Package glibc.x86_64 0:2.12-1.80.el6 will be updated- Processing Dependency: glibc = 2.12-1.80.el6 for package: glibc-common-2.12-1.80.el6.x86_64- Package glibc.x86_64 0:2.12-1.132.el6_5.1 will be an update- Package glibc-headers.x86_64 0:2.12-1.132.el6_5.1 will be installed- Processing Dependency: kernel-headers = 2.2.1 for package: glibc-headers-2.12-1.132.el6_5.1.x86_64- Processing Dependency: kernel-headers for package: glibc-headers-2.12-1.132.el6_5.1.x86_64- Package libgcc.x86_64 0:4.4.6-4.el6 will be updated- Package libgcc.x86_64 0:4.4.7-4.el6 will be an update- Package libgomp.x86_64 0:4.4.6-4.el6 will be updated- Package libgomp.x86_64 0:4.4.7-4.el6 will be an update- Package libstdc+.x86_64 0:4.4.6-4.el6 will be updated- Package libstdc+.x86_64 0:4.4.7-4.el6 will be an update- Package mpfr.x86_64 0:2.4.1-6.el6 will be installed- Running transaction check- Package glibc-common.x86_64 0:2.12-1.80.el6 will be updated- Package glibc-common.x86_64 0:2.12-1.132.el6_5.1 will be an update- Package kernel-uek-headers.x86_64 0:2.6.32-400.34.5.el6uek will be installed- Package ppl.x86_64 0:0.10.2-11.el6 will be installed- Finished Dependency ResolutionDependencies Resolved=Package Arch Version Repository Size=Installing:oracle-rdbms-server-11gR2-preinstall x86_64 1.0-9.el6 ol6_latest 17 kInstalling for dependencies:cloog-ppl x86_64 0.15.7-1.2.el6 ol6_latest 93 kcompat-libcap1 x86_64 1.10-1 ol6_latest 17 kcompat-libstdc+-33 x86_64 3.2.3-69.el6 ol6_latest 183 kcpp x86_64 4.4.7-4.el6 ol6_latest 3.7 Mgcc x86_64 4.4.7-4.el6 ol6_latest 10 Mgcc-c+ x86_64 4.4.7-4.el6 ol6_latest 4.7 Mglibc-devel x86_64 2.12-1.132.el6_5.1 ol6_latest 977 kglibc-headers x86_64 2.12-1.132.el6_5.1 ol6_latest 608 kkernel-uek-headers x86_64 2.6.32-400.34.5.el6uek ol6_latest 737 kksh x86_64 20120801-10.el6_5.4 ol6_latest 756 klibaio-devel x86_64 0.3.107-10.el6 ol6_latest 13 klibstdc+-devel x86_64 4.4.7-4.el6 ol6_latest 1.6 Mmpfr x86_64 2.4.1-6.el6 ol6_latest 156 kppl x86_64 0.10.2-11.el6 ol6_latest 1.3 MUpdating for dependencies:glibc x86_64 2.12-1.132.el6_5.1 ol6_latest 3.8 Mglibc-common x86_64 2.12-1.132.el6_5.1 ol6_latest 14 Mlibgcc x86_64 4.4.7-4.el6 ol6_latest 100 klibgomp x86_64 4.4.7-4.el6 ol6_latest 118 klibstdc+ x86_64 4.4.7-4.el6 ol6_latest 292 kTransaction Summary=Install 15 Package(s)Upgrade 5 Package(s)Total download size: 43 MIs this ok y/N: yDownloading Packages:(1/20): cloog-ppl-0.15.7-1.2.el6.x86_64.rpm | 93 kB 00:00 (2/20): compat-libcap1-1.10-1.x86_64.rpm | 17 kB 00:00 (3/20): compat-libstdc+-33-3.2.3-69.el6.x86_64.rpm | 183 kB 00:00 (4/20): cpp-4.4.7-4.el6.x86_64.rpm | 3.7 MB 00:08 (5/20): gcc-4.4.7-4.el6.x86_64.rpm | 10 MB 00:26 (6/20): gcc-c+-4.4.7-4.el6.x86_64.rpm | 4.7 MB 00:19 (7/20): glibc-2.12-1.132.el6_5.1.x86_64.rpm | 3.8 MB 00:08 (8/20): glibc-common-2.12-1.132.el6_5.1.x86_64.rpm | 14 MB 00:32 (9/20): glibc-devel-2.12-1.132.el6_5.1.x86_64.rpm | 977 kB 00:01 (10/20): glibc-headers-2.12-1.132.el6_5.1.x86_64.rpm | 608 kB 00:00 (11/20): kernel-uek-headers-2.6.32-400.34.5.el6uek.x86_64.rpm | 737 kB 00:01 (12/20): ksh-20120801-10.el6_5.4.x86_64.rpm | 756 kB 00:01 (13/20): libaio-devel-0.3.107-10.el6.x86_64.rpm | 13 kB 00:00 (14/20): libgcc-4.4.7-4.el6.x86_64.rpm | 100 kB 00:00 (15/20): libgomp-4.4.7-4.el6.x86_64.rpm | 118 kB 00:00 (16/20): libstdc+-4.4.7-4.el6.x86_64.rpm | 292 kB 00:00 (17/20): libstdc+-devel-4.4.7-4.el6.x86_64.rpm | 1.6 MB 00:03 (18/20): mpfr-2.4.1-6.el6.x86_64.rpm | 156 kB 00:00 (19/20): oracle-rdbms-server-11gR2-preinstall-1.0-9.el6.x86_64.rpm | 17 kB 00:00 (20/20): ppl-0.10.2-11.el6.x86_64.rpm | 1.3 MB 00:02 -Total 396 kB/s | 43 MB 01:51 warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEYRetrieving key fromfile:/etc/pki/rpm-gpg/RPM-GPG-KEY-oracleImporting GPG key 0xEC551F03:Userid : Oracle OSS group (Open Source Software group) Package: 6:oraclelinux-release-6Server-3.0.2.x86_64 (anaconda-OracleLinuxServer-201206261930.x86_64/6.3)From : /etc/pki/rpm-gpg/RPM-GPG-KEY-oracleIs this ok y/N: yRunning rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning Transaction Updating : libgcc-4.4.7-4.el6.x86_64 1/25 Updating : glibc-2.12-1.132.el6_5.1.x86_64 2/25 Updating : glibc-common-2.12-1.132.el6_5.1.x86_64 3/25 Updating : libstdc+-4.4.7-4.el6.x86_64 4/25 Installing : libstdc+-devel-4.4.7-4.el6.x86_64 5/25 Installing : mpfr-2.4.1-6.el6.x86_64 6/25 Installing : cpp-4.4.7-4.el6.x86_64 7/25 Installing : ppl-0.10.2-11.el6.x86_64 8/25 Installing : cloog-ppl-0.15.7-1.2.el6.x86_64 9/25 Installing : compat-libcap1-1.10-1.x86_64 10/25 Installing : compat-libstdc+-33-3.2.3-69.el6.x86_64 11/25 Installing : ksh-20120801-10.el6_5.4.x86_64 12/25 Updating : libgomp-4.4.7-4.el6.x86_64 13/25 Installing : kernel-uek-headers-2.6.32-400.34.5.el6uek.x86_64 14/25 Installing : glibc-headers-2.12-1.132.el6_5.1.x86_64 15/25 Installing : glibc-devel-2.12-1.132.el6_5.1.x86_64 16/25 Installing : gcc-4.4.7-4.el6.x86_64 17/25 Installing : gcc-c+-4.4.7-4.el6.x86_64 18/25 Installing : libaio-devel-0.3.107-10.el6.x86_64 19/25 Installing : oracle-rdbms-server-11gR2-preinstall-1.0-9.el6.x86_64 20/25 Cleanup : libstdc+-4.4.6-4.el6.x86_64 21/25 Cleanup : libgomp-4.4.6-4.el6.x86_64 22/25 Cleanup : glibc-common-2.12-1.80.el6.x86_64 23/25 Cleanup : glibc-2.12-1.80.el6.x86_64 24/25 Cleanup : libgcc-4.4.6-4.el6.x86_64 25/25 Verifying : glibc-headers-2.12-1.132.el6_5.1.x86_64 1/25 Verifying : libaio-devel-0.3.107-10.el6.x86_64 2/25 Verifying : gcc-4.4.7-4.el6.x86_64 3/25 Verifying : libstdc+-4.4.7-4.el6.x86_64 4/25 Verifying : compat-libcap1-1.10-1.x86_64 5/25 Verifying : libstdc+-devel-4.4.7-4.el6.x86_64 6/25 Verifying : cpp-4.4.7-4.el6.x86_64 7/25 Verifying : kernel-uek-headers-2.6.32-400.34.5.el6uek.x86_64 8/25 Verifying : compat-libstdc+-33-3.2.3-69.el6.x86_64 9/25 Verifying : mpfr-2.4.1-6.el6.x86_64 10/25 Verifying : glibc-common-2.12-1.132.el6_5.1.x86_64 11/25 Verifying : gcc-c+-4.4.7-4.el6.x86_64 12/25 Verifying : cloog-ppl-0.15.7-1.2.el6.x86_64 13/25 Verifying : ksh-20120801-10.el6_5.4.x86_64 14/25 Verifying : libgomp-4.4.7-4.el6.x86_64 15/25 Verifying : oracle-rdbms-server-11gR2-preinstall-1.0-9

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论