Red Hat 4 Install

Embed Size (px)

Citation preview

  • 8/14/2019 Red Hat 4 Install

    1/18

    TKJ SMK Negeri 2 Kalianda http://tkj-smkn2kalianda.blogspot.com

    Red Hat 4 Install

    This is a sample installation for Red Hat Linux AS 4 (Advanced Server). It includes

    installation steps (with screen shots) and server configuration options for an Oracle 10g,

    Oracle 11g, and Oracle Applications 12. All the installations were done as virtualmachines on a Mac Pro running Mac OS X, using VMWare Fusion 2.x virtualization

    software. You can find the VMWare Fusion steps here.

    A cautionary note with Red Hat AS 4, you must have a valid subscription to complete

    these steps. They once had a broad academic license (with up to 60 installs per academic)but now its quite limited with a single academic license (subscription) per each fee. You

    wont be able to update the installation once youve completed the base install without a

    valid subscription. If youre an academic (that includes students), theyll disallow the useof any email except a valid university email account. Theyll validate your email before

    you can proceed with updating the system. An alternative is Oracle Linux, which is free

    (and more or less equivalent to Red Hat AS 4).

    After the VMWare configuration, these are the installation steps (a cautionary warning,there are a lot of screen shots in this post). The post is in four segments. The first walks

    you through the Red Hat 4 installation and package selection. The second walks you

    through the post installation configuration steps before you install Oracle, and it include

    general housekeeping not included in the Oracle Database Quick Installation Guide, 11gRelease 1. The third deals with the kernel settings required by Oracle 11g. The fourth

    walks you through setting up your environment file and verifying you can connect to

    Oracle within the Red Hat 4 environment. The fifth walks you through nuance linked to aVMWare Fusion virtual machine.

    Installing Red Hat 4 (30 steps)

    1. The first installation screen you should see follows below. If it isnt displayed in about

    10 to 20 seconds, there is probably an error with your VMWare Fusion configurationsteps. You may need to repeat those. If you get to this screen, simply click the Return or

    Enterkey to continue.

    2. Unless youre unsure of the integrity of your media, you should click the Tab key to

    the Skip selection and then click theEnterorReturn key.

    Source : http://blog.mclaughlinsoftware.com/red-hat-4-install/

    http://blog.mclaughlinsoftware.com/red-hat-4-install/http://blog.mclaughlinsoftware.com/virtualization/configure-custom-vm/http://blog.mclaughlinsoftware.com/virtualization/configure-custom-vm/http://blog.mclaughlinsoftware.com/red-hat-4-install/http://blog.mclaughlinsoftware.com/wp-content/uploads/2008/11/rhinstall1.pnghttp://blog.mclaughlinsoftware.com/red-hat-4-install/http://blog.mclaughlinsoftware.com/virtualization/configure-custom-vm/http://blog.mclaughlinsoftware.com/red-hat-4-install/
  • 8/14/2019 Red Hat 4 Install

    2/18

    TKJ SMK Negeri 2 Kalianda http://tkj-smkn2kalianda.blogspot.com

    3. That begins the installation. Youll then see all other commands enabled for your

    mouse. Click theNextbutton to proceed.

    4. Choose the language for your installation. Then, click the Nextbutton to continue the

    installation.

    Source : http://blog.mclaughlinsoftware.com/red-hat-4-install/

    http://blog.mclaughlinsoftware.com/red-hat-4-install/http://blog.mclaughlinsoftware.com/wp-content/uploads/2008/11/rhinstall4.pnghttp://blog.mclaughlinsoftware.com/wp-content/uploads/2008/11/rhinstall3.pnghttp://blog.mclaughlinsoftware.com/wp-content/uploads/2008/11/rhinstall2.pnghttp://blog.mclaughlinsoftware.com/red-hat-4-install/
  • 8/14/2019 Red Hat 4 Install

    3/18

    TKJ SMK Negeri 2 Kalianda http://tkj-smkn2kalianda.blogspot.com

    5. Like the prior selection, this one involves your primary language for your keyboard.Choose the correct language and then click theNextbutton to continue the installation.

    6. Now you must choose whether or not you want to partition the space or accept

    automatic partitioning. My preference is to manually partition. ClickAutomatically

    partition radio button if you want the defaults, or click the Manually partition with Disk

    Druidbutton to set the values yourself.

    7. You should see that the partition table doesnt exist, and youll receive a dialog askingyou to initialize the drive. Click the Yes button to continue.

    Source : http://blog.mclaughlinsoftware.com/red-hat-4-install/

    http://blog.mclaughlinsoftware.com/red-hat-4-install/http://blog.mclaughlinsoftware.com/wp-content/uploads/2008/11/rhinstall7.pnghttp://blog.mclaughlinsoftware.com/wp-content/uploads/2008/11/rhinstall6.pnghttp://blog.mclaughlinsoftware.com/wp-content/uploads/2008/11/rhinstall5.pnghttp://blog.mclaughlinsoftware.com/red-hat-4-install/
  • 8/14/2019 Red Hat 4 Install

    4/18

    TKJ SMK Negeri 2 Kalianda http://tkj-smkn2kalianda.blogspot.com

    8. If you chose automatic partitioning, youll see a progress dialog as the partition is built.If you chose manual partition, youll receive the following dialog. You can choose the

    New button to add partitions until youve added them all.

    Id recommend the following settings for a sample 100 GB disk system for an Oracle 10g

    or 11g installation:

    Mount Point Size

    / 1 GB

    swap 6 GB

    /boot 102 MB

    /home 3 GB

    /tmp 10 GB

    /usr 20 GB

    /var 10 GB

    /u01 50 GB

    9. The next screen is for the boot loader, typically you should accept the default values.

    Click theNextbutton to continue.

    Source : http://blog.mclaughlinsoftware.com/red-hat-4-install/

    http://blog.mclaughlinsoftware.com/red-hat-4-install/http://blog.mclaughlinsoftware.com/wp-content/uploads/2008/11/rhinstall8.pnghttp://blog.mclaughlinsoftware.com/red-hat-4-install/
  • 8/14/2019 Red Hat 4 Install

    5/18

    TKJ SMK Negeri 2 Kalianda http://tkj-smkn2kalianda.blogspot.com

    10. Accept the DHCP configuration initially because you can convert it to a static portafter the installation. Click theNextbutton to continue.

    11. By default the firewall is enabled, you can disable it and save yourself some time later

    or leave it enforce to learn how to configure it. You should check the Remote Logon(SSH) and Web Server (HTTP, HTTPS) check boxes, so that you can remotely login,redirect XWindow to external consoles, and configure Zend Core for Oracle. Click the

    Nextbutton to continue.

    Source : http://blog.mclaughlinsoftware.com/red-hat-4-install/

    http://blog.mclaughlinsoftware.com/red-hat-4-install/http://blog.mclaughlinsoftware.com/wp-content/uploads/2008/11/rhinstall10.pnghttp://blog.mclaughlinsoftware.com/wp-content/uploads/2008/11/rhinstall9.pnghttp://blog.mclaughlinsoftware.com/red-hat-4-install/
  • 8/14/2019 Red Hat 4 Install

    6/18

    TKJ SMK Negeri 2 Kalianda http://tkj-smkn2kalianda.blogspot.com

    12.Additional language support is available. You can check any languages that you want

    to enable, and then click theNextbutton to continue.

    13. You opt for a timezone in the next form. Choose one and then click the Nextbutton tocontinue.

    14. You enter the root user password twice and click theNextbutton to continue.

    Source : http://blog.mclaughlinsoftware.com/red-hat-4-install/

    http://blog.mclaughlinsoftware.com/red-hat-4-install/http://blog.mclaughlinsoftware.com/wp-content/uploads/2008/11/rhinstall13.pnghttp://blog.mclaughlinsoftware.com/wp-content/uploads/2008/11/rhinstall12.pnghttp://blog.mclaughlinsoftware.com/wp-content/uploads/2008/11/rhinstall11.pnghttp://blog.mclaughlinsoftware.com/red-hat-4-install/
  • 8/14/2019 Red Hat 4 Install

    7/18

    TKJ SMK Negeri 2 Kalianda http://tkj-smkn2kalianda.blogspot.com

    15. The default packages dont provide everything you need. You should click theCustomize software packages to be installed radio button and then the Next button to

    continue.

    16. You should select the following packages for your installation and click the Next

    button to continue.

    Check Package Description

    X X Window System

    X GNOME Desktop Environment

    X Editors

    X Engineering and Scientific

    X Graphical Internet

    X Text-based Internet

    Source : http://blog.mclaughlinsoftware.com/red-hat-4-install/

    http://blog.mclaughlinsoftware.com/red-hat-4-install/http://blog.mclaughlinsoftware.com/wp-content/uploads/2008/11/rhinstall15.pnghttp://blog.mclaughlinsoftware.com/wp-content/uploads/2008/11/rhinstall14.pnghttp://blog.mclaughlinsoftware.com/red-hat-4-install/
  • 8/14/2019 Red Hat 4 Install

    8/18

    TKJ SMK Negeri 2 Kalianda http://tkj-smkn2kalianda.blogspot.com

    X Office/Productivity

    X Sound and Video

    X Authoring and Publishing

    X Graphics

    X Network Servers

    X Legacy Network Server

    X Development Tools

    X X Software Development

    X GNOME Software Development

    X Legacy Software Development

    X Administration Tools

    X System Tools

    X Printing Support

    17. Youve selected everything, now click the Next button to install it.

    18. The following dialog runs while formatting the partitions. It varies how long based onthe size of the disk youre formatting.

    Source : http://blog.mclaughlinsoftware.com/red-hat-4-install/

    http://blog.mclaughlinsoftware.com/red-hat-4-install/http://blog.mclaughlinsoftware.com/wp-content/uploads/2008/11/rhinstall16.pnghttp://blog.mclaughlinsoftware.com/red-hat-4-install/
  • 8/14/2019 Red Hat 4 Install

    9/18

    TKJ SMK Negeri 2 Kalianda http://tkj-smkn2kalianda.blogspot.com

    19. The following screen runs while the packages are installed on the operating system.

    20. You see the following screen when the installation phase completes. Click theReboot

    button to continue with the post installation configuration steps.

    21. After the operating system reboots, you see the following screen. Click the Next

    button to continue with the post installation configuration steps.

    Source : http://blog.mclaughlinsoftware.com/red-hat-4-install/

    http://blog.mclaughlinsoftware.com/red-hat-4-install/http://blog.mclaughlinsoftware.com/wp-content/uploads/2008/11/rhinstall18.pnghttp://blog.mclaughlinsoftware.com/wp-content/uploads/2008/11/rhinstall17.pnghttp://blog.mclaughlinsoftware.com/red-hat-4-install/
  • 8/14/2019 Red Hat 4 Install

    10/18

    TKJ SMK Negeri 2 Kalianda http://tkj-smkn2kalianda.blogspot.com

    22. Choose the Yes radio button to accept the license agreement, and click theNextbutton

    to continue.

    23. Verify the date and time, the click theNetwork Time Protocoltab to synchronize the

    clock.

    Source : http://blog.mclaughlinsoftware.com/red-hat-4-install/

    http://blog.mclaughlinsoftware.com/red-hat-4-install/http://blog.mclaughlinsoftware.com/wp-content/uploads/2008/11/rhinstall22.pnghttp://blog.mclaughlinsoftware.com/wp-content/uploads/2008/11/rhinstall21.pnghttp://blog.mclaughlinsoftware.com/wp-content/uploads/2008/11/rhinstall20.pnghttp://blog.mclaughlinsoftware.com/red-hat-4-install/
  • 8/14/2019 Red Hat 4 Install

    11/18

    TKJ SMK Negeri 2 Kalianda http://tkj-smkn2kalianda.blogspot.com

    24. Choose a server and click theNextbutton to continue.

    25. Choose 800600 and proceed if youre inside a VMWare Fusion virtual machine

    because itll change when you run the WMWare Tools later in the configuration. Ifyoure on a native machine, the install typically recognizes the monitor correctly. It

    general cant detect the resolution when connected through an OmniView switch. You

    may opt to connect the monitor directly during the install to avoide this problem. Afteryou choose a resolution, click theNextbutton to continue.

    26. The next screen requires you to have a Red Hat login account. If you dont remember

    it, log into the Red Hat site and recover it. It differs from your Red Hat account.

    Source : http://blog.mclaughlinsoftware.com/red-hat-4-install/

    http://blog.mclaughlinsoftware.com/red-hat-4-install/http://blog.mclaughlinsoftware.com/wp-content/uploads/2008/11/rhinstall24.pnghttp://blog.mclaughlinsoftware.com/wp-content/uploads/2008/11/rhinstall23.pnghttp://blog.mclaughlinsoftware.com/red-hat-4-install/
  • 8/14/2019 Red Hat 4 Install

    12/18

    TKJ SMK Negeri 2 Kalianda http://tkj-smkn2kalianda.blogspot.com

    27. At this point, youll be prompted for an installation key. Only provide it if youre

    installing Red Hat 5 or greater because it isnt required for Red Hat 4.

    28. You are prompted to install VMWare Tools packages if youre running this instancein a VMWare Fusion.

    29. You should connect to the Red Hat virtual machine as the root user. You click on

    Virtual Machine in the VMWare menu, and choose Install VMWare Tools from the dropdown menu. It will put a zip file in the /media/cdrecorder mount point. You can unzip

    the file with the following command:

    # tar -zxvf /media/cdrecorder/VMwareTools-e.x.p-116369.tar.gz~root

    After you extract the file, run the following as the root user:

    # ~root/vmware-tools-distrib/vmware-install.pl

    Generally, you should accept every default but Id suggest that you skip the experimental

    product at the end of the prompts. Even after you install the VMWare Tools, Red Hat 4

    will prompt you to run it again. You wont gain anything by rerunning the script. Also,the Unity display option doesnt work with Red Hat 4.

    30. The next step is to click on the flashing red explanation mark and patch the system to

    the current release and kernel. After youve done that you should configure the/etc/sysctl.conf to support installing either an Oracle 10g or 11g instance.

    Source : http://blog.mclaughlinsoftware.com/red-hat-4-install/

    http://blog.mclaughlinsoftware.com/red-hat-4-install/http://blog.mclaughlinsoftware.com/wp-content/uploads/2008/11/rhinstall26.pnghttp://blog.mclaughlinsoftware.com/wp-content/uploads/2008/11/rhinstall25.pnghttp://blog.mclaughlinsoftware.com/red-hat-4-install/
  • 8/14/2019 Red Hat 4 Install

    13/18

    TKJ SMK Negeri 2 Kalianda http://tkj-smkn2kalianda.blogspot.com

    Post Installation (9 steps)

    Before you begin the Oracle preconfiguration steps, you should convert the network from

    DHCP to a static IP address. You should now create an administrative user account, and

    then logout as root and logon as that administrative user.

    You configure the network, as follows:

    1. Navigate to the fedora Applications choice in the top left hand corner and chooseSystem Settings selection, which launches a context dialog where you should choose the

    Networkselection, as shown:

    2. If you connected as the root user, you will immediately see the Network

    Configuration dialog (which you can launch from the command line as/usr/bin/system-config-network). If you connected as another user, youll be

    prompted for the root password as shown in the dialog box.

    3. Youre on the Devices tab by default, click the Hosts tab. If you see localhost

    localhost.localdomainHosts tab, you should connect as the root user in a terminal

    window and edit the /etc/hosts file.

    At the command line, switch user to root like this and provide the password:

    # su - root

    Source : http://blog.mclaughlinsoftware.com/red-hat-4-install/

    http://blog.mclaughlinsoftware.com/red-hat-4-install/http://blog.mclaughlinsoftware.com/wp-content/uploads/2008/11/rh_root_priv.pnghttp://blog.mclaughlinsoftware.com/wp-content/uploads/2008/11/rh_netw_0.pnghttp://blog.mclaughlinsoftware.com/red-hat-4-install/
  • 8/14/2019 Red Hat 4 Install

    14/18

    TKJ SMK Negeri 2 Kalianda http://tkj-smkn2kalianda.blogspot.com

    Add the following line to the /etc/hosts file:

    127.0.0.1 desired_hostname desired_hostname.desired_domain_name

    These will be pick up as the current values and theyll be used by oem during the

    installation of the Oracle Database 11g later in the installation. You should make no

    changes from theHosts tab.

    4. From theDNStab, you should see the following. Leave the localhost.localdomainalone, it means that the /etc/nsswitch.conf file has the following line in it.

    hosts files dns

    This line means that the operating system checks the /etc/hosts file first before DNS.

    Its the easiest way to work with test systems that you take up and take down. In aVMWare Fusion installation, the primary DNS server is also the gateway (if you doubt

    that you can switch user to root and run the traceroute utility).

    You should note the IP number because youll need it later in these steps.

    Source : http://blog.mclaughlinsoftware.com/red-hat-4-install/

    http://blog.mclaughlinsoftware.com/red-hat-4-install/http://blog.mclaughlinsoftware.com/wp-content/uploads/2008/11/rh_netw_1.pnghttp://blog.mclaughlinsoftware.com/red-hat-4-install/
  • 8/14/2019 Red Hat 4 Install

    15/18

  • 8/14/2019 Red Hat 4 Install

    16/18

    TKJ SMK Negeri 2 Kalianda http://tkj-smkn2kalianda.blogspot.com

    Click the Statically set IP address radio button to select it. Enter a valid IP address (forVMWare Fusion 2.x the valid static range is 172.16.153.3 to 172.16.153.127), subnet

    mask (discoverable by using the ifconfig command in a terminal window), and default

    gateway (VMWare Fusion 2.x uses 172.16.153.2 as the gateway).

    7. Click the window close icon in the top right corner to exit and save the work. You will

    see the following dialog and you click the Yes button to continue.

    Source : http://blog.mclaughlinsoftware.com/red-hat-4-install/

    http://blog.mclaughlinsoftware.com/red-hat-4-install/http://blog.mclaughlinsoftware.com/wp-content/uploads/2008/11/rh_netw_6.pnghttp://blog.mclaughlinsoftware.com/wp-content/uploads/2008/11/rh_new_5.pnghttp://blog.mclaughlinsoftware.com/wp-content/uploads/2008/11/rh_new_4.pnghttp://blog.mclaughlinsoftware.com/red-hat-4-install/
  • 8/14/2019 Red Hat 4 Install

    17/18

    TKJ SMK Negeri 2 Kalianda http://tkj-smkn2kalianda.blogspot.com

    8. Now that youve approved the changes, the utility prompts you to restart the networkand check them with the Information dialog. Click the OKbutton to continue.

    9. Restarting the machine can be problematic (or at least tedious) if youve made an error.

    You should consider trying to restart the network while youre still connected and

    capable of making changes. You open a terminal session, switch user to the root user,

    and enter the root password, like:

    # su - root

    Then, you can restart the network with the following command:

    # /etc/init.d/network restartShutting down interface eth0: [ OK ]Shutting down loopback interface: [ OK ]Setting network parameters: [ OK ]Bringing up loopback interface: [ OK ]Bringing up interface eth0: [ OK ]

    Even after restarting the network services, an attempt to install Oracle would fail torecognize the IP address as static. Youll need to reboot the operating system to have a

    static IP system.

    Kernel Configuration for Oracle

    The Oracle Database Quick Installation Guide, 11g Release 1 notes are very good buttheyre missing one of four RPMS that you must manually install. The missing RPM is

    the unixODBC-devel-2.2.11 for the release youre installing. This install is 64 bit,

    therefore theyre using the x86_64. They are the following:

    # rpm -ivh elfutils-libelf-devel-0.97.1-5.x86_64.rpm# rpm -ivh unixODBC-devel-2.2.11-1.RHEL4.1.x86_64.rpm

    # rpm -ivh libaio-devel-0.3.105-2.x86_64.rpm# rpm -ivh sysstat-5.0.5-19.el4.x86_64.rpm

    2. After patching the Operating System, youll need to configure the Red Hat 4.0 kernel

    configuration file, known as sysctl.conf. You should enter any missing parameters,

    like the following:

    # Kernel sysctl configuration file for Red Hat Linux## For binary values, 0 is disabled, 1 is enabled. See sysctl(8)and# sysctl.conf(5) for more details.

    # Controls IP packet forwardingnet.ipv4.ip_forward = 0

    # Controls source route verificationnet.ipv4.conf.default.rp_filter = 1

    # Do not accept source routingnet.ipv4.conf.default.accept_source_route = 0

    Source : http://blog.mclaughlinsoftware.com/red-hat-4-install/

    http://download.oracle.com/docs/cd/B28359_01/install.111/b32285/toc.htmhttp://blog.mclaughlinsoftware.com/red-hat-4-install/http://download.oracle.com/docs/cd/B28359_01/install.111/b32285/toc.htmhttp://blog.mclaughlinsoftware.com/red-hat-4-install/
  • 8/14/2019 Red Hat 4 Install

    18/18

    TKJ SMK Negeri 2 Kalianda http://tkj-smkn2kalianda.blogspot.com# Controls the System Request debugging functionality of thekernelkernel.sysrq = 0

    # Oracle specific kernel parameterskernel.shmall = 2097152kernel.shmmax = 2147483648kernel.shmmni = 4096kernel.sem = 250 32000 100 128

    # Oracle specific network parametersnet.ipv4.ip_local_port_range = 1024 65000net.core.rmem_default = 4194304net.core.rmem_max = 4194304net.core.wmem_default = 262144net.core.wmem_max = 262144net.ipv4.tcp_wmem = 262144 262144 262144net.ipv4.tcp_rmem = 4194304 4194304 4194304

    #fs.file-max = 65534

    # Controls whether core dumps will append the PID to the core

    filename.# Useful for debugging multi-threaded applications.kernel.core_uses_pid = 1fs.file-max = 6553600

    http://blog.mclaughlinsoftware.com/red-hat-4-install/