Linux system installation oracle11g complete installation graphics and text tutorial

Source: Internet
Author: User
Tags create database

First, modify the operating system core parameters

Under root user, perform the following steps:

1 Modify the user's shell restrictions, modify the/etc/security/limits.conf file

Enter command: vi/etc/security/limits.conf, press I to enter edit mode and add the following to the file.

1 2 3 4 5 6 7 Oracle Soft nproc 2047 Oracle hard nproc 16384 Oracle Soft nofile 1024 Oracle hard Nofile 65536

Press ESC when editing is complete, enter ": Wq" Save exit

2 Modify/etc/pam.d/login file, enter the command: Vi/etc/pam.d/login, press i key to enter edit mode, add the following content to this file.

1 2 3 Session Required/lib/security/pam_limits.so Session Required pam_limits.so

Press ESC when editing is complete, enter ": Wq" Save exit

3 Modify the Linux kernel, modify the/etc/sysctl.conf file, enter the command: vi/etc/sysctl.conf, press i key into the edit mode, the following content to join the file?

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20-21 Fs.file-max = 6815744 Fs.aio-max-nr = 1048576 Kernel.shmall = 2097152 Kernel.shmmax = 2147483648 Kernel.shmmni = 4 096 Kernel.sem = 32000 128 net.ipv4.ip_local_port_range = 9000 65500 Net.core.rmem_default = 4194304 net.c Ore.rmem_max = 4194304 Net.core.wmem_default = 262144 Net.core.wmem_max = 1048576

Press ESC when editing is complete, enter ": Wq" Save exit

4 to make the/etc/sysctl.conf change take effect immediately, execute the following command. Input: Sysctl-p display as follows:?

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 linux:~ # Sysctl-p net.ipv4.icmp_echo_ignore_broadcasts = 1 Net.ipv4.conf.all.rp_filter = 1 Fs.file-max = 6815744 FS.AIO-MAX-NR = 1048576 Kernel.shmall = 2097152 Kernel.shmmax = 2147483648 Kernel.shmmni = 4096 Kernel.sem = 250   32000 128 net.ipv4.ip_local_port_range = 9000 65500 Net.core.rmem_default = 4194304 Net.core.rmem_max = 4194304 Net.core.wmem_default = 262144 Net.core.wmem_max = 1048576

5 Edit/etc/profile, enter command: Vi/etc/profile, press i key to enter edit mode, add the following content to this file.

1 2 3 4, 5 6 7 8 9 10 11 12 13 14 15 if [$USER = "Oracle"]; Then if [$SHELL = "/bin/ksh"]; Then ulimit-p 16384 ulimit-n 65536 else ulimit-u 16384-n 65536 fi fi

Press ESC when editing is complete, enter ": Wq" Save exit

6 Create related users and groups as owners of software installation and support groups.

Create Oracle user and password, enter command:?

1 2 3 Useradd-g oinstall-g dba-m Oracle passwd Oracle

Then you can enter the password, the password entered at any time 2, but must be consistent, carriage return confirmation.

7 Create database software directory and data file storage directory, directory location, according to their own situation, pay attention to disk space can be, here I put it under the Oracle user, for example:

Enter command:?

1 2 3 4 5 6 7 Mkdir/home/oracle/app mkdir/home/oracle/app/oracle Mkdir/home/oracle/app/oradata MKDIR/HOME/ORACLE/APP/ORACLE/PR Oduct

8 Change the directory owner for Oracle user all, enter the command:?

1 Chown-r Oracle:oinstall/home/oracle/app

9 Configure the Oracle user's environment variable, first, switch to the newly created Oracle user,

Input: Su–oracle, then directly in the input: Vi. bash_profile

Press I edit. bash_profile, enter edit mode, add the following:?

1 2 3 4 5 6 7 8 9 Export Oracle_base=/home/oracle/app export oracle_home= $ORACLE _base/oracle/product/11.2.0/dbhome_1 export ORACLE_ SID=ORCL export path= $PATH: $HOME/bin: $ORACLE _home/bin export ld_library_path= $ORACLE _home/lib:/usr/lib

Press ESC when editing is complete, enter ": Wq" Save exit

Second, the installation process

1 when the above system requires complete operation, logout system, in the graphical interface to the Oracle user landing. First copy the downloaded Oracle installation package to Linux and copy it with an SSH other FTP tool.

Open a terminal and run the unzip command to extract the Oracle installation files, such as:

Enter command:?

1 2 3 Unzip Linux.x64_11gR2_database_1of2.zip Unzip Linux.x64_11gR2_database_2of2.zip

After decompression completes the CD into its unpacked directory database

Enter command:

CD Database

Use the LS command to view the files that the database contains after decompression, as shown in the following figure:

2 perform installation, enter command:./runinstaller

Loaded into this step, you can see that there are a lot of RPM package does not, we can from the installation of Linux CD or ISO (or to D:\linux_oracle11g_Package) to find the missing packages, use FTP upload to Linux, and then use RPM–IVH xxx.rpm--nodeps–force for installation (plus--nodeps-Force on behalf of forced installation, is in direct use RPM–IVH XXX.RPM installation is not successful when the package is all installed in the case, again in the Oracle graphical interface, the implementation of the installation process 2, down in the environmental inspection process, passed.

An error occurred during installation 86% (error in invoking target ' mkldflags ntcontab.o NNFGT.O ' makefile) is executed in the following order.

Upload and install mirror Rhel-server-6.1-x86_64-dvd.iso,

Then hang the mirrored file, such as/mnt?

1 2 3 4 5 6 7 8 9 to be in----"-" # Mount-o Loop rhel-server-6.1-x86_64-dvd.iso/mnt   # cd/mnt/packages   # RPM-IVH glibc-common-2.12-1.2 5.el6.x86_64.rpm   # RPM-IVH kernel-headers-2.6.32-131.0.15.el6.x86_64.rpm   # RPM-IVH libgcc-4.4.5-6.el6.x86_64.rpm   # RPM-IVH glibc-2.12-1.25.el6.x86_64.rpm   # RPM-IVH Libgomp-4.4.5-6.el6.x86 _64.rpm   # RPM-IVH nscd-2.12-1.25.el6.x86_64.rpm   # RPM-IVH glibc-headers-2.12-1.25.el6

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.