Oracle 19c software deployment and database setup
Oracle 19c software deployment and database setup
##
Or
acl
e19csof
twar
edepl
oymentanddat
abaseset
up
###########################################################################
#
Consideration:
1.Operatingsy stem “OracleLinux7”.
2.Oracles/ wbi nari
es19. 3.
0.0.0
3.OracleVi rt
ual Boxinstall
ed(6.0.
24versi
on)
4.Youlapt opdr ivehaveadequat efr
eespaceatl
east100GB.
5.Laptopshoul dhav eInt er
netconnecti
vit
y.
Steps:
:
:
1.VM machi
ne
a.Setmachi
nehostname"oracl
e19c"
su–root
$host
namectlset
-host
nameoracl
e19c
$host
name
b.Networkconf igur e.
#if
config-a
#cd/etc/sy sconf i
g/networ
k-scr
ipt
s.
#vii
fcfg-enp0s3
HWADDR=08: 00: 27:FC:
28:
93
TYPE=Et her net
BOOTPROTO=dhcp ##/ /Notehearwear
eusi
ngDHCPI
Pmet
hod.
DEFROUTE=y es
PEERDNS=y es
PEERROUTES=y es
IPV4_FAI LURE_ FATAL=no
IPV6INIT=y es
IPV6_AUTOCONF=y es
IPV6_DEFROUTE=y es
IPV6_PEERDNS=y es
IPV6_PEERROUTES=y es
I
PV6_FAILURE_FATAL=no
NAME=enp0s3
UUI
D=f597ba3e-df
b0-45e1-
a2ae-
3f8e3878f
31d
ONBOOT=y es##//Justchangethi
sparameterv
aluest
o"y
es"smal
l
case.
#sy
stemct
lst
opnetwork
#sy
stemct
lst
artnet
work.
#sy
stemct
lst
atusnerwor
k.
c.userandgroups.
#gr oupaddoper
#gr oupadddba
#gr oupaddoinst
all
#user mod-goinstal
l-Gdba,
operor
acl
e
d.Creat
efil
esyst
em."/
u01,/u02and/ backupi
twi
llEXt
4fil
esy
stem"
.
"
weal r
eadyset
upext
4fi
lesystem duri
ngOSinst
all
ati
on"
#chmod-R775/u01
chmod-
R775/u02
chmod-
R775/backup
f
.set
uplinuxr
esposi
tor
y.
pinggoogl
e.com
g.Di
sableseli
nux
####v i/et
c/sel
inux/confi
g
"/et
c/sel
inux/
config"makebel
owchangei
nthef
il
es.
SELINUX=disabled
h.Disabl
eIPtableordisablefi
rewal
ld
#sy
stemct l
statusf i
rewall
d
#syst
emct lstopfi
rewal l
d
#syst
emct ldi
sablef i
rewall
d
#sy
stemct l
statusf i
rewall
d
#sy
stemct l
statusiptabl
es
or
#systemctlst
opipt
abl
es
#systemctldi
sabl
eipt
abl
es
#chkconfi
gdisabl
eipt
abl
es
#sy
stemct
lstar
tsshd.servi
ce
#sy
stemct
lenablesshd.ser
vice
h.Di
sabl
eIpv
6 ## v i/etc/
defaul
t/
grub addli
neipv6.
disabl
e=1
Addipv
6.di
sable=1totheGRUB_CMDLINE_LI
NUXent r
yint
he/
etc/
def
aul
t/
grubf
il
e
i
.kernalpar
ameters
v
i/et
c/sysct
l.
conf
###Or aclebinarieskernalset
ti
ng
fs.
file-
max=6815744
kernel.
sem =25032000100128
kernel.
shmmni =4096
kernel.
shmal l=1073741824
kernel.
shmmax=4398046511104
kernel.
pani c_on_oops=1
net.core.
rmem_ default=262144
net.core.
rmem_ max=4194304
net.core.
wmem_ default=262144
net.core.
wmem_ max=1048576
net.i
pv4.conf .
all
.r
p_ f
il
ter=2
net.i
pv4.conf .
default.
rp_fi
lt
er=2
fs.
aio-max- nr=1048576
net.i
pv4.ip_local
_port_range=900065500
$/
sbi
n/sy
sct
l-p"
Val
i
dat
ekar
ner
alpar
amet
ersaf
terchangesi
ntheabov
efi
l
e"
j.Secur i
tyl
imitsupdate.
vi/et
c/securi
ty/l
imits.
conf
###or acl
esetti
ng
oracl
e sof tnof i
le 1024
oracl
e har d nofil
e 65536
oracl
e sof tnpr oc 16384
oracl
e har d nproc 16384
oracl
e sof tstack 10240
oracl
e har d stack 32768
oracl
e har d meml ock 134217728
oracl
e sof tmeml ock 134217728
k.i
nst
allor
acl
e19cdependentpackages.
y
um-
conf
ig-
manager-
-di
sabl
eol
7_UEKR3
y
um i
nst
all
-ybc
y
um i
nst
all
-ybinuti
ls
y
um i
nst
all
-ycompat -
libcap1
y
um i
nst
all
-ycompat -
libstdc++-33
y
um i
nst
all
-ydtrace-
modul es
y
um i
nst
all
-ydtrace-
modul es-
headers
y
um i
nst
all
-ydtrace-
modul es-
provi
der-
header
s
y
um i
nst
all
-ydtrace-
utils
y
um i
nst
all
-yelfut
il
s-l
ibelf
y
um i
nst
all
-yelfut
il
s-l
ibelf
-devel
y
um i
nst
all
-yfontconfi
g-dev el
y
um i
nst
all
-ygli
bc
y
um i
nst
all
-ygli
bc-devel
y
um i
nst
all
-yksh
y
um i
nst
all
-yl
ibaio
y
um i
nst
all
-yl
ibaio- devel
y
um i
nst
all
-yl
ibdtr ace-ct
f -
devel
y
um i
nst
all
-yl
ibXr ender
y
um i
nst
all
-yl
ibXr ender -
dev el
y
um i
nst
all
-yl
ibX11
y
um i
nst
all
-yl
ibXau
y
um i
nst
all
-yl
ibXi
y
um i
nst
all
-yl
ibXt st
y
um i
nst
all
-yl
ibgcc
y
um i
nst
all
-yl
ibrdmacm- devel
y
um i
nst
all
-yl
ibstdc++
y
um i
nst
all
-yl
ibstdc++- dev el
y
um i
nst
all
-yl
ibxcb
y
um i
nst
all
-ymake
y
um i
nst
all
-ynet-tools#Cl uster
ware
y
um i
nst
all
-ynfs-ut i
ls#ACFS
y
um i
nst
all
-ypython#ACFS
y
um i
nst
all
-ypython- configshell#ACFS
y
um i
nst
all
-ypython- rt
sli
b#ACFS
y
um i
nst
all
-ypython- si
x#ACFS
y
um i
nst
all
-ytarget cl
i#ACFS
y
um i
nst
all
-ysmar tmontool s
y
um i
nst
all
-ysysst at
y
um i
nst
all
-yunixODBC
#Newf orOEL8
yum i
nstal
l-yl
i
bnsl
yum i
nstal
l-yl
i
bnsl
.i
686
yum i
nstal
l-yl
i
bnsl
2
yum i
nstal
l-yl
i
bnsl
2.i
686
y
um updat
e-y
wgethtt
ps://
yum.oracl
e.com/
repo/
Oracl
eLi
nux/
OL7/
lat
est
/x86_
64/
get
Package/
kmod-
li
bs-
20-
21.
0.1.
el7.
x86_64.
rpm
r
pm –i
vhkmod-
li
bs-
20-
21.
0.1.
el7.
x86_
64.
rpm
or
yum i
nstal
l-yoracl
e-dat
abase-
prei
nst
all
-19c
yum updat
e- y
Not
e::Needt
oreboott
hesy
stem af
teral
lOSchangeshasbeenmade
#shut
down-
rnow
##sethost
namef
orDNSr
esol
uti
on.
[
root
@or acl
e19c~]#v i/etc/hosts
127.
0.0.
1l ocal
hostlocalhost.l
ocaldomai
nlocalhost4local
host4.l
ocaldomain4
:
:1 l
ocal
hostlocalhost.l
ocaldomainl
ocalhost6local
host6.l
ocaldomain6
192.
168.31.
86 oracle19c or acl
e19c.
oracle.
com or acl
e19c
#pi
ngor
acl
e19c
3.I
nst
all
ati
onofor
acl
esof
twar
eoror
acl
ebi
nar
iesdepl
oyment
.
3.
1Copyoracl
ebinari
esf rom yourlocal
machinetoserv
er
"/
u02/or
acl
e_soft
war e".
3.
2unzipcopi
edsoftware.
cd/u02/
oracl
e_sof t
war e
cd/ u01/app/oraclepr
oduct/
19.
0.0/
db_1
unzi
p-oq/u02/oracle_soft
ware/LI
NUX.X64_
193000_db_
home.
zip
3.
3Accessput
tyusingX11.for
wardi
ngway"i
.e.GUIputt
yaccess"
su-oracle
cd$ORACLE_ HOME
./r
unInst
all
er"
Foll
owthei
nfoourclassdi
scussi
on"
4.Depl
oymentor
acl
edat
abaseasLi
kepr
oduct
ionenv
ironmentdb.
4.
1Setor
acl
eenvir
onmentv
ari
abl
es.
cd
vi.
bash_
profi
l
e
#Or
acleSet
ti
ngs
expor
tTMP=/tmp
expor
tTMPDIR=$TMP
expor
tORACLE_HOSTNAME=or acle19c.oracle.
com
expor
tORACLE_UNQNAME=ORCL
expor
tORACLE_BASE=/u01/app/or acl
e
expor
tORACLE_HOME=$ORACLE_ BASE/ product/19.
0.0/db_1
expor
tORACLE_SI
D=ORCL
expor
tPATH=$ORACLE_ HOME/ bin:$PATH
expor
tPATH=/usr
/sbi
n:$PATH
expor
tLD_LI
BRARY_PATH=$ORACLE_ HOME/ li
b:/
lib:
/usr
/li
b
expor
tCLASSPATH=$ORACLE_ HOME/ jl
ib:$ORACLE_ HOME/ r
dbms/
jl
ib
$..
bash_pr
ofi
l
e
$echo$ORACLE_HOME
$echo$ORACLE_SI
D
$echo$ORACLE_BASE
$sqlpl
us "
youshoul
dbeonsql
pluspr
ompt
"
4.
2dat
abaseDepl
oyment
.
Not
e::
Wecandeploydatabaseusi
ngbelowmet
hods.
1.DBCA
2.Manual
Met hod
3.Si
lentmethod.###optional
4.
3Accessputt
yusi
ngGUIway.
su-or
acle
dbca"Fol
l
owtheinst
ruct
ionasperourcl
assdi
scussi
on"
###############################Happyl
ear
ning############################