Install rhel5.5 + 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.
: Http://download.virtualbox.org/virtualbox/4.2.0/VirtualBox-4.2.0-80737-Win.exe

Pack: http://download.virtualbox.org/virtualbox/4.2.0/Oracle_VM_VirtualBox_Extension_Pack-4.2.0-80737.vbox-extpack

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.

Specific installation process to see this video: http://v.youku.com/v_show/id_XMTU4OTAwNDE2.html

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.

(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

 

 

If you have any questions, please contact us (3w@live.cn)

 

ReferenceArticle:

Http://www.oracle-base.com/articles/11g/oracle-db-11gr2-installation-on-oracle-linux-5.php

 

 

Related Article

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.