Detection and installation of software packages required for oracle11g installation under Linux

Source: Internet
Author: User

Detection and installation of software packages required for oracle11g installation under Linux

1 first before executing the script, you need to put out all the required packages, and then put in a folder called Patch, this folder and the script in the same directory can be

2 Copy the following script content to Linux, create a new script file, and then execute it.

the contents of the script are as follows:

#!/bin/sh
count=0
arr= (binutils-2* compat-libstdc++-33* elfutils-libelf-0.* elfutils-libelf-devel-0.* elfutils-libelf-devel-static-0.* gcc-4.* gcc-c++-4* glibc-2.* glibc-common-2.* glibc-devel-2.* glibc-headers-2* kernel-headers-2.* ksh-* libaio-0.* libaio-devel-0.* libgcc-4.* libgomp-4.* libstdc++-4.* libstdc++-devel-* make-* numactl-devel-* sysstat-*)
len=${#arr [@]}
For ((i=0;i<len;i++));
Do
char=${arr[$i]}
Rpm-qa | grep "^ $char"
if [$?! = 0]; Then
error[$count]=${arr[$i]}
count=$ (($count + 1))
echo "+++++++++++++++the ${arr[$i]}^is not installed++++++++++++++++++"
fi
Done
if [$count-lt "0"];then
echo "You have $count Patchs is not installed."
echo "The Not installed patch is:"
len1=${#error [@]}
For ((ii=0;ii<len1;ii++));
Do
echo "${error[$ii]}^"
Done
echo-e "is sure to install the Patch[yes or no]:\c"
Read Select
if [$select = = "Yes"]; Then
For ((is=0;is<len1;is++));
Do
var=${error[$is]}
RPM-IVH./patch/$var. RPM
Done
fi
Else
echo "++++++++++++++++++++++check pass!+++++++++++++++++++++++++++"
fi
count=0

after the package is installed, the contents of the script can be executed, and then the check PASS will be displayed to complete the detection and installation of the package.


This article is from the "0805" blog, please be sure to keep this source http://zrxwcc.blog.51cto.com/6160351/1918556

Detection and installation of software packages required for oracle11g installation under Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.