Académique Documents
Professionnel Documents
Culture Documents
2) on
Oracle Linux 7 (OEL7)
Posted on March 23, 2017
This article presents how to install Oracle 12C(12.2) Release 2 on Oracle Enterprise Linux 7
(OEL7).
Read following article how to install Oracle Enterprise Linux 7: Install Oracle Linux 7
(OEL7) (for comfort set 4G memory for your virtual machine before proceeding with Oracle
software installation).
Software
Database software
linuxx64_12201_database.zip
su - root
The “/etc/hosts” file must contain a fully qualified name for the server.
For example.
Set hostname
Add groups
passwd oracle
Packages
You can install missing packages from dvd. Just mount it and install missing packages using
rpm -Uvh command from directory <mount dvd>/Packages or by using yum install command.
fs.file-max = 6815744
kernel.sem = 250 32000 100 128
kernel.shmmni = 4096
kernel.shmall = 1073741824
kernel.shmmax = 4398046511104
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
fs.aio-max-nr = 1048576
net.ipv4.ip_local_port_range = 9000 65500
kernel.panic_on_oops=1
/sbin/sysctl -p
Add following lines to set shell limits for user oracle in file /etc/security/limits.conf
Disable firewall
Additional steps
# Oracle Settings
export TMP=/tmp
export ORACLE_HOSTNAME=oel7.dbaora.com
export ORACLE_UNQNAME=ORA12C
export ORACLE_BASE=/ora01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/12.2.0/db_1
export ORACLE_SID=ORA12C
PATH=/usr/sbin:$PATH:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib;
export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib;
umask 022
envo
Directory structure
ORACLE_BASE – /ora01/app/oracle
ORACLE_HOME – /ora01/app/oracle/product/12.2.0/db_1
mkdir -p /ora01/app/oracle/product/12.2.0/db_1
chown oracle:oinstall -R /ora01
“OPTIONAL” – In Oracle Enterprise Linux 7 /tmp data is stored on tmpfs which consumes
memory and is too small. To revert it back to storage just run following command and
REBOOT machine to be effective.
SSH server
I use it for later connection as user oracle in GNOME using command ssh
oracle@oel7.dbaora.com -X. Without it it won’t be possible to run X interfaces like Oracle
Universal Installer.
verify it works
unzip linuxx64_12201_database.zip
1. Uncheck checkbox “I wish to receive security updates via My Oracle Support” and then
click “Next” button.
2. Ignore following message and click “Yes” button.
6. Select “Advanced install” to later select more options during database installation and click
“Next” button.
7. You can select here type of binaries to install. Once it’s done click “Next” button.
8. Here you should see directories for ORACLE_BASE and ORACLE_HOME for your
binaries according to environmental settings. Click “Next” button.
12. Specify more details about your database on 3 tabs where you can define memory settings,
character set and if to install sample schema on your database. Once you are happy with your
settings click “Next” button.
13. Specify directory where you want to install your database files then click “Next” button.
14. On this page you can register your database in Oracle Enterprise Manager”. Accept
default settings and click “Next” button.
15. Check checkbox “Enable Recovery” to specify directory for your recovery area
“Recovery area location” and click “Next” button.
16. Specify password for each user or enter the same for all. Once it’s done click “Next”
button.
17. Here you can specify OS group for each oracle group. Accept default settings and click
“Next” button.
18. Checks are started to verify if OS is ready to install database software.
19. If everything is right click “Install” button. It’s the last moment to come back to each of
previous point and make changes.
--execute scripts
/ora01/app/oraInventory/orainstRoot.sh
/ora01/app/oracle/product/12.2.0/db_1/root.sh
Second script enables to install Oracle Trace File Analyzer (TFA). It’s worth to install it.
It was problem with listener. I had to start it manually. Once LISTENER is started click
“Retry” button and installation should continue
NOTE – It requires to install flash plug-in and running listener. In addition don’t provide
container name to connect.
https://oel7.dbaora.com:5500/em
27. Try to connect to container database as user SYS using sqlplus tool
Connected to:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit
Production
SQL>
Problems