os:rhel7.2
ORACLE 12C
Step1: Installing the required RPM packages
Yum install binutils libX11 compat-libcap1 libxau compat-libstdc++-33 libaio gcc libaio-devel gcc-c++ libdmx glibc-devel g libc ksh make LIBGCC sysstat libstdc++ xorg-x11-utils libstdc++-devel xorg-x11-xauth libxext libxv libxtst libXi libxcb li BXt libxmu libxxf86misc libxxf86dga libxxf86vm nfs-utils smartmontools
Step2: Modifying kernel parameters
Vim/etc/sysctl.d/98-oracle-kernel.conf
vm.swappiness = 1
Vm.dirty_background_ratio = 3
Vm.dirty_ratio = 80
Vm.dirty_expire_centisecs = 500
Vm.dirty_writeback_centisecs = 100
Kernel.sem = 250 32000 100 128
FS.AIO-MAX-NR = 1048576
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 = 1048576
KERNEL.MSGMNB = 65536
Kernel.msgmax = 65536
Kernel.shmmax = 8589934590 ==8g, larger than SGA
Kernel.shmall = 2147483648 ==8g
Kernel.shmmni = 4096
Sysctl-p/etc/sysctl.d/98-oracle-kernel.conf
Step3: Set User Limits
Vim/etc/security/limits.d/99-grid-oracle-limits.conf
Oracle Soft Nproc 2047
Oracle Hard Nproc 16384
Oracle Soft Nofile 1024
Oracle Hard Nofile 65536
Oracle Soft Stack 10240
Oracle Hard Stack 32768
STEP4: Adding users
Groupadd--gid 54321 Oinstall
Groupadd--gid 54322 dba
Groupadd--gid 54326 Oper
Groupadd--gid 54327 BACKUPDBA
Groupadd--gid 54328 DGDBA
Groupadd--gid 54329 KMDBA
Useradd--uid 54321--gid oinstall--groups dba,oper,backupdba,dgdba,kmdba Oracle
echo "Oracle" |PASSWD--stdin Oracle
STEP5: Setting up a directory
Mkdir-p/u01/app/12.2.0/grid
Chown-r oracle.oinstall/u01
Chmod-r 755/u01
STEP6: Setting Environment variables
Su-oracle
Vim. Bash_profile
Export Oracle_base=/u01/app/oracle
Export Oracle_home= $ORACLE _base/product/12.1.0/db_1
Export ORACLE_SID=ORCL
Export path= $ORACLE _home/bin: $PATH;
STEP7: Start Installation
Su-root
Xhost +
Su-oracle
[Email protected] database]$./runinstaller
Starting Oracle Universal Installer ...
Checking Temp space:must be greater than MB. Actual 7211 MB Passed
Checking swap space:must be greater than MB. Actual 1023 MB Passed
Checking Monitor:must is configured to display at least colors
>>> Could not execute auto Check for display colors using Command/usr/bin/xdpyinfo. Check If the DISPLAY variable is set. Failed <<<<
Some requirement checks failed. You must fulfill these requirements before
Continuing with the installation,
Continue? (y/n) [N] Y
>>> ignoring required pre-requisite failures. Continuing ...
Preparing to launch Oracle Universal Installer from/tmp/orainstall2018-08-11_01-14-29am. Please wait ...
DISPLAY not set. Please set the DISPLAY and try again.
Depending on the Unix Shell, you can use one of the following commands as examples to set the DISPLAY environment variable :
-For CSH:% setenv DISPLAY 192.168.1.128:0.0
-For SH, ksh and bash: $ display=192.168.1.128:0.0; Export DISPLAY
Use the following command to see what Shell is being used:
Echo $SHELL
Use the following command to view the current DISPLAY environment variable setting:
Echo $DISPLAY
-Make sure. Client users is authorized to connect to the X Server.
To enable clients users to access the X Server, open a xterm, dtterm or XConsole as the user that started the session and Type the following command:
% xhost +
To test the DISPLAY environment variable are set correctly, run a X11 based program that comes with the native Operati ng system such as ' xclock ':
% <full path to xclock. See below>
If you is not a able to run Xclock successfully, please refer to your pc-x Server or OS vendor for further assistance.
Typical path for xclock:/usr/x11r6/bin/xclock
After trying to set up a number of $display, not all, as follows
Display=192.168.107.155:0.0;export $DISPLAY
Display=192.168.107.155:1.0;export $DISPLAY
Display=192.168.107.155:0.1export $DISPLAY
Display=:0;export $DISPLAY
Display=:1;export $DISPLAY
Then I executed xclock in a window of root, found no clock, and then installed Xorg-x11-apps (yum install Xorg-x11-apps), using root xclock to see the clock.
After that, Su-oracle still can't see the clock.
After the echo to the root window $DISPLAY found to be: 0, so I also set in the Oracle window
Display=:0;export $DISPLAY
After that, the normal graphical installation is possible.
Installation process:
Fix it here.
Ignoring the swap alarm, I'm only splitting the swap by 1G.
STEP8:DBCA Building Library
Here you can choose a typical configuration, or you can choose a custom configuration, I chose the custom (Advanced configuration)
Create Listner, called Listner1
To the SGA Sub 6G,PGA 500M, this is the test library, I alone with
Install sample
Installation Complete
[Email protected]> select host_name,version from V$instance;
HOST_NAME VERSION
---------------------------------------- -----------------
ORACLE12C 12.2.0.1.0
[Email protected]>!lsnrctl Status
Lsnrctl for linux:version 12.2.0.1.0-production on 14-aug-2018 00:59:07
Copyright (c) 1991, Oracle. All rights reserved.
Connecting to (Address= (PROTOCOL=TCP) (host=) (port=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version Tnslsnr for Linux:version 12.2.0.1.0-production
Start Date 14-aug-2018 00:12:27
Uptime 0 days 0 hr. Min. sec
Trace level off
Security on:local OS Authentication
SNMP OFF
Listener Parameter File/u01/app/oracle/product/12.1.0/db_1/network/admin/listener.ora
Listener Log File/u01/app/oracle/diag/tnslsnr/oracle12c/listener/alert/log.xml
Listening Endpoints Summary ...
(Description= (address= (protocol=tcp) (host=oracle12c) (port=1521)))
(Description= (address= (PROTOCOL=TCPS) (host=oracle12c) (port=5500)) (Security= (my_wallet_directory=/u01/app/ Oracle/admin/orcl/xdb_wallet)) (presentation=http) (Session=raw))
Services Summary ...
Service "7351E8AE5372218EE0539B6BA8C08D05" has 1 instance (s).
Instance "ORCL", status ready, have 1 handler (s) for the This service ...
Service "ORCL" has 1 instance (s).
Instance "ORCL", status ready, have 1 handler (s) for the This service ...
Service "Orclxdb" has 1 instance (s).
Instance "ORCL", status ready, have 1 handler (s) for the This service ...
Service "orclpdb" has 1 instance (s).
Instance "ORCL", status ready, have 1 handler (s) for the This service ...
The command completed successfully
rhel7.2 Install Oracle 12C