静默安装Oracle12.2数据库

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了静默安装Oracle12.2数据库相关的知识,希望对你有一定的参考价值。

实验环境:

操作系统:Redhat 6.4 64位

数据库:Oracle 12c R2

  1. 安装前准备
  1. 创建用户和组

[[email protected] ~]# groupadd -g 1000 oinstall

//oinstall组:是清单目录组(Oracle Inventory group),用于管理清单目录(Inventory)

[[email protected] ~]# groupadd -g 1001 dba //dba组:用于数据库管理

[[email protected] ~]# useradd -u 600 -g oinstall -G dba oracle

[[email protected] ~]# passwd oracle

Changing password for user oracle.

New password:

BAD PASSWORD: it is based on a dictionary word

BAD PASSWORD: is too simple

Retype new password:

passwd: all authentication tokens updated successfully.

  1. 创建目录

[[email protected] ~]# mkdir -p /u01/app/oracle/product/12.2.0/dbhome_1

[[email protected] ~]# chown -R oracle:oinstall /u01

[[email protected] ~]# chmod -R 775 /u01/app/oracle

  1. 查看物理内存、交换空间和文件系统大小

[[email protected] ~]# free -m

total used free shared buffers cached

Mem: 3016 358 2657 0 19 158

-/+ buffers/cache: 180 2835

Swap: 3023 0 3023

[[email protected] ~]# df -h

Filesystem Size Used Avail Use% Mounted on

/dev/mapper/vg_wjq-lv_root

26G 2.8G 22G 12% /

tmpfs 1.5G 72K 1.5G 1% /dev/shm

/dev/sda1 485M 38M 423M 9% /boot

/dev/mapper/vg_wjq-lv_home

4.0G 137M 3.7G 4% /home

/dev/mapper/vg_wjq-lv_u01

66G 180M 62G 1% /u01

  1. 查看操作系统架构

[[email protected] ~]# cat /proc/version

Linux version 2.6.32-358.el6.x86_64 ([email protected]) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) ) #1 SMP Tue Jan 29 11:47:41 EST 2013

[[email protected] ~]# lsb_release -a

LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch

Distributor ID: RedHatEnterpriseServer

Description: Red Hat Enterprise Linux Server release 6.4 (Santiago)

Release: 6.4

Codename: Santiago

[[email protected] ~]# uname -r

2.6.32-358.el6.x86_64

  1. 安装软件包

binutils-2.20.51.0.2-5.11.el6 (x86_64)
compat-libcap1-1.10-1 (x86_64)
compat-libstdc++-33-3.2.3-69.el6 (x86_64)
compat-libstdc++-33-3.2.3-69.el6.i686
gcc-4.4.4-13.el6 (x86_64)
gcc-c++-4.4.4-13.el6 (x86_64)
glibc-2.12-1.7.el6 (i686)
glibc-2.12-1.7.el6 (x86_64)
glibc-devel-2.12-1.7.el6 (x86_64)
glibc-devel-2.12-1.7.el6.i686
ksh
libgcc-4.4.4-13.el6 (i686)
libgcc-4.4.4-13.el6 (x86_64)
libstdc++-4.4.4-13.el6 (x86_64)
libstdc++-4.4.4-13.el6.i686
libstdc++-devel-4.4.4-13.el6 (x86_64)
libstdc++-devel-4.4.4-13.el6.i686
libaio-0.3.107-10.el6 (x86_64)
libaio-0.3.107-10.el6.i686
libaio-devel-0.3.107-10.el6 (x86_64)
libaio-devel-0.3.107-10.el6.i686
libXext-1.1 (x86_64)
libXext-1.1 (i686)
libXtst-1.0.99.2 (x86_64)
libXtst-1.0.99.2 (i686)
libX11-1.3 (x86_64)
libX11-1.3 (i686)
libXau-1.0.5 (x86_64)
libXau-1.0.5 (i686)

以上是关于静默安装Oracle12.2数据库的主要内容,如果未能解决你的问题,请参考以下文章

ORACLE12C静默安装(CDB)

静默安装oracle 查看日志重点看啥知道是不是成功安装

Oracle静默安装

Oracle静默安装搭建

Linux7.8下静默安装oracle11.2

静默安装卸载 ORACLE