Monthly Archives: April 2012

How to check/verify if perl is installed on linux?

on the command prompt, you can run the below command:
perl -v

If perl is installed, the above command will report the version that was installed.

Leave a comment

Filed under Linux

how to install oracle linux packages for oracle 11g installation in RHEL5, if not registered to redhat

I have seen people struggling to install oracle linux packages on RHEL 5. You can install all the rpm required for oracle installation without getting registered on redhat website. You just need to install yum package and replace the configuration file and then install the packages.

Install the rpm package fromĀ  RHEL 5 DVD. Then,, download and copy the appropriate yum configuration file in place, by running the following commands as root:
Navigate to below directory as root:
cd /etc/yum.repos.d

Then run the below command:
wget http://public-yum.oracle.com/public-yum-el5.repo

Note: If you have any other repository file in /etc/yum.repos.d directory, then remove that file or move it to another directory.

Then, enable the appropriate repository by editing the yum configuration file
-> Open the yum configuration file in a text editor
-> Locate the section in the file for the repository you plan to update from, e.g. [el5_oracle_addons, el5_addons]
-> Change enabled=0 to enabled=1

and save the file.

Then run the below command:

yum update binutils elfutils elfutils-libelf gcc gcc-c++ glibc glibc-common glibc-devel compat-libstdc++-33 cpp make compat-db sysstat libaio libaio-devel unixODBC unixODBC-devel

This will update all the packages you need for oracle 11g installation on RHEL5.

Leave a comment

Filed under Linux, Oracle

wget command getting timed out – while trying to update rpm for oracle on linux server

Wget timed out usually indicates that you’re using an HTTP proxy to access the outside world. If so, you will need to configure the http_proxy environment variable for wget to use the same proxy. Add the below settings and it should resolve the issue.

export http_proxy=http://server-ip:port/
E.g: export http_proxy=http://101.10.19.27:8080

This should fix the wget time out issue.

Note: similarly you can do this for ftp_proxy as well.

Leave a comment

Filed under Linux, Oracle