Oracle 10g installation steps in CentOS 5
Download the Oracle 10g database from the Oracle website. Graphical environment should be installed correctly in the server before installing oracle. Open a terminal command line and Untar the zip file and go to the folder 'database'. From there type the below given command as a user other than root. Better create a user named 'oracle'.
./runInstaller -ignoreSysPrereqs
If you find any error as shown below,
----------
Initializing Java Virtual Machine from /tmp/OraInstall2008-08-25_11-53-58AM/jre/bin/java. Please wait...
Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2008-08-25_11-53-58AM/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
---------
Then install libXp as shown below,
yum install libXp
And then give the command 'runinstaller' . The software will then open a graphical interface and will check for the system requirements. If it shows some errors in the requirements, we need to correct them. Most common errors that I see are with regard to the kernel values. It can be corrected as shown below.
cd /proc/sys/kernel/
echo 250 32000 100 128 > sem
echo 536870912 > shmmax
cd /proc/sys/net/ipv4
echo 1024 65000 >ip_local_port_range
cd /proc/sys/net/core
echo 262144 > rmem_max
echo 262144 > wmem_max
echo 262144 > wmem_default
echo 262144 > rmem_default
Then retry and go on with the installation....
At the end of the installation, you will be asked to the following commands in the command line as 'root'
/home/oracle/oraInventory/orainstRoot.sh
/home/oracle/oracle/product/10.2.0/db_1/root.sh
after the installation, don't forget to put the kernel values in the sysctl.conf file. Otherwise while rebooting the OS, the default values will be taken instead of what we had entered.
to do that,
vi /etc/sysctl.conf
put the values as shown below
kernel.shmall = 4294967296
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 1024 65000
net.core.wmem_default = 262144
net.core.wmem_max = 262144
net.core.rmem_default = 262144
net.core.rmem_max = 262144
After saving the file, type the below given command to update the file.
sysctl -p
That's it.. and enjoy :)
./runInstaller -ignoreSysPrereqs
If you find any error as shown below,
----------
Initializing Java Virtual Machine from /tmp/OraInstall2008-08-25_11-53-58AM/jre/bin/java. Please wait...
Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2008-08-25_11-53-58AM/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
---------
Then install libXp as shown below,
yum install libXp
And then give the command 'runinstaller' . The software will then open a graphical interface and will check for the system requirements. If it shows some errors in the requirements, we need to correct them. Most common errors that I see are with regard to the kernel values. It can be corrected as shown below.
cd /proc/sys/kernel/
echo 250 32000 100 128 > sem
echo 536870912 > shmmax
cd /proc/sys/net/ipv4
echo 1024 65000 >ip_local_port_range
cd /proc/sys/net/core
echo 262144 > rmem_max
echo 262144 > wmem_max
echo 262144 > wmem_default
echo 262144 > rmem_default
Then retry and go on with the installation....
At the end of the installation, you will be asked to the following commands in the command line as 'root'
/home/oracle/oraInventory/orainstRoot.sh
/home/oracle/oracle/product/10.2.0/db_1/root.sh
after the installation, don't forget to put the kernel values in the sysctl.conf file. Otherwise while rebooting the OS, the default values will be taken instead of what we had entered.
to do that,
vi /etc/sysctl.conf
put the values as shown below
kernel.shmall = 4294967296
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 1024 65000
net.core.wmem_default = 262144
net.core.wmem_max = 262144
net.core.rmem_default = 262144
net.core.rmem_max = 262144
After saving the file, type the below given command to update the file.
sysctl -p
That's it.. and enjoy :)
Comments
Post a Comment