It is believed that many children's shoes have had the painful experience of installing Oracle databases on Linux, most of which are problems with environmental settings. I recommend a foreign Daniel write Oracle installation script OTK, is written in bash, which greatly simplifies the Oracle installation process, and the success rate of more than 99.9999%, as long as you ensure that your Linux system is clean, then follow this tutorial to ensure that you will be successful installation.
Preparatory work
OTK for a variety of Linux to provide installation documentation, this article uses the rhel5.5_x86_64 bit, the database version of 11GR2, the main reference to this document.
First of all, prepare the installation files as follows:
Linux.x64_11gR2_database_1of2.zip
Linux.x64_11gR2_database_2of2.zip
oratoolkit-1.0.2.1.5-1.noarch.rpm
Download the above file and put it in the/var/tmp/oracle directory. It is best to point your Yum source to your system installation CD or ISO file.
Install OTK
Log in with root and execute the following command:
# su-root #
cd/var/tmp/oracle #
ls-1 oratool*
oratoolkit-1.0.2.1.5-1.noarch.rpm
# RPM-IVH Oratoolkit -1.0.2.1.5-1.noarch.rpm
Preparing ... ########################################### [100%]
1:oratoolkit ####################################### # # [100%]
OTK has helped us set up Oracle users, we need to set the Oracle user password below
# passwd Oracle
changing password for user Oracle.
New UNIX Password: Bad
password:it are based on a dictionary word
Retype new UNIX password:
passwd:all authen Tication Tokens updated successfully.
Addressing environmental dependencies
This step is the most enjoyable, the most headache of the environment depends on the problem easily resolved! First of all to verify that your system is not enough to meet the requirements, the OTK script provides an intelligent environment to meet the check:
#/opt/oracle/otk/current/bin/installmanager Swreqcheck ossetup11gr2.cfg ...
/omit most output
20130521_165122: Info:action Swreqcheck of Installmanager ended with 7 warnings
The final conclusion tells you that there are a few caveats to your system (my system is 7) and you can see what's missing in the output log. The following set of commands is cool and lets you solve all the problems at once:
First assemble command
# req_file_dir= "/opt/oracle/otk/current/conf/installmanager/requirement"
# req_file_path= "$REQ _ File_dir/ora11gr2-redhat-5-x86_64.pkg.lst "
# yum_command=$ (echo" YUM Install ")
# yum_command+=$ (egrep-v" # ") $REQ _file_path | grep 32-bit | awk ' {print ' $ '. i[356]86 '} ')
# yum_command+=$ (egrep-v "#" $REQ _file_path | grep 64-bit | awk ' {print ' "$". x86 _64 "}"
///with Echo look at what the final assembly command is.
# echo $YUM _command
//execute command
# $YUM _command//Perform
environmental check again
#/opt /oracle/otk/current/bin/installmanager swreqcheck ossetup11gr2.cfg ...
20130521_170131:info:action Swreqcheck of Installmanager ended successfully//This verification was successful and the environment has met Oracle installation requirements