Thursday, October 22, 2015

Using Ansible to configure an Oracle Linux 7.1 server with Oracle 12c R1 Enterprise Edition Database


Ansible is the leading tool for configuring software and various parameters on servers. It does not require agents and other software installed on nodes like other popular tools (puppet or chef). Its also modular and already have hundreds of modules that help us configure our servers in several ways. In this article I will show how we can install an Oracle 12c R1 Database (12.1.0.2) in Oracle Linux 7.1 server. The same Ansible playbook can be used with Redhat Enterprise Linux 7.1 and CentOS 7.1. You can download the code in Github at:

https://github.com/cvezalis/oracledb-ansible




Source code also includes configuration for provision automatically a virtual machine using Vagrant.

Download from Oracle support the Oracle installation files:

- linuxamd64_12102_database_1of2.zip

- linuxamd64_12102_database_1of2.zip

and put them to folder roles/oracle-install/files inside checkout folder

After go into checkout folder and execute :

$ vagrant up 


After a few minutes a virtual machine with Oracle Database will be ready for you without any further configuration. You can access the Enterprise Manager Express using sys/sysdba and “oracle” as password.

https://oradb3.private:5500/em

You can shutdown the virtual machine using:

$ vagrant halt


You can destroy it (delete from disk) using:

$ vagrant destroy

more details at my article here : http://www.nodalpoint.com/devops-ansible-oracle-database-oraclelinux-7-vagrant/

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.