Enable AL mode and install Rubrik

This commit is contained in:
2025-08-20 14:43:30 -04:00
parent 614e80dcf5
commit 33742d8951
7 changed files with 81 additions and 7 deletions

3
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,3 @@
{
"ansible.python.interpreterPath": "/bin/python3"
}

52
README.md Normal file
View File

@@ -0,0 +1,52 @@
# Oracle Deploy OL8 19c
Automated deployment of Oracle Database 19c on Oracle Linux 8 using Ansible and Terraform.
## Prerequisites
- Proxmox ready to go
- Oracle Database 19c installation files on NFS
- Ansible and Terraform installed
- Sufficient system resources
Ansible collections
```
Collection Version
----------------- -------
ansible.posix 2.1.0
community.general 11.2.0
```
## Installation
1. Clone this repository:
```sh
git clone https://github.com/yourusername/oracle-deploy-OL8-19c.git
cd oracle-deploy-OL8-19c
```
2. Place Oracle 19c installation files in `/data/software/Oracle/19c/`.
3. Adjust inventory and variable files as needed.
## Usage
- Use Terraform to provision VMs:
```sh
cd terraform
terraform init
terraform apply
```
- Update inventory.yml with details of nodes:
```
terraform state pull | grep default
```
- Run the Ansible playbook:
```sh
ansible-playbook -i inventory.ini oracle19c_rdbmsinstall.yml
```
## License
MIT License

View File

@@ -2,6 +2,6 @@
localhost ansible_connection=local
[dbservers]
oraTest1 ansible_host=192.168.10.176 ansible_user=jamesp ansible_become=yes
oraTest2 ansible_host=192.168.10.182 ansible_user=jamesp ansible_become=yes
#db2 ansible_host=192.168.10.189 ansible_user=jamesp ansible_become=yes
#db2 ansible_host=192.168.10.120 ansible_user=jamesp ansible_become=yes

View File

@@ -2,8 +2,10 @@
hosts: dbservers
become: yes
vars:
cdm_ip: 192.168.10.18
packages:
- oracle-database-preinstall-19c
- https://{{ cdm_ip }}/connector/rubrik-agent.x86_64.rpm
pre_tasks:
- name: Update all packages
@@ -11,9 +13,11 @@
name: "*"
state: latest
- name: Install common packages
- name: Install Rubrik Agent and Oracle Prereqs
dnf:
name: "{{ packages }}"
validate_certs: false
disable_gpg_check: true
state: present
- name: Create LVM partition on /dev/sdb
@@ -48,7 +52,7 @@
lvol:
vg: vg_oracle
lv: lv_fra
size: 10g
size: 15g
state: present
- name: Create filesystem on {{ root_directory }}
@@ -106,5 +110,12 @@
opts: defaults
state: mounted
- name: Stop firewalld service
tags: firewall
systemd:
name: firewalld
state: stopped
enabled: no
roles:
- dbsoftware19c_install

View File

@@ -202,7 +202,7 @@
remote_user: "{{ root_user }}"
become: yes
become_user: "{{ oracle_user }}"
shell: "{{ oracle_home }}/bin/dbca -createDatabase -silent -responseFile /tmp/{{ dbca_rsp }}.rsp"
shell: "{{ oracle_home }}/bin/dbca -createDatabase -silent -responseFile /tmp/{{ dbca_rsp }}.rsp -enableArchive true"
ignore_errors: True
tags:
- dbca_createdatabase

View File

@@ -552,7 +552,7 @@ variables=ORACLE_BASE_HOME={{ oracle_home }},DB_UNIQUE_NAME={{ oracle_unqname }}
# Default value : None
# Mandatory : NO
#-----------------------------------------------------------------------------
initParams=undo_tablespace=UNDOTBS1,db_block_size=8192BYTES,nls_language=ENGLISH,dispatchers=(PROTOCOL=TCP) (SERVICE={{ oracle_sid }}XDB),diagnostic_dest={ORACLE_BASE},control_files=("{ORACLE_BASE}/oradata/{DB_UNIQUE_NAME}/control01.ctl", "{ORACLE_BASE}/fast_recovery_area/{DB_UNIQUE_NAME}/control02.ctl"),remote_login_passwordfile=EXCLUSIVE,audit_file_dest={ORACLE_BASE}/admin/{DB_UNIQUE_NAME}/adump,processes=300,nls_territory=UNITED KINGDOM,local_listener=LISTENER_{{ oracle_sid }},memory_target={{ oracle_memory_target }},db_recovery_file_dest_size=12732MB,open_cursors=300,log_archive_format=%t_%s_%r.dbf,compatible=19.0.0,db_name={{ oracle_sid }},db_recovery_file_dest={ORACLE_BASE}/fast_recovery_area/{DB_UNIQUE_NAME},audit_trail=db
initParams=undo_tablespace=UNDOTBS1,db_block_size=8192BYTES,nls_language=ENGLISH,dispatchers=(PROTOCOL=TCP) (SERVICE={{ oracle_sid }}XDB),diagnostic_dest={ORACLE_BASE},control_files=("{ORACLE_BASE}/oradata/{DB_UNIQUE_NAME}/control01.ctl", "{{ oracle_fra }}/{DB_UNIQUE_NAME}/control02.ctl"),remote_login_passwordfile=EXCLUSIVE,audit_file_dest={ORACLE_BASE}/admin/{DB_UNIQUE_NAME}/adump,processes=300,nls_territory=UNITED KINGDOM,local_listener=LISTENER_{{ oracle_sid }},memory_target={{ oracle_memory_target }},db_recovery_file_dest_size=12732MB,open_cursors=300,log_archive_format=%t_%s_%r.dbf,compatible=19.0.0,db_name={{ oracle_sid }},db_recovery_file_dest={{ oracle_fra }}/{DB_UNIQUE_NAME},audit_trail=db
#-----------------------------------------------------------------------------
# Name : sampleSchema

View File

@@ -35,8 +35,16 @@ variable "vms" {
cores = 4
ip = "dhcp"
}
"oraTest2" = {
memory = 16384
cores = 4
ip = "dhcp"
}
"oraTest3" = {
memory = 16384
cores = 4
ip = "dhcp"
}
}
}