Install Red Hat For Oracle
Install Red Hat For Oracle
Install Red Hat For Oracle
By: Neil Chakrabarty ( www.thechak.net\~neil ) This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g. Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I have had very good luck with this procedure however: The Material may contain inaccuracies or typographical errors. I make no representations about the accuracy, reliability, completeness, or timeliness of the Material or about the results to be obtained from using the Site and the Material. The use of this Material is entirely at your own risk.
Disk Partitioning:
Due to experiences described by other Linux system administrators of not being able to perform upgrades due to partition sizes being too small I have elected to not follow Oracles portioning recommendations in favor of a vary large root partition. The below table shows the partitioning scheme that I used: Mount Point /boot Swap / Size 100 MB 2000 MB All remaining Drive Drive A Drive B Software Raid drives A and B
Note: On our servers we had to match the user id to be able to create files on the other systems. On your system you may wish to use different ids as oracle suggests in their directions.
In the text file /etc/vsftpd/vsftpd.conf I changed two lines. Since the file is long only the two lines changed are shown.
write_enabled=yes anonymous_enabled=no
Also we want the FTP, Telnet and RSH services turned on at boot time. This is accomplished though the use of a Red Hat command as follows:
chkconfig --level 2345 vsftpd on chkconfig --level 2345 telnet on
Next we need to configure the /etc/hosts file: Note: It is important to enter the machines own ip and name in this file so it can find its self.
# Do not remove the following line, or various programs # that require network functionality will fail. 172.17.2.31 db1.dep.gov db1 1.1.1.1 int_db1.dep.gov int_db1 int-db1 172.17.2.32 db2.dep.gov db2 1.1.1.2 int_db2.dep.gov int_db2 int-db2 172.17.100.48 darwin.dep.gov darwin
Note: The public ip addresses that begin with 172. are site specific to our site at other locations you will have differing ip addresses.
Reboot and verify that the FTP, and Telnet services all work. Perform these tests as the Oracle user. 1. Telnet in to the server to verify telnet works. 2. Open an ftp session with the server to verify that FTP works.
Change the Kernel.sysreq to 1 Add these lines to set these kernel parameters.
Reboot to have these take effect and verify each one by the following commands:
cat /proc/sys/net/core/rmem_default cat /proc/sys/net/core/rmem_max cat /proc/sys/net/core/wmem_default cat /proc/sys/net/core/wmem_max hostname cat /proc/sys/kernel/sem cat /proc/sys/kernel/shmmax cat /proc/sys/kernel/shmmni cat /proc/sys/kernel/shmall cat /proc/sys/fs/file-max cat /proc/sys/kernel/msgmni cat /proc/sys/kernel/msgmnb cat /proc/sys/net/ipv4/ip_local_port_range
Edit the xstartup file in u01/home/oracle/.vnc and enter this text. #!/bin/sh # Uncomment the following two lines for normal desktop: # unset SESSION_MANAGER # exec /etc/X11/xinit/xinitrc [ -r \/u01/home/oracle/.Xresources ] && xrdb \/u01/home/oracle/.Xresources xsetroot -solid grey vncconfig -iconic & xhost localhost PATH=$PATH:/usr/local/bin export PATH xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & twm & Restart the vnc server software The command to stop the server is:
vncserver kill :1 5