Install Oracle12C in RedHatEnterpriseLinux7

Source: Internet
Author: User
Note: operations under this virtual machine have been completed. To ensure successful installation, please download oracle12.1.0.2.0. For version 12.1.0.1.0, I tested it multiple times and found many error messages during the installation process, such as errors such as errorininvokingtargetinstallofmakefile and [ins-13001] which do not meet the minimum requirements.

Note: operations under this virtual machine have been completed. To ensure successful installation, please download oracle version 12.1.0.2.0. For version 12.1.0.1.0, I tested it multiple times and found many error prompts during the installation process, such as "error in invoking target install of makefile ", "[ins-13001] the environment does not meet the minimum requirements" and other errors, pass

Note: operations under this virtual machine have been completed. To ensure successful installation, please download oracle version 12.1.0.2.0.

For version 12.1.0.1.0, I tested it multiple times and found many error prompts during the installation process, such as "error in invoking target install of makefile ",

"[Ins-13001] the environment does not meet the minimum requirements" and other errors, the author failed to solve all the related errors through repeated operations, although the installation can be completed by giving up or other methods. Therefore, I believe that this version may still have some bugs. Therefore, we recommend that you download 12.1.0.2.0 for installation testing.

If you are interested in this version, refer

Http://blog.itpub.net/27099995/viewspace-1258842/

Http://www.fairtec.at/de/it-blog-mainmenu-16/169

Https://gemsofprogramming.wordpress.com/2013/09/19/installing-oracle-12c-on-ubuntu-12-04-64-bit-a-hard-journey-but-its-worth-it/



I. Installation preparation

1. Help document

Http://docs.oracle.com/database/121/LTDQI/toc.htm#CEGHFFGG

2. Software Download

Oracle 12C (12.1.0.2.0)-Enterprise Edition

Http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html? SsSourceSiteId = ocomen

3. Upload the downloaded software to the/tmp directory through WinSCP

650) this. width = 650; "src =" http://www.68idc.cn/help/uploads/allimg/151111/121604B43-0.jpg "title =" 1.jpg" alt = "wKioL1SnnjuCTh6rAAGYbAEgTL4368.jpg"/>

Oracle 12C database file:

Linuxamd64_12102_database_1of2.zip

Linuxamd64_12102_databasesilicate f2.zip

Installation script file:

RootSetup. sh: complete the settings of the root user before installation. The file content is as follows:

Script download:Http://ycrsjxy.blog.51cto.com/618627/1598938

650) this. width = 650; "src =" http://www.68idc.cn/help/uploads/allimg/151111/12160440W-1.jpg "title =" 11.11.jpg "alt =" wKioL1SnnczBHVkBAAZu4F6ldRc119.jpg "/>


OracleSetup. sh: complete the settings performed by the oracle user before installation. The file content is as follows:

650) this. width = 650; "src =" http://www.68idc.cn/help/uploads/allimg/151111/1216041A6-2.jpg "title =" courier 10.jpg "alt =" wKiom1SnnTjhUSCUAAOLAr-sGBE182.jpg "/>


Note: If the preceding two files are edited in Windows, you must use

Dos2unix for conversion. To run dos2unix, you must install the dos2unix package.


Ii. Installation Process

The following operations are completed in the root user environment:

1. Mount the Redhat 7 disc, create a Yum source, and prepare for adding the oracle12c package.

1. mkdir/media/cdom

2. mount-t iso9660/dev/sr0/media/cdrom

3. vim/etc/yum. repos. d/rhel-deguginfo.repo


[Rhel-debuginfo]

Name = Red Hat Enterprise Linux $ releasever-$ basearch-Debug

Baseurl = file: // media/cdrom

Enabled = 1

Gpgcheck = 1

Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release


2. modify the permissions of the script file under/tmp

Cd/tmp

Chmod 755/tmp/RootSetup. sh/tmp/OracleSetup. sh

For example

650) this. width = 650; "src =" http://www.68idc.cn/help/uploads/allimg/151111/1216043c5-3.jpg "title =" 1.jpg "alt =" wKioL1SnnmDD1QwkAAIUNRm4Hno250.jpg "/>


3. Unzip the Oracle program file to the/tmp/database folder.

Unzip linuxamd64_12102_database_1of2.zip & unzip linuxamd64_12102_database5of2.zip


4. Check the installation of the required installation package.

Rpm-q binutils compat-libcap1 compat-libstdc ++ gcc-c ++ glibc-devel ksh libaio-devel libgcc libstdc ++-devel libXi libXtst make sysstat unixODBC -devel

If you are prompted that the package is not installed, use the yum install package name.

Yum install compat-libstdc ++ *


5. Run the script RootSetup. sh to complete related settings.

./RootSetup. sh


6. Modify/etc/hosts and add "redhat7" as the host name"

127.0.0.1 localhost. localdomain localhost4 redhat7

: 1 localhost. localdomain localhost6 redhat7

192.168.0.248 redhat7

At this point, the related settings under the root user have been completed, you can view/etc/sysctl. conf/etc/security/limits. conf,/etc/pam. d/login file content modification, view/etc/passwd Content Check

Whether or not the user creates the/u01/app directory.



The following operations are performed by oracle users:

7. Switch to oracle

Su-oracle (Note that there must be spaces between-and oracle)


8. Run the/tmp/OracleSetup. sh script to complete related operations.

Cd/tmp

./OracleSetup. sh

At this time, the related operations before Oracle Installation have been completed, you can use cat ~ /. Bash_profile: Check whether the file content is changed. Run env to check the environment variables and run source ~ /. Bash_profile makes the environment variable function.

650) this. width = 650; "src =" http://www.68idc.cn/help/uploads/allimg/151111/12160415K-4.jpg "title =" 2.jpg "alt =" wKioL1SnnqXjq1EhAAHDBBxjGtg428.jpg "/>


9. restart the computer and Log On As an oracle user. Set the language to English.


Oracle 12C Installation Process

10. Switch to the terminal mode and run the Oracle 12c Installer

Cd/tmp/database

./RunInstaller

11. Related Information:

650) this. width = 650; "src =" http://www.68idc.cn/help/uploads/allimg/151111/12160421Z-5.jpg "style =" float: none; "title =" Photos 3.jpg "alt =" wKiom1Snni_BbY-3AAGjFururl8825.jpg "/>

Do not select "I Wish"


650) this. width = 650; "src =" http://www.68idc.cn/help/uploads/allimg/151111/121604C07-6.jpg "style =" float: none; "title =" courier 4.jpg "alt =" wKioL1Snnuqwr4vCAAC-qZDKizQ956.jpg "/>



650) this. width = 650; "src =" http://www.68idc.cn/help/uploads/allimg/151111/1216046010-7.jpg "style =" float: none; "title =" courier 5.jpg "alt =" wKiom1SnnouxiuxoAAGFYoUG82Q191.jpg "/>


650) this. width = 650; "src =" http://www.68idc.cn/help/uploads/allimg/151111/1216042J0-8.jpg "style =" float: none; "title =" 6.jpg "alt =" wKioL1Snn0aRSPDmAAHrusc4zFM095.jpg "/>

In, check whether the settings are consistent with the. bash_profile file. At the same time, enter the Global database name and set the administrative password.

650) this. width = 650; "src =" http://www.68idc.cn/help/uploads/allimg/151111/12160421M-9.jpg "style =" float: none; "title =" courier 7.jpg "alt =" wKiom1Snno2TotNRAAKCSyD0984543.jpg "/>


650) this. width = 650; "src =" http://www.68idc.cn/help/uploads/allimg/151111/1216041A4-10.jpg "style =" float: none; "title =" 8.8.jpg "alt =" wKioL1Snn0jRrK5cAAJbPuQB0OQ388.jpg "/>

If an error is detected, analyze the cause. Most of the errors are caused by the installation package being not installed, environment variable errors, and related parameter errors. You can check the content of/etc/sysctl. conf and. bash_profile of the oracle user, view the package installation through rpm-q, and use yum install to install the package.


650) this. width = 650; "src =" http://www.68idc.cn/help/uploads/allimg/151111/121604E01-11.jpg "style =" float: none; "title =" courier 9.jpg "alt =" wKiom1SnnpDwOh9rAANUbVZsgTw636.jpg "/>

When:

650) this. width = 650; "src =" http://www.68idc.cn/help/uploads/allimg/151111/12160423G-12.jpg "title =" courier 12.jpg "alt =" wKioL1SnoS3QpIqXAAF4eNWX7Fc067.jpg "/>



In the terminal mode, switch to the root user and run the following command:

Su-root

/U01/app/oraInventory/orainstRoot. sh

/U01/app/oracle/product/12c/root. sh. Press enter to complete the settings.

650) this. width = 650; "src =" http://www.68idc.cn/help/uploads/allimg/151111/1216042122-13.jpg "style =" float: none; "title =" Quick photo 13.jpg "alt =" wKiom1SnoJuAbnXpAAMTqGisjrc776.jpg "/>


650) this. width = 650; "src =" http://www.68idc.cn/help/uploads/allimg/151111/1216045391-14.jpg "style =" float: none; "title =" snapsho14.jpg "alt =" wKioL1SnoVeQLCtZAAKSyWc_5uc691.jpg "/>

Select Password management to set the user Password:

650) this. width = 650; "src =" http://www.68idc.cn/help/uploads/allimg/151111/121604FZ-15.jpg "title =" 15.15.jpg "alt =" wkiom1snolybfe1jaahiezfzi494.jpg "/>

Complete the installation.

Iii. Test Oracle Installation

1. Run lnsrctl start to start the listener.

650) this. width = 650; "src =" http://www.68idc.cn/help/uploads/allimg/151111/1216044H5-16.jpg "style =" float: none; "title =" 16.16.jpg "alt =" wKioL1SnosujBhHSAARPR3iuz1Q277.jpg "/>

2. Run sqlplus sys as sysdba to connect to oracle

650) this. width = 650; "src =" http://www.68idc.cn/help/uploads/allimg/151111/1216043J3-17.jpg "style =" float: none; "title =" courier 17.jpg "alt =" wKiom1SnohPxqG9HAAF0L2EkhoM522.jpg "/>

3. Run ps aux on a linux terminal to view many oracle-related processes.

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.