(1) Installation of dependent packages
Installing Oracle under Linux, in addition to the system configuration parameters, I think the installation of dependent packages is another trivial operation.
This installation has encountered several package problems:
(a) RPM-UVH gcc-4* tip:
error:failed dependencies:
CLOOG-PPL >= 0.15 is needed by gcc-4.4.7-4.el6.x86_64
4.4.7-4.el6 cpp = needed by gcc-4.4.7-4.el6.x86_64
Not only does it require two dependent packages, but it also shows that a corresponding version is required.
CLOOG-PPL requires a version greater than or equal to 0.15
CPP requires a 4.4.7-4.el6 version of
After that, follow his version requirements to install:
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 c105 B9de:nokey 08.Preparing ... ########################################### [100%] 09. 1:cpp ########################################### [100%] 01.RPM-IVH gcc-4.4.7-4.el6.x86_64.rpm 02.W Arning: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 to be asmlib. As required, you should install:
Oracleasm-support
Oracleasm
Oracleasmlib
The official website of Asmlib Introduction:
Http://www.oracle.com/technetwork/server-storage/linux/driver-matrix-085611.html
For Oracleasm,oracle Linux 6 It has been compiled into the kernel without installation. Therefore only need to install Oracleasm-support, the official website explains as follows:
On the Oracle Linux 6 CD, there is a oracleasm-support package that can be installed in RPM and the version is 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 post describes how to install Asmlib in Redhat: http://blog.itpub.net/23135684/viewspace-1129552/)
(2) Linu set up a Yum proxy setting
If the machine requires an agent to access the extranet, you can modify the /etc/yum.conf configuration file to do the following:
The HTTP proxy joins the following line
PROXY=HTTP://IP Address: Port
FTP proxy Join the following line//not tried
PROXY=FTP://IP Address: Port
Save to exit (the above cannot be placed at the beginning of the file)
You can also perform this at the command line, running
Export http_proxy= "IP address: Port"
(3) proxy settings for Linux using wget
You can create a. wgetrc file under the user's local home path, with the following edits:
Http_proxy = IP: Port
Ftp_proxy = IP: Port
Use_proxy = On
wait = 15
And then directly wget http://ip/filename, it's OK.
(4) Oracle-rdbms-server-11gr2-preinstall Quick Install package
Oracle Linux 6 provides a package called Oracle-rdbms-server-11gr2-preinstall to simplify the configuration of various dependencies for download, installation, parameters, and environment variables in the Oracle 11GR2 installation process, and he can do several things as follows:
Download and install a variety of dependent packages
Create Oracle Users and group
modifying/etc/sysctl.conf kernel parameters
Setting up the/etc/security/limits.conf file
Set Numa=off in a 64-bit machine
Installation path:
[Email protected] ~]# cd/etc/yum.repos.d/
[email protected] yum.repos.d]# wget Http://public-yum.oracle.com/public-yum-ol6.repo
You can then open the downloaded configuration file:
[email protected] yum.repos.d]# cat Public-yum-ol6.repo
In the version of the operating system that needs to be modified , the enabled value is changed from 0 to 1 to perform the corresponding version of the download:
[Ol6_u2_base]
Enabled=0
[email protected] ~]# Yum Install Oracle-rdbms-server-11gr2-preinstall
Start the corresponding version of the dependent package download, installation, parameters and environment variable settings, you can verify files such as/etc/sysctl.conf,/etc/security/limits.conf.
In fact, from the configuration file can be seen, the corresponding version of the dependency package download url:http://public-yum.oracle.com/repo/oraclelinux/ol6/
If you are not bothered, you can also find all dependent packages for the corresponding version via the page. The Oracle-rdbms-server-11gr2-preinstall package was not seen in the previous version of U2 from the page .
The U2 version is executed with the following conclusions:
[email protected] 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] Timeout on http://public-yum.oracle.com/repo/OracleLinux/OL6/UEK/base/x86_64/ Repodata/repomd.xml: ("Connect () timed out!") Trying other mirror. Error:cannot Retrieve repository metadata (Repomd.xml) for repository:ol6_uek_base. Verify its path and try again
(5) Configure local Yum source
[Email protected] ~]# 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 to modify all enabled=0. Create a file with the suffix named repo, such as: 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, install the dependent package:
Yum Install Elfutils-libelf-devel
(6)/etc/hosts file configuration 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 (the host name is queried by the tables). In Linux, if there is no domain name resolution server, this file is used to resolve the IP address of a host name. The format is: "IP" hostname/domain "host alias". The hostname is usually used within the LAN.
For RAC environments, four sets of Ip,public ip,private ip,virtual IP and scan IPs are configured as above.
To be Continued ...
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
"Pits" and key points encountered during Oracle RAC installation (ii)