Installation and deployment of a single Linux instance in Oracle 12.1.0.2

Source: Internet
Author: User

Installation and deployment of a single Linux instance in Oracle 12.1.0.2

Topic: installation and deployment of a single instance in Oracle 12.1.0.2 on Linux
Environment: RHEL 6.5 + Oracle 12.1.0.2
Requirement: Install and deploy OEM 13.2 using Oracle version 12.1.0.2 as the database

1. download media
Currently, you can directly download the media from OTN to 12.1.0.2.

linuxamd64_12102_database_1of2.ziplinuxamd64_12102_database_2of2.zip

Of course, we can also search for the corresponding 12.1.0.2 in MOS.p21419221Download media. Only the first two packages are required for installing a single instance.

p21419221_121020_Linux-x86-64_1of10.zipp21419221_121020_Linux-x86-64_2of10.zip

2. Install the required software package
Install all required software packages directly using yum:

yum install -y binutils.x86_64 compat-libcap1.x86_64 compat-libstdc++-33.i686 compat-libstdc++-33.x86_64 gcc.x86_64 gcc-c++.x86_64 glibc.x86_64 glibc.i686 glibc-devel.x86_64 glibc-devel.i686 ksh.x86_64 libgcc.x86_64 libgcc.i686 libstdc++.i686 libstdc++.x86_64 libstdc++-devel.i686 libstdc++-devel.x86_64 libaio.x86_64 libaio.i686 libaio-devel.i686 libaio-devel.x86_64 libXext.x86_64 libXext.i686 libXtst.x86_64 libXtst.i686 libX11.x86_64 libX11.i686 libXau.x86_64 libXau.i686 libxcb.x86_64 libxcb.i686 libXi.x86_64 libXi.i686 make.x86_64 sysstat.x86_64

Yum local source configuration reference:

3. Adjust System Parameters
Add content to configuration files such as/etc/sysctl. conf,/etc/security/limits. conf,/etc/pam. d/login.

/Etc/sysctl. conf

# Oracle database 12cfs.aio-max-nr = 1048576fs.file-max = 6815744kernel.shmall = 2097152kernel.shmmax = 6442450944kernel.shmmni = 4096kernel.sem = 250 32000 100 128kernel.panic_on_oops = 1net.ipv4.ip_local_port_range = 9000 65500net.core.rmem_default = 262144net.core.rmem_max = 4194304net.core.wmem_default = 262144net.core.wmem_max = 1048586

Note: panic_on_oops.

/Etc/security/limits. conf

# Oracle database 12coracle soft nproc 2047oracle hard nproc 16384oracle soft nofile 1024oracle hard nofile 65536oracle soft stack 10240

Vi/etc/pam. d/login

# Oracle database 12csession required pam_limits.so

4. Create an oracle user

groupadd -g 501 oinstallgroupadd -g 502 dbauseradd -u 502 -g oinstall -G dba oracle

5. Create a directory and grant permissions

mkdir -p /u01/app/chown -R oracle:oinstall /u01/app/chmod -R 775 /u01/app/

6. oracle user environment variables
Edit vi under an oracle uservi ~/.bash_profile, Add the following content:

export ORACLE_BASE=/u01/app/oracleexport ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1export ORACLE_SID=oemrepoexport PATH=$PATH:$ORACLE_HOME/bin

7. decompress the software and use xshell to call the graphic installation software.

cd /u01/app/unzip /u01/linuxamd64_12102_database_1of2.zip && unzip /u01/linuxamd64_12102_database_2of2.zip

Run runInstaller

[oracle@OMR ~]$ cd /u01/app/database/[oracle@OMR database]$ lsinstall  response  rpm  runInstaller  sshsetup  stage  welcome.html[oracle@OMR database]$ ./runInstaller Starting Oracle Universal Installer...Checking Temp space: must be greater than 500 MB.   Actual 24063 MB    PassedChecking swap space: must be greater than 150 MB.   Actual 2015 MB    PassedChecking monitor: must be configured to display at least 256 colors.    Actual 16777216    Passed

Select to install software only:

Confirm that the final installation information is correct:

As required, the root user executes the script:

Complete installation:

So far, the installation of the Oracle 12.1.0.2 software has been completed, and dbca can be called directly to create a database as needed. This time, I used it as the OEM13.2 database. Therefore, before creating a database in dbca, you must first import the corresponding template.

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.