Skip to content

new OL9 + codereview #510

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 16 additions & 12 deletions OracleDG/OL7/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
###### Author: Ruggero Citton (<[email protected]>) - Oracle RAC Pack, Cloud Innovation and Solution Engineering Team

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

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

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

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

* Oracle Database 19c (19.3) for Linux x86-64
LINUX.X64_193000_db_home.zip (3,059,705,302 bytes)
(sha256sum - ba8329c757133da313ed3b6d7f86c5ac42cd9970a28bf2e6233f3235233aa8d8)

## Customization

You can customize your Oracle environment by amending the parameters in the configuration file: `./config/vagrant.yml`
Expand Down Expand Up @@ -107,7 +111,7 @@ The following can be customized:
env:
provider: virtualbox
# ---------------------------------------------
prefix_name: vgt7-193-dg
prefix_name: dg-213-ol7
# ---------------------------------------------
domain: localdomain
# ---------------------------------------------
Expand All @@ -116,7 +120,7 @@ The following can be customized:
oradata_disk_num: 2
oradata_disk_size: 20
# ---------------------------------------------
db_software: LINUX.X64_193000_db_home.zip
db_software: LINUX.X64_213000_db_home.zip
# ---------------------------------------------
root_password: welcome1
oracle_password: welcome1
Expand All @@ -125,10 +129,10 @@ The following can be customized:
# ---------------------------------------------
ora_languages: en,en_GB
# ---------------------------------------------
db_name: DB193H1
db_name: DB213H1
pdb_name: PDB1
cdb: false
adg: false
cdb: true
adg: true
# ---------------------------------------------

#### KVM/libVirt provider Example:
Expand All @@ -152,15 +156,15 @@ The following can be customized:
env:
provider: libvirt
# ---------------------------------------------
prefix_name: vgt7-193-dg
prefix_name: dg-213-ol7
# ---------------------------------------------
domain: localdomain
# ---------------------------------------------
oradata_disk_num: 2
oradata_disk_size: 20
storage_pool_name: Vagrant_KVM_Storage
# ---------------------------------------------
db_software: LINUX.X64_193000_db_home.zip
db_software: LINUX.X64_213000_db_home.zip
# ---------------------------------------------
root_password: welcome1
oracle_password: welcome1
Expand All @@ -169,10 +173,10 @@ The following can be customized:
# ---------------------------------------------
ora_languages: en,en_GB
# ---------------------------------------------
db_name: DB193H1
db_name: DB213H1
pdb_name: PDB1
cdb: false
adg: false
cdb: true
adg: true
# ---------------------------------------------

## Running scripts after setup
Expand Down
19 changes: 10 additions & 9 deletions OracleDG/OL7/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# LICENSE UPL 1.0
#
# Copyright (c) 1982-2020 Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 1982-2024 Oracle and/or its affiliates. All rights reserved.
#
# NAME
# vagrantfile
Expand All @@ -23,7 +23,7 @@
# rcitton 11/06/18 - Creation
#
# REVISION
# 20200923 - $Revision: 2.0.2.3 $
# 20240603 - $Revision: 2.0.2.5 $
#
#│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│

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

puts ""
puts "│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│"
puts " Oracle DG (Database Dataguard) Vagrant box for KVM/libVirt or VirtualBox "
puts " Copyright (c) 1982-2021 Oracle and/or its affiliates "
puts "--------------------------------------------------------------------------"
puts " Author: Ruggero Citton <[email protected]> "
puts " RAC Pack, Cloud Innovation and Solution Engineering Team "
puts "│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│"
puts "│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│"
puts " Oracle DG (Database Dataguard) "
puts " Vagrant project for KVM/libVirt or VirtualBox "
puts " Copyright (c) 2018-2024 Oracle and/or its affiliates "
puts "-------------------------------------------------------------------"
puts " Author: Ruggero Citton <[email protected]> "
puts " RAC Pack, Cloud Innovation and Solution Engineering Team "
puts "│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│"
puts ""
puts ""

Expand Down
20 changes: 10 additions & 10 deletions OracleDG/OL7/config/vagrant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ host2:
env:
provider: virtualbox
# ---------------------------------------------
prefix_name: vgt7-193-dg
prefix_name: dg-213-ol7
# ---------------------------------------------
domain: localdomain
# ---------------------------------------------
Expand All @@ -29,7 +29,7 @@ env:
oradata_disk_num: 2
oradata_disk_size: 20
# ---------------------------------------------
db_software: LINUX.X64_193000_db_home.zip
db_software: LINUX.X64_213000_db_home.zip
# ---------------------------------------------
root_password: welcome1
oracle_password: welcome1
Expand All @@ -38,10 +38,10 @@ env:
# ---------------------------------------------
ora_languages: en,en_GB
# ---------------------------------------------
db_name: DB193H1
db_name: DB213H1
pdb_name: PDB1
cdb: false
adg: false
cdb: true
adg: true
# ---------------------------------------------


Expand All @@ -67,15 +67,15 @@ env:
#env:
# provider: libvirt
# # ---------------------------------------------
# prefix_name: vgt7-193-dg
# prefix_name: dg-213-ol7
# # ---------------------------------------------
# domain: localdomain
# # ---------------------------------------------
# oradata_disk_num: 2
# oradata_disk_size: 20
# storage_pool_name: Vagrant_KVM_Storage
# # ---------------------------------------------
# db_software: LINUX.X64_193000_db_home.zip
# db_software: LINUX.X64_213000_db_home.zip
# # ---------------------------------------------
# root_password: welcome1
# oracle_password: welcome1
Expand All @@ -84,8 +84,8 @@ env:
# # ---------------------------------------------
# ora_languages: en,en_GB
# # ---------------------------------------------
# db_name: DB193H1
# db_name: DB213H1
# pdb_name: PDB1
# cdb: false
# adg: false
# cdb: true
# adg: true
# # ---------------------------------------------
11 changes: 3 additions & 8 deletions OracleDG/OL7/scripts/01_install_os_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# LICENSE UPL 1.0
#
# Copyright (c) 1982-2020 Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 1982-2024 Oracle and/or its affiliates. All rights reserved.
#
# NAME
# 01_install_os_packages.sh
Expand All @@ -22,19 +22,14 @@
# rcitton 11/06/18 - Creation
#
# REVISION
# 20200330 - $Revision: 2.0.2.1 $
# 20240603 - $Revision: 2.0.2.1 $
#
#│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│
echo "-----------------------------------------------------------------"
echo -e "${INFO}`date +%F' '%T`: Install base packages"
echo "-----------------------------------------------------------------"
yum install -y deltarpm tree unzip zip
yum install -y oracle-database-preinstall-18c

#echo "-----------------------------------------------------------------"
#echo -e "${INFO}`date +%F' '%T`: Perform yum update"
#echo "-----------------------------------------------------------------"
#yum -y update
yum install -y oracle-database-preinstall-21c

echo "-----------------------------------------------------------------"
echo -e "${INFO}`date +%F' '%T`: Disabling firewalld"
Expand Down
4 changes: 2 additions & 2 deletions OracleDG/OL7/scripts/02_setup_u01.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# LICENSE UPL 1.0
#
# Copyright (c) 1982-2020 Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 1982-2024 Oracle and/or its affiliates. All rights reserved.
#
# NAME
# 02_setup_u01.sh
Expand All @@ -22,7 +22,7 @@
# rcitton 11/06/18 - Creation
#
# REVISION
# 20200330 - $Revision: 2.0.2.1 $
# 20240603 - $Revision: 2.0.2.1 $
#
#│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│
echo "-----------------------------------------------------------------"
Expand Down
4 changes: 2 additions & 2 deletions OracleDG/OL7/scripts/03_setup_oradata_disks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# LICENSE UPL 1.0
#
# Copyright (c) 1982-2020 Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 1982-2024 Oracle and/or its affiliates. All rights reserved.
#
# NAME
# 03_setup_oradata_disks.sh
Expand All @@ -22,7 +22,7 @@
# rcitton 11/06/18 - Creation
#
# REVISION
# 20200330 - $Revision: 2.0.2.1 $
# 20240603 - $Revision: 2.0.2.1 $
#
#│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│
echo "-----------------------------------------------------------------"
Expand Down
4 changes: 2 additions & 2 deletions OracleDG/OL7/scripts/04_setup_hosts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# LICENSE UPL 1.0
#
# Copyright (c) 1982-2020 Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 1982-2024 Oracle and/or its affiliates. All rights reserved.
#
# NAME
# 04_setup_hosts.sh
Expand All @@ -22,7 +22,7 @@
# rcitton 11/06/18 - Creation
#
# REVISION
# 20200330 - $Revision: 2.0.2.1 $
# 20240603 - $Revision: 2.0.2.1 $
#
#│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│
. /vagrant/config/setup.env
Expand Down
4 changes: 2 additions & 2 deletions OracleDG/OL7/scripts/05_setup_users.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# LICENSE UPL 1.0
#
# Copyright (c) 1982-2020 Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 1982-2024 Oracle and/or its affiliates. All rights reserved.
#
# NAME
# 05_setup_users.sh
Expand All @@ -22,7 +22,7 @@
# rcitton 11/06/18 - Creation
#
# REVISION
# 20200330 - $Revision: 2.0.2.1 $
# 20240603 - $Revision: 2.0.2.1 $
#
#│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│
. /vagrant/config/setup.env
Expand Down
4 changes: 2 additions & 2 deletions OracleDG/OL7/scripts/06_do_RDBMS_software_installation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# LICENSE UPL 1.0
#
# Copyright (c) 1982-2020 Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 1982-2024 Oracle and/or its affiliates. All rights reserved.
#
# NAME
# 06_do_RDBMS_software_installation
Expand All @@ -22,7 +22,7 @@
# rcitton 11/06/18 - Creation
#
# REVISION
# 20200330 - $Revision: 2.0.2.1 $
# 20240603 - $Revision: 2.0.2.1 $
#
#│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│
. /vagrant/config/setup.env
Expand Down
4 changes: 2 additions & 2 deletions OracleDG/OL7/scripts/07_setup_OracleNet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# LICENSE UPL 1.0
#
# Copyright (c) 1982-2020 Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 1982-2024 Oracle and/or its affiliates. All rights reserved.
#
# NAME
# 07_setup_OracleNet.sh
Expand All @@ -22,7 +22,7 @@
# rcitton 11/06/18 - Creation
#
# REVISION
# 20200330 - $Revision: 2.0.2.1 $
# 20240603 - $Revision: 2.0.2.1 $
#
#│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│
. /vagrant/config/setup.env
Expand Down
4 changes: 2 additions & 2 deletions OracleDG/OL7/scripts/08_setup_autostart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# LICENSE UPL 1.0
#
# Copyright (c) 1982-2020 Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 1982-2024 Oracle and/or its affiliates. All rights reserved.
#
# NAME
# 08_setup_autostart.sh
Expand All @@ -22,7 +22,7 @@
# rcitton 11/06/18 - Creation
#
# REVISION
# 20200330 - $Revision: 2.0.2.1 $
# 20240603 - $Revision: 2.0.2.1 $
#
#│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│
. /vagrant/config/setup.env
Expand Down
4 changes: 2 additions & 2 deletions OracleDG/OL7/scripts/primary_DB_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# LICENSE UPL 1.0
#
# Copyright (c) 1982-2020 Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 1982-2024 Oracle and/or its affiliates. All rights reserved.
#
# NAME
# primary_DB_setup.sh
Expand All @@ -22,7 +22,7 @@
# rcitton 11/06/18 - Creation
#
# REVISION
# 20200330 - $Revision: 2.0.2.1 $
# 20240603 - $Revision: 2.0.2.1 $
#
#│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│
. /vagrant/config/setup.env
Expand Down
4 changes: 2 additions & 2 deletions OracleDG/OL7/scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# LICENSE UPL 1.0
#
# Copyright (c) 1982-2020 Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 1982-2024 Oracle and/or its affiliates. All rights reserved.
#
# FILE NAME
# setup.sh
Expand All @@ -22,7 +22,7 @@
# rcitton 11/06/18 - Creation
#
# REVISION
# 20200330 - $Revision: 2.0.2.1 $
# 20240603 - $Revision: 2.0.2.1 $
#
#│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│

Expand Down
Loading