簡化 Oracle Linux 6 上的 Oracle Database 11g 安裝
How to simplify the installation of Oracle Database 11g on Oracle Linux 6 by installing the oracle-rdbms-server-11gR2-preinstall RPM package.
Before installing Oracle Database 11g on a system, you need to preconfigure the operating environment since the database requires certain software packages, package versions, and tweaks to kernel parameters. (Be sure to review the appropriate Oracle Database installation guide to familiarize yourself with hardware, software, and operating system requirements.)On Oracle Linux, I discovered that there is a remarkably easy way to address these installation prerequisites: First install an RPM package called oracle-rdbms-server-11gR2-preinstall. This RPM performs a number of preconfiguration steps, including the following:
- Automatically downloading and installing any additional software packages and specific package versions needed for installing Oracle Grid Infrastructure and Oracle Database 11g Release 2 (11.2.0.3), with package dependencies resolved via yum or up2date capabilities.
- 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.)
- Modifying kernel parameters in /etc/sysctl.conf to change settings for shared memory, semaphores, the maximum number of file descriptors, and so on.
- 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.
- Setting numa=off in the kernel for x86_64 machines.
Note that oracle-rdbms-server-11gR2-preinstall parses the existing /etc/sysctl.conf and /etc/security/limits.conf files and updates values only as needed for database installation. Any precustomized settings not related to database installation are left as is.
The oracle-rdbms-server-11gR2-preinstall RPM package is accessible through the (ULN, which requires a support contract), from the Oracle Linux distribution media, or from the . Thus, whether or not your system is registered with ULN to access Oracle patches and support, you can use oracle-rdbms-server-11gR2-preinstall to simplify database installation on Oracle Linux. In addition, the Oracle public yum repository now includes all security and bug errata, ensuring systems are secured and stable with the latest security updates and bug fixes.
Installing the oracle-rdbms-server-11gR2-preinstall RPM
The remainder of this article steps through the procedure that I used for installing oracle-rdbms-server-11gR2-preinstall on Oracle Linux via the Oracle public yum repository. I started with a system running Oracle Linux Release 6 Update 3 for x86_64, a 64-bit version of Oracle Linux that I downloaded from the (requires registration or login). First, I set up a yum configuration file that pointed to the correct repository, and then I installed the oracle-rdbms-server-11gR2-preinstall RPM from that repository.
Here are the steps for preconfiguring a system for Oracle Database installation using oracle-rdbms-server-11gR2-preinstall:
- As an authorized user (for example, root), retrieve the file that configures repository locations:
2.
3. # cd /etc/yum.repos.d
4.
5. # wget
6.
- Using a text editor, modify the file, changing the field enabled=0 to enabled=1 to reflect repositories that correspond to the machine's operating system release.
Here is an excerpt of public-yum-old6.repo with the changed lines in boldface.
[ol6_latest]
name=Oracle Linux $releasever Latest ($basearch)
baseurl=
gpgkey=
gpgcheck=1
enabled=1
[ol6_UEK_latest]
name=Latest Unbreakable Enterprise Kernel for Oracle Linux $releasever ($basearch)
baseurl=
gpgkey=
gpgcheck=1
enabled=1
Because the target system is running Oracle Linux Release 6 Update 3 for x86_64, which installs the Oracle Unbreakable Enterprise Kernel by default, there are two repositories to enable, [ol6_latest] and [ol6_UEK_latest].
- Next, install the oracle-rdbms-server-11gR2-preinstall RPM using the yum install command.
The output in Listing 1 shows how the installation checks dependencies and then downloads and installs the required packages.
# yum install oracle-rdbms-server-11gR2-preinstall
Loaded plugins: refresh-packagekit, rhnplugin, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package oracle-rdbms-server-11gR2-preinstall.x86_64 0:1.0-6.el6 will be installed
--> Processing Dependency: gcc-c++ for package: oracle-rdbms-server-11gR2-preinstall-1.0-6.el6.x86_64
--> Processing Dependency: gcc for package: oracle-rdbms-server-11gR2-preinstall-1.0-6.el6.x86_64
--> Processing Dependency: libaio-devel for package:
oracle-rdbms-server-11gR2-preinstall-1.0-6.el6.x86_64
--> Processing Dependency: libstdc++-devel for package:
oracle-rdbms-server-11gR2-preinstall-1.0-6.el6.x86_64
--> Processing Dependency: glibc-devel for package:
oracle-rdbms-server-11gR2-preinstall-1.0-6.el6.x86_64
--> Processing Dependency: compat-libstdc++-33 for package:
oracle-rdbms-server-11gR2-preinstall-1.0-6.el6.x86_64
--> Processing Dependency: ksh for package: oracle-rdbms-server-11gR2-preinstall-1.0-6.el6.x86_64
--> Processing Dependency: compat-libcap1 for package:
oracle-rdbms-server-11gR2-preinstall-1.0-6.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.6-4.el6 will be installed
--> Processing Dependency: cpp = 4.4.6-4.el6 for package: gcc-4.4.6-4.el6.x86_64
--> Processing Dependency: cloog-ppl >= 0.15 for package: gcc-4.4.6-4.el6.x86_64
---> Package gcc-c++.x86_64 0:4.4.6-4.el6 will be installed
--> Processing Dependency: libmpfr.so.1()(64bit) for package: gcc-c++-4.4.6-4.el6.x86_64
---> Package glibc-devel.x86_64 0:2.12-1.80.el6_3.4 will be installed
--> Processing Dependency: glibc-headers = 2.12-1.80.el6_3.4 for package:
glibc-devel-2.12-1.80.el6_3.4.x86_64
--> Processing Dependency: glibc-headers for package: glibc-devel-2.12-1.80.el6_3.4.x86_64
---> Package ksh.x86_64 0:20100621-16.el6 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.6-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.6-4.el6 will be installed
---> Package glibc-headers.x86_64 0:2.12-1.80.el6_3.4 will be installed
--> Processing Dependency: kernel-headers >= 2.2.1 for package:
glibc-headers-2.12-1.80.el6_3.4.x86_64
--> Processing Dependency: kernel-headers for package: glibc-headers-2.12-1.80.el6_3.4.x86_64
---> Package mpfr.x86_64 0:2.4.1-6.el6 will be installed
--> Running transaction check
---> Package kernel-uek-headers.x86_64 0:2.6.32-300.32.1.el6uek will be installed
---> Package ppl.x86_64 0:0.10.2-11.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
oracle-rdbms-server-11gR2-preinstall
x86_64 1.0-6.el6 ol6_latest 15 k
Installing for dependencies:
cloog-ppl x86_64 0.15.7-1.2.el6 ol6_latest 93 k
compat-libcap1 x86_64 1.10-1 ol6_latest 17 k
compat-libstdc++-33 x86_64 3.2.3-69.el6 ol6_latest 183 k
cpp x86_64 4.4.6-4.el6 ol6_latest 3.7 M
gcc x86_64 4.4.6-4.el6 ol6_latest 10 M
gcc-c++ x86_64 4.4.6-4.el6 ol6_latest 4.7 M
glibc-devel x86_64 2.12-1.80.el6_3.4 ol6_latest 970 k
glibc-headers x86_64 2.12-1.80.el6_3.4 ol6_latest 600 k
kernel-uek-headers x86_64 2.6.32-300.32.1.el6uek ol6_latest 713 k
ksh x86_64 20100621-16.el6 ol6_latest 684 k
libaio-devel x86_64 0.3.107-10.el6 ol6_latest 13 k
libstdc++-devel x86_64 4.4.6-4.el6 ol6_latest 1.5 M
mpfr x86_64 2.4.1-6.el6 ol6_latest 156 k
ppl x86_64 0.10.2-11.el6 ol6_latest 1.3 M
Transaction Summary
================================================================================
Install 15 Package(s)
Total download size: 25 M
Installed size: 61 M
Is this ok [y/N]: Downloading Packages:
--------------------------------------------------------------------------------
Total 710 kB/s | 25 MB 00:35
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : mpfr-2.4.1-6.el6.x86_64 1/15
Installing : libstdc++-devel-4.4.6-4.el6.x86_64 2/15
Installing : cpp-4.4.6-4.el6.x86_64 3/15
Installing : ppl-0.10.2-11.el6.x86_64 4/15
Installing : cloog-ppl-0.15.7-1.2.el6.x86_64 5/15
Installing : kernel-uek-headers-2.6.32-300.32.1.el6uek.x86_64 6/15
Installing : glibc-headers-2.12-1.80.el6_3.4.x86_64 7/15
Installing : glibc-devel-2.12-1.80.el6_3.4.x86_64 8/15
Installing : gcc-4.4.6-4.el6.x86_64 9/15
Installing : gcc-c++-4.4.6-4.el6.x86_64 10/15
Installing : compat-libstdc++-33-3.2.3-69.el6.x86_64 11/15
Installing : libaio-devel-0.3.107-10.el6.x86_64 12/15
Installing : ksh-20100621-16.el6.x86_64 13/15
Installing : compat-libcap1-1.10-1.x86_64 14/15
Installing : oracle-rdbms-server-11gR2-preinstall-1.0-6.el6.x86_64 15/15
Verifying : gcc-4.4.6-4.el6.x86_64 1/15
Verifying : compat-libcap1-1.10-1.x86_64 2/15
Verifying : ksh-20100621-16.el6.x86_64 3/15
Verifying : glibc-devel-2.12-1.80.el6_3.4.x86_64 4/15
Verifying : libaio-devel-0.3.107-10.el6.x86_64 5/15
Verifying : oracle-rdbms-server-11gR2-preinstall-1.0-6.el6.x86_64 6/15
Verifying : gcc-c++-4.4.6-4.el6.x86_64 7/15
Verifying : glibc-headers-2.12-1.80.el6_3.4.x86_64 8/15
Verifying : libstdc++-devel-4.4.6-4.el6.x86_64 9/15
Verifying : compat-libstdc++-33-3.2.3-69.el6.x86_64 10/15
Verifying : mpfr-2.4.1-6.el6.x86_64 11/15
Verifying : kernel-uek-headers-2.6.32-300.32.1.el6uek.x86_64 12/15
Verifying : cpp-4.4.6-4.el6.x86_64 13/15
Verifying : ppl-0.10.2-11.el6.x86_64 14/15
Verifying : cloog-ppl-0.15.7-1.2.el6.x86_64 15/15
Installed:
oracle-rdbms-server-11gR2-preinstall.x86_64 0:1.0-6.el6
Dependency Installed:
cloog-ppl.x86_64 0:0.15.7-1.2.el6
compat-libcap1.x86_64 0:1.10-1
compat-libstdc++-33.x86_64 0:3.2.3-69.el6
cpp.x86_64 0:4.4.6-4.el6
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/678020/viewspace-1059499/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 在oracle linux 5.6上安裝oracle 11g RACOracleLinux
- Oracle 11g Database靜默安裝OracleDatabase
- RHEL6 上安裝Oracle 11g軟體Oracle
- oracle 11g 之linux redhat 5.5上的安裝OracleLinuxRedhat
- Oracle Linux中安裝Oracle 11gOracleLinux
- Oracle 11g解除安裝grid和databaseOracleDatabase
- Oracle 11g for linux 安裝OracleLinux
- linux上安裝oracleLinuxOracle
- 在Centos 6.5上安裝Oracle Database 11g Release 2 (11.2.0.4.0) RACCentOSOracleDatabase
- [Oracle] oracle 11g database install(linux)OracleDatabaseLinux
- Solaris 10上安裝Oracle 11gOracle
- Oracle在Linux上的安裝OracleLinux
- linux下安裝oracle 11gLinuxOracle
- 在Oracle Linux 6.6下安裝Oracle 11gOracleLinux
- oracle linux 下安裝oracle 11g問題OracleLinux
- 在oracle_linux_5.6_32上安裝database_10g_32OracleLinuxDatabase
- 在 Red Hat Linux 9 上安裝 Oracle9i Database(轉)LinuxOracleDatabase
- Linux上安裝oracle的注意點LinuxOracle
- Oracle安裝部署之linux(redhat/centos)快速安裝oracle 11g racOracleLinuxRedhatCentOS
- Oracle OCP(35):Database 安裝OracleDatabase
- Oracle Linux 6.7 靜預設安裝Oracle 11gOracleLinux
- RHEL 6/CentOS 6上安裝Oracle 11.2.0.3(Gird/Database)及以上缺少pdksh包的解決方法CentOSOracleDatabase
- 聊聊Oracle 11g的Snapshot Standby Database(上)OracleDatabase
- oracle 11g之在REDHAT5上的安裝OracleRedhat
- Linux Redhat上如何手工解除安裝(刪除)Oracle 11gLinuxRedhatOracle
- Oracle Linux 7上安裝Oracle 12cOracleLinux
- centos7.3上安裝oracle xe 11gCentOSOracle
- centOS學習part6:安裝oracle 11gCentOSOracle
- linux5.6上安裝oracle 11g 資料庫 32位LinuxOracle資料庫
- Linux下Oracle 11g靜默安裝LinuxOracle
- oracle linux 下安裝OGG 11gOracleLinux
- Oracle Database 11g Release 2 RAC On LinuxOracleDatabaseLinux
- 在Oracle Linux 6.6上安裝Oracle 12cOracleLinux
- oracle 11g Oracle Database Vault 的配置方法OracleDatabase
- Oracle Enterprise Linux 6下安裝Oracle 9204OracleLinux
- 在 RHEL6 或 OL6 64 位 (x86-64) 上安裝 Oracle Database 12.1 的要求OracleDatabase
- 在Linux下安裝Oracle Database 9i(轉)LinuxOracleDatabase
- 在Oracle Linux 7.1上安裝DockerOracleLinuxDocker