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

How to install oracle12c single instance database software

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

Share

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

This article mainly introduces how to install oracle12c single instance database software, the article is very detailed, has a certain reference value, interested friends must read it!

I. Environmental preparation

[oracle@localhost ~] $df-hl to check memory condition

6.4GB disk space is required. 1GB is required for the zoning of 1GB.

[oracle@localhost ~] $df-hl / tmp

Memory configuration 4G _ swap configuration 2G

[oracle@localhost ~] $grep MemTotal / proc/meminfo

[oracle@localhost ~] $cat / proc/swaps

Operating system: Red Hat Enterprise Linux Server release 7

[oracle@localhost ~] $cat / etc/redhat-release

Install package yum-y install package*

Install all packages

Binutils-2.23.52.0.1-12.el7.x86_64 compat-libcap1-1.10-3.el7.x86_64compat-libstdc++-33-3.2.3-71.el7.i686 compat-libstdc++-33-3.2.3-71.el7.x86_64gcc-4.8.2-3.el7.x86_64 gcc-c++-4.8.2-3.el7.x86_64 glibc-2.17-36.el7.i686 glibc-2.17-36.el7 .x86 _ 64 glibc-devel-2.17-36.el7.i686 glibc-devel-2.17-36.el7.x86_64 kshlibaio-0.3.109-9.el7.i686 libaio-0.3.109-9.el7.x86_64 libaio-devel-0.3.109-9.el7.i686 libaio-devel-0.3.109-9.el7.x86_64 libgcc-4.8.2-3.el7.i686 libgcc-4.8.2-3.el7.x86_64 Libstdc++-4.8.2-3.el7.i686 libstdc++-4.8.2-3.el7.x86_64 libstdc++-devel-4.8.2-3.el7.i686 libstdc++-devel-4.8.2-3.el7.x86_64 libXi-1.7.2-1.el7.i686 libXi-1.7.2-1.el7.x86_64 libXtst-1.2.2-1.el7.i686 libXtst-1.2.2-1.el7.x86_64 make-3. 82-19.el7.x86_64 sysstat-10.1.5-1.el7.x86_64

Check whether the group exists

[root@localhost ~] # grep oinstall / etc/group

[root@localhost ~] # grep dba / etc/group

Create groups oninstall and dba

[root@localhost ~] # / usr/sbin/groupadd oinstall

[root@localhost ~] # / usr/sbin/groupadd dba

[root@localhost ~] # / usr/sbin/groupadd oper

Check whether the oracle user exists

[root@localhost ~] # id oracle

Create an oracle user

[root@localhost] # / usr/sbin/useradd-g oinstall-G dba,oper oracle

If there is already an oracle, an error is reported.

[root@localhost ~] # passwd oracle

Create a password for oracle

Set resource limits:

[root@localhost ~] # vi / etc/sysctl.conf

Add at the end of the article:

Fs.aio-max-nr = 1048576

Fs.file-max = 6815744

# kernel.shmall = 2097152

# kernel.shmmax = 536870912

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 = 1048586

Make the changes effective

[root@localhost] # / sbin/sysctl-p

Set resource limits for installation users:

[root@localhost ~] # vi / etc/security/limits.conf

Under root, add

Oracle soft nofile 1024

Oracle hard nofile 65536

Oracle soft nproc 2047

Oracle hard nproc 16384

Oracle soft stack 10240

Oracle hard stack 10240

Create the oracle installation directory and assign permissions

[root@localhost ~] # mkdir / U01

[root@localhost] # chown-R oracle:oinstall / U01

[root@localhost] # chmod-R 775 / U01

Set environment variables for oracle users

[li@localhost ~] $su-oracle

Password:

[oracle@localhost ~] $

[oracle@localhost] $vi ~ / .bash_profile

# .bash _ profile

# Get the aliases and functions

If [- f ~ / .bashrc]; then

. ~ / .bashrc

Fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

Export PATH

Export ORACLE_BASE=/u01/app/oracle

Export ORACLE_HOME=$ORACLE_BASE/product/12.2.0/dbhome_1

Export PATH=$ORACLE_HOME/bin:$PATH

Export ORACLE_SID=db12c

Export NLS_LANG=AMERICAN_AMERICA.AL32UTF8

How to switch to an oracle user

Su-oracle

Create an oracle under temp and decompress the 12c package into it

Under oracle users

[li@localhost ~] $su oracle

Password:

[oracle@localhost] $cd / u01/software/database

[oracle@localhost database] $ls

Install response rpm runInstaller sshsetup stage welcome.html

Perform installation

[oracle@localhost database] $. / runInstaller

1. Pop up this interface, uncheck the option (you can fill in it if you have it), and then next

2. Choose to install only the database software here, and then next

3. Select to install single instance database, and then next

4. Choose to install Enterprise Edition, and then next

5. Install the path by default

6. Install next by default

7. Group default next

8. Here will check whether there is an installation-related package, you can open a new window yum installation package, and then check

(you'd better find a way to make sure there are no errors in the errors checked here, otherwise you will report an error at startup.)

9. Click install to start installation

10. Execute two scripts under root

[root@localhost ~] # / u01/app/oraInventory/orainstRoot.sh

Changing permissions of / u01/app/oraInventory.

Adding read,write permissions for group.

Removing read,write,execute permissions for world.

Changing groupname of / u01/app/oraInventory to oinstall.

The execution of the script is complete.

[root@localhost ~] # / u01/app/oracle/product/12.2.0/dbhome_1/root.sh

Performing root user operation.

The following environment variables are set as:

ORACLE_OWNER= oracle

ORACLE_HOME= / u01/app/oracle/product/12.2.0/dbhome_1

Enter the full pathname of the local bin directory: [/ usr/local/bin]:

Copying dbhome to / usr/local/bin...

Copying oraenv to / usr/local/bin...

Copying coraenv to / usr/local/bin...

Creating / etc/oratab file...

Entries will be added to the / etc/oratab file as needed by

Database Configuration Assistant when a database is created

Finished running generic part of root script.

Now product-specific root actions will be performed.

Do you want to setup Oracle Trace File Analyzer (TFA) now? Yes | [no]:

Yes

Installing Oracle Trace File Analyzer (TFA).

Log File: / u01/app/oracle/product/12.2.0/dbhome_1/install/root_localhost.localdomain_2018-04-307-56-19-938348191.log

Finished installing Oracle Trace File Analyzer (TFA)

After executing the script, the database software installation is complete.

The above is all the contents of the article "how to install oracle12c single instance database software". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

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