Steps for installing RHEL5.5 and Oracle 11g in VirtualBox

Source: Internet
Author: User
Tags vm virtualbox

In a new environment, the company needs to install RHEL (Red Hat EnterPrise Linux, the same below) 5.5 64-bit and Oracle 11g 64-bit in a virtual machine environment, so it has been tossing for three days, the pain, only the person who knows. Here, let's keep a note of the process, hoping that others will take less detours.

First, on the virtual machine selection, the options are as follows:

(1) The advantage of Microsoft's Hyper-V is that Microsoft has been integrated in the Win8 Enterprise Edition and can be directly installed. However, it is depressing that the support for RHEL is very weak and the network card cannot be found, although it can be patched and used as an "old network adapter", I always feel awkward. After I use it, I quickly delete it and decide to never hire again.

(2) the well-known VMware-workstation and version 9.0 have provided excellent support for Win8, and Red Hat Enterprise Linux installation is even more powerful. It is automatically installed in one-click mode in Easy Installer mode, and the compatibility is quite good, no abnormal shutdown during use. The driver is even more admirable. The two-way text copy with the host machine is even more elegant. The only drawback is that the block size is 400 mb.

(3) The VM VirtualBox 4.2 provided by Oracle is smaller than MB, and the enhanced components, namely, Guest Additions, must be installed separately after the text copy is completed. In addition, the driver compatibility is not very good, in use, Shutdown may fail. Finally, I chose it.

(With expansion package): http://www.bkjia.com/down/html/virtualbox.html

The installation process is divided into three parts:

(1) install RHEL5.5 in VirtualBox

Start VirtualBox, Set 2G memory, 20g space, load rhel-server-5.5-x86_64-dvd.ISO, that is to start installation, the installation interface is skipped, but the NIC is set to DHCP, disable firewall and SELINUX.

For more information about the installation process, see the following video:

 

Especially for the last part of the videoSetup command to set static IPAfter all, if you don't want to restart the virtual machine, will your IP address sink into the sea?

The example in this article is static IP: 10.0.2.15/255.0.0.0, DNS is 10.0.2.20 (that is, the static IP corresponding to VirtualBox Host-Only Ethernet Adapter), andIn VirtualBox, change the default NAT mode to VirtualBox Host-Only Ethernet Adapter.

You can Ping 10.0.2.15 from the host machine.

Install "Enhancement components"

Then, after logging on, you can see the optical drive image and enter the following command:

After the installation is complete, go to Poweroff and restart.Paste text between the VM and the host.

In this case, you can make a backup.

\ Https "h [^"] *"

(2) configure the Basic Environment of RHEL5.5

Configure JDK and Oracle user groups

Install all the runtime libraries required by Oracle (under the Server Directory of RHEL optical drive)

Cd/media/RHEL_5.5 \ x86_64 \ DVD/Server
Rpm-Uvh binutils-2 .*
Rpm-Uvh compat-libstdc ++-33 *
Rpm-Uvh compat-libstdc ++-33 *. i386.rpm
Rpm-Uvh elfutils-libelf *
Rpm-Uvh gcc-4 .*
Rpm-Uvh gcc-c ++-4 .*
Rpm-Uvh glibc-2 .*
Rpm-Uvh glibc-common-2 .*
Rpm-Uvh glibc-devel-2 .*
Rpm-Uvh glibc-headers-2 .*
Rpm-Uvh ksh *
Rpm-Uvh libaio-0 .*
Rpm-Uvh libaio-devel-0 .*
Rpm-Uvh libgomp-4 .*
Rpm-Uvh libgcc-4 .*
Rpm-Uvh libstdc ++-4 .*
Rpm-Uvh libstdc ++-devel-4 .*
Rpm-Uvh make-3 .*
Rpm-Uvh sysstat-7 .*
Rpm-Uvh unixODBC-2 .*
Rpm-Uvh unixODBC-devel-2 .*
Rpm-Uvh numactl-devel -*

Run the java-version command to check whether JDK exists. If JDK exists, delete it first (otherwise, the first installation version is always displayed). Run the DELETE command:

Rpm-qa | grep gcj

Yum-y remove java-1.4.2-gcj-compat

Install the newly downloaded jdk-6u35-linux-i586-rpm.bin with the command

Cd/u01/app/JDK
Chmod 755 jdk-6u35-linux-i586-rpm.bin
/Jdk-6u35-linux-i586-rpm.bin

Configure the JDK environment variable vi/etc/profile and add the following content:

# Set java environment by tony 2012.10.3
JAVA_HOME =/usr/java/jdk1.6.0 _ 35
Export JAVA_HOME
CLASSPATH =.: $ JAVA_HOME/lib. tools. jar
Export CLASSPATH
PATH = $ JAVA_HOME/bin: $ PATH
Export PATH

Create user groups and folders

Groupadd-g 1000 oinstall
Groupadd-g 1001 dba
Groupadd-g 1002 running
Useradd-u 1000-g oinstall-G dba, role oracle
Passwd oracle

Mkdir-p/u01/app/oracle
Chown-R oracle: oinstall/u01
Chmod-R 775/u01

Log on to SFTP (using FileZilla) with the new oracle user to upload and download the Database directory (extracted from two ZIP files) to u01/App. At this time, everything is ready, and nothing is left blank, in this case, you can create another backup.

(3) Installing Oracle 11g

Log on to Oracle and set the default resolution to 800x600 and 1024x768.

Input:

Cd/u01/app
Chmod-R 755 database
Cd database
./RunInstaller

The remaining interfaces are very similar to those in Windows.

Test the listening status after installation.

Connect to database

Remote connection test with PL/SQL

Source: invitee studio, blog address: http://downmoon.cnblogs.com/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.