1. Preface
Oracle released the latest 12c database on the 27 th of last week.
This document records the installation process of Oracle 12c.
Note: It is widely recognized that the first minor version (such as 10g R1 and 11g R1) of the Oracle major version is a public beta version and does not meet commercial conditions for the production system. It seems that Oracle saves a lot of test costs.
Note that Oracle is only available in 64-bit versions and does not support 32-bit versions. It seems that Oracle has intentionally abandoned the development of the 32-bit version.
The installation environment in this article is CentOS 6.4 x86_64. As follows:
[Root @ CentOS-222-Oracle12 ~] # Uname-
Linux CentOS-222-Oracle12 2.6.32-358. el6.x86 _ 64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
[Root @ CentOS-222-Oracle12 ~] # More/etc/redhat-release
CentOS release 6.4 (Final)
2. Preparations before installation 2. 1. rpm required for installing Oracle 12c
The rpm packages required for Oracle 12c are as follows:
Binutils-2.20.51.0.2-5.11.el6 (x86_64)
Compat-libcap1-1.10-1 (x86_64)
Compat-libstdc ++-33-3.2.3-69.el6 (x86_64)
Compat-libstdc ++-33-3.2.3-69.el6 (i686)
Gcc-4.4.4-13.el6 (x86_64)
Gcc-c ++-4.4.4-13. el6 (x86_64)
Glibc-2.12-1.7.el6 (i686)
Glibc-2.12-1.7.el6 (x86_64)
Glibc-devel-2.12-1.7.el6 (x86_64)
Glibc-devel-2.12-1.7.el6 (i686)
Ksh
Libgcc-4.4.4-13.el6 (i686)
Libgcc-4.4.4-13.el6 (x86_64)
Libstdc ++-4.4.4-13. el6 (x86_64)
Libstdc ++-4.4.4-13. el6 (i686)
Libstdc ++-devel-4.4.4-13.el6 (x86_64)
Libstdc +++ devel-4.4.4-13.el6 (i686)
Libaio-0.3.107-10.el6 (x86_64)
Libaio-0.3.107-10.el6 (i686)
Libaio-devel-0.3.107-10.el6 (x86_64)
Libaio-devel-0.3.107-10.el6 (i686)
LibXext-1.1 (x86_64)
LibXext-1.1 (i686)
LibXtst-1.0.99.2 (x86_64)
LibXtst-1.0.99.2 (i686)
LibX11-1.3 (x86_64)
LibX11-1.3 (i686)
LibXau-1.0.5 (x86_64)
LibXau-1.0.5 (i686)
Libxcb-1.5 (x86_64)
Libxcb-1.5 (i686)
LibXi-1.3 (x86_64)
LibXi-1.3 (i686)
Make-3.81-19.el6
Sysstat-9.0.4-11.el6 (x86_64)
Note: For some rpms, 32-bit and 64-bit versions must be installed simultaneously.
Here, the yum local source is used for installation. The process is as follows:
Create local source
Mkdir bak
Mv *. repo./bak
Vi/etc/yum. repos. d/local. repo
Modify the file content as follows:
[Local]
Name = local
Baseurl = file: // media/CentOS_6.4_Final
Enabled = 1
Gpgcheck = 0
Modify yum configuration. By default, both 32-bit and 64-bit rpm are installed.
Echo 'multilib _ policy = all'>/etc/yum. conf
Install the rpm package required for Oracle 12c
Yum install binutils compat-libcap1 compat-libstdc ++-33 gcc-c ++ glibc-devel ksh libgcc libstdc ++-devel libaio-devel libXext unzip libxlib11 xau libxcb libXi make sysstat
2. Configure OS 2.2.1. create relevant users and user groups
/Usr/sbin/groupadd oinstall
/Usr/sbin/groupadd dba
/Usr/sbin/useradd-g oinstall-G dba oracle
2.2.2. Modify the password of an oracle user
This step is not required
Passwd oracle
2.2.3. Back up and modify system parameters
Cp/etc/sysctl. conf/etc/sysctl. conf. bak
Vi/etc/sysctl. conf
Fs. aio-max-nr = 1048576
Fs. file-max = 6815744
Kernel. shmall = 2097152
Kernel. shmmax = 536870912
Kernel. shmmni = 4096
Kernel. sem = 250 32000 100 128
Net. ipv4.ip _ local_port_range = 9000 65500
Net. core. rmem_default = 262144
Net. core. rmem_max = 4194304
Net. core. wmem_default = 262144
Net. core. wmem_max = 1048586
View the id of an oracle user group
More/etc/passwd
Oracle: x: 501: 501:/home/oracle:/bin/bash
Modify large memory limit
Echo 501>/proc/sys/vm/hugetlb_shm_group
Vi/etc/sysctl. conf
Vm. hugetlb_shm_group = 501
Modify Limits
Vi/etc/security/limits. conf
Add the following content:
Oracle soft nofile 65536
Oracle hard nofile 65536
Oracle soft nproc 16384
Hard nproc 16384
Nproc 10240
Nproc 10240
2.2.4. Create related directories
Mkdir-p/u01/app/
Chown-R oracle: oinstall/u01/app/
Chmod-R 775/u01/app/
2.2.5. Configure the network
Configure hosts
Hostname
CentOS-222-Oracle12
Vi/etc/hosts
127.0.0.1 CentOS-222-Oracle12
Oracle further discards the IP concept and replaces it with a domain name.
2.2.6. Configure Environment Variables
Su-oracle
Echo $ SHELL
/Bin/bash
Cd ~
Vi. bash_proFile
TMP =/tmp
TMPDIR =/tmp
Export TMP TMPDIR
3. Install Oracle
Then you can install Oracle.
Mounting oracle to install iso
Here, iso is self-made and can be decompressed directly using the official zip package.
If you need to customize iso, contact feiq 10.10.129.154.
Mount-t iso9660-o loop/mnt/hgfs/D/linuxamd64_12c_database.iso/home/oracle/mnt_iso/oracle_12c
Start Oracle Installation
Xhost +
Cd ~
Sh/home/oracle/mnt_iso/oracle_12c/linuxamd64_12c_database/database/runInstaller
It will be related to the graphic interface later. It is not much different from the old version and will not be introduced.
Note that the default option does not allow you to configure parameters such as pga sga. Select Advanced Option.
4. Subsequent work after installation 4. 1. Configure Environment Variables
Cd ~
Vi. bash_proFile
########## For Oracle ##########
ORACLE_BASE =/u01/app/oracle
Export ORACLE_BASE
ORACLE_HOME = $ ORACLE_BASE/product/12.1.0/dbhome_1
Export ORACLE_HOME
ORACLE_SID = orcl
Export ORACLE_SID
PATH = $ PATH:.: $ ORACLE_HOME/bin
Export PATH
5. Others
Some configuration options are simplified during the installation of Oracle 12c, but there is no essential change in the old version. The OUI is used as the installation interface. For those with installation experience, the installation difficulty is almost 0.