CentOS Installation Oracle 11gR2 (x64)

Source: Internet
Author: User
Tags dba sha1

The main steps of this paper are reference: https://www.linuxidc.com/Linux/2014-02/97374.htmlater, I joined some of the installation process encountered problems and solutions. Using the graphical interface to install Oracle is deprecated, and it is more convenient to install (silent installation) with the associated scripts that are configured. Pre-installation instructions
  1. The minimum memory (RAM) requirement is 1GB, which is recommended for 2GB and above.
  2. Virtual Memory Swap recommendations: The recommended swap size is 1.5 times times the memory size when the memory is 1GB~2GB, the swap size is recommended when the memory is 2GB~16GB, and the swap remains 16GB when the memory is over 16GB.
  3. Requires a temporary file directory, such as/tmp, at least 1GB of disk space.
  4. Disk space requirements: The Enterprise version of the installation space of 4.35GB and more than 1.7GB of data file space, the standard version of 4.22GB installation space and more than 1.5GB of data file space.
  5. An X window graphical interface is required.
  6. Requires root user rights
  7. The steps to install with CENTOS7 are the same. Only the version of the dependent package will be different. Detailed steps will be noted.
This article installs the EnvironmentOperating systemCentOS 6.4 2.6.32-358.el6.x86_64 (Desktop),2GB RAM,80GB hard disk space (4GB swap, 100mb/boot, 30GB/) Host NameL3, IP 192.168.88.53 (Static)    Install required packages (operate under root account): binutils-2.17.50.0.6compat-libstdc++-33-3.2.3compat-libstdc++-33-3.2.3 ( Elfutils-libelf-0.125elfutils-libelf-devel-0.125gcc-4.1.2gcc-c++-4.1.2glibc-2.5-24glibc-2.5-24 (+ bit) glibc-common-2.5glibc-devel-2.5glibc-devel-2.5 (+ bit) glibc-headers-2.5ksh-20060214libaio-0.3.106libaio-0.3.106 (libaio-devel-0.3.106libaio-devel-0.3.106) libgcc-4.1.2libgcc-4.1.2 (+ bit) libstdc++-4.1.2libstdc++- 4.1.2 (+ bit) libstdc++-devel 4.1.2make-3.81sysstat-7.0.2unixodbc-2.2.14-11.el6 (x86_64) or laterunixodbc-2.2.14-11.el6.i686 or Laterunixodbc-devel-2.2.14-11.el6 (x86_64) or laterunixodbc-devel-2.2.14-11.el6.i686 or laterlibxp  using the command yum list | grep ' package name ' or Rpm-q ' package name ' or Rpm-qa | grep ' package name ' to see if the packages are already installed. Use the command Yum install-y ' package name ' to install the missing packages,except for the Pdksh package. Note: To install the package with Yum, you can first modify vi/etc/yum.conf and add a line: Multilib_policy=all. Oracle will require installation of i386 when checking the environment, but the CentOS 6.4 CD-ROM package is i686, in fact all the same, ignoring this difference should not be a big problem (see the installation section below). Yum install-y binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc glibc-common glibc-de Vel libaio libaio-devel libgcc libstdc++ libstdc++-devel make numactl sysstat libxp unixODBC unixodbc-devel Install Pdksh package (this package is not Included in the CentOS installation disk): Use the command: wget ftp://rpmfind.net/linux/centos/5.9/os/x86_64/CentOS/pdksh-5.2.14-37.el5_8.1.x86_64. RPM to download the Pdksh package to a localwget http://ftp.pbone.net/mirror/www.whiteboxlinux.org/whitebox/3.0/en/os/x86_64/RedHat/RPMS/ pdksh-5.2.14-21.x86_64.rpm Using the command Yum Localinstallpdksh-5.2.14-21.x86_64.rpm Installation (Note: The package conflicts with Ksh, if Ksh is already installed, we recommend using the command rpm-e ksh-* uninstall)-------------------------------(the steps to install 11G2 under CentOS7 are the same, the required dependencies are part of the same version)Temporarily found pdksh-5.2.14-21.x86_64.rpm this package in CentOS7 under the installation will conflict with Ksh,need to install pdksh-5.2.14-37.el5_8.1.i386. Wget http://vault.centos.org/5.11/os/i386/CentOS/pdksh-5.2.14-37.el5_8.1. i386.rpm--------------------------------2018-03-09 add: It looks like CentOS 6/centos 7 is installedpdksh-5.2.14-37.el5_8.1.i386 will not be detected by the installer. Create the desired user group (operating under the root account):Groupadd Oinstallgroupadd Dbagroupadd OperCreate the required account number (operating under root account):Use the command ID Oracle to see if an Oracle account already exists, and if it does not exist, create it using the following command: #初始群组为 Oinstall, the active group is DBA, Operuseradd-g oinstall-g dba,oper oracle# Set a password for your Oracle account (login required when installing) passwd oracle123456 If an Oracle account already exists, use the command usermod-a-G Dba,oper Oracle to join the group DBA and Operto modify kernel parameters (operate under root account):Edit the kernel parameter profile vim/etc/sysctl.conf, modify or add the following line under the file: Fs.file-max = 6815744FS.AIO-MAX-NR = 1048576Kernel.shmall = 2097152 #一般默认即可Kernel.shmmax = 2147483648 #一般设置为物理内存的一半Kernel.shmmni = 4096kernel.sem = 32000 128net.ipv4.ip_local_port_range = 9000 65500net.core.rmem_default = 262144n Et.core.rmem_max = 4194304net.core.wmem_default = 262144net.core.wmem_max = 1048576 then execute the following command to make the above configuration effective immediately: Sysctl-pModify System resource limits (operate under root account):Edit the system resource limit profile vim/etc/security/limits.conf, and add the following line under the file: Oracle soft Nproc 2047oracle hard nproc 16384oracle soft Nofile 102 4oracle hard nofile 65536oracle Soft stack 10240 Edit the file Vi/etc/pam.d/login, add the following line (11GR1 requirements, R2 not required): Session required Pam_lim its.so Edit the Vi/etc/profile file, add the following line (11GR1 required, R2 not required): if [$USER = "Oracle"]; thenif [$SHELL = "/bin/ksh"]; Thenulimit-p 16384ulimit-n 65536elseulimit-u 16384-n 65536fifi This configuration will take effect immediately upon user Oracle login if the current Oracle user is logged in to log out and log back in to make it effective.Turn off SELinux (operate under root account):To edit the SELinux profile Vim/etc/selinux/config, set the SELinux value to Disabled, as follows: selinux=disabled; Modifying the file allows SELinux to not start after rebooting the system. To close the currently turned on SELinux use the following command: Setenforce 0 Modifying the/etc/hosts file (operating under the root account): Edit the file vim/etc/hosts, add a row (L3 is the hostname): 192.168.88.53 L3 This modification is recommended if you do not do this and will eject a warning during installation and may affect the proper functioning of the listener.Create the desired directory (operating under the root account):Install Oracle in the/opt/oracle directory, so you need to create this directory: Mkdir/opt/oraclechown oracle:oinstall/opt/oraclechmod 755/opt/oracle Setup Inventory directory, so you need to create this directory: Mkdir/opt/orainventorychown oracle:oinstall/opt/orainventorychmod 755/opt/orainventoryinstallation package Related:The Oracle 11g R2 installation package is compressed into two files: Linux.x64_11gR2_database_1of2.zip, Linux.x64_11gr2_database_ 2of2.zip, upload them to the installation machine and use the unzip Linux.x64_11gR2_database_1of2.zipunzip Linux.x64_11gr2_database_ 2of2.zip is decompressed, a directory named database is obtained, which is placed in the/home/oracle/database. Because the installation process is performed as Oracle, you need to make sure that the Oracle account has execute permissions on/home/oracle/database, and you can use the following command to assign the directory to the Oracle account and have Execute permissions:chmod-r 700/home/oracle/databasechown-r oracle:oinstall/home/oracle/databaseexit root, log in as OracleSet the Oracle Account login environment (log in as Oracle): Edit the file Vim/home/oracle/.bash_profile, add the following line: #安装目录ORACLE_BASE =/opt/oracle# ORACLE home directory oracle_home= $ORACLE _base/11gr2# instance name oracle_sid=orclld_library_path= $ORACLE _home/libpath= $PATH: $ORACLE _ Home/bin: $HOME/binexport oracle_base oracle_home oracle_sid ld_library_path PATH Save exit Execute the following command to make the above settings effective immediately: source/home/ Oracle/.bash_profileto start the installation (log in as Oracle):Export lang=en_us# the terminal under X Windows to execute the program to start the installation (Note Log in to X window with Oracle, and then run Runinstaller):/home/oracle/database/runinstallerThe following will enter the graphical installation interfaceEnter email, or do not enter

Do not enter email will have a hint, click Yes to continue

Select Create and configure a database

Select Server Class

Select Single Instance database installation

Select Advanced Install

Select Enterpise Edition

Install the base directory and HOME directory, because environment variables oracle_base and oracle_home are set, there is no need to select

Install as a oinstall group

Install General puupose/transaction Processing

This step does not need to be modified because the environment variable ORACLE_SID has been set.

The installer checks the environment because the CentOS 32bit package is i686, and Oracle requires i386, so this will fail and be ignored. Click Next.

If you are not at ease, you can manually check each package to see if it is installed. [Email protected]/opt/oracle_install]# Rpm-qa | grep libaiolibaio-devel-0.3.107-10.el6.x86_64libaio-0.3.107-10.el6.x86_64[[email protected]/opt/oracle_install]# Rpm-qa | grep glibcglibc-headers-2.12-1.209.el6_9.2.x86_64glibc-2.12-1.209.el6_9.2.x86_64glibc-devel-2.12-1.209.el6_9.2. X86_64glibc-common-2.12-1.209.el6_9.2.x86_64[[email protected]/opt/oracle_install]# Rpm-qa | grep compat-libstdccompat-libstdc++-33-3.2.3-69.el6.x86_64[[email protected]/opt/oracle_install]# Rpm-qa | grep libgcclibgcc-4.4.7-18.el6.x86_64[[email protected]/opt/oracle_install]# Rpm-qa | grep libstdclibstdc++-devel-4.4.7-18.el6.x86_64libstdc++-4.4.7-18.el6.x86_64compat-libstdc++-33-3.2.3-69. El6.x86_64[[email protected]/opt/oracle_install]# Rpm-qa | grep unixodbcunixodbc-devel-2.2.14-14.el6.x86_64unixodbc-2.2.14-14.el6.x86_64

Click Password Management can set the relevant management account password, because the previous set so no need to set up, directly click OK

Log in as root to execute the two SH files, such as the lower left corner.

After the execution, click OK and you're done. Open the browser, enter Https://localhost:1158/em, open the Database control management interface, Oracle has started to run.Installation FailureFault 1If CentOS7 installs Oracle 11GR2, it will report a missing pdksh. But the installation, but also found conflict with Ksh. To uninstall Ksh and found no installation, and finally the Internet to find the answer, usingthe Pdksh version of I386 is OK. [Email protected]/opt/oracle_install]# RPM-IVHpdksh-5.2.14-21.x86_64.rpmWarning:pdksh-5.2.14-21.x86_64.rpm:header V3 dsa/sha1 Signature, key ID 73307de6:nokeypreparing ... ################## ############### [100%]File/usr/bin/ksh Conflicts between attempted installs of Pdksh-5.2.14-21.x86_64 and pdksh-5.2.14-21.x86_64[[email protected]/opt/oracle_install]# whereis kshksh:[[email protected]/opt/oracle_install]#[[email protected]/ Opt/oracle_install]#[[email protected]/opt/oracle_install]# which Ksh/usr/bin/which:no Ksh in (/usr/local/jdk1.8.0/ Bin:/usr/local/jdk1.8.0/jre/bin:/usr/share/maven//bin:/usr/local/node//bin:/usr/local/sbin:/usr/local/bin:/usr /sbin:/usr/bin:/root/bin) [[email protected]/opt/oracle_install]# wget Http://vault.centos.org/5.11/os/i386/CentOS /pdksh-5.2.14-37.el5_8.1.i386.rpm [[email protected]/opt/oracle_install]# RPM-IVHpdksh-5.2.14-37.el5_8.1.i386.rpmWarning:pdksh-5.2.14-37.el5_8.1.i386.rpm:header V3 dsa/sha1 Signature, key ID e8562897:nokeypreparing ... ############ ##################### [100%]updating/installing ... 1:pdksh-5.2.14-37.el5_8.1 ################################# [100%]Fault 2X Windows is root login, and then switch to Oracle user down to execute Runinstaller, the following error occurred. WORKAROUND: First Use Oracle User login x WINODWS,

Fault 3If the related directory permission is not set, the following error is displayed.

CentOS Installation Oracle 11gR2 (x64)

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.