Linux CENTOS7 Installation oracle12c Second Edition

Source: Internet
Author: User

Environment:


[email protected], allocating resources: Cpu:2, Memory: 4GB, hard disk space: 30GB

ORACLE12C Enterprise Edition 64-bit

650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170809151032824-324724325.png "style=" Border:none;height:auto; "/>

: http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html

Process Summary:

  1. Root Installation Dependency package:  

    yum -y install binutils  compat-libcap1 compat-libstdc++-33 compat-libstdc++-33*.i686 elfutils-libelf-devel gcc  gcc-c++ glibc*.i686 glibc glibc-devel glibc-devel*.i686 ksh libgcc*.i686  libgcc libstdc++ libstdc++*.i686 libstdc++-devel libstdc++-devel*.i686 libaio  libaio*.i686 libaio-devel libaio-devel*.i686 make sysstat unixODBC  UNIXODBC*.I686 UNIXODBC-DEVEL UNIXODBC-DEVEL*.I686 LIBXP 

     

  2. To set up users and groups:

    Groupadd oinstall groupadd dba groupadd oper useradd-g oinstall-g dba,oper oracle echo "123456" | passwd--stdin Oracle #oracle用户的登录密码, follow-up login to use, remember.

  3. To create the installation directory:

    Mkdir-p/orcl/app/oracle/product/12.1.0/db_1 chown-r Oracle:oinstall/orcl/app chmod-r 775/orcl/app

  4. Modify the kernel parameter vi/etc/sysctl.conf, add:

    fs.aio-max-nr = 1048576  fs.file-max =  6815744  kernel.shmall = 2097152  kernel.shmmax = 1200000000     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 = 1048576 

    After the change, make it effective
    Sysctl-p

    or you just write it right now 4098955264

  5. Change file limit: vi/etc/security/limits.conf, add:

    Oracle Soft nproc 2047 Oracle hard nproc 16384 Oracle Soft nofile 1024x768 Oracle hard nofile 65536 Oracle Soft Stack 1024 0

    Note: Modifying this file is immediate, but may have to be re-logged in and then look

  6. As well as Vi/etc/pam.d/login, add:

    Session Required Pam_limits.so

  7. To modify Ulimit:vi/etc/profile, add:

    if [$USER = "Oracle"]; Then if [$SHELL = "/bin/ksh"]; Then ulimit-p 16384 ulimit-n 65536a else ulimit-u 16384-n 65536 fi fi

  8. Modify environment variables. VI ~oracle/.bash_profile, add:

    Oracle_base=/orcl/app/oracle oracle_home= $ORACLE _base/product/12.1.0/db_1 ORACLE_SID=ORCL export ORACLE_BASE Oracle _home oracle_sid path= $ORACLE _home/bin: $PATH export PATH

  9. Uninstall the OPENJDK from the system with the Yum remove *openjdk* and install the Sun Jdk:rpm-ivh jdk-8u144-linux-x64.rpm. () (OPENJDK environment installation Oracle GUI will report class not found's error). Then $>java-version check to see if the installation was successful.

    650) this.width=650; "src="/HTTP/ Images2017.cnblogs.com/blog/1168946/201708/1168946-20170809193951980-1289240503.png "style=" Border:none;height: auto; "/>

  10. Log on as an Oracle user to begin installation:

    su  oracle  cd /orcl/ app/oracle  unzip linuxx64_12201_database.zip export lang= "En_US"   cd  /orcl/app/oracle/database  ./runinstaller 

     

    > Note: Download the Oracle to be placed in the/orcl/app/oracle directory, under/orcl/app/oracle/is 2 directories: Product and database. The extracted installation files are placed under database. Then there will be the installation interface, the configuration process withheld. It is important to note that the character set chooses Unicode. The following

    1. 650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170809180347261-2038886942.png "style=" Border:none;height:auto; "/>


  11. 650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/1168946-20170809180517730-35353748. PNG "style=" Border:none;height:auto; "/>


  12. 650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170809180622964-934504977.png "style=" Border:none;height:auto; "/>


  13. 650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170809180653699-362650983.png "style=" Border:none;height:auto; "/>


  14. 650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170809180737308-1116122698.png "style=" Border:none;height:auto; "/>


  15. 650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170809195350433-1577132350.png "style=" Border:none;height:auto; "/>


  16. 650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170809195704558-458028736.png "style=" Border:none;height:auto; "/>


  17. 650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170809195755808-1012069760.png "style=" Border:none;height:auto; "/>

  18. In the installation

    650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170809195916464-619954522.png "style=" Border:none;height:auto; "/>

  19. Installation Complete

    650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170809200837261-1722961018.png "style=" Border:none;height:auto; "/>

  20. Then input DBCA start data graphical interface install database 650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170809201438089-1625952512.png "style=" border:none; "/>

  21. Select configuration: Here we choose Advanced Configuration, simple self-test

    650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170809202332292-1842535642.png "style=" Border:none;height:auto; "/>

  22. Configure according to your needs: I choose a custom database

    650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170809203316464-256745455.png "style=" Border:none;height:auto; "/>

  23. To configure the database container:

    650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170809204020792-1476537169.png "style=" Border:none;height:auto; "/>

  24. To configure how the database is stored:

    650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/1168946-20170809204620574-57845343. PNG "style=" Border:none;height:auto; "/>

  25. Select the Quick recovery area:

    650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170809205115620-1358973414.png "style=" Border:none;height:auto; "/>

  26. Listener configuration: (Create database automatically create listener, must be listener default) 650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708 /1168946-20170809210028089-464878923.png "style=" border:none; "/>

  27. Select the database component:

    650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170809210813886-1059486268.png "style=" Border:none;height:auto; "/>

  28. Database Security Configuration:

    650) this.width=650; "src="/HTTP/ Images2017.cnblogs.com/blog/1168946/201708/1168946-20170809211100277-1717911502.png "style=" Border:none;height: auto; "/>

  29. Memory, block, number of connections, character set, connection mode, add instance:

    650) this.width=650 ; "Src=" Http://images2017.cnblogs.com/blog/1168946/201708/1168946-20170809212045417-1347765518.png "style=" Border:none;height:auto;/>

    650) this.width=650; " Src= "Http://images2017.cnblogs.com/blog/1168946/201708/1168946-20170809212424683-469057502.png" style= "border: None;height:auto; "/>650" this.width=650; "src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170809232047574-760707759.png "style=" Border:none;height:auto; "/>

    &NBSP,

  30. Configure the Orale em local tyrants to order powerful em:

    650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/1168946-20170809213754824-73181239. PNG "style=" Border:none;height:auto; "/>

  31. Password configuration: I'm using a unified password.

    650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170809214249230-939903064.png "style=" Border:none;height:auto; "/>

  32. To create a database configuration:

    650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170809215342370-1950926139.png "style=" Border:none;height:auto; "/>

  33. Summary interface: (If no errors can be installed on the finish)

    1. Be sure to perform/orcl/app/oracle/product/12.1.0/db_1/root first. SH

    1. 650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170809215751902-1003272374.png "style=" border:none; "/>

  34. 650) this.width=650; "src=" http:// Images2017.cnblogs.com/blog/1168946/201708/1168946-20170809221117933-675750361.png "style=" Border:none;height: auto; "/>

      

  35. Installation complete (everything goes well, the error is not in the papers)

    650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170810033743245-834765721.png "style=" Border:none;height:auto; "/>

    Start

    1. #su-oracle Switch to an Oracle user and switch to its environment
    2. $lsnrctl Status View monitoring and database state
    3. Start monitoring $lsnrctl start
    4. $sqlplus/as sysdba into the sqlplus as a DBA
    5.sql>startup Start db

    Stop it

    1. #su-oracle Switch to an Oracle user and switch to its environment
    2. $lsnrctl stop to stop listening
    3. $sqlplus/as sysdba into the sqlplus as a DBA

    4.sql>shutdown IMMEDIATE off DB




Original link: http://blog.csdn.net/github_39294367/article/details/77057149

This article is from the "richylu____ Rurei" blog, be sure to keep this source http://richylu.blog.51cto.com/1481674/1959341

Linux CENTOS7 Installation oracle12c Second Edition

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.