├── .github └── ISSUE_TEMPLATE │ ├── config.yml │ └── issue-report.md ├── .gitignore ├── CODEOWNERS ├── CONTRIBUTING.md ├── ContainerRegistry ├── .env ├── .gitattributes ├── .gitignore ├── README.md ├── Vagrantfile └── scripts │ ├── kubeadm-setup-registry.sh │ ├── provision-cr.sh │ └── provision.sh ├── ContainerTools ├── README.md ├── Vagrantfile └── scripts │ └── install.sh ├── DockerEngine ├── README.md ├── Vagrantfile └── scripts │ └── install.sh ├── LAMP ├── README.md ├── Vagrantfile └── scripts │ ├── install.sh │ └── lamp.sh ├── LICENSE.txt ├── OCNE ├── .env ├── .gitattributes ├── .gitignore ├── README.md ├── Vagrantfile └── scripts │ └── provision.sh ├── Ocr-Yum-Mirror ├── README.md ├── Vagrantfile └── scripts │ ├── install.sh │ ├── ocr-mirror.sh │ └── yum-mirror.sh ├── OracleAPEX ├── .gitattributes ├── .gitignore ├── README.md ├── Vagrantfile ├── ora-response │ └── oracle-xe-18c.conf.tmpl └── scripts │ ├── apex.sh │ ├── database.sh │ ├── install.sh │ └── ords.sh ├── OracleDG ├── .gitattributes ├── .gitignore ├── OL7 │ ├── ORCL_software │ │ └── put_Oracle-software_here.txt │ ├── README.md │ ├── Vagrantfile │ ├── config │ │ └── vagrant.yml │ ├── images │ │ └── OracleDG.png │ ├── scripts │ │ ├── 01_install_os_packages.sh │ │ ├── 02_setup_u01.sh │ │ ├── 03_setup_oradata_disks.sh │ │ ├── 04_setup_hosts.sh │ │ ├── 05_setup_users.sh │ │ ├── 06_do_RDBMS_software_installation.sh │ │ ├── 07_setup_OracleNet.sh │ │ ├── 08_setup_autostart.sh │ │ ├── primary_DB_setup.sh │ │ ├── setup.sh │ │ └── standby_DB_setup.sh │ └── userscripts │ │ └── put_custom_scripts_here.txt ├── OL8 │ ├── ORCL_software │ │ └── put_Oracle-software_here.txt │ ├── README.md │ ├── Vagrantfile │ ├── config │ │ └── vagrant.yml │ ├── images │ │ └── OracleDG.png │ ├── scripts │ │ ├── 01_install_os_packages.sh │ │ ├── 02_setup_u01.sh │ │ ├── 03_setup_oradata_disks.sh │ │ ├── 04_setup_hosts.sh │ │ ├── 05_setup_users.sh │ │ ├── 06_do_RDBMS_software_installation.sh │ │ ├── 07_setup_OracleNet.sh │ │ ├── 08_setup_autostart.sh │ │ ├── primary_DB_setup.sh │ │ ├── setup.sh │ │ └── standby_DB_setup.sh │ └── userscripts │ │ └── put_custom_scripts_here.txt ├── OL9 │ ├── ORCL_software │ │ └── put_Oracle-software_here.txt │ ├── README.md │ ├── Vagrantfile │ ├── config │ │ └── vagrant.yml │ ├── images │ │ └── OracleDG.png │ ├── scripts │ │ ├── 01_install_os_packages.sh │ │ ├── 02_setup_u01.sh │ │ ├── 03_setup_oradata_disks.sh │ │ ├── 04_setup_hosts.sh │ │ ├── 05_setup_users.sh │ │ ├── 06_do_RDBMS_software_installation.sh │ │ ├── 07_setup_OracleNet.sh │ │ ├── 08_setup_autostart.sh │ │ ├── primary_DB_setup.sh │ │ ├── setup.sh │ │ └── standby_DB_setup.sh │ └── userscripts │ │ └── put_custom_scripts_here.txt └── README.md ├── OracleDatabase ├── 11.2.0.2 │ ├── .env │ ├── .gitattributes │ ├── .gitignore │ ├── README.md │ ├── Vagrantfile │ ├── db_installer.sha256 │ ├── ora-response │ │ └── xe.rsp.tmpl │ ├── scripts │ │ ├── install.sh │ │ └── setPassword.sh │ └── userscripts │ │ ├── .gitignore │ │ └── put_custom_scripts_here.txt ├── 12.1.0.2 │ ├── .env │ ├── .gitattributes │ ├── .gitignore │ ├── README.md │ ├── Vagrantfile │ ├── db_installer-EE.sha256 │ ├── db_installer-SE2.sha256 │ ├── ora-response │ │ ├── db_install.rsp.tmpl │ │ └── dbca.rsp.tmpl │ ├── scripts │ │ ├── install.sh │ │ ├── oracle-rdbms.service │ │ └── setPassword.sh │ └── userscripts │ │ ├── .gitignore │ │ └── put_custom_scripts_here.txt ├── 12.2.0.1 │ ├── .env │ ├── .gitattributes │ ├── .gitignore │ ├── README.md │ ├── Vagrantfile │ ├── db_installer.sha256 │ ├── ora-response │ │ ├── db_install.rsp.tmpl │ │ └── dbca.rsp.tmpl │ ├── scripts │ │ ├── install.sh │ │ ├── oracle-rdbms.service │ │ └── setPassword.sh │ └── userscripts │ │ ├── .gitignore │ │ └── put_custom_scripts_here.txt ├── 18.3.0 │ ├── .env │ ├── .gitattributes │ ├── .gitignore │ ├── README.md │ ├── Vagrantfile │ ├── db_installer.sha256 │ ├── ora-response │ │ ├── db_install.rsp.tmpl │ │ └── dbca.rsp.tmpl │ ├── scripts │ │ ├── install.sh │ │ ├── oracle-rdbms.service │ │ └── setPassword.sh │ └── userscripts │ │ ├── .gitignore │ │ └── put_custom_scripts_here.txt ├── 18.4.0-XE │ ├── .env │ ├── .gitattributes │ ├── .gitignore │ ├── README.md │ ├── Vagrantfile │ ├── db_installer.sha256 │ ├── ora-response │ │ └── oracle-xe-18c.conf.tmpl │ ├── scripts │ │ ├── install.sh │ │ └── setPassword.sh │ └── userscripts │ │ ├── .gitignore │ │ └── put_custom_scripts_here.txt ├── 19.3.0 │ ├── .env │ ├── .gitattributes │ ├── .gitignore │ ├── README.md │ ├── Vagrantfile │ ├── db_installer.sha256 │ ├── ora-response │ │ ├── db_install.rsp.tmpl │ │ └── dbca.rsp.tmpl │ ├── scripts │ │ ├── install.sh │ │ ├── oracle-rdbms.service │ │ └── setPassword.sh │ └── userscripts │ │ ├── .gitignore │ │ └── put_custom_scripts_here.txt ├── 21.3.0-XE │ ├── .env │ ├── .gitattributes │ ├── .gitignore │ ├── README.md │ ├── Vagrantfile │ ├── db_installer.sha256 │ ├── ora-response │ │ └── oracle-xe-21c.conf.tmpl │ ├── scripts │ │ ├── install.sh │ │ └── setPassword.sh │ └── userscripts │ │ ├── .gitignore │ │ └── put_custom_scripts_here.txt ├── 21.3.0 │ ├── .env │ ├── .gitattributes │ ├── .gitignore │ ├── README.md │ ├── Vagrantfile │ ├── db_installer.sha256 │ ├── ora-response │ │ ├── db_install.rsp.tmpl │ │ └── dbca.rsp.tmpl │ ├── scripts │ │ ├── install.sh │ │ ├── oracle-rdbms.service │ │ └── setPassword.sh │ └── userscripts │ │ ├── .gitignore │ │ └── put_custom_scripts_here.txt ├── 23.3.0-Free │ ├── .env │ ├── .gitattributes │ ├── .gitignore │ ├── README.md │ ├── Vagrantfile │ ├── db_installer.sha256 │ ├── ora-response │ │ └── oracle-free-23c.conf.tmpl │ ├── scripts │ │ ├── install.sh │ │ └── setPassword.sh │ └── userscripts │ │ ├── .gitignore │ │ └── put_custom_scripts_here.txt ├── 23.7.0-Free │ ├── .env │ ├── .gitattributes │ ├── .gitignore │ ├── README.md │ ├── Vagrantfile │ ├── db_installer.sha256 │ ├── ora-response │ │ └── oracle-free-23ai.conf.tmpl │ ├── scripts │ │ ├── install.sh │ │ └── setPassword.sh │ └── userscripts │ │ ├── .gitignore │ │ └── put_custom_scripts_here.txt └── README.md ├── OracleFPP ├── .gitattributes ├── .gitignore ├── OL7 │ ├── ORCL_software │ │ └── put_Oracle-software_here.txt │ ├── README.md │ ├── Vagrantfile │ ├── config │ │ └── vagrant.yml │ ├── images │ │ └── OracleFPP.png │ ├── scripts │ │ ├── 01_setup_u01.sh │ │ ├── 02_install_os_packages.sh │ │ ├── 03_setup_hosts.sh │ │ ├── 04_setup_chrony.sh │ │ ├── 05_setup_users.sh │ │ ├── 06_setup_shared_disks.sh │ │ ├── 07_setup_user_equ.expect │ │ ├── 08_asmfd_label_disk.sh │ │ ├── 08_asmlib_label_disk.sh │ │ ├── 10_gi_setup.sh │ │ ├── 12_Setup_FPP.sh │ │ ├── 14_Setup_GIMR.sh │ │ └── setup.sh │ └── userscripts │ │ └── put_custom_scripts_here.txt ├── OL8 │ ├── ORCL_software │ │ └── put_Oracle-software_here.txt │ ├── README.md │ ├── Vagrantfile │ ├── config │ │ └── vagrant.yml │ ├── images │ │ └── OracleFPP.png │ ├── scripts │ │ ├── 01_install_os_packages.sh │ │ ├── 02_setup_u01.sh │ │ ├── 03_setup_hosts.sh │ │ ├── 04_setup_chrony.sh │ │ ├── 05_setup_users.sh │ │ ├── 06_setup_shared_disks.sh │ │ ├── 07_setup_user_equ.expect │ │ ├── 08_asmfd_label_disk.sh │ │ ├── 08_asmlib_label_disk.sh │ │ ├── 10_gi_setup.sh │ │ ├── 12_Setup_FPP.sh │ │ ├── 14_Setup_GIMR.sh │ │ └── setup.sh │ └── userscripts │ │ └── put_custom_scripts_here.txt ├── OL9 │ ├── ORCL_software │ │ └── put_Oracle-software_here.txt │ ├── README.md │ ├── Vagrantfile │ ├── config │ │ └── vagrant.yml │ ├── images │ │ └── OracleFPP.png │ ├── scripts │ │ ├── 01_install_os_packages.sh │ │ ├── 02_setup_u01.sh │ │ ├── 03_setup_hosts.sh │ │ ├── 04_setup_chrony.sh │ │ ├── 05_setup_users.sh │ │ ├── 06_setup_shared_disks.sh │ │ ├── 07_setup_user_equ.expect │ │ ├── 08_asmfd_label_disk.sh │ │ ├── 08_asmlib_label_disk.sh │ │ ├── 10_gi_setup.sh │ │ ├── 12_Setup_FPP.sh │ │ ├── 14_Setup_GIMR.sh │ │ └── setup.sh │ └── userscripts │ │ └── put_custom_scripts_here.txt └── README.md ├── OracleGDD ├── .gitattributes ├── .gitignore ├── OL8 │ ├── README.md │ ├── Vagrantfile │ ├── config │ │ └── vagrant.yml │ ├── images │ │ └── OracleGDD.png │ ├── scripts │ │ ├── 01_install_os_packages.sh │ │ ├── 02_setup_storage_container.sh │ │ ├── 03_setup_oradata_disks.sh │ │ ├── 04_setup_hosts.sh │ │ ├── 05_setup_GDD.sh │ │ ├── podman-compose-prerequisites-free.sh │ │ ├── podman-compose.yaml │ │ ├── set-file-context.sh │ │ └── setup.sh │ └── userscripts │ │ └── put_custom_scripts_here.txt ├── OL9 │ ├── README.md │ ├── Vagrantfile │ ├── config │ │ └── vagrant.yml │ ├── images │ │ └── OracleGDD.png │ ├── scripts │ │ ├── 01_install_os_packages.sh │ │ ├── 02_setup_storage_container.sh │ │ ├── 03_setup_oradata_disks.sh │ │ ├── 04_setup_hosts.sh │ │ ├── 05_setup_GDD.sh │ │ ├── podman-compose-prerequisites-free.sh │ │ ├── podman-compose.yaml │ │ ├── set-file-context.sh │ │ └── setup.sh │ └── userscripts │ │ └── put_custom_scripts_here.txt └── README.md ├── OracleGoldenGate ├── 12.2.0.1 │ ├── .env │ ├── .gitignore │ ├── README.md │ ├── Vagrantfile │ ├── ora-response │ │ ├── db_install.rsp.tmpl │ │ ├── dbca.rsp.tmpl │ │ ├── netca.rsp │ │ └── ogg_install.rsp.tmpl │ ├── scripts │ │ ├── install.sh │ │ ├── services │ │ │ ├── kafka.service │ │ │ ├── oracle-rdbms.service │ │ │ └── zookeeper.service │ │ └── setPassword.sh │ └── userscripts │ │ ├── .gitignore │ │ └── put_custom_scripts_here.txt └── 19.3.0 │ ├── .env │ ├── README.md │ ├── Vagrantfile │ ├── ora-response │ ├── db_install.rsp.tmpl │ ├── dbca.rsp.tmpl │ └── ogg_install.rsp.tmpl │ ├── scripts │ ├── install.sh │ ├── services │ │ ├── kafka.service │ │ ├── oracle-rdbms.service │ │ └── zookeeper.service │ └── setPassword.sh │ └── userscripts │ ├── .gitignore │ └── put_custom_scripts_here.txt ├── OracleLinux ├── 6 │ ├── README.md │ ├── Vagrantfile │ └── scripts │ │ └── install.sh ├── 7 │ ├── .env │ ├── .gitattributes │ ├── .gitignore │ ├── README.md │ ├── Vagrantfile │ └── scripts │ │ ├── container-runtime.sh │ │ ├── install.sh │ │ └── lamp.sh ├── 8 │ ├── .env │ ├── .gitattributes │ ├── .gitignore │ ├── README.md │ ├── Vagrantfile │ └── scripts │ │ ├── container-tools.sh │ │ └── install.sh ├── 9 │ ├── .env │ ├── .gitattributes │ ├── .gitignore │ ├── README.md │ ├── Vagrantfile │ └── scripts │ │ ├── container-tools.sh │ │ └── install.sh ├── README.md └── preview │ └── README.md ├── OracleRAC ├── .gitattributes ├── .gitignore ├── OL7 │ ├── ORCL_software │ │ └── put_Oracle-software_here.txt │ ├── README.md │ ├── Vagrantfile │ ├── config │ │ └── vagrant.yml │ ├── images │ │ └── OracleRAC.png │ ├── scripts │ │ ├── 01_setup_u01.sh │ │ ├── 02_install_os_packages.sh │ │ ├── 03_setup_hosts.sh │ │ ├── 04_setup_chrony.sh │ │ ├── 05_setup_users.sh │ │ ├── 06_setup_shared_disks.sh │ │ ├── 07_setup_user_equ.expect │ │ ├── 08_asmfd_label_disk.sh │ │ ├── 08_asmlib_label_disk.sh │ │ ├── 10_gi_setup.sh │ │ ├── 12_Make_ASMFD_RECODG.sh │ │ ├── 12_Make_ASMLib_RECODG.sh │ │ ├── 12_Make_RECODG.sh │ │ ├── 14_create_database.sh │ │ ├── 15_Check_database.sh │ │ └── setup.sh │ └── userscripts │ │ └── put_custom_scripts_here.txt ├── OL8 │ ├── ORCL_software │ │ └── put_Oracle-software_here.txt │ ├── README.md │ ├── Vagrantfile │ ├── config │ │ └── vagrant.yml │ ├── images │ │ └── OracleRAC.png │ ├── scripts │ │ ├── 01_install_os_packages.sh │ │ ├── 02_setup_u01.sh │ │ ├── 03_setup_hosts.sh │ │ ├── 04_setup_chrony.sh │ │ ├── 05_setup_users.sh │ │ ├── 06_setup_shared_disks.sh │ │ ├── 07_setup_user_equ.expect │ │ ├── 08_asmfd_label_disk.sh │ │ ├── 08_asmlib_label_disk.sh │ │ ├── 09_gi_installation.sh │ │ ├── 10_gi_setup.sh │ │ ├── 11_gi_config.sh │ │ ├── 12_Make_ASMFD_RECODG.sh │ │ ├── 12_Make_ASMLib_RECODG.sh │ │ ├── 12_Make_RECODG.sh │ │ ├── 13_RDBMS_software_installation.sh │ │ ├── 14_create_database.sh │ │ ├── 15_Check_database.sh │ │ └── setup.sh │ └── userscripts │ │ └── put_custom_scripts_here.txt ├── OL9 │ ├── ORCL_software │ │ └── put_Oracle-software_here.txt │ ├── README.md │ ├── Vagrantfile │ ├── config │ │ └── vagrant.yml │ ├── images │ │ └── OracleRAC.png │ ├── scripts │ │ ├── 01_install_os_packages.sh │ │ ├── 02_setup_u01.sh │ │ ├── 03_setup_hosts.sh │ │ ├── 04_setup_chrony.sh │ │ ├── 05_setup_users.sh │ │ ├── 06_setup_shared_disks.sh │ │ ├── 07_setup_user_equ.expect │ │ ├── 08_asmfd_label_disk.sh │ │ ├── 08_asmlib_label_disk.sh │ │ ├── 09_gi_installation.sh │ │ ├── 10_gi_setup.sh │ │ ├── 11_gi_config.sh │ │ ├── 12_Make_ASMFD_RECODG.sh │ │ ├── 12_Make_ASMLib_RECODG.sh │ │ ├── 12_Make_RECODG.sh │ │ ├── 13_RDBMS_software_installation.sh │ │ ├── 14_create_database.sh │ │ ├── 15_Check_database.sh │ │ └── setup.sh │ └── userscripts │ │ └── put_custom_scripts_here.txt └── README.md ├── README.md ├── SECURITY.md └── THIRD_PARTY_LICENSES.txt /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | blank_issues_enabled: false 2 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/issue-report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Issue report 3 | about: Create an issue to help us improve 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the issue** 11 | 12 | A clear and concise description of what the issue is. 13 | Explain what commands you ran, what you expected to happen and what actually happened. 14 | 15 | **Environment (please complete the following information):** 16 | 17 | - Host OS: [e.g. Oracle Linux 8, macOS 10.14.6, Windows 10 Pro, ...] 18 | - Kernel version (for Linux host): [run `uname -a`] 19 | - Vagrant version: [e.g. 2.2.9] 20 | - Vagrant provider: 21 | - For VirtualBox: 22 | - VirtualBox version: [e.g. 6.1.8r137981 -- run `vboxmanage -v`] 23 | - For libvirt: 24 | - Vagrant-libvirt plugin version: [e.g. 0.1.2 -- run `vagrant plugin list`] 25 | - QEMU and libvirt version: 26 | If you have `virsh` installed run `virsh -c qemu:///system version --daemon` 27 | Alternatively query your package manager with e.g. 28 | `rpm -q qemu-kvm libvirt`, 29 | `dpkg -l qemu-kvm libvirt\* | grep ^ii`, ... 30 | - Vagrant project: [e.g. OLCNE, OracleDatabase/19.3.0, ...] 31 | 32 | **Additional information** 33 | 34 | Add any other information about the issue here (console log, ...). 35 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .vagrant/ 2 | database/ 3 | *.zip 4 | .DS_Store 5 | -------------------------------------------------------------------------------- /CODEOWNERS: -------------------------------------------------------------------------------- 1 | # The last matching pattern has the most precedence. 2 | * @gvenzl 3 | /ContainerTools/ @AmedeeBulle 4 | /OCNE/ @scoter-oracle 5 | /OracleDatabase/ @gvenzl 6 | /OracleLinux/ @scoter-oracle 7 | /OracleDG/ @rcitton 8 | /OracleRAC/ @rcitton 9 | /OracleFPP/ @rcitton 10 | /OracleGDD/ @rcitton 11 | -------------------------------------------------------------------------------- /ContainerRegistry/.env: -------------------------------------------------------------------------------- 1 | # Kubernetes cluster configuration file 2 | # 3 | # Requires vagrant-env plugin 4 | # 5 | # This file will be overwritten on updates, it is recommended to make changes 6 | # in .env.local 7 | 8 | # Registry IP on the private VirtualBox lan 9 | # REGISTRY_IP="192.168.99.253" 10 | 11 | # Bind registry port to host port 12 | # REGISTRY_BIND=5000 13 | 14 | # Memory for the VMs (Registry doesn't require much) 15 | # MEMORY=1024 16 | 17 | # Proxies (requires vagrant-proxy plugin) 18 | # http_proxy= 19 | # https_proxy= 20 | # no_proxy= 21 | -------------------------------------------------------------------------------- /ContainerRegistry/.gitattributes: -------------------------------------------------------------------------------- 1 | *.sh text eol=lf 2 | -------------------------------------------------------------------------------- /ContainerRegistry/.gitignore: -------------------------------------------------------------------------------- 1 | .env.local 2 | local 3 | -------------------------------------------------------------------------------- /ContainerRegistry/scripts/kubeadm-setup-registry.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # LICENSE UPL 1.0 4 | # 5 | # Copyright (c) 1982-2018 Oracle and/or its affiliates. All rights reserved. 6 | # 7 | # Since: June, 2018 8 | # Author: philippe.vanhaesendonck@oracle.com 9 | # Description: Clone latest Kubernetes containers 10 | # 11 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 12 | # 13 | 14 | Registry="container-registry.oracle.com" 15 | Repo="kubernetes" 16 | YumOpts="--disablerepo ol7_developer" 17 | 18 | # Parse arguments 19 | while [ $# -gt 0 ] 20 | do 21 | case "$1" in 22 | "--from") 23 | if [ $# -lt 2 ] 24 | then 25 | echo "$0: Missing parameter" 26 | exit 1 27 | fi 28 | Registry="$2" 29 | shift; shift 30 | ;; 31 | "--dev") 32 | # Developer release 33 | Repo="kubernetes_developer" 34 | YumOpts="" 35 | shift 36 | ;; 37 | *) 38 | echo "$0: Invalid parameter" 39 | exit 1 40 | ;; 41 | esac 42 | done 43 | 44 | echo "$0: Login to ${Registry}" 45 | docker login ${Registry} 46 | if [ $? -ne 0 ] 47 | then 48 | echo "$0: Authentication failure" 49 | exit 1 50 | fi 51 | 52 | echo "$0: Installing kubeadm" 53 | sudo yum install -y ${YumOpts} kubeadm 54 | 55 | echo "$0: Cloning Kubernetes containers" 56 | /bin/kubeadm-registry.sh --to localhost:5000/kubernetes --from ${Registry}/${Repo} 57 | 58 | echo "$0: Clone complete!" 59 | -------------------------------------------------------------------------------- /ContainerRegistry/scripts/provision-cr.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # LICENSE UPL 1.0 4 | # 5 | # Copyright (c) 1982-2018 Oracle and/or its affiliates. All rights reserved. 6 | # 7 | # Since: June, 2018 8 | # Author: philippe.vanhaesendonck@oracle.com 9 | # Description: Installs Docker Engine and runs a registry container 10 | # 11 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 12 | # 13 | 14 | echo "Run docker registry" 15 | docker run \ 16 | --detach \ 17 | --restart unless-stopped \ 18 | --name registry \ 19 | --publish 5000:5000 \ 20 | registry:2 21 | 22 | echo "Your Registry VM is ready to use!" 23 | -------------------------------------------------------------------------------- /ContainerRegistry/scripts/provision.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # LICENSE UPL 1.0 4 | # 5 | # Copyright (c) 2018, 2020 Oracle and/or its affiliates. 6 | # 7 | # Since: March, 2018 8 | # Author: philippe.vanhaesendonck@oracle.com 9 | # Description: Installs Docker Engine and runs a registry container 10 | # 11 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 12 | # 13 | 14 | echo "Installing and configuring Docker Engine" 15 | 16 | # Install Docker 17 | yum install -y docker-engine btrfs-progs 18 | 19 | # Create and mount a BTRFS partition for docker. 20 | docker-storage-config -f -s btrfs -d /dev/[sv]db 21 | 22 | # Add vagrant user to docker group 23 | usermod -a -G docker vagrant 24 | 25 | # Enable and start Docker 26 | systemctl enable docker 27 | systemctl start docker 28 | -------------------------------------------------------------------------------- /ContainerTools/README.md: -------------------------------------------------------------------------------- 1 | # Vagrantfile to set up Oracle Linux 8 with Container Tools 2 | A Vagrantfile that installs and configures the Container Tools module on Oracle Linux 8. 3 | 4 | This module provides the tools to use container runtimes. That is: mainly Podman, but also Buildah, Skopeo... 5 | 6 | __Note:__ This Vagrant project is deprecated. However, the same functionality is 7 | available as an extension to the OracleLinux/8 and OracleLinux/9 projects. For 8 | more information, see the Container Tools section of the Oracle Linux/8 9 | [README.md](../OracleLinux/8/README.md#container-tools) file or the Oracle 10 | Linux/9 [README.md](../OracleLinux/9/README.md#container-tools) file. 11 | 12 | ## Prerequisites 13 | 1. Install [Oracle VM VirtualBox](https://www.virtualbox.org/wiki/Downloads) 14 | 1. Install [Vagrant](https://vagrantup.com/) 15 | 16 | ## Getting started 17 | 1. Clone this repository `git clone https://github.com/oracle/vagrant-projects` 18 | 1. Change into the `vagrant-projects/ContainerTools` folder 19 | 1. Run `vagrant up; vagrant ssh` 20 | 1. Within the guest, run Podman commands, for example `podman run -it oraclelinux:7-slim` to run an Oracle Linux 7 container, or `podman run -ti oraclelinux:8-slim` to run an Oracle Linux 8 container 21 | 22 | ## Optional plugins 23 | When installed, this Vagrantfile will make use of the following third party Vagrant plugin: 24 | - [vagrant-proxyconf](https://github.com/tmatilai/vagrant-proxyconf): set 25 | proxies in the guest VMs if you need to access the Internet through proxy. See 26 | plugin documentation for the configuration. 27 | 28 | To install Vagrant plugins run: 29 | ``` 30 | vagrant plugin install ... 31 | ``` 32 | 33 | ## Feedback 34 | Please provide feedback of any kind via Github issues on this repository. 35 | -------------------------------------------------------------------------------- /ContainerTools/scripts/install.sh: -------------------------------------------------------------------------------- 1 | ../../OracleLinux/8/scripts/container-tools.sh -------------------------------------------------------------------------------- /DockerEngine/README.md: -------------------------------------------------------------------------------- 1 | # Vagrant project to set up Oracle Linux 7 with Docker engine 2 | 3 | A Vagrantfile that installs and configures Docker engine on Oracle Linux 7 with Btrfs as storage 4 | 5 | __Note:__ This Vagrant project is deprecated. However, the same functionality is 6 | available as an extension to the OracleLinux/7 project. For more information, 7 | see the [Oracle Container Runtime for Docker](../OracleLinux/7/README.md#oracle-container-runtime-for-docker) 8 | section of the OracleLinux/7 [README.md](../OracleLinux/7/README.md) file. 9 | 10 | ## Prerequisites 11 | 12 | Read the [prerequisites in the top level README](../README.md#prerequisites) to set up Vagrant with either VirtualBox or KVM 13 | 14 | ## Getting started 15 | 16 | 1. Clone this repository `git clone https://github.com/oracle/vagrant-projects` 17 | 2. Change into the `vagrant-projects/DockerEngine` directory 18 | 3. Run `vagrant up; vagrant ssh` 19 | 4. Within the guest, run Docker commands, for example `docker run -it oraclelinux:7-slim` to run an Oracle Linux 7 container, or `docker run -ti oraclelinux:8-slim` to run an Oracle Linux 8 container 20 | 21 | ## Optional plugins 22 | 23 | When installed, this Vagrantfile will make use of the following third party Vagrant plugin: 24 | 25 | - [vagrant-proxyconf](https://github.com/tmatilai/vagrant-proxyconf): set 26 | proxies in the guest VMs if you need to access the Internet through proxy. See 27 | plugin documentation for the configuration. 28 | 29 | To install Vagrant plugins run: 30 | 31 | ```shell 32 | vagrant plugin install ... 33 | ``` 34 | 35 | ## Feedback 36 | 37 | Please provide feedback of any kind via Github issues on this repository. 38 | -------------------------------------------------------------------------------- /DockerEngine/scripts/install.sh: -------------------------------------------------------------------------------- 1 | ../../OracleLinux/7/scripts/container-runtime.sh -------------------------------------------------------------------------------- /LAMP/scripts/install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # LICENSE UPL 1.0 4 | # 5 | # Copyright (c) 2018, 2020 Oracle and/or its affiliates. 6 | # 7 | # Since: January, 2018 8 | # Author: gerald.venzl@oracle.com 9 | # Description: Updates Oracle Linux to the latest version 10 | # 11 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 12 | # 13 | 14 | echo 'INSTALLER: Started up' 15 | 16 | # get up to date 17 | yum upgrade -y 18 | 19 | echo 'INSTALLER: System updated' 20 | 21 | # fix locale warning 22 | echo LANG=en_US.utf-8 >> /etc/environment 23 | echo LC_ALL=en_US.utf-8 >> /etc/environment 24 | 25 | echo 'INSTALLER: Locale set' 26 | -------------------------------------------------------------------------------- /LAMP/scripts/lamp.sh: -------------------------------------------------------------------------------- 1 | ../../OracleLinux/7/scripts/lamp.sh -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2020 Oracle and/or its affiliates. 2 | 3 | The Universal Permissive License (UPL), Version 1.0 4 | 5 | Subject to the condition set forth below, permission is hereby granted to any 6 | person obtaining a copy of this software, associated documentation and/or data 7 | (collectively the "Software"), free of charge and under any and all copyright 8 | rights in the Software, and any and all patent rights owned or freely 9 | licensable by each licensor hereunder covering either (i) the unmodified 10 | Software as contributed to or provided by such licensor, or (ii) the Larger 11 | Works (as defined below), to deal in both 12 | 13 | (a) the Software, and 14 | (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if 15 | one is included with the Software (each a "Larger Work" to which the Software 16 | is contributed by such licensors), 17 | 18 | without restriction, including without limitation the rights to copy, create 19 | derivative works of, display, perform, and distribute the Software and make, 20 | use, sell, offer for sale, import, export, have made, and have sold the 21 | Software and the Larger Work(s), and to sublicense the foregoing rights on 22 | either these or other terms. 23 | 24 | This license is subject to the following condition: 25 | The above copyright notice and either this complete permission notice or at 26 | a minimum a reference to the UPL must be included in all copies or 27 | substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 35 | SOFTWARE. 36 | -------------------------------------------------------------------------------- /OCNE/.gitattributes: -------------------------------------------------------------------------------- 1 | *.sh text eol=lf 2 | -------------------------------------------------------------------------------- /OCNE/.gitignore: -------------------------------------------------------------------------------- 1 | .env.local* 2 | admin.conf 3 | local 4 | id_rsa* 5 | known_hosts* 6 | *.swp 7 | heketi.json* 8 | topology-olcne.json* 9 | hyperconverged.yaml* 10 | ignore-systemd-session-slice.conf* 11 | -------------------------------------------------------------------------------- /Ocr-Yum-Mirror/scripts/install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # LICENSE UPL 1.0 4 | # 5 | # Copyright (c) 1982-2022 Oracle and/or its affiliates. All rights reserved. 6 | # 7 | # Since: August, 2022 8 | # Author: simon.coter@oracle.com 9 | # Description: Updates Oracle Linux to the latest version 10 | # 11 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 12 | # 13 | 14 | echo 'INSTALLER: Started up' 15 | 16 | # get up to date 17 | sudo dnf upgrade -y 18 | 19 | echo 'INSTALLER: System updated' 20 | 21 | echo 'INSTALLER: allow ssh access by password' 22 | sudo sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config 23 | sudo systemctl reload sshd.service 24 | 25 | # fix locale warning 26 | cat <> /etc/environment 37 | echo LC_ALL=en_US.utf-8 >> /etc/environment 38 | 39 | echo 'INSTALLER: Locale set' 40 | 41 | # Install Oracle Database prereq and openssl packages 42 | # (preinstall is pulled automatically with 18c XE rpm, but it 43 | # doesn't create /home/oracle unless it's installed separately) 44 | yum install -y oracle-database-preinstall-18c openssl 45 | 46 | echo 'INSTALLER: Oracle preinstall and openssl complete' 47 | -------------------------------------------------------------------------------- /OracleDG/.gitattributes: -------------------------------------------------------------------------------- 1 | *.sh text eol=lf 2 | -------------------------------------------------------------------------------- /OracleDG/.gitignore: -------------------------------------------------------------------------------- 1 | .git/ 2 | .vagrant/ 3 | .DS_Store 4 | CVS 5 | .vagrant 6 | .zip 7 | *.swp 8 | 9 | -------------------------------------------------------------------------------- /OracleDG/OL7/ORCL_software/put_Oracle-software_here.txt: -------------------------------------------------------------------------------- 1 | The expecting Oracle software is 2 | LINUX.X64__db_home.zip 3 | 4 | It will be visible inside the VM below this path: 5 | /vagrant/ORCL_software/ 6 | -------------------------------------------------------------------------------- /OracleDG/OL7/images/OracleDG.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/vagrant-projects/f6154929f907bf9247d9bad143b94a1caac7036e/OracleDG/OL7/images/OracleDG.png -------------------------------------------------------------------------------- /OracleDG/OL7/scripts/01_install_os_packages.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 3 | # 4 | # LICENSE UPL 1.0 5 | # 6 | # Copyright (c) 1982-2024 Oracle and/or its affiliates. All rights reserved. 7 | # 8 | # NAME 9 | # 01_install_os_packages.sh 10 | # 11 | # DESCRIPTION 12 | # Install and update OS packages 13 | # 14 | # NOTES 15 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 16 | # 17 | # AUTHOR 18 | # ruggero.citton@oracle.com 19 | # 20 | # MODIFIED (MM/DD/YY) 21 | # rcitton 03/30/20 - VBox libvirt & kvm support 22 | # rcitton 11/06/18 - Creation 23 | # 24 | # REVISION 25 | # 20240603 - $Revision: 2.0.2.1 $ 26 | # 27 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│ 28 | echo "-----------------------------------------------------------------" 29 | echo -e "${INFO}`date +%F' '%T`: Install base packages" 30 | echo "-----------------------------------------------------------------" 31 | yum install -y deltarpm tree unzip zip 32 | yum install -y oracle-database-preinstall-21c 33 | 34 | echo "-----------------------------------------------------------------" 35 | echo -e "${INFO}`date +%F' '%T`: Disabling firewalld" 36 | echo "-----------------------------------------------------------------" 37 | systemctl stop firewalld 38 | systemctl disable firewalld 39 | #---------------------------------------------------------- 40 | # EndOfFile 41 | #---------------------------------------------------------- 42 | 43 | -------------------------------------------------------------------------------- /OracleDG/OL7/scripts/02_setup_u01.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 3 | # 4 | # LICENSE UPL 1.0 5 | # 6 | # Copyright (c) 1982-2024 Oracle and/or its affiliates. All rights reserved. 7 | # 8 | # NAME 9 | # 02_setup_u01.sh 10 | # 11 | # DESCRIPTION 12 | # Setup for u01 13 | # 14 | # NOTES 15 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 16 | # 17 | # AUTHOR 18 | # ruggero.citton@oracle.com 19 | # 20 | # MODIFIED (MM/DD/YY) 21 | # rcitton 03/30/20 - VBox libvirt & kvm support 22 | # rcitton 11/06/18 - Creation 23 | # 24 | # REVISION 25 | # 20240603 - $Revision: 2.0.2.1 $ 26 | # 27 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│ 28 | echo "-----------------------------------------------------------------" 29 | echo -e "${INFO}`date +%F' '%T`: Setting-up /u01 disk" 30 | echo "-----------------------------------------------------------------" 31 | # Single GPT partition for the whole disk 32 | BOX_DISK_NUM=$1 33 | PROVIDER=$2 34 | 35 | if [ "${PROVIDER}" == "libvirt" ]; then 36 | DEVICE="vd" 37 | elif [ "${PROVIDER}" == "virtualbox" ]; then 38 | DEVICE="sd" 39 | else 40 | echo "Not supported provider: ${PROVIDER}" 41 | exit 1 42 | fi 43 | 44 | LETTER=`tr 0123456789 abcdefghij <<< $BOX_DISK_NUM` 45 | parted -s -a optimal /dev/${DEVICE}${LETTER} mklabel gpt -- mkpart primary 2048s 100% 46 | 47 | # LVM setup 48 | pvcreate /dev/${DEVICE}${LETTER}1 49 | vgcreate VolGroupU01 /dev/${DEVICE}${LETTER}1 50 | lvcreate -l 100%FREE -n LogVolU01 VolGroupU01 51 | 52 | # Make XFS 53 | mkfs.xfs -f /dev/VolGroupU01/LogVolU01 54 | 55 | # Set fstab 56 | UUID=`blkid -s UUID -o value /dev/VolGroupU01/LogVolU01` 57 | mkdir -p /u01 58 | cat >> /etc/fstab <_db_home.zip 3 | 4 | It will be visible inside the VM below this path: 5 | /vagrant/ORCL_software/ 6 | -------------------------------------------------------------------------------- /OracleDG/OL8/images/OracleDG.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/vagrant-projects/f6154929f907bf9247d9bad143b94a1caac7036e/OracleDG/OL8/images/OracleDG.png -------------------------------------------------------------------------------- /OracleDG/OL8/scripts/01_install_os_packages.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 3 | # 4 | # LICENSE UPL 1.0 5 | # 6 | # Copyright (c) 1982-2024 Oracle and/or its affiliates. All rights reserved. 7 | # 8 | # NAME 9 | # 01_install_os_packages.sh 10 | # 11 | # DESCRIPTION 12 | # Install and update OS packages 13 | # 14 | # NOTES 15 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 16 | # 17 | # AUTHOR 18 | # ruggero.citton@oracle.com 19 | # 20 | # MODIFIED (MM/DD/YY) 21 | # rcitton 03/30/20 - VBox libvirt & kvm support 22 | # rcitton 11/06/18 - Creation 23 | # 24 | # REVISION 25 | # 20240603 - $Revision: 2.0.2.1 $ 26 | # 27 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│ 28 | echo "-----------------------------------------------------------------" 29 | echo -e "${INFO}`date +%F' '%T`: Install base packages" 30 | echo "-----------------------------------------------------------------" 31 | dnf install -y dnf-utils parted openssl tree unzip zip 32 | dnf install -y oracle-database-preinstall-21c 33 | 34 | echo "-----------------------------------------------------------------" 35 | echo -e "${INFO}`date +%F' '%T`: Disabling firewalld" 36 | echo "-----------------------------------------------------------------" 37 | systemctl stop firewalld 38 | systemctl disable firewalld 39 | #---------------------------------------------------------- 40 | # EndOfFile 41 | #---------------------------------------------------------- 42 | 43 | -------------------------------------------------------------------------------- /OracleDG/OL8/scripts/02_setup_u01.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 3 | # 4 | # LICENSE UPL 1.0 5 | # 6 | # Copyright (c) 1982-2024 Oracle and/or its affiliates. All rights reserved. 7 | # 8 | # NAME 9 | # 02_setup_u01.sh 10 | # 11 | # DESCRIPTION 12 | # Setup for u01 13 | # 14 | # NOTES 15 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 16 | # 17 | # AUTHOR 18 | # ruggero.citton@oracle.com 19 | # 20 | # MODIFIED (MM/DD/YY) 21 | # rcitton 03/30/20 - VBox libvirt & kvm support 22 | # rcitton 11/06/18 - Creation 23 | # 24 | # REVISION 25 | # 20240603 - $Revision: 2.0.2.1 $ 26 | # 27 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│ 28 | echo "-----------------------------------------------------------------" 29 | echo -e "${INFO}`date +%F' '%T`: Setting-up /u01 disk" 30 | echo "-----------------------------------------------------------------" 31 | # Single GPT partition for the whole disk 32 | BOX_DISK_NUM=$1 33 | PROVIDER=$2 34 | 35 | if [ "${PROVIDER}" == "libvirt" ]; then 36 | DEVICE="vd" 37 | elif [ "${PROVIDER}" == "virtualbox" ]; then 38 | DEVICE="sd" 39 | else 40 | echo "Not supported provider: ${PROVIDER}" 41 | exit 1 42 | fi 43 | 44 | LETTER=`tr 0123456789 abcdefghij <<< $BOX_DISK_NUM` 45 | parted -s -a optimal /dev/${DEVICE}${LETTER} mklabel gpt -- mkpart primary 2048s 100% 46 | 47 | # LVM setup 48 | pvcreate /dev/${DEVICE}${LETTER}1 49 | vgcreate VolGroupU01 /dev/${DEVICE}${LETTER}1 50 | lvcreate -l 100%FREE -n LogVolU01 VolGroupU01 51 | 52 | # Make XFS 53 | mkfs.xfs -f /dev/VolGroupU01/LogVolU01 54 | 55 | # Set fstab 56 | UUID=`blkid -s UUID -o value /dev/VolGroupU01/LogVolU01` 57 | mkdir -p /u01 58 | cat >> /etc/fstab <_db_home.zip 3 | 4 | It will be visible inside the VM below this path: 5 | /vagrant/ORCL_software/ 6 | -------------------------------------------------------------------------------- /OracleDG/OL9/images/OracleDG.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/vagrant-projects/f6154929f907bf9247d9bad143b94a1caac7036e/OracleDG/OL9/images/OracleDG.png -------------------------------------------------------------------------------- /OracleDG/OL9/scripts/01_install_os_packages.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 3 | # 4 | # LICENSE UPL 1.0 5 | # 6 | # Copyright (c) 1982-2024 Oracle and/or its affiliates. All rights reserved. 7 | # 8 | # NAME 9 | # 01_install_os_packages.sh 10 | # 11 | # DESCRIPTION 12 | # Install and update OS packages 13 | # 14 | # NOTES 15 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 16 | # 17 | # AUTHOR 18 | # ruggero.citton@oracle.com 19 | # 20 | # MODIFIED (MM/DD/YY) 21 | # rcitton 03/30/20 - VBox libvirt & kvm support 22 | # rcitton 11/06/18 - Creation 23 | # 24 | # REVISION 25 | # 20240603 - $Revision: 2.0.2.1 $ 26 | # 27 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│ 28 | echo "-----------------------------------------------------------------" 29 | echo -e "${INFO}`date +%F' '%T`: Install base packages" 30 | echo "-----------------------------------------------------------------" 31 | dnf install -y dnf-utils parted openssl tree unzip zip 32 | dnf install -y oracle-database-preinstall-23ai 33 | 34 | echo "-----------------------------------------------------------------" 35 | echo -e "${INFO}`date +%F' '%T`: Disabling firewalld" 36 | echo "-----------------------------------------------------------------" 37 | systemctl stop firewalld 38 | systemctl disable firewalld 39 | #---------------------------------------------------------- 40 | # EndOfFile 41 | #---------------------------------------------------------- 42 | 43 | -------------------------------------------------------------------------------- /OracleDG/OL9/scripts/02_setup_u01.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 3 | # 4 | # LICENSE UPL 1.0 5 | # 6 | # Copyright (c) 1982-2024 Oracle and/or its affiliates. All rights reserved. 7 | # 8 | # NAME 9 | # 02_setup_u01.sh 10 | # 11 | # DESCRIPTION 12 | # Setup for u01 13 | # 14 | # NOTES 15 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 16 | # 17 | # AUTHOR 18 | # ruggero.citton@oracle.com 19 | # 20 | # MODIFIED (MM/DD/YY) 21 | # rcitton 03/30/20 - VBox libvirt & kvm support 22 | # rcitton 11/06/18 - Creation 23 | # 24 | # REVISION 25 | # 20240603 - $Revision: 2.0.2.1 $ 26 | # 27 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│ 28 | echo "-----------------------------------------------------------------" 29 | echo -e "${INFO}`date +%F' '%T`: Setting-up /u01 disk" 30 | echo "-----------------------------------------------------------------" 31 | # Single GPT partition for the whole disk 32 | BOX_DISK_NUM=$1 33 | PROVIDER=$2 34 | 35 | if [ "${PROVIDER}" == "libvirt" ]; then 36 | DEVICE="vd" 37 | elif [ "${PROVIDER}" == "virtualbox" ]; then 38 | DEVICE="sd" 39 | else 40 | echo "Not supported provider: ${PROVIDER}" 41 | exit 1 42 | fi 43 | 44 | LETTER=`tr 0123456789 abcdefghij <<< $BOX_DISK_NUM` 45 | parted -s -a optimal /dev/${DEVICE}${LETTER} mklabel gpt -- mkpart primary 2048s 100% 46 | 47 | # LVM setup 48 | pvcreate /dev/${DEVICE}${LETTER}1 49 | vgcreate VolGroupU01 /dev/${DEVICE}${LETTER}1 50 | lvcreate -l 100%FREE -n LogVolU01 VolGroupU01 51 | 52 | # Make XFS 53 | mkfs.xfs -f /dev/VolGroupU01/LogVolU01 54 | 55 | # Set fstab 56 | UUID=`blkid -s UUID -o value /dev/VolGroupU01/LogVolU01` 57 | mkdir -p /u01 58 | cat >> /etc/fstab < 10 | statement in the script. 11 | 12 | To run scripts in a specific order, prefix the file names with a 13 | number, e.g., 01_shellscript.sh, 02_tablespaces.sql, 14 | 03_shellscript2.sh, etc. 15 | -------------------------------------------------------------------------------- /OracleDatabase/12.2.0.1/.env: -------------------------------------------------------------------------------- 1 | # Oracle Database 12.2.0.1 configuration file 2 | # 3 | # Requires vagrant-env plugin 4 | # 5 | # This file will be overwritten on updates, so it is recommended to make 6 | # a copy of this file called .env.local, then make changes in .env.local. 7 | # 8 | # To change a parameter, uncomment it and set it to the desired value. 9 | # All commented parameters will retain their default values. 10 | 11 | # VM name 12 | # VM_NAME='oracle-12201-vagrant' 13 | 14 | # Memory for the VM (in MB, 2048 MB = 2 GB) 15 | # VM_MEMORY=2048 16 | 17 | # VM time zone 18 | # If not specified, will be set to match host time zone (if possible) 19 | # Can use time zone name (e.g., 'America/Los_Angeles') 20 | # or an offset from GMT (e.g., 'Etc/GMT-2') 21 | # VM_SYSTEM_TIMEZONE= 22 | 23 | # Oracle base directory 24 | # VM_ORACLE_BASE='/opt/oracle' 25 | 26 | # Oracle home directory 27 | # VM_ORACLE_HOME='/opt/oracle/product/12.2.0.1/dbhome_1' 28 | 29 | # Oracle SID 30 | # VM_ORACLE_SID='ORCLCDB' 31 | 32 | # PDB name 33 | # VM_ORACLE_PDB='ORCLPDB1' 34 | 35 | # Database character set 36 | # VM_ORACLE_CHARACTERSET='AL32UTF8' 37 | 38 | # Oracle Database edition 39 | # Valid values are 'EE' for Enterprise Edition or 'SE2' for Standard Edition 2 40 | # VM_ORACLE_EDITION='EE' 41 | 42 | # Listener port 43 | # VM_LISTENER_PORT=1521 44 | 45 | # EM Express port 46 | # VM_EM_EXPRESS_PORT=5500 47 | 48 | # Oracle Database password for SYS, SYSTEM and PDBADMIN accounts 49 | # If left blank, the password will be generated automatically 50 | # VM_ORACLE_PWD= 51 | -------------------------------------------------------------------------------- /OracleDatabase/12.2.0.1/.gitattributes: -------------------------------------------------------------------------------- 1 | *.sh text eol=lf 2 | *.sha256 text eol=lf 3 | -------------------------------------------------------------------------------- /OracleDatabase/12.2.0.1/.gitignore: -------------------------------------------------------------------------------- 1 | .env.local* 2 | -------------------------------------------------------------------------------- /OracleDatabase/12.2.0.1/db_installer.sha256: -------------------------------------------------------------------------------- 1 | 96ed97d21f15c1ac0cce3749da6c3dac7059bb60672d76b008103fc754d22dde */vagrant/linuxx64_12201_database.zip 2 | -------------------------------------------------------------------------------- /OracleDatabase/12.2.0.1/ora-response/db_install.rsp.tmpl: -------------------------------------------------------------------------------- 1 | oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v12.2.0 2 | oracle.install.option=INSTALL_DB_SWONLY 3 | UNIX_GROUP_NAME=dba 4 | INVENTORY_LOCATION=###ORACLE_BASE###/oraInventory 5 | ORACLE_BASE=###ORACLE_BASE### 6 | ORACLE_HOME=###ORACLE_HOME### 7 | oracle.install.db.InstallEdition=###ORACLE_EDITION### 8 | oracle.install.db.OSDBA_GROUP=dba 9 | oracle.install.db.OSBACKUPDBA_GROUP=dba 10 | oracle.install.db.OSDGDBA_GROUP=dba 11 | oracle.install.db.OSKMDBA_GROUP=dba 12 | oracle.install.db.OSRACDBA_GROUP=dba 13 | SECURITY_UPDATES_VIA_MYORACLESUPPORT=false 14 | DECLINE_SECURITY_UPDATES=true 15 | -------------------------------------------------------------------------------- /OracleDatabase/12.2.0.1/ora-response/dbca.rsp.tmpl: -------------------------------------------------------------------------------- 1 | responseFileVersion=/oracle/assistants/rspfmt_dbca_response_schema_v12.2.0 2 | gdbName=###ORACLE_SID### 3 | sid=###ORACLE_SID### 4 | databaseConfigType=SI 5 | createAsContainerDatabase=true 6 | numberOfPDBs=1 7 | pdbName=###ORACLE_PDB### 8 | pdbAdminPassword=###ORACLE_PWD### 9 | templateName=General_Purpose.dbc 10 | sysPassword=###ORACLE_PWD### 11 | systemPassword=###ORACLE_PWD### 12 | emConfiguration=DBEXPRESS 13 | emExpressPort=###EM_EXPRESS_PORT### 14 | dbsnmpPassword=###ORACLE_PWD### 15 | storageType=FS 16 | characterSet=###ORACLE_CHARACTERSET### 17 | nationalCharacterSet=AL16UTF16 18 | automaticMemoryManagement=FALSE 19 | totalMemory=1536 20 | # Some init.ora parameters - disable auditing to save space, enable FS optimizations 21 | initParams=audit_trail=none,audit_sys_operations=false,filesystemio_options=setall,commit_logging=batch,commit_wait=nowait 22 | 23 | -------------------------------------------------------------------------------- /OracleDatabase/12.2.0.1/scripts/oracle-rdbms.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Oracle Database(s) and Listener 3 | Requires=network.target 4 | 5 | [Service] 6 | Type=forking 7 | Restart=no 8 | ExecStart=###ORACLE_HOME###/bin/dbstart ###ORACLE_HOME### 9 | ExecStop=###ORACLE_HOME###/bin/dbshut ###ORACLE_HOME### 10 | User=oracle 11 | 12 | [Install] 13 | WantedBy=multi-user.target 14 | -------------------------------------------------------------------------------- /OracleDatabase/12.2.0.1/scripts/setPassword.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # LICENSE UPL 1.0 3 | # 4 | # Copyright (c) 1982-2016 Oracle and/or its affiliates. All rights reserved. 5 | # 6 | # Since: November, 2016 7 | # Author: gerald.venzl@oracle.com 8 | # Description: Sets the password for sys, system and pdb_admin 9 | # 10 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 11 | # 12 | 13 | ORACLE_PWD=$1 14 | ORACLE_SID="`grep $ORACLE_HOME /etc/oratab | cut -d: -f1`" 15 | ORACLE_PDB="`ls -dl $ORACLE_BASE/oradata/$ORACLE_SID/*/ | grep -v pdbseed | awk '{print $9}' | cut -d/ -f6`" 16 | ORAENV_ASK=NO 17 | source oraenv 18 | 19 | sqlplus / as sysdba << EOF 20 | ALTER USER SYS IDENTIFIED BY "$ORACLE_PWD"; 21 | ALTER USER SYSTEM IDENTIFIED BY "$ORACLE_PWD"; 22 | ALTER SESSION SET CONTAINER=$ORACLE_PDB; 23 | ALTER USER PDBADMIN IDENTIFIED BY "$ORACLE_PWD"; 24 | exit; 25 | EOF 26 | 27 | -------------------------------------------------------------------------------- /OracleDatabase/12.2.0.1/userscripts/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | !put_custom_scripts_here.txt 4 | -------------------------------------------------------------------------------- /OracleDatabase/12.2.0.1/userscripts/put_custom_scripts_here.txt: -------------------------------------------------------------------------------- 1 | Any shell (.sh) or SQL (.sql) scripts you put in this directory 2 | will be executed by the installer after the database is set up 3 | and started. Only shell and SQL scripts will be executed; all 4 | other files will be ignored. These scripts are completely 5 | optional. 6 | 7 | Shell scripts will be executed as root. SQL scripts will be 8 | executed as SYS. SQL scripts will run against the CDB, not the 9 | PDB, unless you include an ALTER SESSION SET CONTAINER = 10 | statement in the script. 11 | 12 | To run scripts in a specific order, prefix the file names with a 13 | number, e.g., 01_shellscript.sh, 02_tablespaces.sql, 14 | 03_shellscript2.sh, etc. 15 | -------------------------------------------------------------------------------- /OracleDatabase/18.3.0/.env: -------------------------------------------------------------------------------- 1 | # Oracle Database 18.3.0 configuration file 2 | # 3 | # Requires vagrant-env plugin 4 | # 5 | # This file will be overwritten on updates, so it is recommended to make 6 | # a copy of this file called .env.local, then make changes in .env.local. 7 | # 8 | # To change a parameter, uncomment it and set it to the desired value. 9 | # All commented parameters will retain their default values. 10 | 11 | # VM name 12 | # VM_NAME='oracle-18c-vagrant' 13 | 14 | # Memory for the VM (in MB, 2300 MB is ~2.25 GB) 15 | # VM_MEMORY=2300 16 | 17 | # VM time zone 18 | # If not specified, will be set to match host time zone (if possible) 19 | # Can use time zone name (e.g., 'America/Los_Angeles') 20 | # or an offset from GMT (e.g., 'Etc/GMT-2') 21 | # VM_SYSTEM_TIMEZONE= 22 | 23 | # Oracle base directory 24 | # VM_ORACLE_BASE='/opt/oracle' 25 | 26 | # Oracle home directory 27 | # VM_ORACLE_HOME='/opt/oracle/product/18c/dbhome_1' 28 | 29 | # Oracle SID 30 | # VM_ORACLE_SID='ORCLCDB' 31 | 32 | # PDB name 33 | # VM_ORACLE_PDB='ORCLPDB1' 34 | 35 | # Database character set 36 | # VM_ORACLE_CHARACTERSET='AL32UTF8' 37 | 38 | # Oracle Database edition 39 | # Valid values are 'EE' for Enterprise Edition or 'SE2' for Standard Edition 2 40 | # VM_ORACLE_EDITION='EE' 41 | 42 | # Listener port 43 | # VM_LISTENER_PORT=1521 44 | 45 | # EM Express port 46 | # VM_EM_EXPRESS_PORT=5500 47 | 48 | # Oracle Database password for SYS, SYSTEM and PDBADMIN accounts 49 | # If left blank, the password will be generated automatically 50 | # VM_ORACLE_PWD= 51 | -------------------------------------------------------------------------------- /OracleDatabase/18.3.0/.gitattributes: -------------------------------------------------------------------------------- 1 | *.sh text eol=lf 2 | *.sha256 text eol=lf 3 | -------------------------------------------------------------------------------- /OracleDatabase/18.3.0/.gitignore: -------------------------------------------------------------------------------- 1 | .env.local* 2 | -------------------------------------------------------------------------------- /OracleDatabase/18.3.0/db_installer.sha256: -------------------------------------------------------------------------------- 1 | c96a4fd768787af98272008833fe10b172691cf84e42816b138c12d4de63ab96 */vagrant/LINUX.X64_180000_db_home.zip 2 | -------------------------------------------------------------------------------- /OracleDatabase/18.3.0/ora-response/db_install.rsp.tmpl: -------------------------------------------------------------------------------- 1 | oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v18.0.0 2 | oracle.install.option=INSTALL_DB_SWONLY 3 | UNIX_GROUP_NAME=dba 4 | INVENTORY_LOCATION=###ORACLE_BASE###/oraInventory 5 | ORACLE_BASE=###ORACLE_BASE### 6 | ORACLE_HOME=###ORACLE_HOME### 7 | oracle.install.db.InstallEdition=###ORACLE_EDITION### 8 | oracle.install.db.OSDBA_GROUP=dba 9 | oracle.install.db.OSBACKUPDBA_GROUP=dba 10 | oracle.install.db.OSDGDBA_GROUP=dba 11 | oracle.install.db.OSKMDBA_GROUP=dba 12 | oracle.install.db.OSRACDBA_GROUP=dba 13 | -------------------------------------------------------------------------------- /OracleDatabase/18.3.0/ora-response/dbca.rsp.tmpl: -------------------------------------------------------------------------------- 1 | responseFileVersion=/oracle/assistants/rspfmt_dbca_response_schema_v18.0.0 2 | gdbName=###ORACLE_SID### 3 | sid=###ORACLE_SID### 4 | databaseConfigType=SI 5 | createAsContainerDatabase=true 6 | numberOfPDBs=1 7 | pdbName=###ORACLE_PDB### 8 | pdbAdminPassword=###ORACLE_PWD### 9 | templateName=General_Purpose.dbc 10 | sysPassword=###ORACLE_PWD### 11 | systemPassword=###ORACLE_PWD### 12 | emConfiguration=DBEXPRESS 13 | emExpressPort=###EM_EXPRESS_PORT### 14 | dbsnmpPassword=###ORACLE_PWD### 15 | storageType=FS 16 | characterSet=###ORACLE_CHARACTERSET### 17 | nationalCharacterSet=AL16UTF16 18 | automaticMemoryManagement=FALSE 19 | totalMemory=1536 20 | # Some init.ora parameters - disable auditing to save space, enable FS optimizations 21 | initParams=audit_trail=none,audit_sys_operations=false,filesystemio_options=setall,commit_logging=batch,commit_wait=nowait 22 | 23 | -------------------------------------------------------------------------------- /OracleDatabase/18.3.0/scripts/oracle-rdbms.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Oracle Database(s) and Listener 3 | Requires=network.target 4 | 5 | [Service] 6 | Type=forking 7 | Restart=no 8 | ExecStart=###ORACLE_HOME###/bin/dbstart ###ORACLE_HOME### 9 | ExecStop=###ORACLE_HOME###/bin/dbshut ###ORACLE_HOME### 10 | User=oracle 11 | 12 | [Install] 13 | WantedBy=multi-user.target 14 | -------------------------------------------------------------------------------- /OracleDatabase/18.3.0/scripts/setPassword.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # LICENSE UPL 1.0 3 | # 4 | # Copyright (c) 1982-2018 Oracle and/or its affiliates. All rights reserved. 5 | # 6 | # Since: November, 2016 7 | # Author: gerald.venzl@oracle.com 8 | # Description: Sets the password for sys, system and pdb_admin 9 | # 10 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 11 | # 12 | 13 | ORACLE_PWD=$1 14 | ORACLE_SID="`grep $ORACLE_HOME /etc/oratab | cut -d: -f1`" 15 | ORACLE_PDB="`ls -dl $ORACLE_BASE/oradata/$ORACLE_SID/*/ | grep -v pdbseed | awk '{print $9}' | cut -d/ -f6`" 16 | ORAENV_ASK=NO 17 | source oraenv 18 | 19 | sqlplus / as sysdba << EOF 20 | ALTER USER SYS IDENTIFIED BY "$ORACLE_PWD"; 21 | ALTER USER SYSTEM IDENTIFIED BY "$ORACLE_PWD"; 22 | ALTER SESSION SET CONTAINER=$ORACLE_PDB; 23 | ALTER USER PDBADMIN IDENTIFIED BY "$ORACLE_PWD"; 24 | exit; 25 | EOF 26 | 27 | -------------------------------------------------------------------------------- /OracleDatabase/18.3.0/userscripts/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | !put_custom_scripts_here.txt 4 | -------------------------------------------------------------------------------- /OracleDatabase/18.3.0/userscripts/put_custom_scripts_here.txt: -------------------------------------------------------------------------------- 1 | Any shell (.sh) or SQL (.sql) scripts you put in this directory 2 | will be executed by the installer after the database is set up 3 | and started. Only shell and SQL scripts will be executed; all 4 | other files will be ignored. These scripts are completely 5 | optional. 6 | 7 | Shell scripts will be executed as root. SQL scripts will be 8 | executed as SYS. SQL scripts will run against the CDB, not the 9 | PDB, unless you include an ALTER SESSION SET CONTAINER = 10 | statement in the script. 11 | 12 | To run scripts in a specific order, prefix the file names with a 13 | number, e.g., 01_shellscript.sh, 02_tablespaces.sql, 14 | 03_shellscript2.sh, etc. 15 | -------------------------------------------------------------------------------- /OracleDatabase/18.4.0-XE/.env: -------------------------------------------------------------------------------- 1 | # Oracle Database 18.4.0 Express Edition configuration file 2 | # 3 | # Requires vagrant-env plugin 4 | # 5 | # This file will be overwritten on updates, so it is recommended to make 6 | # a copy of this file called .env.local, then make changes in .env.local. 7 | # 8 | # To change a parameter, uncomment it and set it to the desired value. 9 | # All commented parameters will retain their default values. 10 | 11 | # VM name 12 | # VM_NAME='oracle18c-xe-vagrant' 13 | 14 | # Memory for the VM (in MB, 2048 MB = 2 GB) 15 | # VM_MEMORY=2048 16 | 17 | # VM time zone 18 | # If not specified, will be set to match host time zone (if possible) 19 | # Can use time zone name (e.g., 'America/Los_Angeles') 20 | # or an offset from GMT (e.g., 'Etc/GMT-2') 21 | # VM_SYSTEM_TIMEZONE= 22 | 23 | # Save database installer RPM file for reuse when VM is rebuilt 24 | # VM_KEEP_DB_INSTALLER=false 25 | 26 | # Database character set 27 | # VM_ORACLE_CHARACTERSET='AL32UTF8' 28 | 29 | # Listener port 30 | # VM_LISTENER_PORT=1521 31 | 32 | # EM Express port 33 | # VM_EM_EXPRESS_PORT=5500 34 | 35 | # Oracle Database password for SYS, SYSTEM and PDBADMIN accounts 36 | # If left blank, the password will be generated automatically 37 | # VM_ORACLE_PWD= 38 | -------------------------------------------------------------------------------- /OracleDatabase/18.4.0-XE/.gitattributes: -------------------------------------------------------------------------------- 1 | *.sh text eol=lf 2 | *.sha256 text eol=lf 3 | *.tmpl text eol=lf 4 | -------------------------------------------------------------------------------- /OracleDatabase/18.4.0-XE/.gitignore: -------------------------------------------------------------------------------- 1 | *.rpm 2 | .env.local* 3 | -------------------------------------------------------------------------------- /OracleDatabase/18.4.0-XE/db_installer.sha256: -------------------------------------------------------------------------------- 1 | 4df0318d72a0b97f5468b36919a23ec07533f5897b324843108e0376566d50c8 */vagrant/oracle-database-xe-18c-1.0-1.x86_64.rpm 2 | -------------------------------------------------------------------------------- /OracleDatabase/18.4.0-XE/ora-response/oracle-xe-18c.conf.tmpl: -------------------------------------------------------------------------------- 1 | #This is a configuration file to setup the Oracle Database. 2 | #It is used when running '/etc/init.d/oracle-xe-18c configure'. 3 | 4 | #Note: This file must use Unix (LF) line endings. 5 | 6 | # LISTENER PORT used Database listener, Leave empty for automatic port assignment 7 | LISTENER_PORT=###LISTENER_PORT### 8 | 9 | # EM_EXPRESS_PORT Oracle EM Express URL port 10 | EM_EXPRESS_PORT=###EM_EXPRESS_PORT### 11 | 12 | # Character set of the database 13 | CHARSET=###ORACLE_CHARACTERSET### 14 | 15 | # Database file directory 16 | # If not specified, database files are stored under Oracle base/oradata 17 | DBFILE_DEST= 18 | 19 | # SKIP Validations, memory, space 20 | SKIP_VALIDATIONS=true 21 | 22 | # Password for SYS, SYSTEM and PDBADMIN accounts 23 | ORACLE_PASSWORD=###ORACLE_PWD### 24 | -------------------------------------------------------------------------------- /OracleDatabase/18.4.0-XE/scripts/setPassword.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # LICENSE UPL 1.0 3 | # 4 | # Copyright (c) 1982-2018 Oracle and/or its affiliates. All rights reserved. 5 | # 6 | # Since: November, 2016 7 | # Author: gerald.venzl@oracle.com 8 | # Description: Sets the password for sys, system and pdb_admin 9 | # 10 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 11 | # 12 | 13 | ORACLE_PWD=$1 14 | ORACLE_SID="`grep $ORACLE_HOME /etc/oratab | cut -d: -f1`" 15 | ORACLE_PDB="`ls -dl $ORACLE_BASE/oradata/$ORACLE_SID/*/ | grep -v pdbseed | awk '{print $9}' | cut -d/ -f6`" 16 | ORAENV_ASK=NO 17 | source oraenv 18 | 19 | sqlplus / as sysdba << EOF 20 | ALTER USER SYS IDENTIFIED BY "$ORACLE_PWD"; 21 | ALTER USER SYSTEM IDENTIFIED BY "$ORACLE_PWD"; 22 | ALTER SESSION SET CONTAINER=$ORACLE_PDB; 23 | ALTER USER PDBADMIN IDENTIFIED BY "$ORACLE_PWD"; 24 | exit; 25 | EOF 26 | 27 | -------------------------------------------------------------------------------- /OracleDatabase/18.4.0-XE/userscripts/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | !put_custom_scripts_here.txt 4 | -------------------------------------------------------------------------------- /OracleDatabase/18.4.0-XE/userscripts/put_custom_scripts_here.txt: -------------------------------------------------------------------------------- 1 | Any shell (.sh) or SQL (.sql) scripts you put in this directory 2 | will be executed by the installer after the database is set up 3 | and started. Only shell and SQL scripts will be executed; all 4 | other files will be ignored. These scripts are completely 5 | optional. 6 | 7 | Shell scripts will be executed as root. SQL scripts will be 8 | executed as SYS. SQL scripts will run against the CDB, not the 9 | PDB, unless you include an ALTER SESSION SET CONTAINER = XEPDB1 10 | statement in the script. 11 | 12 | To run scripts in a specific order, prefix the file names with a 13 | number, e.g., 01_shellscript.sh, 02_tablespaces.sql, 14 | 03_shellscript2.sh, etc. 15 | -------------------------------------------------------------------------------- /OracleDatabase/19.3.0/.env: -------------------------------------------------------------------------------- 1 | # Oracle Database 19.3.0 configuration file 2 | # 3 | # Requires vagrant-env plugin 4 | # 5 | # This file will be overwritten on updates, so it is recommended to make 6 | # a copy of this file called .env.local, then make changes in .env.local. 7 | # 8 | # To change a parameter, uncomment it and set it to the desired value. 9 | # All commented parameters will retain their default values. 10 | 11 | # VM name 12 | # VM_NAME='oracle-19c-vagrant' 13 | 14 | # Memory for the VM (in MB, 2300 MB is ~2.25 GB) 15 | # VM_MEMORY=2300 16 | 17 | # VM time zone 18 | # If not specified, will be set to match host time zone (if possible) 19 | # Can use time zone name (e.g., 'America/Los_Angeles') 20 | # or an offset from GMT (e.g., 'Etc/GMT-2') 21 | # VM_SYSTEM_TIMEZONE= 22 | 23 | # Oracle base directory 24 | # VM_ORACLE_BASE='/opt/oracle' 25 | 26 | # Oracle home directory 27 | # VM_ORACLE_HOME='/opt/oracle/product/19c/dbhome_1' 28 | 29 | # Oracle SID 30 | # VM_ORACLE_SID='ORCLCDB' 31 | 32 | # PDB name 33 | # VM_ORACLE_PDB='ORCLPDB1' 34 | 35 | # Database character set 36 | # VM_ORACLE_CHARACTERSET='AL32UTF8' 37 | 38 | # Oracle Database edition 39 | # Valid values are 'EE' for Enterprise Edition or 'SE2' for Standard Edition 2 40 | # VM_ORACLE_EDITION='EE' 41 | 42 | # Listener port 43 | # VM_LISTENER_PORT=1521 44 | 45 | # EM Express port 46 | # VM_EM_EXPRESS_PORT=5500 47 | 48 | # Oracle Database password for SYS, SYSTEM and PDBADMIN accounts 49 | # If left blank, the password will be generated automatically 50 | # VM_ORACLE_PWD= 51 | -------------------------------------------------------------------------------- /OracleDatabase/19.3.0/.gitattributes: -------------------------------------------------------------------------------- 1 | *.sh text eol=lf 2 | *.sha256 text eol=lf 3 | -------------------------------------------------------------------------------- /OracleDatabase/19.3.0/.gitignore: -------------------------------------------------------------------------------- 1 | .env.local* 2 | -------------------------------------------------------------------------------- /OracleDatabase/19.3.0/db_installer.sha256: -------------------------------------------------------------------------------- 1 | ba8329c757133da313ed3b6d7f86c5ac42cd9970a28bf2e6233f3235233aa8d8 */vagrant/LINUX.X64_193000_db_home.zip 2 | -------------------------------------------------------------------------------- /OracleDatabase/19.3.0/ora-response/db_install.rsp.tmpl: -------------------------------------------------------------------------------- 1 | oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v19.0.0 2 | oracle.install.option=INSTALL_DB_SWONLY 3 | UNIX_GROUP_NAME=dba 4 | INVENTORY_LOCATION=###ORACLE_BASE###/oraInventory 5 | ORACLE_BASE=###ORACLE_BASE### 6 | ORACLE_HOME=###ORACLE_HOME### 7 | oracle.install.db.InstallEdition=###ORACLE_EDITION### 8 | oracle.install.db.OSDBA_GROUP=dba 9 | oracle.install.db.OSBACKUPDBA_GROUP=dba 10 | oracle.install.db.OSDGDBA_GROUP=dba 11 | oracle.install.db.OSKMDBA_GROUP=dba 12 | oracle.install.db.OSRACDBA_GROUP=dba 13 | -------------------------------------------------------------------------------- /OracleDatabase/19.3.0/ora-response/dbca.rsp.tmpl: -------------------------------------------------------------------------------- 1 | responseFileVersion=/oracle/assistants/rspfmt_dbca_response_schema_v19.0.0 2 | gdbName=###ORACLE_SID### 3 | sid=###ORACLE_SID### 4 | databaseConfigType=SI 5 | createAsContainerDatabase=true 6 | numberOfPDBs=1 7 | pdbName=###ORACLE_PDB### 8 | pdbAdminPassword=###ORACLE_PWD### 9 | templateName=General_Purpose.dbc 10 | sysPassword=###ORACLE_PWD### 11 | systemPassword=###ORACLE_PWD### 12 | emConfiguration=DBEXPRESS 13 | emExpressPort=###EM_EXPRESS_PORT### 14 | dbsnmpPassword=###ORACLE_PWD### 15 | storageType=FS 16 | characterSet=###ORACLE_CHARACTERSET### 17 | nationalCharacterSet=AL16UTF16 18 | automaticMemoryManagement=FALSE 19 | totalMemory=1536 20 | # Some init.ora parameters - disable auditing to save space, enable FS optimizations 21 | initParams=audit_trail=none,audit_sys_operations=false,filesystemio_options=setall,commit_logging=batch,commit_wait=nowait 22 | 23 | -------------------------------------------------------------------------------- /OracleDatabase/19.3.0/scripts/oracle-rdbms.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Oracle Database(s) and Listener 3 | Requires=network.target 4 | 5 | [Service] 6 | Type=forking 7 | Restart=no 8 | ExecStart=###ORACLE_HOME###/bin/dbstart ###ORACLE_HOME### 9 | ExecStop=###ORACLE_HOME###/bin/dbshut ###ORACLE_HOME### 10 | User=oracle 11 | 12 | [Install] 13 | WantedBy=multi-user.target 14 | -------------------------------------------------------------------------------- /OracleDatabase/19.3.0/scripts/setPassword.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # LICENSE UPL 1.0 3 | # 4 | # Copyright (c) 1982-2018 Oracle and/or its affiliates. All rights reserved. 5 | # 6 | # Since: November, 2016 7 | # Author: gerald.venzl@oracle.com 8 | # Description: Sets the password for sys, system and pdb_admin 9 | # 10 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 11 | # 12 | 13 | ORACLE_PWD=$1 14 | ORACLE_SID="`grep $ORACLE_HOME /etc/oratab | cut -d: -f1`" 15 | ORACLE_PDB="`ls -dl $ORACLE_BASE/oradata/$ORACLE_SID/*/ | grep -v pdbseed | awk '{print $9}' | cut -d/ -f6`" 16 | ORAENV_ASK=NO 17 | source oraenv 18 | 19 | sqlplus / as sysdba << EOF 20 | ALTER USER SYS IDENTIFIED BY "$ORACLE_PWD"; 21 | ALTER USER SYSTEM IDENTIFIED BY "$ORACLE_PWD"; 22 | ALTER SESSION SET CONTAINER=$ORACLE_PDB; 23 | ALTER USER PDBADMIN IDENTIFIED BY "$ORACLE_PWD"; 24 | exit; 25 | EOF 26 | 27 | -------------------------------------------------------------------------------- /OracleDatabase/19.3.0/userscripts/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | !put_custom_scripts_here.txt 4 | -------------------------------------------------------------------------------- /OracleDatabase/19.3.0/userscripts/put_custom_scripts_here.txt: -------------------------------------------------------------------------------- 1 | Any shell (.sh) or SQL (.sql) scripts you put in this directory 2 | will be executed by the installer after the database is set up 3 | and started. Only shell and SQL scripts will be executed; all 4 | other files will be ignored. These scripts are completely 5 | optional. 6 | 7 | Shell scripts will be executed as root. SQL scripts will be 8 | executed as SYS. SQL scripts will run against the CDB, not the 9 | PDB, unless you include an ALTER SESSION SET CONTAINER = 10 | statement in the script. 11 | 12 | To run scripts in a specific order, prefix the file names with a 13 | number, e.g., 01_shellscript.sh, 02_tablespaces.sql, 14 | 03_shellscript2.sh, etc. 15 | -------------------------------------------------------------------------------- /OracleDatabase/21.3.0-XE/.env: -------------------------------------------------------------------------------- 1 | # Oracle Database 21.3.0 Express Edition configuration file 2 | # 3 | # Requires vagrant-env plugin 4 | # 5 | # This file will be overwritten on updates, so it is recommended to make 6 | # a copy of this file called .env.local, then make changes in .env.local. 7 | # 8 | # To change a parameter, uncomment it and set it to the desired value. 9 | # All commented parameters will retain their default values. 10 | 11 | # VM name 12 | # VM_NAME='oracle21c-xe-vagrant' 13 | 14 | # Memory for the VM (in MB, 2300 MB is ~2.25 GB) 15 | # VM_MEMORY=2300 16 | 17 | # VM time zone 18 | # If not specified, will be set to match host time zone (if possible) 19 | # Can use time zone name (e.g., 'America/Los_Angeles') 20 | # or an offset from GMT (e.g., 'Etc/GMT-2') 21 | # VM_SYSTEM_TIMEZONE= 22 | 23 | # Save database installer RPM file for reuse when VM is rebuilt 24 | # VM_KEEP_DB_INSTALLER=false 25 | 26 | # Database character set 27 | # VM_ORACLE_CHARACTERSET='AL32UTF8' 28 | 29 | # Listener port 30 | # VM_LISTENER_PORT=1521 31 | 32 | # EM Express port 33 | # VM_EM_EXPRESS_PORT=5500 34 | 35 | # Oracle Database password for SYS, SYSTEM and PDBADMIN accounts 36 | # If left blank, the password will be generated automatically 37 | # VM_ORACLE_PWD= 38 | -------------------------------------------------------------------------------- /OracleDatabase/21.3.0-XE/.gitattributes: -------------------------------------------------------------------------------- 1 | *.sh text eol=lf 2 | *.sha256 text eol=lf 3 | *.tmpl text eol=lf 4 | -------------------------------------------------------------------------------- /OracleDatabase/21.3.0-XE/.gitignore: -------------------------------------------------------------------------------- 1 | *.rpm 2 | .env.local* 3 | -------------------------------------------------------------------------------- /OracleDatabase/21.3.0-XE/db_installer.sha256: -------------------------------------------------------------------------------- 1 | f8357b432de33478549a76557e8c5220ec243710ed86115c65b0c2bc00a848db */vagrant/oracle-database-xe-21c-1.0-1.ol8.x86_64.rpm 2 | -------------------------------------------------------------------------------- /OracleDatabase/21.3.0-XE/ora-response/oracle-xe-21c.conf.tmpl: -------------------------------------------------------------------------------- 1 | #This is a configuration file to setup the Oracle Database. 2 | #It is used when running '/etc/init.d/oracle-xe-21c configure'. 3 | 4 | # LISTENER PORT used Database listener, Leave empty for automatic port assignment 5 | LISTENER_PORT=###LISTENER_PORT### 6 | 7 | # EM_EXPRESS_PORT Oracle EM Express URL port 8 | EM_EXPRESS_PORT=###EM_EXPRESS_PORT### 9 | 10 | # Character set of the database 11 | CHARSET=###ORACLE_CHARACTERSET### 12 | 13 | # Database file directory 14 | # If not specified, database files are stored under Oracle base/oradata 15 | DBFILE_DEST= 16 | 17 | # DB Domain name 18 | DB_DOMAIN= 19 | 20 | # SKIP Validations, memory, space 21 | SKIP_VALIDATIONS=false 22 | 23 | # Password for SYS, SYSTEM and PDBADMIN accounts 24 | ORACLE_PASSWORD=###ORACLE_PWD### 25 | -------------------------------------------------------------------------------- /OracleDatabase/21.3.0-XE/scripts/setPassword.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # LICENSE UPL 1.0 3 | # 4 | # Copyright (c) 1982-2018 Oracle and/or its affiliates. All rights reserved. 5 | # 6 | # Since: November, 2016 7 | # Author: gerald.venzl@oracle.com 8 | # Description: Sets the password for sys, system and pdb_admin 9 | # 10 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 11 | # 12 | 13 | ORACLE_PWD=$1 14 | ORACLE_SID="`grep $ORACLE_HOME /etc/oratab | cut -d: -f1`" 15 | ORACLE_PDB="`ls -dl $ORACLE_BASE/oradata/$ORACLE_SID/*/ | grep -v pdbseed | awk '{print $9}' | cut -d/ -f6`" 16 | ORAENV_ASK=NO 17 | source oraenv 18 | 19 | sqlplus / as sysdba << EOF 20 | ALTER USER SYS IDENTIFIED BY "$ORACLE_PWD"; 21 | ALTER USER SYSTEM IDENTIFIED BY "$ORACLE_PWD"; 22 | ALTER SESSION SET CONTAINER=$ORACLE_PDB; 23 | ALTER USER PDBADMIN IDENTIFIED BY "$ORACLE_PWD"; 24 | exit; 25 | EOF 26 | 27 | -------------------------------------------------------------------------------- /OracleDatabase/21.3.0-XE/userscripts/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | !put_custom_scripts_here.txt 4 | -------------------------------------------------------------------------------- /OracleDatabase/21.3.0-XE/userscripts/put_custom_scripts_here.txt: -------------------------------------------------------------------------------- 1 | Any shell (.sh) or SQL (.sql) scripts you put in this directory 2 | will be executed by the installer after the database is set up 3 | and started. Only shell and SQL scripts will be executed; all 4 | other files will be ignored. These scripts are completely 5 | optional. 6 | 7 | Shell scripts will be executed as root. SQL scripts will be 8 | executed as SYS. SQL scripts will run against the CDB, not the 9 | PDB, unless you include an ALTER SESSION SET CONTAINER = XEPDB1 10 | statement in the script. 11 | 12 | To run scripts in a specific order, prefix the file names with a 13 | number, e.g., 01_shellscript.sh, 02_tablespaces.sql, 14 | 03_shellscript2.sh, etc. 15 | -------------------------------------------------------------------------------- /OracleDatabase/21.3.0/.env: -------------------------------------------------------------------------------- 1 | # Oracle Database 21.3.0 configuration file 2 | # 3 | # Requires vagrant-env plugin 4 | # 5 | # This file will be overwritten on updates, so it is recommended to make 6 | # a copy of this file called .env.local, then make changes in .env.local. 7 | # 8 | # To change a parameter, uncomment it and set it to the desired value. 9 | # All commented parameters will retain their default values. 10 | 11 | # VM name 12 | # VM_NAME='oracle-21c-vagrant' 13 | 14 | # Memory for the VM (in MB, 2560 MB = 2.5 GB) 15 | # VM_MEMORY=2560 16 | 17 | # VM time zone 18 | # If not specified, will be set to match host time zone (if possible) 19 | # Can use time zone name (e.g., 'America/Los_Angeles') 20 | # or an offset from GMT (e.g., 'Etc/GMT-2') 21 | # VM_SYSTEM_TIMEZONE= 22 | 23 | # Oracle base directory 24 | # VM_ORACLE_BASE='/opt/oracle' 25 | 26 | # Oracle home directory 27 | # VM_ORACLE_HOME='/opt/oracle/product/21c/dbhome_1' 28 | 29 | # Oracle SID 30 | # VM_ORACLE_SID='ORCLCDB' 31 | 32 | # PDB name 33 | # VM_ORACLE_PDB='ORCLPDB1' 34 | 35 | # Database character set 36 | # VM_ORACLE_CHARACTERSET='AL32UTF8' 37 | 38 | # Oracle Database edition 39 | # Valid values are 'EE' for Enterprise Edition or 'SE2' for Standard Edition 2 40 | # VM_ORACLE_EDITION='EE' 41 | 42 | # Listener port 43 | # VM_LISTENER_PORT=1521 44 | 45 | # EM Express port 46 | # VM_EM_EXPRESS_PORT=5500 47 | 48 | # Oracle Database password for SYS, SYSTEM and PDBADMIN accounts 49 | # If left blank, the password will be generated automatically 50 | # VM_ORACLE_PWD= 51 | -------------------------------------------------------------------------------- /OracleDatabase/21.3.0/.gitattributes: -------------------------------------------------------------------------------- 1 | *.sh text eol=lf 2 | *.sha256 text eol=lf 3 | -------------------------------------------------------------------------------- /OracleDatabase/21.3.0/.gitignore: -------------------------------------------------------------------------------- 1 | .env.local* 2 | -------------------------------------------------------------------------------- /OracleDatabase/21.3.0/db_installer.sha256: -------------------------------------------------------------------------------- 1 | c05d5c32a72b9bf84ab6babb49aee99cbb403930406aabe3cf2f94f1d35e0916 */vagrant/LINUX.X64_213000_db_home.zip 2 | -------------------------------------------------------------------------------- /OracleDatabase/21.3.0/ora-response/db_install.rsp.tmpl: -------------------------------------------------------------------------------- 1 | oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v21.0.0 2 | oracle.install.option=INSTALL_DB_SWONLY 3 | UNIX_GROUP_NAME=dba 4 | INVENTORY_LOCATION=###INVENTORY_LOCATION### 5 | ORACLE_BASE=###ORACLE_BASE### 6 | ORACLE_HOME=###ORACLE_HOME### 7 | oracle.install.db.InstallEdition=###ORACLE_EDITION### 8 | oracle.install.db.OSDBA_GROUP=dba 9 | oracle.install.db.OSBACKUPDBA_GROUP=dba 10 | oracle.install.db.OSDGDBA_GROUP=dba 11 | oracle.install.db.OSKMDBA_GROUP=dba 12 | oracle.install.db.OSRACDBA_GROUP=dba 13 | -------------------------------------------------------------------------------- /OracleDatabase/21.3.0/ora-response/dbca.rsp.tmpl: -------------------------------------------------------------------------------- 1 | responseFileVersion=/oracle/assistants/rspfmt_dbca_response_schema_v21.0.0 2 | gdbName=###ORACLE_SID### 3 | sid=###ORACLE_SID### 4 | databaseConfigType=SI 5 | createAsContainerDatabase=true 6 | numberOfPDBs=1 7 | pdbName=###ORACLE_PDB### 8 | pdbAdminPassword=###ORACLE_PWD### 9 | templateName=General_Purpose.dbc 10 | sysPassword=###ORACLE_PWD### 11 | systemPassword=###ORACLE_PWD### 12 | emConfiguration=DBEXPRESS 13 | emExpressPort=###EM_EXPRESS_PORT### 14 | dbsnmpPassword=###ORACLE_PWD### 15 | storageType=FS 16 | characterSet=###ORACLE_CHARACTERSET### 17 | nationalCharacterSet=AL16UTF16 18 | automaticMemoryManagement=FALSE 19 | totalMemory=1536 20 | # Some init.ora parameters - disable auditing to save space, enable FS optimizations 21 | initParams=audit_trail=none,audit_sys_operations=false,filesystemio_options=setall,commit_logging=batch,commit_wait=nowait 22 | 23 | -------------------------------------------------------------------------------- /OracleDatabase/21.3.0/scripts/oracle-rdbms.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Oracle Database(s) and Listener 3 | Requires=network.target 4 | 5 | [Service] 6 | Type=forking 7 | Restart=no 8 | ExecStart=###ORACLE_HOME###/bin/dbstart ###ORACLE_HOME### 9 | ExecStop=###ORACLE_HOME###/bin/dbshut ###ORACLE_HOME### 10 | User=oracle 11 | 12 | [Install] 13 | WantedBy=multi-user.target 14 | -------------------------------------------------------------------------------- /OracleDatabase/21.3.0/scripts/setPassword.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # LICENSE UPL 1.0 3 | # 4 | # Copyright (c) 1982-2018 Oracle and/or its affiliates. All rights reserved. 5 | # 6 | # Since: November, 2016 7 | # Author: gerald.venzl@oracle.com 8 | # Description: Sets the password for sys, system and pdb_admin 9 | # 10 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 11 | # 12 | 13 | ORACLE_PWD=$1 14 | ORACLE_SID="`grep $ORACLE_HOME /etc/oratab | cut -d: -f1`" 15 | ORACLE_PDB="`ls -dl $ORACLE_BASE/oradata/$ORACLE_SID/*/ | grep -v pdbseed | awk '{print $9}' | cut -d/ -f6`" 16 | ORAENV_ASK=NO 17 | source oraenv 18 | 19 | sqlplus / as sysdba << EOF 20 | ALTER USER SYS IDENTIFIED BY "$ORACLE_PWD"; 21 | ALTER USER SYSTEM IDENTIFIED BY "$ORACLE_PWD"; 22 | ALTER SESSION SET CONTAINER=$ORACLE_PDB; 23 | ALTER USER PDBADMIN IDENTIFIED BY "$ORACLE_PWD"; 24 | exit; 25 | EOF 26 | 27 | -------------------------------------------------------------------------------- /OracleDatabase/21.3.0/userscripts/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | !put_custom_scripts_here.txt 4 | -------------------------------------------------------------------------------- /OracleDatabase/21.3.0/userscripts/put_custom_scripts_here.txt: -------------------------------------------------------------------------------- 1 | Any shell (.sh) or SQL (.sql) scripts you put in this directory 2 | will be executed by the installer after the database is set up 3 | and started. Only shell and SQL scripts will be executed; all 4 | other files will be ignored. These scripts are completely 5 | optional. 6 | 7 | Shell scripts will be executed as root. SQL scripts will be 8 | executed as SYS. SQL scripts will run against the CDB, not the 9 | PDB, unless you include an ALTER SESSION SET CONTAINER = 10 | statement in the script. 11 | 12 | To run scripts in a specific order, prefix the file names with a 13 | number, e.g., 01_shellscript.sh, 02_tablespaces.sql, 14 | 03_shellscript2.sh, etc. 15 | -------------------------------------------------------------------------------- /OracleDatabase/23.3.0-Free/.env: -------------------------------------------------------------------------------- 1 | # Oracle Database 23.3.0 Free configuration file 2 | # 3 | # Requires vagrant-env plugin 4 | # 5 | # This file will be overwritten on updates, so it is recommended to make 6 | # a copy of this file called .env.local, then make changes in .env.local. 7 | # 8 | # To change a parameter, uncomment it and set it to the desired value. 9 | # All commented parameters will retain their default values. 10 | 11 | # VM name 12 | # VM_NAME='oracle23c-free-vagrant' 13 | 14 | # Memory for the VM (in MB, 2300 MB is ~2.25 GB) 15 | # VM_MEMORY=2300 16 | 17 | # VM time zone 18 | # If not specified, will be set to match host time zone (if possible) 19 | # Can use time zone name (e.g., 'America/Los_Angeles') 20 | # or an offset from GMT (e.g., 'Etc/GMT-2') 21 | # VM_SYSTEM_TIMEZONE= 22 | 23 | # Save database installer RPM file for reuse when VM is rebuilt 24 | # VM_KEEP_DB_INSTALLER=false 25 | 26 | # Database character set 27 | # VM_ORACLE_CHARACTERSET='AL32UTF8' 28 | 29 | # Listener port 30 | # VM_LISTENER_PORT=1521 31 | 32 | # Oracle Database password for SYS, SYSTEM and PDBADMIN accounts 33 | # If left blank, the password will be generated automatically 34 | # VM_ORACLE_PWD= 35 | -------------------------------------------------------------------------------- /OracleDatabase/23.3.0-Free/.gitattributes: -------------------------------------------------------------------------------- 1 | *.sh text eol=lf 2 | *.sha256 text eol=lf 3 | *.tmpl text eol=lf 4 | -------------------------------------------------------------------------------- /OracleDatabase/23.3.0-Free/.gitignore: -------------------------------------------------------------------------------- 1 | *.rpm 2 | .env.local* 3 | -------------------------------------------------------------------------------- /OracleDatabase/23.3.0-Free/db_installer.sha256: -------------------------------------------------------------------------------- 1 | 1319bcd7cb706cb727501cbd98abf3f3980a4fdabeb613a1abffc756925c7374 */vagrant/oracle-database-free-23c-1.0-1.el8.x86_64.rpm 2 | -------------------------------------------------------------------------------- /OracleDatabase/23.3.0-Free/ora-response/oracle-free-23c.conf.tmpl: -------------------------------------------------------------------------------- 1 | #This is a configuration file to setup the Oracle Database. 2 | #It is used when running '/etc/init.d/oracle-free-23c configure'. 3 | 4 | # LISTENER PORT used Database listener, Leave empty for automatic port assignment 5 | LISTENER_PORT=###LISTENER_PORT### 6 | 7 | # Character set of the database 8 | CHARSET=###ORACLE_CHARACTERSET### 9 | 10 | # Database file directory 11 | # If not specified, database files are stored under Oracle base/oradata 12 | DBFILE_DEST= 13 | 14 | # DB Domain name 15 | DB_DOMAIN= 16 | 17 | # SKIP Validations, memory, space 18 | SKIP_VALIDATIONS=false 19 | 20 | # Password for SYS, SYSTEM and PDBADMIN accounts 21 | ORACLE_PASSWORD=###ORACLE_PWD### 22 | -------------------------------------------------------------------------------- /OracleDatabase/23.3.0-Free/scripts/setPassword.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Copyright (c) 2023 Oracle and/or its affiliates. 4 | # Licensed under the Universal Permissive License v 1.0 as shown at 5 | # https://oss.oracle.com/licenses/upl. 6 | # 7 | # Since: November, 2016 8 | # Author: gerald.venzl@oracle.com 9 | # Description: Sets the password for sys, system and pdbadmin 10 | # 11 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 12 | # 13 | 14 | ORACLE_PWD=$1 15 | ORACLE_SID="`grep $ORACLE_HOME /etc/oratab | cut -d: -f1`" 16 | ORACLE_PDB="`ls -dl $ORACLE_BASE/oradata/$ORACLE_SID/*/ | grep -v pdbseed | awk '{print $9}' | cut -d/ -f6`" 17 | ORAENV_ASK=NO 18 | source oraenv 19 | 20 | sqlplus / as sysdba << EOF 21 | ALTER USER SYS IDENTIFIED BY "$ORACLE_PWD"; 22 | ALTER USER SYSTEM IDENTIFIED BY "$ORACLE_PWD"; 23 | ALTER SESSION SET CONTAINER=$ORACLE_PDB; 24 | ALTER USER PDBADMIN IDENTIFIED BY "$ORACLE_PWD"; 25 | exit; 26 | EOF 27 | 28 | -------------------------------------------------------------------------------- /OracleDatabase/23.3.0-Free/userscripts/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | !put_custom_scripts_here.txt 4 | -------------------------------------------------------------------------------- /OracleDatabase/23.3.0-Free/userscripts/put_custom_scripts_here.txt: -------------------------------------------------------------------------------- 1 | Any shell (.sh) or SQL (.sql) scripts you put in this directory 2 | will be executed by the installer after the database is set up 3 | and started. Only shell and SQL scripts will be executed; all 4 | other files will be ignored. These scripts are completely 5 | optional. 6 | 7 | Shell scripts will be executed as root. SQL scripts will be 8 | executed as SYS. SQL scripts will run against the CDB, not the 9 | PDB, unless you include an ALTER SESSION SET CONTAINER = FREEPDB1 10 | statement in the script. 11 | 12 | To run scripts in a specific order, prefix the file names with a 13 | number, e.g., 01_shellscript.sh, 02_tablespaces.sql, 14 | 03_shellscript2.sh, etc. 15 | -------------------------------------------------------------------------------- /OracleDatabase/23.7.0-Free/.env: -------------------------------------------------------------------------------- 1 | # Oracle Database 23.7.0 Free configuration file 2 | # 3 | # Requires vagrant-env plugin 4 | # 5 | # This file will be overwritten on updates, so it is recommended to make 6 | # a copy of this file called .env.local, then make changes in .env.local. 7 | # 8 | # To change a parameter, uncomment it and set it to the desired value. 9 | # All commented parameters will retain their default values. 10 | 11 | # VM name 12 | # VM_NAME='oracle23ai-free-vagrant' 13 | 14 | # Memory for the VM (in MB, 2300 MB is ~2.25 GB) 15 | # VM_MEMORY=2300 16 | 17 | # VM time zone 18 | # If not specified, will be set to match host time zone (if possible) 19 | # Can use time zone name (e.g., 'America/Los_Angeles') 20 | # or an offset from GMT (e.g., 'Etc/GMT-2') 21 | # VM_SYSTEM_TIMEZONE= 22 | 23 | # Save database installer RPM file for reuse when VM is rebuilt 24 | # VM_KEEP_DB_INSTALLER=false 25 | 26 | # Database character set 27 | # VM_ORACLE_CHARACTERSET='AL32UTF8' 28 | 29 | # Listener port 30 | # VM_LISTENER_PORT=1521 31 | 32 | # Oracle Database password for SYS, SYSTEM and PDBADMIN accounts 33 | # If left blank, the password will be generated automatically 34 | # Database creation will fail if the password contains spaces or special characters 35 | # VM_ORACLE_PWD= 36 | -------------------------------------------------------------------------------- /OracleDatabase/23.7.0-Free/.gitattributes: -------------------------------------------------------------------------------- 1 | *.sh text eol=lf 2 | *.sha256 text eol=lf 3 | *.tmpl text eol=lf 4 | -------------------------------------------------------------------------------- /OracleDatabase/23.7.0-Free/.gitignore: -------------------------------------------------------------------------------- 1 | *.rpm 2 | .env.local* 3 | -------------------------------------------------------------------------------- /OracleDatabase/23.7.0-Free/db_installer.sha256: -------------------------------------------------------------------------------- 1 | 82ef77041a2dba635f11ed08d472f9d8ca8ad41d6e6fcd179445b152e857639c */vagrant/oracle-database-free-23ai-1.0-1.el9.x86_64.rpm 2 | -------------------------------------------------------------------------------- /OracleDatabase/23.7.0-Free/ora-response/oracle-free-23ai.conf.tmpl: -------------------------------------------------------------------------------- 1 | #This is a configuration file to setup the Oracle Database. 2 | #It is used when running '/etc/init.d/oracle-free-23ai configure'. 3 | 4 | # LISTENER PORT used Database listener, Leave empty for automatic port assignment 5 | LISTENER_PORT=###LISTENER_PORT### 6 | 7 | # Character set of the database 8 | CHARSET=###ORACLE_CHARACTERSET### 9 | 10 | # Database file directory 11 | # If not specified, database files are stored under Oracle base/oradata 12 | DBFILE_DEST= 13 | 14 | # DB Domain name 15 | DB_DOMAIN= 16 | 17 | # Configure TDE 18 | CONFIGURE_TDE=false 19 | 20 | # Encrypt Tablespaces list, Leave empty for user tablespace alone or provide ALL for encrypting all tablespaces 21 | # For specific tablespaces use SYSTEM:true,SYSAUX:false 22 | ENCRYPT_TABLESPACES= 23 | 24 | # SKIP Validations, memory, space 25 | SKIP_VALIDATIONS=false 26 | -------------------------------------------------------------------------------- /OracleDatabase/23.7.0-Free/scripts/setPassword.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Copyright (c) 2023 Oracle and/or its affiliates. 4 | # Licensed under the Universal Permissive License v 1.0 as shown at 5 | # https://oss.oracle.com/licenses/upl. 6 | # 7 | # Since: November, 2016 8 | # Author: gerald.venzl@oracle.com 9 | # Description: Sets the password for sys, system and pdbadmin 10 | # 11 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 12 | # 13 | 14 | ORACLE_PWD=$1 15 | ORACLE_SID="`grep $ORACLE_HOME /etc/oratab | cut -d: -f1`" 16 | ORACLE_PDB="`ls -dl $ORACLE_BASE/oradata/$ORACLE_SID/*/ | grep -v pdbseed | awk '{print $9}' | cut -d/ -f6`" 17 | ORAENV_ASK=NO 18 | source oraenv 19 | 20 | sqlplus / as sysdba << EOF 21 | ALTER USER SYS IDENTIFIED BY "$ORACLE_PWD"; 22 | ALTER USER SYSTEM IDENTIFIED BY "$ORACLE_PWD"; 23 | ALTER SESSION SET CONTAINER=$ORACLE_PDB; 24 | ALTER USER PDBADMIN IDENTIFIED BY "$ORACLE_PWD"; 25 | exit; 26 | EOF 27 | 28 | -------------------------------------------------------------------------------- /OracleDatabase/23.7.0-Free/userscripts/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | !put_custom_scripts_here.txt 4 | -------------------------------------------------------------------------------- /OracleDatabase/23.7.0-Free/userscripts/put_custom_scripts_here.txt: -------------------------------------------------------------------------------- 1 | Any shell (.sh) or SQL (.sql) scripts you put in this directory 2 | will be executed by the installer after the database is set up 3 | and started. Only shell and SQL scripts will be executed; all 4 | other files will be ignored. These scripts are completely 5 | optional. 6 | 7 | Shell scripts will be executed as root. SQL scripts will be 8 | executed as SYS. SQL scripts will run against the CDB, not the 9 | PDB, unless you include an ALTER SESSION SET CONTAINER = FREEPDB1 10 | statement in the script. 11 | 12 | To run scripts in a specific order, prefix the file names with a 13 | number, e.g., 01_shellscript.sh, 02_tablespaces.sql, 14 | 03_shellscript2.sh, etc. 15 | -------------------------------------------------------------------------------- /OracleDatabase/README.md: -------------------------------------------------------------------------------- 1 | # Oracle Database Vagrant projects 2 | 3 | This directory contains Vagrant build files to provision an Oracle Database automatically, using Vagrant, an Oracle Linux box and a shell script. 4 | 5 | ## Prerequisites 6 | 7 | Read the [prerequisites in the top level README](../README.md#prerequisites) to set up Vagrant with either VirtualBox or KVM. 8 | 9 | ## Getting started 10 | 11 | (These steps may vary slightly for each project. **For more information, please check the individual README within each directory!**) 12 | 13 | 1. Clone this repository `git clone https://github.com/oracle/vagrant-projects` 14 | 2. Change into the desired version directory 15 | 3. Download the installation zip file(s) from OTN into this directory - first time only: 16 | [http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html](http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html) 17 | 4. Run `vagrant up` 18 | 5. Connect to the database. 19 | 6. You can shut down the VM via the usual `vagrant halt` and the start it up again via `vagrant up`. 20 | 21 | ## Acknowledgements 22 | 23 | Based on: 24 | @steveswinsburg's work here: [https://github.com/steveswinsburg/oracle12c-vagrant](https://github.com/steveswinsburg/oracle12c-vagrant) 25 | @totalamateurhour's work here: [https://github.com/totalamateurhour/oracle-12.2-vagrant](https://github.com/totalamateurhour/oracle-12.2-vagrant) 26 | @gvenzl's work here: [https://github.com/gvenzl/vagrant-boxes](https://github.com/gvenzl/vagrant-boxes) 27 | -------------------------------------------------------------------------------- /OracleFPP/.gitattributes: -------------------------------------------------------------------------------- 1 | *.sh text eol=lf 2 | -------------------------------------------------------------------------------- /OracleFPP/.gitignore: -------------------------------------------------------------------------------- 1 | .git/ 2 | .vagrant/ 3 | .DS_Store 4 | CVS 5 | .vagrant 6 | .zip 7 | *.swp 8 | 9 | -------------------------------------------------------------------------------- /OracleFPP/OL7/ORCL_software/put_Oracle-software_here.txt: -------------------------------------------------------------------------------- 1 | The expecting Oracle software is 2 | LINUX.X64__grid_home.zip 3 | LINUX.X64__db_home.zip 4 | 5 | It will be visible inside the VM below this path: 6 | /vagrant/ORCL_software/ 7 | -------------------------------------------------------------------------------- /OracleFPP/OL7/images/OracleFPP.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/vagrant-projects/f6154929f907bf9247d9bad143b94a1caac7036e/OracleFPP/OL7/images/OracleFPP.png -------------------------------------------------------------------------------- /OracleFPP/OL7/scripts/01_setup_u01.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 3 | # 4 | # LICENSE UPL 1.0 5 | # 6 | # Copyright (c) 1982-2020 Oracle and/or its affiliates. All rights reserved. 7 | # 8 | # NAME 9 | # 01_setup_u01.sh 10 | # 11 | # DESCRIPTION 12 | # Setup for u01 13 | # 14 | # NOTES 15 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 16 | # 17 | # AUTHOR 18 | # ruggero.citton@oracle.com 19 | # 20 | # MODIFIED (MM/DD/YY) 21 | # rcitton 03/30/20 - VBox libvirt & kvm support 22 | # rcitton 10/01/19 - Creation 23 | # 24 | # REVISION 25 | # 20240631 - $Revision: 2.0.2.1 $ 26 | # 27 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│ 28 | echo "-----------------------------------------------------------------" 29 | echo -e "${INFO}`date +%F' '%T`: Setting-up /u01 disk" 30 | echo "-----------------------------------------------------------------" 31 | # Single GPT partition for the whole disk 32 | BOX_DISK_NUM=$1 33 | PROVIDER=$2 34 | 35 | if [ "${PROVIDER}" == "libvirt" ]; then 36 | DEVICE="vd" 37 | elif [ "${PROVIDER}" == "virtualbox" ]; then 38 | DEVICE="sd" 39 | else 40 | echo "Not supported provider: ${PROVIDER}" 41 | exit 1 42 | fi 43 | 44 | LETTER=`tr 0123456789 abcdefghij <<< $BOX_DISK_NUM` 45 | parted -s -a optimal /dev/${DEVICE}${LETTER} mklabel gpt -- mkpart primary 2048s 100% 46 | 47 | # LVM setup 48 | pvcreate /dev/${DEVICE}${LETTER}1 49 | vgcreate VolGroupU01 /dev/${DEVICE}${LETTER}1 50 | lvcreate -l 100%FREE -n LogVolU01 VolGroupU01 51 | 52 | # Make XFS 53 | mkfs.xfs -f /dev/VolGroupU01/LogVolU01 54 | 55 | # Set fstab 56 | UUID=`blkid -s UUID -o value /dev/VolGroupU01/LogVolU01` 57 | mkdir -p /u01 58 | cat >> /etc/fstab <_grid_home.zip 3 | LINUX.X64__db_home.zip 4 | 5 | It will be visible inside the VM below this path: 6 | /vagrant/ORCL_software/ 7 | -------------------------------------------------------------------------------- /OracleFPP/OL8/images/OracleFPP.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/vagrant-projects/f6154929f907bf9247d9bad143b94a1caac7036e/OracleFPP/OL8/images/OracleFPP.png -------------------------------------------------------------------------------- /OracleFPP/OL8/scripts/02_setup_u01.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 3 | # 4 | # LICENSE UPL 1.0 5 | # 6 | # Copyright (c) 1982-2020 Oracle and/or its affiliates. All rights reserved. 7 | # 8 | # NAME 9 | # 01_setup_u01.sh 10 | # 11 | # DESCRIPTION 12 | # Setup for u01 13 | # 14 | # NOTES 15 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 16 | # 17 | # AUTHOR 18 | # ruggero.citton@oracle.com 19 | # 20 | # MODIFIED (MM/DD/YY) 21 | # rcitton 03/30/20 - VBox libvirt & kvm support 22 | # rcitton 10/01/19 - Creation 23 | # 24 | # REVISION 25 | # 20240631 - $Revision: 2.0.2.1 $ 26 | # 27 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│ 28 | echo "-----------------------------------------------------------------" 29 | echo -e "${INFO}`date +%F' '%T`: Setting-up /u01 disk" 30 | echo "-----------------------------------------------------------------" 31 | # Single GPT partition for the whole disk 32 | BOX_DISK_NUM=$1 33 | PROVIDER=$2 34 | 35 | if [ "${PROVIDER}" == "libvirt" ]; then 36 | DEVICE="vd" 37 | elif [ "${PROVIDER}" == "virtualbox" ]; then 38 | DEVICE="sd" 39 | else 40 | echo "Not supported provider: ${PROVIDER}" 41 | exit 1 42 | fi 43 | 44 | LETTER=`tr 0123456789 abcdefghij <<< $BOX_DISK_NUM` 45 | parted -s -a optimal /dev/${DEVICE}${LETTER} mklabel gpt -- mkpart primary 2048s 100% 46 | 47 | # LVM setup 48 | pvcreate /dev/${DEVICE}${LETTER}1 49 | vgcreate VolGroupU01 /dev/${DEVICE}${LETTER}1 50 | lvcreate -l 100%FREE -n LogVolU01 VolGroupU01 51 | 52 | # Make XFS 53 | mkfs.xfs -f /dev/VolGroupU01/LogVolU01 54 | 55 | # Set fstab 56 | UUID=`blkid -s UUID -o value /dev/VolGroupU01/LogVolU01` 57 | mkdir -p /u01 58 | cat >> /etc/fstab <_grid_home.zip 3 | LINUX.X64__db_home.zip 4 | 5 | It will be visible inside the VM below this path: 6 | /vagrant/ORCL_software/ 7 | -------------------------------------------------------------------------------- /OracleFPP/OL9/images/OracleFPP.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/vagrant-projects/f6154929f907bf9247d9bad143b94a1caac7036e/OracleFPP/OL9/images/OracleFPP.png -------------------------------------------------------------------------------- /OracleFPP/OL9/scripts/02_setup_u01.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 3 | # 4 | # LICENSE UPL 1.0 5 | # 6 | # Copyright (c) 1982-2020 Oracle and/or its affiliates. All rights reserved. 7 | # 8 | # NAME 9 | # 01_setup_u01.sh 10 | # 11 | # DESCRIPTION 12 | # Setup for u01 13 | # 14 | # NOTES 15 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 16 | # 17 | # AUTHOR 18 | # ruggero.citton@oracle.com 19 | # 20 | # MODIFIED (MM/DD/YY) 21 | # rcitton 03/30/20 - VBox libvirt & kvm support 22 | # rcitton 10/01/19 - Creation 23 | # 24 | # REVISION 25 | # 20240631 - $Revision: 2.0.2.1 $ 26 | # 27 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│ 28 | echo "-----------------------------------------------------------------" 29 | echo -e "${INFO}`date +%F' '%T`: Setting-up /u01 disk" 30 | echo "-----------------------------------------------------------------" 31 | # Single GPT partition for the whole disk 32 | BOX_DISK_NUM=$1 33 | PROVIDER=$2 34 | 35 | if [ "${PROVIDER}" == "libvirt" ]; then 36 | DEVICE="vd" 37 | elif [ "${PROVIDER}" == "virtualbox" ]; then 38 | DEVICE="sd" 39 | else 40 | echo "Not supported provider: ${PROVIDER}" 41 | exit 1 42 | fi 43 | 44 | LETTER=`tr 0123456789 abcdefghij <<< $BOX_DISK_NUM` 45 | parted -s -a optimal /dev/${DEVICE}${LETTER} mklabel gpt -- mkpart primary 2048s 100% 46 | 47 | # LVM setup 48 | pvcreate /dev/${DEVICE}${LETTER}1 49 | vgcreate VolGroupU01 /dev/${DEVICE}${LETTER}1 50 | lvcreate -l 100%FREE -n LogVolU01 VolGroupU01 51 | 52 | # Make XFS 53 | mkfs.xfs -f /dev/VolGroupU01/LogVolU01 54 | 55 | # Set fstab 56 | UUID=`blkid -s UUID -o value /dev/VolGroupU01/LogVolU01` 57 | mkdir -p /u01 58 | cat >> /etc/fstab <> /etc/fstab < /etc/hosts <> /etc/hosts < /etc/resolv.conf <> /etc/fstab < /etc/hosts <> /etc/hosts < /etc/resolv.conf < 10 | statement in the script. 11 | 12 | To run scripts in a specific order, prefix the file names with a 13 | number, e.g., 01_shellscript.sh, 02_tablespaces.sql, 14 | 03_shellscript2.sh, etc. -------------------------------------------------------------------------------- /OracleGoldenGate/19.3.0/ora-response/db_install.rsp.tmpl: -------------------------------------------------------------------------------- 1 | oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v19.0.0 2 | oracle.install.option=INSTALL_DB_SWONLY 3 | UNIX_GROUP_NAME=dba 4 | INVENTORY_LOCATION=###ORACLE_BASE###/oraInventory 5 | ORACLE_BASE=###ORACLE_BASE### 6 | ORACLE_HOME=###ORACLE_HOME### 7 | oracle.install.db.InstallEdition=###ORACLE_EDITION### 8 | oracle.install.db.OSDBA_GROUP=dba 9 | oracle.install.db.OSBACKUPDBA_GROUP=dba 10 | oracle.install.db.OSDGDBA_GROUP=dba 11 | oracle.install.db.OSKMDBA_GROUP=dba 12 | oracle.install.db.OSRACDBA_GROUP=dba -------------------------------------------------------------------------------- /OracleGoldenGate/19.3.0/ora-response/dbca.rsp.tmpl: -------------------------------------------------------------------------------- 1 | responseFileVersion=/oracle/assistants/rspfmt_dbca_response_schema_v19.0.0 2 | gdbName=###ORACLE_SID### 3 | sid=###ORACLE_SID### 4 | databaseConfigType=SI 5 | createAsContainerDatabase=true 6 | numberOfPDBs=1 7 | pdbName=###ORACLE_PDB### 8 | pdbAdminPassword=###ORACLE_PWD### 9 | templateName=General_Purpose.dbc 10 | sysPassword=###ORACLE_PWD### 11 | systemPassword=###ORACLE_PWD### 12 | emConfiguration=DBEXPRESS 13 | emExpressPort=###EM_EXPRESS_PORT### 14 | dbsnmpPassword=###ORACLE_PWD### 15 | storageType=FS 16 | characterSet=###ORACLE_CHARACTERSET### 17 | nationalCharacterSet=AL16UTF16 18 | automaticMemoryManagement=FALSE 19 | totalMemory=1536 20 | # Some init.ora parameters - disable auditing to save space, enable FS optimizations 21 | initParams=audit_trail=none,audit_sys_operations=false,filesystemio_options=setall,commit_logging=batch,commit_wait=nowait -------------------------------------------------------------------------------- /OracleGoldenGate/19.3.0/ora-response/ogg_install.rsp.tmpl: -------------------------------------------------------------------------------- 1 | oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v19.1.0 2 | INSTALL_OPTION=ORA19c 3 | SOFTWARE_LOCATION=/u01/ogg 4 | START_MANAGER=true 5 | MANAGER_PORT=7809 6 | DATABASE_LOCATION=###ORACLE_HOME### 7 | INVENTORY_LOCATION=###ORACLE_BASE###/oraInventory/ 8 | UNIX_GROUP_NAME=oinstall 9 | -------------------------------------------------------------------------------- /OracleGoldenGate/19.3.0/scripts/services/kafka.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Apache Kafka Server 3 | Documentation=http://kafka.apache.org/documentation.html 4 | Requires=zookeeper.service 5 | 6 | [Service] 7 | Type=simple 8 | Environment="JAVA_HOME=/usr/lib/jvm/jre-###JAVA_VERSION###-openjdk" 9 | ExecStart=/usr/local/kafka/kafka_###KAFKA_VERSION###/bin/kafka-server-start.sh /usr/local/kafka/kafka_###KAFKA_VERSION###/config/server.properties 10 | ExecStop=/usr/local/kafka/kafka_###KAFKA_VERSION###/bin/kafka-server-stop.sh 11 | 12 | [Install] 13 | WantedBy=multi-user.target -------------------------------------------------------------------------------- /OracleGoldenGate/19.3.0/scripts/services/oracle-rdbms.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Oracle Database(s) and Listener 3 | Requires=network.target 4 | 5 | [Service] 6 | Type=forking 7 | Restart=no 8 | ExecStart=###ORACLE_HOME###/bin/dbstart ###ORACLE_HOME### 9 | ExecStop=###ORACLE_HOME###/bin/dbshut ###ORACLE_HOME### 10 | User=oracle 11 | 12 | [Install] 13 | WantedBy=multi-user.target -------------------------------------------------------------------------------- /OracleGoldenGate/19.3.0/scripts/services/zookeeper.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Apache Zookeeper server 3 | Documentation=http://zookeeper.apache.org 4 | Requires=network.target remote-fs.target 5 | After=network.target remote-fs.target 6 | 7 | [Service] 8 | Type=simple 9 | ExecStart=/usr/local/kafka/kafka_###KAFKA_VERSION###/bin/zookeeper-server-start.sh /usr/local/kafka/kafka_###KAFKA_VERSION###/config/zookeeper.properties 10 | ExecStop=/usr/local/kafka/kafka_###KAFKA_VERSION###/bin/zookeeper-server-stop.sh 11 | Restart=on-abnormal 12 | 13 | [Install] 14 | WantedBy=multi-user.target -------------------------------------------------------------------------------- /OracleGoldenGate/19.3.0/scripts/setPassword.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # LICENSE UPL 1.0 3 | # 4 | # Copyright (c) 1982-2016 Oracle and/or its affiliates. All rights reserved. 5 | # 6 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 7 | # 8 | 9 | ORACLE_PWD=$1 10 | ORACLE_SID="`grep $ORACLE_HOME /etc/oratab | cut -d: -f1`" 11 | ORACLE_PDB="`ls -dl $ORACLE_BASE/oradata/$ORACLE_SID/*/ | grep -v pdbseed | awk '{print $9}' | cut -d/ -f6`" 12 | ORAENV_ASK=NO 13 | source oraenv 14 | 15 | sqlplus / as sysdba << EOF 16 | ALTER USER SYS IDENTIFIED BY "$ORACLE_PWD"; 17 | ALTER USER SYSTEM IDENTIFIED BY "$ORACLE_PWD"; 18 | ALTER SESSION SET CONTAINER=$ORACLE_PDB; 19 | ALTER USER PDBADMIN IDENTIFIED BY "$ORACLE_PWD"; 20 | exit; 21 | EOF 22 | 23 | -------------------------------------------------------------------------------- /OracleGoldenGate/19.3.0/userscripts/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | !put_custom_scripts_here.txt -------------------------------------------------------------------------------- /OracleGoldenGate/19.3.0/userscripts/put_custom_scripts_here.txt: -------------------------------------------------------------------------------- 1 | Any shell (.sh) or SQL (.sql) scripts you put in this directory 2 | will be executed by the installer after the database is set up 3 | and started. Only shell and SQL scripts will be executed; all 4 | other files will be ignored. These scripts are completely 5 | optional. 6 | 7 | Shell scripts will be executed as root. SQL scripts will be 8 | executed as SYS. SQL scripts will run against the CDB, not the 9 | PDB, unless you include an ALTER SESSION SET CONTAINER = 10 | statement in the script. 11 | 12 | To run scripts in a specific order, prefix the file names with a 13 | number, e.g., 01_shellscript.sh, 02_tablespaces.sql, 14 | 03_shellscript2.sh, etc. -------------------------------------------------------------------------------- /OracleLinux/6/README.md: -------------------------------------------------------------------------------- 1 | # ol6-vagrant 2 | 3 | A Vagrant project that provisions Oracle Linux automatically, using Vagrant, an Oracle Linux 6 box and a shell script. 4 | 5 | ## Prerequisites 6 | 7 | Read the [prerequisites in the top level README](../README.md#prerequisites) to set up Vagrant with either VirtualBox or KVM 8 | 9 | ## Getting started 10 | 11 | 1. Clone this repository `git clone https://github.com/oracle/vagrant-projects` 12 | 2. cd vagrant-projects/OracleLinux/6 13 | 3. Run `vagrant status` to check Vagrantfile status and possible plugin(s) required 14 | 4. Run `vagrant up` 15 | 1. The first time you run this it will provision everything and may take a while. Ensure you have a good internet connection! 16 | 2. The Vagrant file allows for customization. 17 | 5. SSH into the VM either by using `vagrant ssh` 18 | If required, by Vagrantfile you can also setup ssh port forwarding. 19 | 6. You can shut down the VM via the usual `vagrant halt` and the start it up again via `vagrant up`. 20 | 21 | ## Optional plugins 22 | 23 | When installed, this Vagrantfile will make use of the following third party Vagrant plugins: 24 | 25 | - [vagrant-proxyconf](https://github.com/tmatilai/vagrant-proxyconf): set 26 | proxies in the guest VMs if you need to access the Internet through proxy. See 27 | plugin documentation for the configuration. 28 | - [vagrant-reload](https://github.com/aidanns/vagrant-reload): reload the VM 29 | during provisioning to activate the latest kernel. 30 | 31 | To install Vagrant plugins run: 32 | 33 | ```shell 34 | vagrant plugin install ... 35 | ``` 36 | 37 | ## Other info 38 | 39 | - If you need to, you can connect to the machine via `vagrant ssh`. 40 | - On the guest OS, the directory `/vagrant` is a shared folder and maps to wherever you have this file checked out. 41 | -------------------------------------------------------------------------------- /OracleLinux/6/scripts/install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # LICENSE UPL 1.0 4 | # 5 | # Copyright (c) 2018, 2020 Oracle and/or its affiliates. 6 | # 7 | # Since: January, 2018 8 | # Author: gerald.venzl@oracle.com 9 | # Description: Updates Oracle Linux to the latest version 10 | # 11 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 12 | # 13 | 14 | echo 'INSTALLER: Started up' 15 | 16 | echo 'Fix dracut issue' 17 | cat > /etc/dracut.conf.d/01-dracut-vm.conf << EOD 18 | 19 | add_drivers+=" xen_netfront xen_blkfront " 20 | add_drivers+=" virtio_blk virtio_net virtio virtio_pci virtio_balloon " 21 | add_drivers+=" hyperv_keyboard hv_netvsc hid_hyperv hv_utils hv_storvsc hyperv_fb " 22 | add_drivers+=" ahci libahci " 23 | 24 | EOD 25 | 26 | # get up to date 27 | yum upgrade -y 28 | 29 | echo 'INSTALLER: System updated' 30 | 31 | # fix locale warning 32 | echo LANG=en_US.utf-8 >> /etc/environment 33 | echo LC_ALL=en_US.utf-8 >> /etc/environment 34 | 35 | echo 'INSTALLER: Locale set' 36 | -------------------------------------------------------------------------------- /OracleLinux/7/.env: -------------------------------------------------------------------------------- 1 | # Oracle Linux 7 configuration file 2 | # 3 | # Requires vagrant-env plugin 4 | # 5 | # This file will be overwritten on updates, it is recommended to make changes 6 | # in .env.local 7 | 8 | # Extensions 9 | # To enable extensions, uncomment one or more EXTEND/EXPOSE definition: 10 | 11 | # LAMP stack 12 | # EXTEND=$EXTEND,lamp 13 | # EXPOSE=$EXPOSE,8080:80 14 | 15 | # Oracle Container Runtime for Docker 16 | # EXTEND=$EXTEND,container-runtime 17 | -------------------------------------------------------------------------------- /OracleLinux/7/.gitattributes: -------------------------------------------------------------------------------- 1 | *.sh text eol=lf 2 | -------------------------------------------------------------------------------- /OracleLinux/7/.gitignore: -------------------------------------------------------------------------------- 1 | .env.local 2 | scripts.local 3 | *.swp -------------------------------------------------------------------------------- /OracleLinux/7/scripts/container-runtime.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # LICENSE UPL 1.0 4 | # 5 | # Copyright (c) 2018, 2020 Oracle and/or its affiliates. 6 | # 7 | # Since: February, 2018 8 | # Author: sergio.leunissen@oracle.com 9 | # Description: Installs Oracle Container Runtime for Docker using Btrfs as storage 10 | # 11 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 12 | # 13 | echo 'Installing and configuring Oracle Container Runtime for Docker' 14 | 15 | # install Oracle Container Runtime for Docker 16 | yum -y install docker-engine 17 | 18 | if [[ -b /dev/sdb || -b /dev/vdb ]]; then 19 | # Format spare device as Btrfs 20 | # Configure Btrfs storage driver 21 | docker-storage-config -s btrfs -d /dev/[sv]db 22 | else 23 | # No spare disk, configure the appropriate driver 24 | fstype=$(stat -f -c %T /var/lib/docker 2>/dev/null || stat -f -c %T /var/lib) 25 | storage_driver="" 26 | case "${fstype}" in 27 | btrfs) 28 | storage_driver="btrfs" 29 | ;; 30 | xfs) 31 | storage_driver="overlay2" 32 | ;; 33 | esac 34 | if [[ -n ${storage_driver} ]]; then 35 | [ ! -d /etc/docker ] && mkdir -m 0700 /etc/docker && chown root:root /etc/docker 36 | cat > /etc/docker/daemon.json <<-EOF 37 | { 38 | "storage-driver": "${storage_driver}" 39 | } 40 | EOF 41 | fi 42 | fi 43 | 44 | # Start and enable the container runtime 45 | systemctl start docker 46 | systemctl enable docker 47 | 48 | # Add vagrant user to docker group 49 | usermod -a -G docker vagrant 50 | 51 | # Relax /etc/docker permissions 52 | chmod 0770 /etc/docker 53 | 54 | echo 'Oracle Container Runtime for Docker is ready to use' 55 | echo 'To get started, on your host, run:' 56 | echo ' vagrant ssh' 57 | echo 58 | echo 'Then, within the guest (for example):' 59 | echo ' docker run -it --rm oraclelinux:8-slim' 60 | echo 61 | -------------------------------------------------------------------------------- /OracleLinux/7/scripts/install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # LICENSE UPL 1.0 4 | # 5 | # Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved. 6 | # 7 | # Since: January, 2018 8 | # Author: gerald.venzl@oracle.com 9 | # Description: Updates Oracle Linux to the latest version 10 | # 11 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 12 | # 13 | 14 | echo 'INSTALLER: Started up' 15 | 16 | # get up to date 17 | yum upgrade -y 18 | 19 | echo 'INSTALLER: System updated' 20 | 21 | # fix locale warning 22 | echo LANG=en_US.utf-8 >> /etc/environment 23 | echo LC_ALL=en_US.utf-8 >> /etc/environment 24 | 25 | echo 'INSTALLER: Locale set' 26 | -------------------------------------------------------------------------------- /OracleLinux/8/.env: -------------------------------------------------------------------------------- 1 | # Oracle Linux 8 configuration file 2 | # 3 | # Requires vagrant-env plugin 4 | # 5 | # This file will be overwritten on updates, it is recommended to make changes 6 | # in .env.local 7 | 8 | # Extensions 9 | # To enable extensions, uncomment one or more EXTEND/EXPOSE definition: 10 | 11 | # The podman, buildah, and skopeo Container tools 12 | # EXTEND=$EXTEND,container-tools 13 | 14 | # Example for 'my-extension' using port 80 15 | # Run script 'scripts.local/my-extension.sh': 16 | # EXTEND=$EXTEND,my-extension 17 | # Expose guest port 80 to host port 8080: 18 | # EXPOSE=$EXPOSE,8080:80 19 | -------------------------------------------------------------------------------- /OracleLinux/8/.gitattributes: -------------------------------------------------------------------------------- 1 | *.sh text eol=lf 2 | -------------------------------------------------------------------------------- /OracleLinux/8/.gitignore: -------------------------------------------------------------------------------- 1 | .env.local 2 | scripts.local 3 | *.swp -------------------------------------------------------------------------------- /OracleLinux/8/scripts/container-tools.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Provisioning script for the Container Tools module 4 | # 5 | # Copyright (c) 2020 Oracle and/or its affiliates. 6 | # Licensed under the Universal Permissive License v 1.0 as shown at 7 | # https://oss.oracle.com/licenses/upl. 8 | # 9 | # Description: Installs the podman, buildah and skopeo Container Tools 10 | # 11 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 12 | # 13 | echo 'Installing Container Tools module' 14 | 15 | dnf -y module install container-tools:ol8 16 | 17 | echo 'Container Tools are ready to use' 18 | echo 'To get started, on your host, run:' 19 | echo ' vagrant ssh' 20 | echo 21 | echo 'Then, within the guest (for example):' 22 | echo ' podman run -it --rm oraclelinux:8-slim' 23 | echo 24 | -------------------------------------------------------------------------------- /OracleLinux/8/scripts/install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # LICENSE UPL 1.0 4 | # 5 | # Copyright (c) 1982-2018 Oracle and/or its affiliates. All rights reserved. 6 | # 7 | # Since: January, 2018 8 | # Author: gerald.venzl@oracle.com 9 | # Description: Updates Oracle Linux to the latest version 10 | # 11 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 12 | # 13 | 14 | echo 'INSTALLER: Started up' 15 | 16 | # get up to date 17 | dnf upgrade -y 18 | 19 | echo 'INSTALLER: System updated' 20 | 21 | # fix locale warning 22 | echo LANG=en_US.utf-8 >> /etc/environment 23 | echo LC_ALL=en_US.utf-8 >> /etc/environment 24 | 25 | echo 'INSTALLER: Locale set' 26 | -------------------------------------------------------------------------------- /OracleLinux/9/.env: -------------------------------------------------------------------------------- 1 | # Oracle Linux 9 configuration file 2 | # 3 | # Requires vagrant-env plugin 4 | # 5 | # This file will be overwritten on updates, it is recommended to make changes 6 | # in .env.local 7 | 8 | # Extensions 9 | # To enable extensions, uncomment one or more EXTEND/EXPOSE definition: 10 | 11 | # The podman, buildah, and skopeo Container tools 12 | # EXTEND=$EXTEND,container-tools 13 | 14 | # Example for 'my-extension' using port 80 15 | # Run script 'scripts.local/my-extension.sh': 16 | # EXTEND=$EXTEND,my-extension 17 | # Expose guest port 80 to host port 8080: 18 | # EXPOSE=$EXPOSE,8080:80 19 | -------------------------------------------------------------------------------- /OracleLinux/9/.gitattributes: -------------------------------------------------------------------------------- 1 | *.sh text eol=lf 2 | -------------------------------------------------------------------------------- /OracleLinux/9/.gitignore: -------------------------------------------------------------------------------- 1 | .env.local 2 | scripts.local 3 | *.swp -------------------------------------------------------------------------------- /OracleLinux/9/scripts/container-tools.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Provisioning script for the Container Tools meta-package 4 | # 5 | # Copyright (c) 2022 Oracle and/or its affiliates. 6 | # Licensed under the Universal Permissive License v 1.0 as shown at 7 | # https://oss.oracle.com/licenses/upl. 8 | # 9 | # Description: Installs the podman, buildah and skopeo Container Tools 10 | # 11 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 12 | # 13 | echo 'Installing Container Tools meta-package' 14 | 15 | dnf -y install container-tools 16 | 17 | echo 'Container Tools are ready to use' 18 | echo 'To get started, on your host, run:' 19 | echo ' vagrant ssh' 20 | echo 21 | echo 'Then, within the guest (for example):' 22 | echo ' podman run -it --rm oraclelinux:9-slim' 23 | echo 24 | -------------------------------------------------------------------------------- /OracleLinux/9/scripts/install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Copyright (c) 2022 Oracle and/or its affiliates. 4 | # Licensed under the Universal Permissive License v 1.0 as shown at 5 | # https://oss.oracle.com/licenses/upl. 6 | # 7 | # Description: Updates Oracle Linux to the latest version 8 | # 9 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 10 | # 11 | 12 | echo 'INSTALLER: Started up' 13 | 14 | # get up to date 15 | dnf upgrade -y 16 | 17 | echo 'INSTALLER: System updated' 18 | 19 | # fix locale warning 20 | echo LANG=en_US.utf-8 >> /etc/environment 21 | echo LC_ALL=en_US.utf-8 >> /etc/environment 22 | 23 | echo 'INSTALLER: Locale set' 24 | -------------------------------------------------------------------------------- /OracleLinux/README.md: -------------------------------------------------------------------------------- 1 | # Oracle Linux Vagrant projects 2 | 3 | This directory contains Vagrant projects to provision an Oracle Linux system automatically, using Vagrant and a shell script. 4 | 5 | ## Prerequisites 6 | 7 | Read the [prerequisites in the top level README](../README.md#prerequisites) to set up either Vagrant with either VirtualBox or KVM 8 | 9 | ## Getting started 10 | 11 | 1. Clone this repository `git clone https://github.com/oracle/vagrant-projects` 12 | 2. Change into the desired version folder 13 | 3. Run `vagrant up` 14 | 4. You can shut down the VM via the usual `vagrant halt` and the start it up again via `vagrant up`. 15 | 16 | **For more information please check the individual README within each folder!** 17 | -------------------------------------------------------------------------------- /OracleLinux/preview/README.md: -------------------------------------------------------------------------------- 1 | # no-preview available actually 2 | -------------------------------------------------------------------------------- /OracleRAC/.gitattributes: -------------------------------------------------------------------------------- 1 | *.sh text eol=lf 2 | -------------------------------------------------------------------------------- /OracleRAC/.gitignore: -------------------------------------------------------------------------------- 1 | .git/ 2 | .vagrant/ 3 | .DS_Store 4 | CVS 5 | .vagrant 6 | .zip 7 | *.swp 8 | 9 | -------------------------------------------------------------------------------- /OracleRAC/OL7/ORCL_software/put_Oracle-software_here.txt: -------------------------------------------------------------------------------- 1 | The expecting Oracle software is 2 | LINUX.X64__grid_home.zip 3 | LINUX.X64__db_home.zip 4 | 5 | It will be visible inside the VM below this path: 6 | /vagrant/ORCL_software/ 7 | -------------------------------------------------------------------------------- /OracleRAC/OL7/images/OracleRAC.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/vagrant-projects/f6154929f907bf9247d9bad143b94a1caac7036e/OracleRAC/OL7/images/OracleRAC.png -------------------------------------------------------------------------------- /OracleRAC/OL7/scripts/04_setup_chrony.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 3 | # 4 | # LICENSE UPL 1.0 5 | # 6 | # Copyright (c) 1982-2024 Oracle and/or its affiliates. All rights reserved. 7 | # 8 | # NAME 9 | # 04_setup_chrony.sh 10 | # 11 | # DESCRIPTION 12 | # Setup chronyd service 13 | # 14 | # NOTES 15 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 16 | # 17 | # AUTHOR 18 | # Ruggero Citton - RAC Pack, Cloud Innovation and Solution Engineering Team 19 | # 20 | # MODIFIED (MM/DD/YY) 21 | # rcitton 03/30/20 - VBox libvirt & kvm support 22 | # rcitton 11/06/18 - Creation 23 | # 24 | # REVISION 25 | # 20240603 - $Revision: 2.0.2.1 $ 26 | # 27 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│ 28 | echo "-----------------------------------------------------------------" 29 | echo -e "${INFO}`date +%F' '%T`: Setup chronyd service" 30 | echo "-----------------------------------------------------------------" 31 | systemctl enable chronyd 32 | systemctl restart chronyd 33 | chronyc -a makestep 34 | 35 | #---------------------------------------------------------- 36 | # EndOfFile 37 | #---------------------------------------------------------- 38 | -------------------------------------------------------------------------------- /OracleRAC/OL7/scripts/07_setup_user_equ.expect: -------------------------------------------------------------------------------- 1 | #!/usr/bin/expect -f 2 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 3 | # 4 | # LICENSE UPL 1.0 5 | # 6 | # Copyright (c) 1982-2024 Oracle and/or its affiliates. All rights reserved. 7 | # 8 | # NAME 9 | # 07_setup_user_equ.expect 10 | # 11 | # DESCRIPTION 12 | # Setup users equivalences 13 | # 14 | # NOTES 15 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 16 | # 17 | # AUTHOR 18 | # Ruggero Citton - RAC Pack, Cloud Innovation and Solution Engineering Team 19 | # 20 | # MODIFIED (MM/DD/YY) 21 | # rcitton 03/30/20 - VBox libvirt & kvm support 22 | # rcitton 11/06/18 - Creation 23 | # 24 | # REVISION 25 | # 20240603 - $Revision: 2.0.2.1 $ 26 | # 27 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│ 28 | set timeout 20 29 | set username [lindex $argv 0] 30 | set password [lindex $argv 1] 31 | set node1 [lindex $argv 2] 32 | set node2 [lindex $argv 3] 33 | set path [lindex $argv 4] 34 | 35 | spawn $path -user $username -hosts "$node1 $node2" -noPromptPassphrase -advanced 36 | 37 | expect "Do you want to continue and let the script make the above mentioned changes (yes/no)?" { send "yes\n" } 38 | expect "password:" { send "$password\n" } 39 | expect "password:" { send "$password\n" } 40 | expect "password:" { send "$password\n" } 41 | expect "password:" { send "$password\n" } 42 | expect { default {} } 43 | 44 | #---------------------------------------------------------- 45 | # EndOfFile 46 | #---------------------------------------------------------- 47 | -------------------------------------------------------------------------------- /OracleRAC/OL7/scripts/10_gi_setup.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 3 | # 4 | # LICENSE UPL 1.0 5 | # 6 | # Copyright (c) 1982-2024 Oracle and/or its affiliates. All rights reserved. 7 | # 8 | # NAME 9 | # 10_gi_setup.sh 10 | # 11 | # DESCRIPTION 12 | # GI Setup 13 | # 14 | # NOTES 15 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 16 | # 17 | # AUTHOR 18 | # Ruggero Citton - RAC Pack, Cloud Innovation and Solution Engineering Team 19 | # 20 | # MODIFIED (MM/DD/YY) 21 | # rcitton 03/30/20 - VBox libvirt & kvm support 22 | # rcitton 11/06/18 - Creation 23 | # 24 | # REVISION 25 | # 20240603 - $Revision: 2.0.2.1 $ 26 | # 27 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│ 28 | . /vagrant/config/setup.env 29 | 30 | sh ${ORA_INVENTORY}/orainstRoot.sh 31 | if [ "${ORESTART}" == "false" ] 32 | then 33 | sh ${GI_HOME}/root.sh 34 | ssh root@${NODE2_HOSTNAME} sh ${ORA_INVENTORY}/orainstRoot.sh 35 | ssh root@${NODE2_HOSTNAME} sh ${GI_HOME}/root.sh 36 | else 37 | sh ${ORA_INVENTORY}/orainstRoot.sh 38 | sh ${GI_HOME}/root.sh 39 | ${GI_HOME}/perl/bin/perl -I ${GI_HOME}/perl/lib -I ${GI_HOME}/crs/install ${GI_HOME}/crs/install/roothas.pl 40 | fi 41 | 42 | #---------------------------------------------------------- 43 | # EndOfFile 44 | #---------------------------------------------------------- 45 | -------------------------------------------------------------------------------- /OracleRAC/OL7/scripts/12_Make_ASMFD_RECODG.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 3 | # 4 | # LICENSE UPL 1.0 5 | # 6 | # Copyright (c) 1982-2024 Oracle and/or its affiliates. All rights reserved. 7 | # 8 | # NAME 9 | # 12_Make_ASMFD_RECODG.sh 10 | # 11 | # DESCRIPTION 12 | # Make RECO DG 13 | # 14 | # NOTES 15 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 16 | # 17 | # AUTHOR 18 | # Ruggero Citton - RAC Pack, Cloud Innovation and Solution Engineering Team 19 | # 20 | # MODIFIED (MM/DD/YY) 21 | # rcitton 03/30/20 - VBox libvirt & kvm support 22 | # rcitton 11/06/18 - Creation 23 | # 24 | # REVISION 25 | # 20240603 - $Revision: 2.0.2.1 $ 26 | # 27 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│ 28 | . /vagrant/config/setup.env 29 | 30 | export ORACLE_HOME=${GI_HOME} 31 | if [ "${ORESTART}" == "false" ] 32 | then 33 | export ORACLE_SID=+ASM1 34 | else 35 | export ORACLE_SID=+ASM 36 | fi 37 | 38 | DISKS_STRING="DISK " 39 | for device in `(cd /dev/oracleafd/disks; ls ORCL_DISK*_P2)` 40 | do 41 | AFDDISK="AFD:${device}" 42 | DISKS_STRING=${DISKS_STRING}"'$AFDDISK'," 43 | done 44 | DISKS_STRING="${DISKS_STRING::-1}" 45 | 46 | ${GI_HOME}/bin/sqlplus / as sysasm <_grid_home.zip 3 | LINUX.X64__db_home.zip 4 | 5 | It will be visible inside the VM below this path: 6 | /vagrant/ORCL_software/ 7 | -------------------------------------------------------------------------------- /OracleRAC/OL8/images/OracleRAC.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/vagrant-projects/f6154929f907bf9247d9bad143b94a1caac7036e/OracleRAC/OL8/images/OracleRAC.png -------------------------------------------------------------------------------- /OracleRAC/OL8/scripts/04_setup_chrony.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 3 | # 4 | # LICENSE UPL 1.0 5 | # 6 | # Copyright (c) 1982-2020 Oracle and/or its affiliates. All rights reserved. 7 | # 8 | # NAME 9 | # 04_setup_chrony.sh 10 | # 11 | # DESCRIPTION 12 | # Setup chronyd service 13 | # 14 | # NOTES 15 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 16 | # 17 | # AUTHOR 18 | # Ruggero Citton - RAC Pack, Cloud Innovation and Solution Engineering Team 19 | # 20 | # MODIFIED (MM/DD/YY) 21 | # rcitton 03/30/20 - VBox libvirt & kvm support 22 | # rcitton 11/06/18 - Creation 23 | # 24 | # REVISION 25 | # 20200330 - $Revision: 2.0.2.1 $ 26 | # 27 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│ 28 | echo "-----------------------------------------------------------------" 29 | echo -e "${INFO}`date +%F' '%T`: Setup chronyd service" 30 | echo "-----------------------------------------------------------------" 31 | systemctl enable chronyd 32 | systemctl restart chronyd 33 | chronyc -a makestep 34 | 35 | #---------------------------------------------------------- 36 | # EndOfFile 37 | #---------------------------------------------------------- 38 | -------------------------------------------------------------------------------- /OracleRAC/OL8/scripts/07_setup_user_equ.expect: -------------------------------------------------------------------------------- 1 | #!/usr/bin/expect -f 2 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 3 | # 4 | # LICENSE UPL 1.0 5 | # 6 | # Copyright (c) 1982-2020 Oracle and/or its affiliates. All rights reserved. 7 | # 8 | # NAME 9 | # 07_setup_user_equ.expect 10 | # 11 | # DESCRIPTION 12 | # Setup users equivalences 13 | # 14 | # NOTES 15 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 16 | # 17 | # AUTHOR 18 | # Ruggero Citton - RAC Pack, Cloud Innovation and Solution Engineering Team 19 | # 20 | # MODIFIED (MM/DD/YY) 21 | # rcitton 03/30/20 - VBox libvirt & kvm support 22 | # rcitton 11/06/18 - Creation 23 | # 24 | # REVISION 25 | # 20200330 - $Revision: 2.0.2.1 $ 26 | # 27 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│ 28 | set timeout 20 29 | set username [lindex $argv 0] 30 | set password [lindex $argv 1] 31 | set node1 [lindex $argv 2] 32 | set node2 [lindex $argv 3] 33 | set path [lindex $argv 4] 34 | 35 | spawn $path -user $username -hosts "$node1 $node2" -noPromptPassphrase -advanced 36 | 37 | expect "Do you want to continue and let the script make the above mentioned changes (yes/no)?" { send "yes\n" } 38 | expect "password:" { send "$password\n" } 39 | expect "password:" { send "$password\n" } 40 | expect "password:" { send "$password\n" } 41 | expect "password:" { send "$password\n" } 42 | expect { default {} } 43 | 44 | #---------------------------------------------------------- 45 | # EndOfFile 46 | #---------------------------------------------------------- 47 | -------------------------------------------------------------------------------- /OracleRAC/OL8/scripts/10_gi_setup.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 3 | # 4 | # LICENSE UPL 1.0 5 | # 6 | # Copyright (c) 1982-2020 Oracle and/or its affiliates. All rights reserved. 7 | # 8 | # NAME 9 | # 10_gi_setup.sh 10 | # 11 | # DESCRIPTION 12 | # GI Setup 13 | # 14 | # NOTES 15 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 16 | # 17 | # AUTHOR 18 | # Ruggero Citton - RAC Pack, Cloud Innovation and Solution Engineering Team 19 | # 20 | # MODIFIED (MM/DD/YY) 21 | # rcitton 03/30/20 - VBox libvirt & kvm support 22 | # rcitton 11/06/18 - Creation 23 | # 24 | # REVISION 25 | # 20200330 - $Revision: 2.0.2.1 $ 26 | # 27 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│ 28 | . /vagrant/config/setup.env 29 | 30 | sh ${ORA_INVENTORY}/orainstRoot.sh 31 | if [ "${ORESTART}" == "false" ] 32 | then 33 | sh ${GI_HOME}/root.sh 34 | ssh root@${NODE2_HOSTNAME} sh ${ORA_INVENTORY}/orainstRoot.sh 35 | ssh root@${NODE2_HOSTNAME} sh ${GI_HOME}/root.sh 36 | else 37 | sh ${ORA_INVENTORY}/orainstRoot.sh 38 | sh ${GI_HOME}/root.sh 39 | ${GI_HOME}/perl/bin/perl -I ${GI_HOME}/perl/lib -I ${GI_HOME}/crs/install ${GI_HOME}/crs/install/roothas.pl 40 | fi 41 | 42 | #---------------------------------------------------------- 43 | # EndOfFile 44 | #---------------------------------------------------------- 45 | -------------------------------------------------------------------------------- /OracleRAC/OL8/scripts/11_gi_config.sh: -------------------------------------------------------------------------------- 1 | . /vagrant/config/setup.env 2 | /u01/app/21.3.0.0/grid/gridSetup.sh -silent -executeConfigTools \ 3 | -responseFile /u01/app/21.3.0.0/grid/install/response/gridsetup.rsp \ 4 | INVENTORY_LOCATION=/u01/app/oraInventory \ 5 | SELECTED_LANGUAGES=en,en_GB \ 6 | oracle.install.option=CRS_CONFIG \ 7 | ORACLE_BASE=/u01/app/grid \ 8 | oracle.install.asm.OSDBA=asmdba \ 9 | oracle.install.asm.OSOPER=asmoper \ 10 | oracle.install.asm.OSASM=asmadmin \ 11 | oracle.install.crs.config.scanType=LOCAL_SCAN \ 12 | oracle.install.crs.config.gpnp.scanName=vgt-ol8-213-scan \ 13 | oracle.install.crs.config.gpnp.scanPort=1521 \ 14 | oracle.install.crs.config.clusterName=vgt-ol8-213-c \ 15 | oracle.install.crs.config.ClusterConfiguration=STANDALONE \ 16 | oracle.install.crs.config.configureAsExtendedCluster=false \ 17 | oracle_install_crs_ConfigureMgmtDB=false \ 18 | oracle.install.crs.config.gpnp.configureGNS=false \ 19 | oracle.install.crs.config.autoConfigureClusterNodeVIP=false \ 20 | oracle.install.asm.configureGIMRDataDG=false \ 21 | oracle.install.crs.config.useIPMI=false \ 22 | oracle.install.asm.storageOption=ASM \ 23 | oracle.install.asmOnNAS.configureGIMRDataDG=false \ 24 | oracle.install.asm.SYSASMPassword=welcome1 \ 25 | oracle.install.asm.diskGroup.name=DATA \ 26 | oracle.install.asm.diskGroup.redundancy=EXTERNAL \ 27 | oracle.install.asm.diskGroup.AUSize=4 \ 28 | oracle.install.asm.diskGroup.disksWithFailureGroupNames=, \ 29 | oracle.install.asm.diskGroup.disks= \ 30 | oracle.install.asm.diskGroup.diskDiscoveryString=/dev/oracleasm/disks/ORCL_* \ 31 | oracle.install.asm.gimrDG.AUSize=1 \ 32 | oracle.install.asm.monitorPassword=welcome1 \ 33 | oracle.install.crs.configureRHPS=false \ 34 | oracle.install.crs.config.ignoreDownNodes=false \ 35 | oracle.install.config.managementOption=NONE \ 36 | oracle.install.config.omsPort=0 \ 37 | oracle.install.crs.rootconfig.executeRootScript=false 38 | -------------------------------------------------------------------------------- /OracleRAC/OL8/scripts/12_Make_ASMFD_RECODG.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 3 | # 4 | # LICENSE UPL 1.0 5 | # 6 | # Copyright (c) 1982-2020 Oracle and/or its affiliates. All rights reserved. 7 | # 8 | # NAME 9 | # 12_Make_ASMFD_RECODG.sh 10 | # 11 | # DESCRIPTION 12 | # Make RECO DG 13 | # 14 | # NOTES 15 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 16 | # 17 | # AUTHOR 18 | # Ruggero Citton - RAC Pack, Cloud Innovation and Solution Engineering Team 19 | # 20 | # MODIFIED (MM/DD/YY) 21 | # rcitton 03/30/20 - VBox libvirt & kvm support 22 | # rcitton 11/06/18 - Creation 23 | # 24 | # REVISION 25 | # 20200330 - $Revision: 2.0.2.1 $ 26 | # 27 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│ 28 | . /vagrant/config/setup.env 29 | 30 | export ORACLE_HOME=${GI_HOME} 31 | if [ "${ORESTART}" == "false" ] 32 | then 33 | export ORACLE_SID=+ASM1 34 | else 35 | export ORACLE_SID=+ASM 36 | fi 37 | 38 | DISKS_STRING="DISK " 39 | for device in `(cd /dev/oracleafd/disks; ls ORCL_DISK*_P2)` 40 | do 41 | AFDDISK="AFD:${device}" 42 | DISKS_STRING=${DISKS_STRING}"'$AFDDISK'," 43 | done 44 | DISKS_STRING="${DISKS_STRING::-1}" 45 | 46 | ${GI_HOME}/bin/sqlplus / as sysasm <_grid_home.zip 3 | LINUX.X64__db_home.zip 4 | 5 | It will be visible inside the VM below this path: 6 | /vagrant/ORCL_software/ 7 | -------------------------------------------------------------------------------- /OracleRAC/OL9/images/OracleRAC.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/vagrant-projects/f6154929f907bf9247d9bad143b94a1caac7036e/OracleRAC/OL9/images/OracleRAC.png -------------------------------------------------------------------------------- /OracleRAC/OL9/scripts/04_setup_chrony.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 3 | # 4 | # LICENSE UPL 1.0 5 | # 6 | # Copyright (c) 1982-2024 Oracle and/or its affiliates. All rights reserved. 7 | # 8 | # NAME 9 | # 04_setup_chrony.sh 10 | # 11 | # DESCRIPTION 12 | # Setup chronyd service 13 | # 14 | # NOTES 15 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 16 | # 17 | # AUTHOR 18 | # Ruggero Citton - RAC Pack, Cloud Innovation and Solution Engineering Team 19 | # 20 | # MODIFIED (MM/DD/YY) 21 | # rcitton 03/30/20 - VBox libvirt & kvm support 22 | # rcitton 11/06/18 - Creation 23 | # 24 | # REVISION 25 | # 20240603 - $Revision: 2.0.2.1 $ 26 | # 27 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│ 28 | echo "-----------------------------------------------------------------" 29 | echo -e "${INFO}`date +%F' '%T`: Setup chronyd service" 30 | echo "-----------------------------------------------------------------" 31 | systemctl enable chronyd 32 | systemctl restart chronyd 33 | chronyc -a makestep 34 | 35 | #---------------------------------------------------------- 36 | # EndOfFile 37 | #---------------------------------------------------------- 38 | -------------------------------------------------------------------------------- /OracleRAC/OL9/scripts/07_setup_user_equ.expect: -------------------------------------------------------------------------------- 1 | #!/usr/bin/expect -f 2 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 3 | # 4 | # LICENSE UPL 1.0 5 | # 6 | # Copyright (c) 1982-2024 Oracle and/or its affiliates. All rights reserved. 7 | # 8 | # NAME 9 | # 07_setup_user_equ.expect 10 | # 11 | # DESCRIPTION 12 | # Setup users equivalences 13 | # 14 | # NOTES 15 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 16 | # 17 | # AUTHOR 18 | # Ruggero Citton - RAC Pack, Cloud Innovation and Solution Engineering Team 19 | # 20 | # MODIFIED (MM/DD/YY) 21 | # rcitton 03/30/20 - VBox libvirt & kvm support 22 | # rcitton 11/06/18 - Creation 23 | # 24 | # REVISION 25 | # 20240603 - $Revision: 2.0.2.1 $ 26 | # 27 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│ 28 | set timeout 20 29 | set username [lindex $argv 0] 30 | set password [lindex $argv 1] 31 | set node1 [lindex $argv 2] 32 | set node2 [lindex $argv 3] 33 | set path [lindex $argv 4] 34 | 35 | spawn $path -user $username -hosts "$node1 $node2" -noPromptPassphrase -advanced 36 | 37 | expect "Do you want to continue and let the script make the above mentioned changes (yes/no)?" { send "yes\n" } 38 | expect "password:" { send "$password\n" } 39 | expect "password:" { send "$password\n" } 40 | expect "password:" { send "$password\n" } 41 | expect "password:" { send "$password\n" } 42 | expect { default {} } 43 | 44 | #---------------------------------------------------------- 45 | # EndOfFile 46 | #---------------------------------------------------------- 47 | -------------------------------------------------------------------------------- /OracleRAC/OL9/scripts/10_gi_setup.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 3 | # 4 | # LICENSE UPL 1.0 5 | # 6 | # Copyright (c) 1982-2024 Oracle and/or its affiliates. All rights reserved. 7 | # 8 | # NAME 9 | # 10_gi_setup.sh 10 | # 11 | # DESCRIPTION 12 | # GI Setup 13 | # 14 | # NOTES 15 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 16 | # 17 | # AUTHOR 18 | # Ruggero Citton - RAC Pack, Cloud Innovation and Solution Engineering Team 19 | # 20 | # MODIFIED (MM/DD/YY) 21 | # rcitton 03/30/20 - VBox libvirt & kvm support 22 | # rcitton 11/06/18 - Creation 23 | # 24 | # REVISION 25 | # 20240603 - $Revision: 2.0.2.1 $ 26 | # 27 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│ 28 | . /vagrant/config/setup.env 29 | 30 | sh ${ORA_INVENTORY}/orainstRoot.sh 31 | if [ "${ORESTART}" == "false" ] 32 | then 33 | sh ${GI_HOME}/root.sh 34 | ssh root@${NODE2_HOSTNAME} sh ${ORA_INVENTORY}/orainstRoot.sh 35 | ssh root@${NODE2_HOSTNAME} sh ${GI_HOME}/root.sh 36 | else 37 | sh ${ORA_INVENTORY}/orainstRoot.sh 38 | sh ${GI_HOME}/root.sh 39 | ${GI_HOME}/perl/bin/perl -I ${GI_HOME}/perl/lib -I ${GI_HOME}/crs/install ${GI_HOME}/crs/install/roothas.pl 40 | fi 41 | 42 | #---------------------------------------------------------- 43 | # EndOfFile 44 | #---------------------------------------------------------- 45 | -------------------------------------------------------------------------------- /OracleRAC/OL9/scripts/11_gi_config.sh: -------------------------------------------------------------------------------- 1 | . /vagrant/config/setup.env 2 | /u01/app/21.3.0.0/grid/gridSetup.sh -silent -executeConfigTools \ 3 | -responseFile /u01/app/21.3.0.0/grid/install/response/gridsetup.rsp \ 4 | INVENTORY_LOCATION=/u01/app/oraInventory \ 5 | SELECTED_LANGUAGES=en,en_GB \ 6 | oracle.install.option=CRS_CONFIG \ 7 | ORACLE_BASE=/u01/app/grid \ 8 | oracle.install.asm.OSDBA=asmdba \ 9 | oracle.install.asm.OSOPER=asmoper \ 10 | oracle.install.asm.OSASM=asmadmin \ 11 | oracle.install.crs.config.scanType=LOCAL_SCAN \ 12 | oracle.install.crs.config.gpnp.scanName=vgt-ol8-213-scan \ 13 | oracle.install.crs.config.gpnp.scanPort=1521 \ 14 | oracle.install.crs.config.clusterName=vgt-ol8-213-c \ 15 | oracle.install.crs.config.ClusterConfiguration=STANDALONE \ 16 | oracle.install.crs.config.configureAsExtendedCluster=false \ 17 | oracle_install_crs_ConfigureMgmtDB=false \ 18 | oracle.install.crs.config.gpnp.configureGNS=false \ 19 | oracle.install.crs.config.autoConfigureClusterNodeVIP=false \ 20 | oracle.install.asm.configureGIMRDataDG=false \ 21 | oracle.install.crs.config.useIPMI=false \ 22 | oracle.install.asm.storageOption=ASM \ 23 | oracle.install.asmOnNAS.configureGIMRDataDG=false \ 24 | oracle.install.asm.SYSASMPassword=welcome1 \ 25 | oracle.install.asm.diskGroup.name=DATA \ 26 | oracle.install.asm.diskGroup.redundancy=EXTERNAL \ 27 | oracle.install.asm.diskGroup.AUSize=4 \ 28 | oracle.install.asm.diskGroup.disksWithFailureGroupNames=, \ 29 | oracle.install.asm.diskGroup.disks= \ 30 | oracle.install.asm.diskGroup.diskDiscoveryString=/dev/oracleasm/disks/ORCL_* \ 31 | oracle.install.asm.gimrDG.AUSize=1 \ 32 | oracle.install.asm.monitorPassword=welcome1 \ 33 | oracle.install.crs.configureRHPS=false \ 34 | oracle.install.crs.config.ignoreDownNodes=false \ 35 | oracle.install.config.managementOption=NONE \ 36 | oracle.install.config.omsPort=0 \ 37 | oracle.install.crs.rootconfig.executeRootScript=false 38 | -------------------------------------------------------------------------------- /OracleRAC/OL9/scripts/12_Make_ASMFD_RECODG.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 3 | # 4 | # LICENSE UPL 1.0 5 | # 6 | # Copyright (c) 1982-2024 Oracle and/or its affiliates. All rights reserved. 7 | # 8 | # NAME 9 | # 12_Make_ASMFD_RECODG.sh 10 | # 11 | # DESCRIPTION 12 | # Make RECO DG 13 | # 14 | # NOTES 15 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 16 | # 17 | # AUTHOR 18 | # Ruggero Citton - RAC Pack, Cloud Innovation and Solution Engineering Team 19 | # 20 | # MODIFIED (MM/DD/YY) 21 | # rcitton 03/30/20 - VBox libvirt & kvm support 22 | # rcitton 11/06/18 - Creation 23 | # 24 | # REVISION 25 | # 20240603 - $Revision: 2.0.2.1 $ 26 | # 27 | #│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│ 28 | . /vagrant/config/setup.env 29 | 30 | export ORACLE_HOME=${GI_HOME} 31 | if [ "${ORESTART}" == "false" ] 32 | then 33 | export ORACLE_SID=+ASM1 34 | else 35 | export ORACLE_SID=+ASM 36 | fi 37 | 38 | DISKS_STRING="DISK " 39 | for device in `(cd /dev/oracleafd/disks; ls ORCL_DISK*_P2)` 40 | do 41 | AFDDISK="AFD:${device}" 42 | DISKS_STRING=${DISKS_STRING}"'$AFDDISK'," 43 | done 44 | DISKS_STRING="${DISKS_STRING::-1}" 45 | 46 | ${GI_HOME}/bin/sqlplus / as sysasm <