"Oracle" Oracle Database 12c Release 2 Installation multi-diagram detailed

Source: Internet
Author: User

1.1 Download the installation package

Oracle website address please Baidu Oracle,51cto content restrictions do not let me put!
1) Open the official website and find the download connection.

2) Select more downloads.

3) Select the database version, the current version is selected here

4) receive the license agreement, select the Linux version to download

5) Accept the license agreement and click Linuxx64_12201_database.zip

6) Log in Oracle account can create a

7) then be able to download

1.2 Detailed installation process

Note that the installation of Oracle needs to be installed in a graphical interface (or a silent installation with command-line mode, which is cumbersome and not recommended), and you will need to install a graphical interface or a graphical boundary pack behind it when installing the system.
This time using centos6.9 Desktop version
1.2.1 System release Notes
[[email protected] ~]# cat/etc/redhat-release
CentOS Release 6.9 (Final)
[[email protected] ~]# uname-a
Linux Oracle 2.6.32-696.el6.x86_64 #1 SMP Tue Mar 21 19:29: UTC x86_64 x86_64 x86_64 gnu/linux
1.2.2 Install Dependency package
Install the dependency package and check
[[email protected] ~]# yum install gcc gcc- C + + ksh libaio-devel libstdc++-devel compat-libstdc++-33 compat-libcap1-y
Installed:
compat-libcap1.x86_64 0:1.10-1
compat-libstdc++-33.x86_64 0:3.2.3-69.el6gcc.x86_64 0:4.4.7-18.el6gcc-c++.x86_64 0:4.4.7-18.el6
ksh.x86_64 0:20120801-35.el6_9
libaio-devel.x86_64 0:0.3.107-10.el6
libstdc++-devel.x86_64 0:4.4.7-18.el6

1.2 Installation process
1. Unzip the file
Cd/server/oracle/unzip Linuxx64_12201_database.zip
2. Create an Oracle user and switch to an Oracle user
Useradd oraclepasswd Oracle
Chown-r oracle.oracle/server/tools/database/
3. Switch to Oracle User, configure environment variables
Su-oracle
Configure environment variables (under Oracle users):
Vim. Bash_profile
# Use for Oracle
Export Oraclebase=/usr/oracle
Export Oraclehome= $ORACLEBASE/product
Export ORACLESID=ORCL
Export path= $PATH: $HOME/bin: $ORACLEHOME/bin
Export Ldlibrarypath= $ORACLEHOME/lib:/usr/lib

4. Go to the installation directory and execute the installation script (under Oracle user)
Cd/server//database
./runinstaller

Run the above process if not out of the following Red installation interface do not panic, may need to wait a while, if you do not want to wait, you can run again, if the above check the conditions are not satisfied, direct Baidu to find ways, no longer repeat.

Note: When installing here, you may get an error: prvf-0002 cannot retrieve local node name
This situation is/etc/hosts file is not written well, to be added to the native resolution line
Format: static IP host name

5. Configure the database and go to the Web Administration page (multi-image)
Enter your own email (don't send me an email thank you)

Choose to create a new database

Install Select server Type
Desktop type less good multifunction so select server type

Select the type of installation for the database
Select a single instance here

Install in Advanced installation, customized installation

Select the Enterprise version here in the database version

Specifying the installation directory
Note that there is enough space in the installed directory for Oracle to have large space requirements

Specify the product inventory directory

Select the type of database created

Select the database name, by default

Note Memory settings
Since I am a virtual machine, memory is given as the smallest

Select UTF8 in the character set

Selected on the installation example
Because I'm doing test purposes, so install the sample

How to store the selected data

Cloud management, with Oracle's can add

Data recovery, open

Set User password

I have a unified password here, the production environment is recommended to set high-strength password
Setting the password for Oracle is simple, all systems will be prompted not to meet the security specifications, select Yes
Type of database operation used (default)

Start the installation.

Check if the environment is correct and there will be a repair script for errors.


Note: Open the terminal according to the prompt to find the location of the script and repair using the repair script, note that the root user (PS: I have an insufficient swap space expected, the swap space is expected to be 4G I have only 2 G here, the beginning of the time I did not give good, find a way to increase the swap space, Baidu can find ways, Many kinds. )

Run this script as root user
After the repair is complete, you can continue with the following actions

Click Next to install, install slowly, wait patiently

Execute the script during installation (as in the process of executing the script above, open the terminal to find the location to run the two scripts as root.) The second script executes with some selection information to the full default.

[Email protected] ~]# sh/oracle/app/orainventory/orainstroot.sh
Change permission/oracle/app/orainventory.
Add read and Write permissions for the group.
Deletes the global read, write, and execute permissions.
Change the group name/oracle/app/orainventory to Oracle.
The execution of the script is complete.
[Email protected] ~]# sh/oracle/app/oraclea/product/12.2.0/dbhome_1/root.sh
The script is executed with a direct carriage return (except for special requirements).

Note: There is an error in the middle of the configuration Assistant failure reason (detailed can be judged according to the log)
1. See if the c:\windows\System32\drivers\etc\hosts file 127.0.0.1 is blocked.
2. Also IP address do not use DHCP to obtain IP automatically, you need to specify an IP address. This problem occurs as long as you find the cause, and then let the monitoring start normally can solve the problem.
3. Firewall does not shut down caused
4. Check that the other network configuration is correct.
The installation is complete, according to the prompt browser access (The browser may be reported missing flash plugin to install one on the line)

User name is System
I set the password to 123456

The installation is complete.
Some simple commands for command-line mode and the problems I encountered while using the command line for service deployment, as well as some of the differences between 12C and previous versions, will be sent in the next blog post.

"Oracle" Oracle Database 12c Release 2 Installation multi-diagram detailed

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.