Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the installation steps for the second version of Oracle 12c

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces "what are the installation steps of the second edition of Oracle 12c". In the daily operation, I believe that many people have doubts about the installation steps of the second edition of Oracle 12c. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "what are the installation steps of the second edition of Oracle 12c?" Next, please follow the editor to study!

Experimental environment: Centos 7 Experimental preparation: one virtual machine, hard disk * 2, preliminary preparation

Partition the new hard drive and format it

The [root@localhost ~] # fdisk / dev/sdb## step is omitted. [root@localhost ~] # mkfs.xfs / dev/sdb1

Perform automatic mount

[root@localhost ~] # mkdir / orc [root@localhost ~] # vim / etc/fstab / dev/sdb1 / orc xfs defaults 0 [root@localhost ~] # mount-an II. Start the experiment.

Install the environment package

[root@oracle ~] # yum-y install binutils\ compat-libcap1 compat-libstdc++-33\ gcc gcc-c++\ glibc glibc-devel\ libaio libaio-devel\ libgcc libstdc++ libstdc++-devel\ libXi libXtst\ make ksh sysstat\ unixODBC unixODBC-devel

Modify kernel parameters

[root@ocacle ~] # vim / etc/sysctl.conf## add fs.aio-max-nr = 1048576 # # the recommended value for the number of asynchronous I0 requests is: 1048576, in fact, it equals 1024 to 1024. That is, the maximum number of file handles opened by 1024K fs.file-max = 6815744 # #. The problem to prevent file descriptor exhaustion is kernel.shmall = 2097152 # # total shared memory pages. Memory divided by 4K kernel.shmmax = 4294967295kernel.shmmni = 4096kernel.sem = 32000 100128 # # SEMMSL: maximum number of signals per signal set SEMMNS: maximum number of signals used to control the entire Linux system SEMOPM kernel parameters are used to control the number of signal operations that can be performed per semop system call SEMMNI: kernel parameters are used to control the maximum number of signal sets in the entire Linux system net.ipv4.ip_local_ Port_range = 9000 65500 # # Port range for outgoing connections net.core.rmem_default = 262144 # # default value of socket receive buffer size net.core.rmem_max = 4194304 # # maximum socket receive buffer size net.core.wmem_default = 262144 # # default value of socket send buffer size net.core.wmem_max = 1048576 # # socket send Maximum buffer size [root@ocacle ~] # sysctl-p # # overload takes effect

Definition group & lifting weight of installation path

[root@ocacle ~] # groupadd oinstall # definition installation group (oinstall) [root@ocacle ~] # groupadd dba # # definition administrator group (dba) [root@ocacle ~] # useradd-g oinstall-G dba oracle # # specify the basic group oinstall, Additional group dba# create installation directory [root@ocacle ~] # mkdir-p / orc/app/oracle [root@ocacle ~] # chown-R oracle:oinstall / orc/app/ [root@ocacle ~] # chmod-R 755 / orc/app/oracle/

Modify oracle user environment variables

[root@ocacle ~] # vim / home/oracle/.bash_profile## add umask 022 # File permissions ORACLE_BASE=/orc/app/oracle # installation path ORACLE_HOME=/orc/app/oracle/product/12.2.0/dbhome_1/ # Product definition ORACLE_SID=orcl # instance NLS_LANG= "SIMPLIFIED CHINESE_CHINA" .UTF8PATH = $PATH:$HOME/.local/bin : $HOME/bin:$ORACLE_HOME/binLANG=zh_CN.UTF-8export PATH LANG NLS_LANG ORACLE_BASE ORACLE_HOME ORACLE_SID

Oracle user resource limit

[root@ocacle ~] # vim / etc/pam.d/login# add session required / lib/security/pam_limits.sosession required pam_limits.so at the last line

Modify the managed configuration file

[root@ocacle ~] # vim / etc/security/limits.conf# Last Line add oracle soft nproc 204 number of processes available to single user oracle hard nproc 16384oracle soft nofile 102 number of files user can open oracle hard nofile 65536oracle soft stack 10240 # stack setting

Modify the global configuration file

[root@ocacle ~] # vim / etc/profile# add if [$USER = "oracle"]; then if [$SHELL = "/ bin/ksh"] Then ulimit-p 16384 # buffer size ulimit-n 65536 # File number else ulimit-u 16384-n 65536 # process number fifi III, install Oracle [root @ ocacle ~] # xhost + access control disabled, clients can connect from any host [root@ocacle ~] # su-oracle # # switch to Oracle user [oracle@ocacle ~] $export DISPLAY=:0.0

The following steps are basically carried out in the graphical terminal.

When the progress bar reaches 79%, a window will pop up

Return to the terminal and switch to root user [root@ocacle ~] # / orc/app/oraInventory/orainstRoot.sh [root@ocacle ~] # / orc/app/oracle/product/12.2.0/dbhome_l/root.sh

After execution, click OK to continue to the next step

At this point, the study on "what are the installation steps for the second edition of Oracle 12c" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report