The "pitfalls" and key points encountered during Oracle RAC installation (2), oraclerac
(1) install dependency packages
In addition to system configuration parameters, installing Oracle in Linux is another Trivial operation.
This installation encountered several package problems:
(A) rpm-Uvh gcc-4 * tips:
02. error: Failed dependencies:
03. cloog-ppl> = 0.15 is needed by gcc-4.4.7-4.el6.x86_64
04. cpp = 4.4.7-4. el6 is needed by gcc-4.4.7-4.el6.x86_64
It not only indicates that two dependency packages are required, but also the corresponding version is required,
Cloog-ppl must be later than or equal to version 0.15
Cpp requires version 4.4.7-4. el6
Then install the SDK based on the version requirements:
01.rpm -ivh cloog-ppl-0.15.7-1.2.el6.x86_64.rpm 02.warning: cloog-ppl-0.15.7-1.2.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID c105b9de: NOKEY 03.Preparing... ########################################### [100%] 04. 1:cloog-ppl ########################################### [100%] 05. 06.rpm -ivh cpp-4.4.7-4.el6.x86_64.rpm 07.warning: cpp-4.4.7-4.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY 08.Preparing... ########################################### [100%] 09. 1:cpp ########################################### [100%] 01.rpm -ivh gcc-4.4.7-4.el6.x86_64.rpm 02.warning: gcc-4.4.7-4.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY 03.Preparing... ########################################### [100%] 04. 1:gcc ########################################### [100%]
(B) Oracleasm
Because the RAC environment is installed, the grid needs asmlib. Install:
Oracleasm-support
Oracleasm
Oracleasmlib
Introduction to asmlib on the official website:
Http://www.oracle.com/technetwork/server-storage/linux/driver-matrix-085611.html
For oracleasm, Oracle Linux 6 has compiled it into the kernel and does not need to be installed. Therefore, you only need to install oracleasm-support. The official website is described as follows:
On the Oracle Linux 6 CD, there is a oracleasm-support package that can be rpm installed, and the version is a oracleasm-support-2.1.5-1.el6.x86_64.
It seems that if the RedHat version is used, it may take some twists and turns.
(This blog introduces how to install asmlib in RedHat: http://blog.itpub.net/23135684/viewspace-1129552)
(2) set up YUM proxy in Linu
If the local machine requires a proxy to access the Internet, you can modify the/etc/yum. conf configuration file:
Add the following line to the http Proxy
Proxy = http: // ip address: Port
Add the following line to the ftp Proxy // No trial
Proxy = ftp: // ip address: Port
Save and exit (the above content cannot be placed at the beginning of the file)
You can also run this command in the command line.
Export http_proxy = "IP Address: Port"
(3) wget proxy settings in Linux
You can create a. wgetrc file in the local home path and edit the file as follows:
Http_proxy = IP: Port
Ftp_proxy = IP: Port
Use_proxy = on
Wait = 15
Then wget http: // ip/filename is OK.
(4) oracle-rdbms-server-11gR2-preinstall quick installation package
Oracle Linux 6 provides a oracle-rdbms-server-11gR2-preinstall package to simplify the configuration of various dependency packages downloaded, installed, parameters, and environment variables during Oracle 11gR2 installation, which can do the following:
Download and install various dependent packages
Create an Oracle user and a group
Modify/etc/sysctl. conf Kernel Parameters
Set the/etc/security/limits. conf file
Set numa = off on a 64-bit host
Installation path:
[Root @ rac1 ~] # Cd/etc/yum. repos. d/
[Root @ rac1 yum. repos. d] # wget http://public-yum.oracle.com/public-yum-ol6.repo
Then you can open the downloaded configuration file:
# Cat public-yum-ol6.repo [root @ rac1 yum. repos. d] #
In the OS version to be modified, the enabled value is changed from 0 to 1. You can download the corresponding version:
[Ol6_u2_base]
Enabled = 0
[Root @ rac1 ~] # Yum install oracle-rdbms-server-11gR2-preinstall
You can start to download, install, set parameters, and set environment variables for the corresponding version of the dependent package. You can verify files such as/etc/sysctl. conf and/etc/security/limits. conf.
In fact, we can see from the configuration file, the corresponding version of the dependency package download URL: http://public-yum.oracle.com/repo/OracleLinux/OL6/
If it is not too troublesome, you can find all the dependent packages of the corresponding version through the page. From the page, you will find that oracle-rdbms-server-11gR2-preinstall packages are not available for versions earlier than U2.
The execution conclusions of U2 are as follows:
[root@bisal yum.repos.d]# yum install oracle-rdbms-server-11gR2-preinstallLoaded plugins: refresh-packagekit, securityInstallMedia | 3.7 kB 00:00 ... InstallMedia/primary_db | 3.2 MB 00:00 ... http://public-yum.oracle.com/repo/OracleLinux/OL6/UEK/base/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://public-yum.oracle.com/repo/OracleLinux/OL6/UEK/base/x86_64/repodata/repomd.xml: (28, 'connect() timed out!')Trying other mirror.Error: Cannot retrieve repository metadata (repomd.xml) for repository: ol6_UEK_base. Please verify its path and try again
(5) configure the local YUM Source
[Root @ rac02 ~] # Mount/dev/cdrom/mnt
Mount: block device/dev/sr0 is write-protected, mounting read-only
Edit the public-yum-ol6.repo or ULN-base.repo file in the/etc/yum. repos. d directory and modify all enabled = 0. Create a file with the suffix "repo", for example, olinux6.repo:
[OLINUX]
Name = Oracle Linux 6 x86_64
Baseurl = file: // mnt/Server
Enabled = 1
Gpgcheck = 0
Clear the original yum information, yum clean all, and install the dependency package:
yum install elfutils-libelf-devel
(6) configure the/etc/hosts file of the host
My configuration file is as follows:
#public192.168.11.200 rac1.bisal rac1192.168.11.210 rac2.bisal rac2#private10.0.0.200 rac1-priv.bisal rac1-priv10.0.0.210 rac2-priv.bisal rac2-priv#virtual192.168.11.201 rac1-vip.bisal rac1-vip192.168.11.211 rac2-vip.bisal rac2-vip#scan192.168.11.199 rac-scan.bisal rac-scan
The full name of the hosts file is the static table lookup for host name (host name query static table ). In Linux, if there is no domain name resolution server, this file will be used to resolve the IP address corresponding to a host name. Format: "IP" "host name/domain name" "host alias ". The host name is usually used in the LAN.
In the RAC environment, four IP addresses, public IP, private IP, virtual IP, and scan IP are configured.
To Be Continued...
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.