SlideShare a Scribd company logo
7
Most read
9
Most read
Ansible Automation
Oracle/APEX refresh
Abhilash Kumar
Brief Introduction about Ansible
• Ansible is declarative language and not to be seen as a programming
language , it does not depend on any compiled scripts like Java, Python
• Widely used for SRE Automation
• Ansible is a agent less tool which is designed to work with many servers
together
• Ansible Documentation provides a complete description of various usages
and functionalities of ansible https://docs.ansible.com/
Ansible APEX Restores - My Lab Environment
Ansible
Control Server
Source Server
( running Oracle APEX )
Target Server
Ansible Control Server - My MacBook Terminal
Source Server RHEL 7 running Oracle 19.3 APEX
( Used a Prebuilt Developer VM from OTN )
Target Server RHEL 7 running Oracle 19.3 APEX
Ansible APEX Restores - Prerequisites
• ssh equivalence from control server to source and target
• root is used for setting yum related ansible packages in source/target
• oracle is used for running refreshes
• ssh equivalence from Source and Target Server for oracle user
• Oracle Homes installed in Source and Target server
• The Lab Environment used the same Oracle Home folder set up in source/target
Ansible APEX Restores - Prerequisites
Ansible
Control Server
Source Server
( running Oracle APEX )
Target Server
• Ansible Installation
• Playbooks
• Ansible Installation
• Local Scripts
• Ansible Installation
• Local Scripts
Ansible playbook tags
• Tags are various sections of ansible playbooks which are utilised in this lab
to ensure any particular section of the playbook can be run independently.
• Tags used in the playbook are in the following order
- source_checks -- Sanity Tests of source
- source_db_backup -- RMAN Backup of Source
- kick_rsync -- rsync of RMAN backups from source to target
- source_apex_backup -- apex backups and scp from source to target
- target_cleanup -- Clean up instances to refresh in target
- target_db_restore -- RMAN Duplicate using backups from source
- target_apex_restore -- Perform Apex Restores
The playbook
ora_dup_restore_v1.yml
The playbook
simplified
ora_dup_restore_v1.yml
The Inventory
Ansible
Control Server
Source Server
( running Oracle APEX )
Target Server
• Ansible Installation
• Playbooks
• Ansible Installation
• Local Scripts
• Ansible Installation
• Local Scripts
Ansible Control Server Config / Inventory
THE GOAL ??
A Sample Application created in source and can be seen in http://192.168.29.243:8080/apex
- Goal is to run the Apex application in target http://192.168.29.244:8080/apex
by performing Ansible Automation
Lets run the playbook
# time ansible-playbook -u oracle ora_dup_restore_v1.yml
The refresh completes in approx 23 mins
APEX is restored in http://192.168.29.244:8080/apex and the sample
application created is now visible in the target
Thank you !

More Related Content

PPTX
PDF
[Oracle DBA & Developer Day 2012] 高可用性システムに適した管理性と性能を向上させるASM と RMAN の魅力
PDF
MIPI DevCon Bangalore 2017: SPMI 1.0 Multi-Master Verification
PDF
오렌지6.0 교육자료
PPTX
Uveitis
PPTX
Endophthalmitis management
PPTX
Cataract management
[Oracle DBA & Developer Day 2012] 高可用性システムに適した管理性と性能を向上させるASM と RMAN の魅力
MIPI DevCon Bangalore 2017: SPMI 1.0 Multi-Master Verification
오렌지6.0 교육자료
Uveitis
Endophthalmitis management
Cataract management

What's hot (20)

PPTX
PPTX
Shell scripting
PDF
Herpetic keratitis
PPTX
Corneal dystrophies
PDF
Oracle Cloud Infrastructure:2021年9月度サービス・アップデート
PDF
Red eye by manojit
PPTX
Les plateformes de développement des web services
PPTX
Let us understand design pattern
PPT
THYROID EYE DISEASE
PDF
Solaris 10 から Solaris 11 への移行準備とポイント
PDF
ゼロトラスト、この1年でお客様の4つの気づき ~内部不正、ランサムウェアとの戦い方~ (Oracle Cloudウェビナーシリーズ: 2021年10月6日)
PPTX
Bacterial eyelid infections and blepharitis.
PPTX
CLASSIFICATION OF GLAUCOMA (including Paediatric Glaucoma).pptx
PDF
Heterophoria.ppt by Optom. Saharukh Alam
PPTX
Keratoconus
PDF
Enterprise Migration from Data Center to Atlassian Cloud: Start with an Asses...
PPTX
Keratitis 2016
PPTX
Dry eye syndrome
PPT
Microbial keratitis
PPTX
Neurotrophic
Shell scripting
Herpetic keratitis
Corneal dystrophies
Oracle Cloud Infrastructure:2021年9月度サービス・アップデート
Red eye by manojit
Les plateformes de développement des web services
Let us understand design pattern
THYROID EYE DISEASE
Solaris 10 から Solaris 11 への移行準備とポイント
ゼロトラスト、この1年でお客様の4つの気づき ~内部不正、ランサムウェアとの戦い方~ (Oracle Cloudウェビナーシリーズ: 2021年10月6日)
Bacterial eyelid infections and blepharitis.
CLASSIFICATION OF GLAUCOMA (including Paediatric Glaucoma).pptx
Heterophoria.ppt by Optom. Saharukh Alam
Keratoconus
Enterprise Migration from Data Center to Atlassian Cloud: Start with an Asses...
Keratitis 2016
Dry eye syndrome
Microbial keratitis
Neurotrophic
Ad

Similar to Ansible Automation for Oracle RMAN / Apex Restores (20)

PDF
Ansible for Configuration Management for Lohika DevOps training 2018 @ Lohika...
PPTX
Ansible: What, Why & How
PPTX
Ansible Hands On
PDF
Network Automation: Ansible 101
PPTX
Ansible as configuration management tool for devops
PPTX
Go Faster with Ansible (AWS meetup)
PPTX
DevOps for database
PDF
Ansible Tutorial.pdf
PDF
Ansible - Hands on Training
PDF
Ansible nice-pdf-copy-for-pres
PDF
Ansible_Basics_ppt.pdf
PDF
ansible_rhel.pdf
PPTX
Automate DBA Tasks With Ansible
PPTX
Ansible_Presentation.pptx in devops 6th sem lab
PDF
Introduction to Ansible in RHEL- RHCE.pdf
PDF
Ansible
PPTX
installation and introduction to Ansible
PDF
Managing PostgreSQL with Ansible - FOSDEM PGDay 2016
PDF
Ansible is the simplest way to automate. MoldCamp, 2015
Ansible for Configuration Management for Lohika DevOps training 2018 @ Lohika...
Ansible: What, Why & How
Ansible Hands On
Network Automation: Ansible 101
Ansible as configuration management tool for devops
Go Faster with Ansible (AWS meetup)
DevOps for database
Ansible Tutorial.pdf
Ansible - Hands on Training
Ansible nice-pdf-copy-for-pres
Ansible_Basics_ppt.pdf
ansible_rhel.pdf
Automate DBA Tasks With Ansible
Ansible_Presentation.pptx in devops 6th sem lab
Introduction to Ansible in RHEL- RHCE.pdf
Ansible
installation and introduction to Ansible
Managing PostgreSQL with Ansible - FOSDEM PGDay 2016
Ansible is the simplest way to automate. MoldCamp, 2015
Ad

Recently uploaded (20)

PDF
Approach and Philosophy of On baking technology
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
Machine Learning_overview_presentation.pptx
PPTX
1. Introduction to Computer Programming.pptx
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Getting Started with Data Integration: FME Form 101
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
Tartificialntelligence_presentation.pptx
PDF
Empathic Computing: Creating Shared Understanding
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
cuic standard and advanced reporting.pdf
Approach and Philosophy of On baking technology
20250228 LYD VKU AI Blended-Learning.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
Machine Learning_overview_presentation.pptx
1. Introduction to Computer Programming.pptx
Spectral efficient network and resource selection model in 5G networks
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Digital-Transformation-Roadmap-for-Companies.pptx
MYSQL Presentation for SQL database connectivity
Getting Started with Data Integration: FME Form 101
Programs and apps: productivity, graphics, security and other tools
Tartificialntelligence_presentation.pptx
Empathic Computing: Creating Shared Understanding
Dropbox Q2 2025 Financial Results & Investor Presentation
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
The Rise and Fall of 3GPP – Time for a Sabbatical?
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
cuic standard and advanced reporting.pdf

Ansible Automation for Oracle RMAN / Apex Restores

  • 2. Brief Introduction about Ansible • Ansible is declarative language and not to be seen as a programming language , it does not depend on any compiled scripts like Java, Python • Widely used for SRE Automation • Ansible is a agent less tool which is designed to work with many servers together • Ansible Documentation provides a complete description of various usages and functionalities of ansible https://docs.ansible.com/
  • 3. Ansible APEX Restores - My Lab Environment Ansible Control Server Source Server ( running Oracle APEX ) Target Server Ansible Control Server - My MacBook Terminal Source Server RHEL 7 running Oracle 19.3 APEX ( Used a Prebuilt Developer VM from OTN ) Target Server RHEL 7 running Oracle 19.3 APEX
  • 4. Ansible APEX Restores - Prerequisites • ssh equivalence from control server to source and target • root is used for setting yum related ansible packages in source/target • oracle is used for running refreshes • ssh equivalence from Source and Target Server for oracle user • Oracle Homes installed in Source and Target server • The Lab Environment used the same Oracle Home folder set up in source/target
  • 5. Ansible APEX Restores - Prerequisites Ansible Control Server Source Server ( running Oracle APEX ) Target Server • Ansible Installation • Playbooks • Ansible Installation • Local Scripts • Ansible Installation • Local Scripts
  • 6. Ansible playbook tags • Tags are various sections of ansible playbooks which are utilised in this lab to ensure any particular section of the playbook can be run independently. • Tags used in the playbook are in the following order - source_checks -- Sanity Tests of source - source_db_backup -- RMAN Backup of Source - kick_rsync -- rsync of RMAN backups from source to target - source_apex_backup -- apex backups and scp from source to target - target_cleanup -- Clean up instances to refresh in target - target_db_restore -- RMAN Duplicate using backups from source - target_apex_restore -- Perform Apex Restores
  • 9. The Inventory Ansible Control Server Source Server ( running Oracle APEX ) Target Server • Ansible Installation • Playbooks • Ansible Installation • Local Scripts • Ansible Installation • Local Scripts Ansible Control Server Config / Inventory
  • 10. THE GOAL ?? A Sample Application created in source and can be seen in http://192.168.29.243:8080/apex - Goal is to run the Apex application in target http://192.168.29.244:8080/apex by performing Ansible Automation
  • 11. Lets run the playbook # time ansible-playbook -u oracle ora_dup_restore_v1.yml The refresh completes in approx 23 mins
  • 12. APEX is restored in http://192.168.29.244:8080/apex and the sample application created is now visible in the target