Install oracle11g under centos6.5

Linux kernel version: Linux version 2.6.32-431.23.3.el6.x86_64

(1) Install the Xmanager Enterprise 4 tool on Windows, which is used to connect to the Linux system machine.

Create a new link, the protocol defaults to SSH, you only need to fill in the IP address of Linux, the port defaults to 22, and then click OK, and then add the login identity and login password in the corresponding pop-up dialog box, and select the link.

(2) After connecting and logging in remotely, choose to transfer the Oracle database installation package in Xshell;

After selecting file transfer, the dialog box shown in Figure 1 will pop up. Step 1 is to select the file you want to transfer. Step 2 is to select the folder on Linux that you want to store the received file in. Step 2 3 is to open the transfer, and the progress bar information of the file transfer will appear in the blank space below the corresponding dialog box. As shown in the 3 steps above, in this part, you need to complete the transmission of the Oracle database installation.

(3) Detect and install the Linux graphical interface, the KDE environment desktop installed here

Check whether the graphical interface has been installed: command yum grouplist (the output of this command is very long), in the output interface after the command is executed, the word "KDE" is not found, indicating that the KDE desktop is installed. If the word KDE is found, it means that the machine has been installed over the KDE desktop.

If the KDE desktop is not installed, execute the following command to install the KDE desktop

yum groupinstall “KDE Desktop”

Verify: Use the Firefox browser to verify the installation,

To install Firefox the command is yum install firefox

Open the Firefox browser, see the graphical interface appears, and determine whether to install the KDE desktop

The command to open firefox is open firefox

(4) Decompression

Use the cd command to enter the folder location of the Oracle database installation package you accepted, and use 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 extra database is the decompressed file)

(5) Detect and install RPM packages

Before installing Oracle, use the command to check whether the necessary RPM packages are installed. The command to check is as follows:

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

If the above figure shows that XXX is not installed, then it is necessary to 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

Execute the above command to install

(6) swap partition

There is an important premise before installing the oracle database, mount the swap partition. The size of the Swap partition is related to the size of the Linux memory (the relationship is calculated by itself). If you increase the memory by 1G, the swap partition will increase by 2G.

The first is to check whether the swap partition exists. The command to check is free –m 

As shown in the figure above, the Swap display is 0, indicating that the swap partition does not exist, so you must create a swap swap partition yourself before installation. The steps to create are as follows:

1. Determine the size of the swap created, first create a swap file for the partition in a suitable space: such as /swap1

The command is dd if=/dev/zero of=/swap1 bs=1M count=2048

If means infile, of means outfile, bs=1M means increased module size, count=2048 means 2048 modules, which is 2G space size

2. Set the destination file as the swap partition file:

#mkswap /swap1

3. Activate swap and immediately enable the swap partition file:

#swapon / swap1

After the above operations restart the system, the swap space will lose /swap1. Adding /swap1 to the /etc/fstab entry will allow the system to call swapon -a in the init process to automatically mount /swap1, so that every time the machine restarts / swap1 is in valid swap space. Modify the command vi /etc/fstab

Add the swap1 swap swap default 0 0 command in the /etc/fstab editor, then save and exit

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

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325172113&siteId=291194637