How to install Oracle 11g in centos

Source: Internet
Author: User
Tags oracle database installation

How to install Oracle 11g in centos

Linux Kernel version: Linux version 2.6.32-431.23.3.el6.x86 _ 64

(1) install Xmanager Enterprise 4 on Windows to connect to Linux machines.

Create a new link and use SSH protocol by default. You only need to enter the Linux IP address and port 22 by default. Then, click OK and add the login identity and password in the pop-up dialog box, select the link.

(2) After a remote connection and logon, select the Oracle database transmission installation package in Xshell;

After you select file transfer, the dialog box shown in Figure 1 is displayed. Step 1 is to select the file to be transferred, step 2 is to select the folder on Linux where you want to store the received file, and step 3 is to enable transmission, at the same time, the progress bar of file transmission will appear in the blank space below the corresponding dialog box. In the last three steps, you must complete the Oracle database installation.

(3) Check and install the Linux gui. the KDE environment desktop installed here

Check whether the graphic interface has been installed: The command yum grouplist (the command output is very long). The "KDE" is not found in the output interface after the command is executed, indicating that the KDE Desktop is disabled, if KDE is found, it indicates that the KDE Desktop has been installed on the local machine.

If the KDE Desktop is not installed, run the following command to install the KDE Desktop

Yum groupinstall "KDE Desktop"

Check: Use the Firefox browser to check whether the tool is installed,

Install the Firefox command yum install firefox

Open Firefox and check the graphic interface to see if KDE Desktop is installed.

Open firefox

(4) Extract

Run the cd command to enter the folder where you accept the Oracle database installation package, and run the command to decompress the installation package.

Unzip linux.x64_11gR2.2.0.4_database.zip

After decompression, you can use ls to view the extracted files)

(5) Detect and install the RPM Software Package

Before installing Oracle, run the following command to check whether the required RPM software package is installed:

Rpm-q binutils compat-libstdc ++-33 elfutils-libelf-devel gcc-c ++ glibc-common glibc-devel glibc-headers kernel-headers ksh libaio libaio-devel libgcc libgomp libstdc ++-devel make numactl-devel sysstat unixODBC-devel

If XXX is not installed, install the necessary RPM package. The installation command is as follows:

Yum install-y gcc-c ++. x86_64

Yum install-y gcc. x86_64

Yum install-y libstdc ++. i686

Yum install-y libaio-devel.i686

Yum install-y libaio-devel.x86_64

Yum install-y compat-libstdc ++-33. x86_64

Yum install unixODBC. i686-y

Yum install unixODBC. x86_64-y

Yum install unixODBC-devel.i686-y

Yum install unixODBC-devel.x86_64-y

Yum install libaio-devel.x86_64-y

Yum install elfutils-libelf-devel.x86_64-y

Yum install libaio. i686-y

Yum install libgcc. i686-y

Yum install ksh. x86_64-y

Run the preceding command to install

(6) swap Partition

Before installing the oracle database, you must attach the swap partition. The size of the Swap partition is related to the Linux memory size (calculated by yourself ). If 1 GB memory is added, the swap partition will increase by 2 GB.

First, check whether the swap partition exists. The check command is free-m.

As shown in, Swap is displayed as 0, indicating that the swap partition does not exist. Therefore, you must create a swap Swap partition before installation. The procedure is as follows:

1. determine the size of swap to be created. First, create a swap file for partitioning in the appropriate space: for example,/swap1.

Command dd if =/dev/zero of =/swap1 bs = 1 M count = 2048

If indicates infile, of indicates outfile, bs = 1 MB indicates the size of the added module, and count = 2048 indicates 2048 modules, that is, 2 GB space.

2. Set the target file to a swap partition file:

# Mkswap/swap1

3. Activate swap and enable swap partition file immediately:

# Swapon/swap1

After the above operation restarts the system, swap space will be lost/swap1, adding/swap1 to/etc/fstab entries will allow the system to call swapon-a in the init process to automatically mount/swap1, in this way,/swap1 is in valid swap space after each machine restart. modify command vi/etc/fstab

Add the swap1 swap default 0 0 command to the/etc/fstab Editor, save and exit

After modification, use swapon-s or free-m to view

For more details, please continue to read the highlights on the next page:

  • 1
  • 2
  • 3
  • Next Page

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.