11 Replies Latest reply: May 30, 2012 10:20 AM by 895327 RSS

    Installing Oracle Linux 6 For 11g

    895327
      I'm downloading Oracle Linux 6,2 64-bit with the single intention to simply install Oracle Database 11g Enterprise Edition and I've never used or installed Oracle Linux before. I know that in order to install Oracle 11g database, I will need to have some kind of graphic utility like X but I do not need a Desktop Environment like Gnome or KDE (which is not permitted on servers per company policy). Can someone tell me what exactly or which specific options I will need to minimally install Oracle database 11g? I don't want to install the entire DVD content to my server but rather know what packages are required and ONLY install those. I don't know if the Linux installer has a fairly self explanatory / easy to use options based on me using this system as a database server but if anyone can please help, I'd greatly appreciate it!
        • 1. Re: Installing Oracle Linux 6 For 11g
          Catch-22
          I will need to have some kind of graphic utility like X but I do not need a Desktop Environment
          Simply put:

          - perform a default installation of Oracle Linux 6
          - disable Firewall and SeLinux.
          - follow the instructions on http://public-yum.oracle.com/
          - run "yum install oracle-rdbms-server-11gR2-preinstall".

          To be able to run the Oracle RDBMS installer you need to run X Server on your PC. You can install free Xming and PuTTy or give MobaXterm from http://mobaxterm.mobatek.net a try. Basically you start the X Server on your computer and establish a SSH session with X-forwarding, e.g. ssh -X oracle@server-ip-number. You must not set any DISPLAY variable or use legacy Xhost authentication since SSH will take care of it.
          I don't know if the Linux installer has a fairly self explanatory / easy to use options based on me using this system as a database server
          Nobody can possibly know what you might consider easy or difficult. The best way to find out is to try it.
          • 2. Re: Installing Oracle Linux 6 For 11g
            895327
            So I did a basic server installation (not minimal) of Oracle 6.2 and followed the instructions to install the Oracle Yum public mirror in the mirror repository but when I SSH into the server, I don't appear to have the correct / required X11 or Xorg packages / libraries installed:

            carlos@ghost:~$ ssh -X 10.1.10.242
            carlos@10.1.10.242's password:
            Last login: Tue May 22 14:26:30 2012 from ghost.holyghost.org
            [carlos@oracledb ~]$ xclock
            -bash: xclock: command not found

            So my question is how can I find out what packages Oracle requires for installation. Usually all software has a required list of dependencies and such but I can't find anything that gives me a list. I don't want to do a 'silent' installation just yet and omit the OUI (Oracle Universal Installer).

            According to the following URL:

            http://docs.oracle.com/cd/E11882_01/install.112/e24321/pre_install.htm#BABCFJFG

            Oracle Linux 6 and Red Hat Enterprise Linux 6     The following packages (or later versions) must be installed:
            binutils-2.20.51.0.2-5.11.el6 (x86_64)
            compat-libcap1-1.10-1 (x86_64)
            compat-libstdc++-33-3.2.3-69.el6 (x86_64)
            compat-libstdc++-33-3.2.3-69.el6.i686
            gcc-4.4.4-13.el6 (x86_64)
            gcc-c++-4.4.4-13.el6 (x86_64)
            glibc-2.12-1.7.el6 (i686)
            glibc-2.12-1.7.el6 (x86_64)
            glibc-devel-2.12-1.7.el6 (x86_64)
            glibc-devel-2.12-1.7.el6.i686
            ksh
            libgcc-4.4.4-13.el6 (i686)
            libgcc-4.4.4-13.el6 (x86_64)
            libstdc++-4.4.4-13.el6 (x86_64)
            libstdc++-4.4.4-13.el6.i686
            libstdc++-devel-4.4.4-13.el6 (x86_64)
            libstdc++-devel-4.4.4-13.el6.i686
            libaio-0.3.107-10.el6 (x86_64)
            libaio-0.3.107-10.el6.i686
            libaio-devel-0.3.107-10.el6 (x86_64)
            libaio-devel-0.3.107-10.el6.i686
            make-3.81-19.el6
            sysstat-9.0.4-11.el6 (x86_64)

            It makes no mention of graphical package requirements. Am I missing something?
            • 3. Re: Installing Oracle Linux 6 For 11g
              Catch-22
              xclock is just an X window client application with a small footprint. It is often used to test if X Server is working.

              you can install it using sudo yum –y install xorg-x11-apps xauth
              So my question is how can I find out what packages Oracle requires for installation.
              That's where yum install oracle-rdbms-server-11gR2-preinstall comes into play as previously mentioned. It will do the complete setup required to install Oracle RDBMS server, including oracle account, kernel parameters and necessary software packages.
              • 4. Re: Installing Oracle Linux 6 For 11g
                Catch-22
                And btw, the Oracle OUI installer will still complain about missing packages when performing the prerequisite check since OL 6 did not exist when the Oracle 11g installation was designed. You can simply press the "ignore" button.
                • 5. Re: Installing Oracle Linux 6 For 11g
                  895327
                  Dude wrote:
                  And btw, the Oracle OUI installer will still complain about missing packages when performing the prerequisite check since OL 6 did not exist when the Oracle 11g installation was designed. You can simply press the "ignore" button.
                  Thanks a million. I would have saw this and just assumed I did something wrong. I appreciate you bringing this to my attention! Very helpful... ;)
                  • 6. Re: Installing Oracle Linux 6 For 11g
                    Avi Miller-Oracle
                    Dude wrote:
                    And btw, the Oracle OUI installer will still complain about missing packages when performing the prerequisite check since OL 6 did not exist when the Oracle 11g installation was designed. You can simply press the "ignore" button.
                    If you use 11.2.0.3 downloaded from My Oracle Support on OL6, you should get no pre-requisite warnings. They were all fixed with the release of 11.2.0.3, so a minimal install of OL6 + oracle-rdbms-server-11gR2-preinstall should install everything for the pre-requisite checks to pass. Assuming you have enough swap configured or anything else that's totally outside of our control. :)
                    • 7. Re: Installing Oracle Linux 6 For 11g
                      895327
                      Sorry everyone but I've retured back from vacation to focus back on getting Oracle Database 11.2.0.3 installed on Oracle Linux 6.2 64-bit. I've got the O.S. up and I thought I selected all the correct / required packages to perform the standard installation using the Universal Installer but it's not working for some reason. I'm unable to forward my 'xclock' session from the database server host to my workstation (Ubuntu 12.04 Linux). When I open a terminal window on my Ubuntu Linux machine and type 'xclock', the application opens w/o any issues. When I SSH into my Oracle database server and attempt to forward the X11 session over to my machine, I get:
                      carlos@ghost:~$ ssh -x carlos@oracledb
                      carlos@oracledb's password: 
                      [carlos@oracledb ~]$ xclock
                      Error: Can't open display: 
                      [carlos@oracledb ~]$ logout
                      Connection to oracledb closed.
                      I obviously have the application 'xclock' and all required dependencies installed but for some reason it doesn't forward from my Oracle server to my workstation so that I can start the installation...

                      Below is a list of all installed packages on Oracle Linux that have 'xorg-x11*' in their package header name:
                      [root@oracledb ~]# rpm -qa | grep -i "xorg-x11*"
                      xorg-x11-drv-qxl-0.0.14-13.el6_2.x86_64
                      xorg-x11-drv-v4l-0.2.0-4.0.1.el6.x86_64
                      xorg-x11-drv-savage-2.3.2-1.0.1.el6.x86_64
                      xorg-x11-drv-i740-1.3.2-2.0.1.el6.x86_64
                      xorg-x11-drv-sisusb-0.9.4-1.0.1.el6.x86_64
                      xorg-x11-drv-acecad-1.5.0-3.0.1.el6.x86_64
                      xorg-x11-xkb-utils-7.4-6.el6.x86_64
                      xorg-x11-apps-7.4-10.el6.x86_64
                      xorg-x11-drv-openchrome-0.2.904-4.el6.x86_64
                      xorg-x11-drv-penmount-1.5.0-2.el6.x86_64
                      xorg-x11-drv-nouveau-0.0.16-13.20110719gitde9d1ba.el6.x86_64
                      xorg-x11-drv-ati-6.14.2-7.el6.x86_64
                      xorg-x11-drv-mouse-1.7.0-4.el6.x86_64
                      xorg-x11-drv-fpit-1.4.0-2.el6.x86_64
                      xorg-x11-drivers-7.3-13.3.el6.x86_64
                      xorg-x11-xinit-1.0.9-13.el6.x86_64
                      xorg-x11-server-utils-7.5-5.2.el6.x86_64
                      xorg-x11-xauth-1.0.2-7.1.el6.x86_64
                      xorg-x11-utils-7.4-8.el6.x86_64
                      xorg-x11-drv-ati-firmware-6.14.2-7.el6.noarch
                      xorg-x11-server-common-1.10.4-6.el6_2.3.x86_64
                      xorg-x11-server-Xorg-1.10.4-6.el6_2.3.x86_64
                      xorg-x11-drv-r128-6.8.1-3.0.1.el6.x86_64
                      xorg-x11-drv-vmware-11.0.3-1.0.1.el6.x86_64
                      xorg-x11-drv-i128-1.3.4-1.0.1.el6.x86_64
                      xorg-x11-drv-trident-1.3.4-1.0.1.el6.x86_64
                      xorg-x11-drv-glint-1.2.5-1.0.1.el6.x86_64
                      xorg-x11-drv-apm-1.2.3-2.0.1.el6.x86_64
                      xorg-x11-drv-ast-0.91.10-1.0.1.el6.x86_64
                      xorg-x11-drv-siliconmotion-1.7.5-1.0.1.el6.x86_64
                      xorg-x11-drv-dummy-0.3.4-1.0.1.el6.x86_64
                      xorg-x11-drv-wacom-0.10.5-14.0.1.el6.x86_64
                      xorg-x11-drv-sis-0.10.3-1.0.1.el6.x86_64
                      xorg-x11-drv-evdev-2.6.0-2.el6.x86_64
                      xorg-x11-drv-synaptics-1.4.1-3.el6.x86_64
                      xorg-x11-drv-intel-2.16.0-1.el6.x86_64
                      xorg-x11-drv-mga-1.4.13-3.el6.x86_64
                      xorg-x11-drv-cirrus-1.3.2-2.el6.x86_64
                      xorg-x11-drv-mutouch-1.3.0-2.el6.x86_64
                      xorg-x11-drv-hyperpen-1.4.1-2.el6.x86_64
                      xorg-x11-drv-fbdev-0.4.2-2.el6.x86_64
                      xorg-x11-drv-vmmouse-12.7.0-1.el6.x86_64
                      xorg-x11-drv-keyboard-1.6.0-1.el6.x86_64
                      xorg-x11-drv-vesa-2.3.0-2.0.1.el6.x86_64
                      xorg-x11-drv-tdfx-1.4.3-2.0.1.el6.x86_64
                      xorg-x11-drv-rendition-4.2.4-1.0.1.el6.x86_64
                      xorg-x11-drv-mach64-6.9.0-1.0.1.el6.x86_64
                      xorg-x11-drv-voodoo-1.2.4-1.0.1.el6.x86_64
                      xorg-x11-drv-s3virge-1.10.4-2.0.1.el6.x86_64
                      xorg-x11-drv-xgi-1.6.0-11.0.1.el6.x86_64
                      xorg-x11-font-utils-7.2-11.el6.x86_64
                      xorg-x11-drv-void-1.4.0-1.el6.x86_64
                      xorg-x11-drv-aiptek-1.4.1-2.el6.x86_64
                      xorg-x11-drv-nv-2.1.18-2.el6.x86_64
                      xorg-x11-drv-elographics-1.3.0-2.el6.x86_64
                      • 8. Re: Installing Oracle Linux 6 For 11g
                        Catch-22
                        Are you setting the DISPLAY variable manually? SSH automatically takes care of the DISPLAY variable and sets it typically to localhost:10.0 for the first session. There are lot of instructions still floating around that instructs to use Xhost and setting the DISPALY variable, but these instructions apparently do not take SSH with X11 forwarding into account.

                        Make sure you do not have a DISPLAY environment variable set in any of your startup or login profiles and do not set it manually, which overwrites the DISPLAY variable set by SSH X11 forwarding.

                        Also, you cannot use the "su" command within a SSH session with X11 forwarding as it will break X11 authentication.

                        You can troubleshoot the ssh login using e.g. ssh -v -v -X oracle@ip.
                        • 9. Re: Installing Oracle Linux 6 For 11g
                          Catch-22
                          carlos@ghost:~$ ssh -x carlos@oracledb
                          And I just noticed that you use ssh -x

                          -X Enables X11 forwarding
                          -x Disables X11 forwarding

                          Try using ssh -X
                          • 10. Re: Installing Oracle Linux 6 For 11g
                            895327
                            Dude wrote:
                            carlos@ghost:~$ ssh -x carlos@oracledb
                            And I just noticed that you use ssh -x

                            -X Enables X11 forwarding
                            -x Disables X11 forwarding

                            Try using ssh -X
                            Oh so that's what that 'man' page is for...I see now LOL. I just used -Y and it worked fine but thanks for explaining why it didn't work previously. I guess it's hard to do it when you tell it to disable.
                            • 11. Re: Installing Oracle Linux 6 For 11g
                              895327
                              Dude wrote:
                              Also, you cannot use the "su" command within a SSH session with X11 forwarding as it will break X11 authentication.
                              Yes indeed. This appeared to be my issue and I totally forgot this bit me in the but previously. When I SSH into Oracle Linux as a regular user and don't 'su' to any other user, it works fine. Thanks all. Going to proceed with the OUI and see how it goes...