Centos 6.5 Install Oracle 12C database

Source: Internet
Author: User
Tags dba zip centos

Oracle has been releasing Oracle for 12C for some time and Oracle has only 64-bit releases and no 32-bit version. Our system installation environment is CentOS 6.5 x86_64.
1. Install Oracle Dependency Pack
Modify the Yum configuration and install 32-bit and 64-bit RPM by default
Yum install binutils compat-libcap1 compat-libstdc++-33 gcc gcc-c++ glibc glibc-devel ksh libgcc libstdc++ libstdc++-devel Libaio-devel libxext libxtst libX11 libxau libxcb libxi make Sysstat Libaio

2. Configure users
2.1. Create related users and user groups
/usr/sbin/groupadd Oinstall
/usr/sbin/groupadd DBA
/USR/SBIN/USERADD-G oinstall-g dba Oracle
#如果已经创建过oracle can perform
/USR/SBIN/USERMOD-G oinstall-g dba Oracle

2.2 Modifying system kernel Parameters
Cp/etc/sysctl.conf/etc/sysctl.conf.bak

Vim/etc/sysctl.conf
FS.AIO-MAX-NR = 1048576
Fs.file-max = 6815744
Kernel.shmall =33554432
Kernel.shmmax = 137438953472
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

To view the ID of an Oracle user group
more/etc/passwd
Oracle:x:500:501::/home/oracle:/bin/bash

Modify large Memory limit
echo >/proc/sys/vm/hugetlb_shm_group
Vi/etc/sysctl.conf
vm.hugetlb_shm_group=500

Modify User Limits
Vi/etc/security/limits.conf
Add the following:
Oracle Soft Nofile 65536
Oracle Hard Nofile 65536
Oracle Soft Nproc 16384
Oracle Hard Nproc 16384
Oracle Stack Nproc 16384

2.3 Creating a Directory
Mkdir-p/u01/app/
Chown-r oracle:oinstall/u01/app/
Chmod-r 775/u01/app/

2.4 Configuration Network Configuration hosts
Hostname
Oracle12
Vi/etc/hosts
127.0.0.1 Oracle12

2.5 Configuring environment variables
Su–oracle
Echo $SHELL
/bin/bash

CD ~
VI. bash_profile

Tmp=/tmp
Tmpdir=/tmp
Export TMP Tmpdir

3 formally install Oracle
3.1 First extract the files to the Oracle User directory and enter the database directory.
Xhost +
CD ~
Unzip unzip Linuxamd64_12c_database_1of2.zip
Unzip unzip Linuxamd64_12c_database_2of2.zip
CD Database
./runinstaller
4 Follow-up work
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.org
Export Oracle_sid
Path= $PATH:: $ORACLE _home/bin
Export PATH
5 Difficult questions:
Ora-00845:memory_target not supported on this system was encountered during installation
The problem is that the size of the SGA exceeds the size of the operating system/DEV/SHM the problem is that the SGA is set larger than the operating system/DEV/SHM size
View SHM Size:
[Oracle@localhost dbs]$ df-h/dev/shm
File system capacity used available% mount point
Tmpfs 2.0G 0 2.0G 0%/dev/shm.
Use the/etc/fstab file to modify the/DEV/SHM size:
Add the size=100g after the tmps, then uninstall the/DEV/SHM and then mount it again.
Umount/dev/shm
Mount-all
If/dev/shm can't unload
# UMOUNT/DEV/SHM
Umount:/dev/shm:device is busy.
Treated with Fuser
# FUSER-KM/DEV/SHM
When you start Oracle again, there is no problem.

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.