靜默安裝Oracle12.2數據庫
實驗環境:
操作系統:Redhat 6.4 64位
數據庫:Oracle 12c R2
- 安裝前準備
- 創建用戶和組
[[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.
- 創建目錄
[[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
- 查看物理內存、交換空間和文件系統大小
[[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
- 查看操作系統架構
[[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
- 安裝軟件包
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數據庫