1. OS  (설치 기준은 12.2.0.1) 

Linux x86-64 operating system requirements

The following Linux x86-64 kernels are supported:

Oracle Linux 7 with the Unbreakable Enterprise Kernel 3: 3.8.13-35.3.1.el7uek.x86_64 or later
Oracle Linux 7.2 with the Unbreakable Enterprise Kernel 4: 4.1.12-32.2.3.el7uek.x86_64 or later
Oracle Linux 7 with the Red Hat Compatible kernel: 3.10.0-123.el7.x86_64  or later

Minimum local disk storage space for Oracle software

For Linux x86-64:
At least 8.6 GB for an Oracle Grid Infrastructure for a standalone server installation.
At least 7.5 GB for Oracle Database Enterprise Edition.
At least 7.5 GB for Oracle Database Standard Edition 2.

Packages for Oracle Linux 7

The following packages (or later versions) must be installed:

binutils-2.23.52.0.1-12.el7 (x86_64)
compat-libcap1-1.10-3.el7 (x86_64)
compat-libstdc++-33-3.2.3-71.el7 (i686)
compat-libstdc++-33-3.2.3-71.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)
ksh
libaio-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)
libX11-1.6.0-2.1.el7 (i686)
libX11-1.6.0-2.1.el7 (x86_64)
libXau-1.0.8-2.1.el7 (i686)
libXau-1.0.8-2.1.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)
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)
libxcb-1.9-5.el7 (i686)
libxcb-1.9-5.el7 (x86_64)
make-3.82-19.el7 (x86_64)
nfs-utils-1.3.0-0.21.el7.x86_64 (for Oracle ACFS)
net-tools-2.0-0.17.20131004git.el7 (x86_64) (for Oracle RAC and Oracle Clusterware)
smartmontools-6.2-4.el7 (x86_64)
sysstat-10.1.5-1.el7 (x86_64)


2. asm 디스크 설정 변경

Verifying the Disk I/O Scheduler on Linux

For best performance for Oracle ASM, Oracle recommends that you use the Deadline I/O Scheduler.
Disk I/O schedulers reorder, delay, or merge requests for disk I/O to achieve better throughput and lower latency. Linux has multiple disk I/O schedulers available, including Deadline, Noop, Anticipatory, and Completely Fair Queuing (CFQ).
On each cluster node, enter the following command to verify that the Deadline disk I/O scheduler is configured for use:

# cat /sys/block/${ASM_DISK}/queue/scheduler
noop [deadline] cfq

In this example, the default disk I/O scheduler is Deadline and ASM_DISK is the Oracle Automatic Storage Management (Oracle ASM) disk device.

If the default disk I/O scheduler is not Deadline, then set it using a rules file:

  1. Using a text editor, create a UDEV rules file for the Oracle ASM devices:

    # vi /etc/udev/rules.d/60-oracle-schedulers.rules
    
  2. Add the following line to the rules file and save it:

    ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="deadline"
    
  3. On clustered systems, copy the rules file to all other nodes on the cluster. For example:

    $ scp 60-oracle-schedulers.rules root@node2:/etc/udev/rules.d/60-oracle-schedulers.rules
    
  4. Load the rules file and restart the UDEV service. For example:

    1. Oracle Linux and Red Hat Enterprise Linux

      # udevadm control --reload-rules
      
    2. SUSE Linux Enterprise Server

      # /etc/init.d boot.udev restart
      
  5. Verify that the disk I/O scheduler is set as Deadline.


3. group/user 생성

/usr/sbin/groupadd -g 54321 oinstall

groupadd dba

groupadd oper

groupadd backupdba

groupadd dgdba

groupadd kmdba

groupadd asmdba

groupadd racdba

groupadd asmoper

groupadd asmadmin


grid 설치 : grid

( uid=54331(grid) gid=54321(oinstall) groups=54321(oinstall),54322(dba),

 54327(asmdba),54328(asmoper),54329(asmadmin),54330(racdba) )

oracle, db 설치 : oracle

( uid=54321(oracle) gid=54321(oinstall) groups=54321(oinstall),54322(dba), 
  54323(oper),54324(backupdba),54325(dgdba),54326(kmdba),54327(asmdba),54330(racdba)  )


useradd -g oinstall -G dba  -M oragrid

useradd -g oinstall -G dba  -M -d /oracle oracle


4. kernel parameter  (/etc/sysctl.conf)

fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 3221225472
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 4194304
net.core.rmem_max = 8388608
net.core.wmem_default = 4194304
net.core.wmem_max = 8388608

vm.swappiness = 5


5. security limit 설정  (/etc/security/limits.conf)

oracle  soft   nproc  16384

oracle hard nproc 16384

oracle  soft  nofile  65536

oracle  hard  nofile  65536

oracle  soft  stack  32768

oracle soft   memlock     kernel.shmmax와 동일하게

oracle hard  memlock    kernel.shmmax와 동일하게


6. hugepage disable   (/etc/rc.local)

if test -f /sys/kernel/mm/transparent_hugepage/enabled; then
   echo never > /sys/kernel/mm/transparent_hugepage/enabled
fi
if test -f /sys/kernel/mm/transparent_hugepage/defrag; then
   echo never > /sys/kernel/mm/transparent_hugepage/defrag
fi


7. 설치전 check

1) 설치시 

    ./orachk -profile preinstall

2) upgrade시

    ./orachk -u -o pre

3) rac 체크

   - CRS 관련 체크 

   /ORACLE/crs/12.2.0.1/runcluvfy.sh stage -pre crsinst -n dev01,dev02 -verbose -fixup


8. cvu (rac 설치시) check

https://docs.oracle.com/database/122/CWADD/cluster-verification-utility-reference.htm#CWADD91030

cd /u01/app/oracle/product/12.2.0/grid
runcluvfy.sh stage -pre hacfg


9. asm disk setup

/etc/init.d/oracleasm createdisk DATAVOL58 /dev/mapper/ICALc-oradb-100G-008-n3par04
/etc/init.d/oracleasm createdisk DATAVOL59 /dev/mapper/ICALc-oradb-100G-009-n3par04
/etc/init.d/oracleasm createdisk DATAVOL60 /dev/mapper/ICALc-oradb-100G-010-n3par04


ALTER DISKGROUP DATAVOL ADD DISK
'ORCL:DATAVOL58',
'ORCL:DATAVOL59',
'ORCL:DATAVOL60'
REBALANCE POWER 11;


10. install

1) response file

oracle.install.option=INSTALL_DB_SWONLY

UNIX_GROUP_NAME=dba

INVENTORY_LOCATION=/oracle/oraInventory

ORACLE_HOME=/oracle/app/product/12.2.0

ORACLE_BASE=/oracle/app

SECURITY_UPDATES_VIA_MYORACLESUPPORT=false

DECLINE_SECURITY_UPDATES=true


2) 설치

- sw 설치

./runInstaller -silent -showProgress -waitForCompletion -responseFile db_install.rsp


- db 설치

dbca -silent -createDatabase \
-templateName General_Purpose.dbc \
-gdbName cdb1 \
-sid cdb1 \
-automaticMemoryManagement false \
-characterSet AL32UTF8 \
-databaseConfigType SINGLE \
-databaseType MULTIPURPOSE \
-storageType FS \
-datafileDestination "/oracle/app/oradata/" \
-enableArchive true \
-archiveLogDest "/oracle/app/archive" \
-redoLogFileSize 300 \
-emConfiguration NONE \
-sysPassword "test00" \
-systemPassword "test00" \
-sampleSchema false \
-totalMemory 3000 \
-useWalletForDBCredentials true \
-dbCredentialsWalletLocation "/oracle/app/product/12.2.0/db_1/network/admin" \
-dbCredentialsWalletPassword oracle00 \
-createAsContainerDatabase true \
-numberOfPDBs 1 \
-pdbName pdb1 \
-pdbAdminPassword "test00" \
-useLocalUndoForPDBs true


- graphics 설치

  export DISPLAY=:0.0

  xhost +

  su - oracle

  export DISPLAY=:0.0

  

'RDB > Oracle' 카테고리의 다른 글

oracle asm 18c  (0) 2019.02.20
oracle 18c autotask enable or disable  (0) 2019.02.11
oracle audit  (0) 2018.12.13
oracle database roadmap  (0) 2018.11.16
oracle 18c 기능  (0) 2018.11.15

+ Recent posts