Skip to content

Commit 1167ff1

Browse files
Merge pull request #510 from rcitton/20240604_OL9
new OL9 + codereview
2 parents 524b431 + cb34d35 commit 1167ff1

File tree

145 files changed

+1038
-931
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+1038
-931
lines changed

OracleDG/OL7/README.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
###### Author: Ruggero Citton (<[email protected]>) - Oracle RAC Pack, Cloud Innovation and Solution Engineering Team
44

55
This directory contains Vagrant build files to provision automatically
6-
two Oracle RDBMS (18c, 19c, 21c) hosts configured with Oracle Data Guard, using Vagrant, Oracle Linux 7 and shell scripts.
6+
two Oracle RDBMS (21c or 19c) hosts configured with Oracle Data Guard, using Vagrant, Oracle Linux 7 and shell scripts.
77
![](images/OracleDG.png)
88

99
The virtualization provider can be VirtualBox or KVM/libVirt
@@ -41,12 +41,16 @@ Running two RDBMS nodes at least 6Gb per node are required
4141
https://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html
4242

4343
Accept License Agreement
44-
go to version (18c, 19c, 21c) for Linux x86-64 you need -> "See All", example
44+
go to version (21c or 19c) for Linux x86-64 you need -> "See All", example
4545

4646
* Oracle Database 21c (21.3) for Linux x86-64
4747
LINUX.X64_213000_db_home.zip (3,109,225,519 bytes)
4848
(sha256sum - c05d5c32a72b9bf84ab6babb49aee99cbb403930406aabe3cf2f94f1d35e0916)
4949

50+
* Oracle Database 19c (19.3) for Linux x86-64
51+
LINUX.X64_193000_db_home.zip (3,059,705,302 bytes)
52+
(sha256sum - ba8329c757133da313ed3b6d7f86c5ac42cd9970a28bf2e6233f3235233aa8d8)
53+
5054
## Customization
5155

5256
You can customize your Oracle environment by amending the parameters in the configuration file: `./config/vagrant.yml`
@@ -107,7 +111,7 @@ The following can be customized:
107111
env:
108112
provider: virtualbox
109113
# ---------------------------------------------
110-
prefix_name: vgt7-193-dg
114+
prefix_name: dg-213-ol7
111115
# ---------------------------------------------
112116
domain: localdomain
113117
# ---------------------------------------------
@@ -116,7 +120,7 @@ The following can be customized:
116120
oradata_disk_num: 2
117121
oradata_disk_size: 20
118122
# ---------------------------------------------
119-
db_software: LINUX.X64_193000_db_home.zip
123+
db_software: LINUX.X64_213000_db_home.zip
120124
# ---------------------------------------------
121125
root_password: welcome1
122126
oracle_password: welcome1
@@ -125,10 +129,10 @@ The following can be customized:
125129
# ---------------------------------------------
126130
ora_languages: en,en_GB
127131
# ---------------------------------------------
128-
db_name: DB193H1
132+
db_name: DB213H1
129133
pdb_name: PDB1
130-
cdb: false
131-
adg: false
134+
cdb: true
135+
adg: true
132136
# ---------------------------------------------
133137

134138
#### KVM/libVirt provider Example:
@@ -152,15 +156,15 @@ The following can be customized:
152156
env:
153157
provider: libvirt
154158
# ---------------------------------------------
155-
prefix_name: vgt7-193-dg
159+
prefix_name: dg-213-ol7
156160
# ---------------------------------------------
157161
domain: localdomain
158162
# ---------------------------------------------
159163
oradata_disk_num: 2
160164
oradata_disk_size: 20
161165
storage_pool_name: Vagrant_KVM_Storage
162166
# ---------------------------------------------
163-
db_software: LINUX.X64_193000_db_home.zip
167+
db_software: LINUX.X64_213000_db_home.zip
164168
# ---------------------------------------------
165169
root_password: welcome1
166170
oracle_password: welcome1
@@ -169,10 +173,10 @@ The following can be customized:
169173
# ---------------------------------------------
170174
ora_languages: en,en_GB
171175
# ---------------------------------------------
172-
db_name: DB193H1
176+
db_name: DB213H1
173177
pdb_name: PDB1
174-
cdb: false
175-
adg: false
178+
cdb: true
179+
adg: true
176180
# ---------------------------------------------
177181

178182
## Running scripts after setup

OracleDG/OL7/Vagrantfile

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# LICENSE UPL 1.0
44
#
5-
# Copyright (c) 1982-2020 Oracle and/or its affiliates. All rights reserved.
5+
# Copyright (c) 1982-2024 Oracle and/or its affiliates. All rights reserved.
66
#
77
# NAME
88
# vagrantfile
@@ -23,7 +23,7 @@
2323
# rcitton 11/06/18 - Creation
2424
#
2525
# REVISION
26-
# 20200923 - $Revision: 2.0.2.3 $
26+
# 20240603 - $Revision: 2.0.2.5 $
2727
#
2828
#│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│
2929

@@ -69,13 +69,14 @@ var_box = 'oraclelinux/7'
6969
var_url = 'https://oracle.github.io/vagrant-projects/boxes/oraclelinux/7.json'
7070

7171
puts ""
72-
puts "│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│"
73-
puts " Oracle DG (Database Dataguard) Vagrant box for KVM/libVirt or VirtualBox "
74-
puts " Copyright (c) 1982-2021 Oracle and/or its affiliates "
75-
puts "--------------------------------------------------------------------------"
76-
puts " Author: Ruggero Citton <[email protected]> "
77-
puts " RAC Pack, Cloud Innovation and Solution Engineering Team "
78-
puts "│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│"
72+
puts "│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│"
73+
puts " Oracle DG (Database Dataguard) "
74+
puts " Vagrant project for KVM/libVirt or VirtualBox "
75+
puts " Copyright (c) 2018-2024 Oracle and/or its affiliates "
76+
puts "-------------------------------------------------------------------"
77+
puts " Author: Ruggero Citton <[email protected]> "
78+
puts " RAC Pack, Cloud Innovation and Solution Engineering Team "
79+
puts "│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│"
7980
puts ""
8081
puts ""
8182

OracleDG/OL7/config/vagrant.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ host2:
2020
env:
2121
provider: virtualbox
2222
# ---------------------------------------------
23-
prefix_name: vgt7-193-dg
23+
prefix_name: dg-213-ol7
2424
# ---------------------------------------------
2525
domain: localdomain
2626
# ---------------------------------------------
@@ -29,7 +29,7 @@ env:
2929
oradata_disk_num: 2
3030
oradata_disk_size: 20
3131
# ---------------------------------------------
32-
db_software: LINUX.X64_193000_db_home.zip
32+
db_software: LINUX.X64_213000_db_home.zip
3333
# ---------------------------------------------
3434
root_password: welcome1
3535
oracle_password: welcome1
@@ -38,10 +38,10 @@ env:
3838
# ---------------------------------------------
3939
ora_languages: en,en_GB
4040
# ---------------------------------------------
41-
db_name: DB193H1
41+
db_name: DB213H1
4242
pdb_name: PDB1
43-
cdb: false
44-
adg: false
43+
cdb: true
44+
adg: true
4545
# ---------------------------------------------
4646

4747

@@ -67,15 +67,15 @@ env:
6767
#env:
6868
# provider: libvirt
6969
# # ---------------------------------------------
70-
# prefix_name: vgt7-193-dg
70+
# prefix_name: dg-213-ol7
7171
# # ---------------------------------------------
7272
# domain: localdomain
7373
# # ---------------------------------------------
7474
# oradata_disk_num: 2
7575
# oradata_disk_size: 20
7676
# storage_pool_name: Vagrant_KVM_Storage
7777
# # ---------------------------------------------
78-
# db_software: LINUX.X64_193000_db_home.zip
78+
# db_software: LINUX.X64_213000_db_home.zip
7979
# # ---------------------------------------------
8080
# root_password: welcome1
8181
# oracle_password: welcome1
@@ -84,8 +84,8 @@ env:
8484
# # ---------------------------------------------
8585
# ora_languages: en,en_GB
8686
# # ---------------------------------------------
87-
# db_name: DB193H1
87+
# db_name: DB213H1
8888
# pdb_name: PDB1
89-
# cdb: false
90-
# adg: false
89+
# cdb: true
90+
# adg: true
9191
# # ---------------------------------------------

OracleDG/OL7/scripts/01_install_os_packages.sh

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# LICENSE UPL 1.0
55
#
6-
# Copyright (c) 1982-2020 Oracle and/or its affiliates. All rights reserved.
6+
# Copyright (c) 1982-2024 Oracle and/or its affiliates. All rights reserved.
77
#
88
# NAME
99
# 01_install_os_packages.sh
@@ -22,19 +22,14 @@
2222
# rcitton 11/06/18 - Creation
2323
#
2424
# REVISION
25-
# 20200330 - $Revision: 2.0.2.1 $
25+
# 20240603 - $Revision: 2.0.2.1 $
2626
#
2727
#│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│
2828
echo "-----------------------------------------------------------------"
2929
echo -e "${INFO}`date +%F' '%T`: Install base packages"
3030
echo "-----------------------------------------------------------------"
3131
yum install -y deltarpm tree unzip zip
32-
yum install -y oracle-database-preinstall-18c
33-
34-
#echo "-----------------------------------------------------------------"
35-
#echo -e "${INFO}`date +%F' '%T`: Perform yum update"
36-
#echo "-----------------------------------------------------------------"
37-
#yum -y update
32+
yum install -y oracle-database-preinstall-21c
3833

3934
echo "-----------------------------------------------------------------"
4035
echo -e "${INFO}`date +%F' '%T`: Disabling firewalld"

OracleDG/OL7/scripts/02_setup_u01.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# LICENSE UPL 1.0
55
#
6-
# Copyright (c) 1982-2020 Oracle and/or its affiliates. All rights reserved.
6+
# Copyright (c) 1982-2024 Oracle and/or its affiliates. All rights reserved.
77
#
88
# NAME
99
# 02_setup_u01.sh
@@ -22,7 +22,7 @@
2222
# rcitton 11/06/18 - Creation
2323
#
2424
# REVISION
25-
# 20200330 - $Revision: 2.0.2.1 $
25+
# 20240603 - $Revision: 2.0.2.1 $
2626
#
2727
#│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│
2828
echo "-----------------------------------------------------------------"

OracleDG/OL7/scripts/03_setup_oradata_disks.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# LICENSE UPL 1.0
55
#
6-
# Copyright (c) 1982-2020 Oracle and/or its affiliates. All rights reserved.
6+
# Copyright (c) 1982-2024 Oracle and/or its affiliates. All rights reserved.
77
#
88
# NAME
99
# 03_setup_oradata_disks.sh
@@ -22,7 +22,7 @@
2222
# rcitton 11/06/18 - Creation
2323
#
2424
# REVISION
25-
# 20200330 - $Revision: 2.0.2.1 $
25+
# 20240603 - $Revision: 2.0.2.1 $
2626
#
2727
#│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│
2828
echo "-----------------------------------------------------------------"

OracleDG/OL7/scripts/04_setup_hosts.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# LICENSE UPL 1.0
55
#
6-
# Copyright (c) 1982-2020 Oracle and/or its affiliates. All rights reserved.
6+
# Copyright (c) 1982-2024 Oracle and/or its affiliates. All rights reserved.
77
#
88
# NAME
99
# 04_setup_hosts.sh
@@ -22,7 +22,7 @@
2222
# rcitton 11/06/18 - Creation
2323
#
2424
# REVISION
25-
# 20200330 - $Revision: 2.0.2.1 $
25+
# 20240603 - $Revision: 2.0.2.1 $
2626
#
2727
#│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│
2828
. /vagrant/config/setup.env

OracleDG/OL7/scripts/05_setup_users.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# LICENSE UPL 1.0
55
#
6-
# Copyright (c) 1982-2020 Oracle and/or its affiliates. All rights reserved.
6+
# Copyright (c) 1982-2024 Oracle and/or its affiliates. All rights reserved.
77
#
88
# NAME
99
# 05_setup_users.sh
@@ -22,7 +22,7 @@
2222
# rcitton 11/06/18 - Creation
2323
#
2424
# REVISION
25-
# 20200330 - $Revision: 2.0.2.1 $
25+
# 20240603 - $Revision: 2.0.2.1 $
2626
#
2727
#│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│
2828
. /vagrant/config/setup.env

OracleDG/OL7/scripts/06_do_RDBMS_software_installation.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# LICENSE UPL 1.0
55
#
6-
# Copyright (c) 1982-2020 Oracle and/or its affiliates. All rights reserved.
6+
# Copyright (c) 1982-2024 Oracle and/or its affiliates. All rights reserved.
77
#
88
# NAME
99
# 06_do_RDBMS_software_installation
@@ -22,7 +22,7 @@
2222
# rcitton 11/06/18 - Creation
2323
#
2424
# REVISION
25-
# 20200330 - $Revision: 2.0.2.1 $
25+
# 20240603 - $Revision: 2.0.2.1 $
2626
#
2727
#│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│
2828
. /vagrant/config/setup.env

OracleDG/OL7/scripts/07_setup_OracleNet.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# LICENSE UPL 1.0
55
#
6-
# Copyright (c) 1982-2020 Oracle and/or its affiliates. All rights reserved.
6+
# Copyright (c) 1982-2024 Oracle and/or its affiliates. All rights reserved.
77
#
88
# NAME
99
# 07_setup_OracleNet.sh
@@ -22,7 +22,7 @@
2222
# rcitton 11/06/18 - Creation
2323
#
2424
# REVISION
25-
# 20200330 - $Revision: 2.0.2.1 $
25+
# 20240603 - $Revision: 2.0.2.1 $
2626
#
2727
#│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│
2828
. /vagrant/config/setup.env

0 commit comments

Comments
 (0)