linuxamd64_12c_database_1of2.zip
linuxamd64_12c_database_2of2.zip
OS configuration and preparation
OS configuration is executed as root. To login as root just execute following command
in terminal.
su - root
The “/etc/hosts” file must contain a fully qualified name for the server.
127.0.0.1 centos7 centos7.dbaora.com localhost.localdomain localhost
Set hostname
hostnamectl set-hostname centos7.dbaora.com --static
Add groups
#groups for database management
/usr/sbin/groupadd -g 501 oinstall
/usr/sbin/groupadd -g 502 dba
/usr/sbin/groupadd -g 503 oper
Disable secure linux by editing the “/etc/selinux/config” file, making sure the SELINUX
flag is set as follows. It requires REBOOT to be effective !!!
SELINUX=permissive
Packages
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
Apply kernel parameters
/sbin/sysctl -p
Add following lines to set shell limits for user oracle in file /etc/security/limits.conf
# shell limits for users oracle 12gR1
export ORACLE_HOSTNAME=centos7.dbaora.com
export ORACLE_UNQNAME=ORA12C
export ORACLE_BASE=/ora01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/12.1.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
Create directory structure as user root
ORACLE_BASE – /ora01/app/oracle
ORACLE_HOME – /ora01/app/oracle/product/12.1.0/db_1
mkdir -p /ora01/app/oracle/product/12.1.0/db_1
chown oracle:oinstall -R /ora01
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.
systemctl mask tmp.mount
Install database software
Let’s start with database software installation as oracle user.
su - oracle
7. On the screen you need to define global database name and pluggable database
name. Rest of options you can keep default. Then click “Next” button.
8. Accept default settings then click “Next” button.
9. Summary screen just before installation. It’s the last moment to make changes in
previous steps. If you are ready click “Install” button.
10. Installation begins …
18. Once binaries are installed automatically DBCA (database configuration assistant)
will start to create new database.
19. You should see summary screen for your database. You can click “Password
Management” to unlock and change passwords for default account. Click “OK” button.