All Projects → oravirt → Ansible Oracle

oravirt / Ansible Oracle

Licence: mit
Oracle related stuff. Installs RAC/RAC One Node/Single Instance

Projects that are alternatives of or similar to Ansible Oracle

Walkable
A Clojure(script) SQL library for building APIs: Datomic® (GraphQL-ish) pull syntax, data driven configuration, dynamic filtering with relations in mind
Stars: ✭ 384 (+52.99%)
Mutual labels:  oracle-database
Docker Oracle12c
Docker image for Oracle Database 12c
Stars: ✭ 63 (-74.9%)
Mutual labels:  oracle-database
Ercole
The Server component of the Ercole Project
Stars: ✭ 107 (-57.37%)
Mutual labels:  oracle-database
Docker Images
Official source for Docker configurations, images, and examples of Dockerfiles for Oracle products and projects
Stars: ✭ 5,120 (+1939.84%)
Mutual labels:  oracle-database
Oracle Db Examples
Examples of applications and tool usage for Oracle Database
Stars: ✭ 843 (+235.86%)
Mutual labels:  oracle-database
Aceql Http
AceQL HTTP is a framework of REST like http APIs that allow to access to remote SQL databases over http from any device that supports http.
Stars: ✭ 68 (-72.91%)
Mutual labels:  oracle-database
Dotnet Db Samples
.NET code samples for Oracle database developers
Stars: ✭ 260 (+3.59%)
Mutual labels:  oracle-database
Helicalinsight
Helical Insight software is world’s first Open Source Business Intelligence framework which helps you to make sense out of your data and make well informed decisions.
Stars: ✭ 214 (-14.74%)
Mutual labels:  oracle-database
Odat
ODAT: Oracle Database Attacking Tool
Stars: ✭ 906 (+260.96%)
Mutual labels:  oracle-database
Pyora
Python script to monitor Oracle Databases
Stars: ✭ 96 (-61.75%)
Mutual labels:  oracle-database
Python Cx oracle
Python interface to Oracle Database conforming to the Python DB API 2.0 specification.
Stars: ✭ 713 (+184.06%)
Mutual labels:  oracle-database
Usql
Universal command-line interface for SQL databases
Stars: ✭ 6,869 (+2636.65%)
Mutual labels:  oracle-database
Plsql And Sql Coding Guidelines
Trivadis PL/SQL & SQL Coding Guidelines
Stars: ✭ 89 (-64.54%)
Mutual labels:  oracle-database
Utplsql
Testing Framework for PL/SQL
Stars: ✭ 402 (+60.16%)
Mutual labels:  oracle-database
Oracle Db Tools
This project is a repository of sample code that will demonstrate various concepts to assist developers in building applications around Oracle Database technologies. SDKs and scripts will be available to integrate with SQL Developer, Data Modeler, Oracle REST Data Services and DBaaS.
Stars: ✭ 186 (-25.9%)
Mutual labels:  oracle-database
Docker Oracle Xe
Docker build for Oracle Database Express Edition (XE)
Stars: ✭ 266 (+5.98%)
Mutual labels:  oracle-database
Json In Db
Oracle Database JSON Examples
Stars: ✭ 65 (-74.1%)
Mutual labels:  oracle-database
Ocilib
OCILIB (C and C++ Drivers for Oracle) - Open source C and C++ library for accessing Oracle databases
Stars: ✭ 245 (-2.39%)
Mutual labels:  oracle-database
Oracledb exporter
Prometheus Oracle database exporter.
Stars: ✭ 209 (-16.73%)
Mutual labels:  oracle-database
Dockerfiles
Just some Dockerfiles I'm playing around with.
Stars: ✭ 88 (-64.94%)
Mutual labels:  oracle-database

ansible-oracle

  • Installs Oracle RAC, RAC One Node and normal single instances.
  • Start with one or more clean machine(s), end up with a fully configured RAC Cluster.

Getting started

Pre-requisites:

  • Ansible >= 2.4
  • Oracle Linux (or any RHEL-based Linux System) >= 6.4
  • Oracle Database/Grid Infrastructure 18.3.0.0, 12.2.0.1, 12.1.0.1, 12.1.0.2, 11.2.0.4, 11.2.0.3
  • For example configurations, look in:
  SI/FS:   group_vars/vbox-si-fs.  - vagrant config: http://github.com/oravirt/vagrant-vbox-si-fs
  SI/ASM:  group_vars/vbox-si-asm  - vagrant config: http://github.com/oravirt/vagrant-vbox-si-asm
  RAC/ASM: group_vars/vbox-rac-dc1 - vagrant config: http://github.com/oravirt/vagrant-vbox-rac

By default, installs a single instance 18.3.0.0 database on a filesystem.

  1. Clone this repository: git clone --recursive https://github.com/oravirt/ansible-oracle

  2. Add the following file to /tmp on the controlmachine

    • LINUX.X64_180000_db_home.zip
  3. Create an Ansible inventory file

    [myhostgroup]
     dbhost
    
  4. Run the playbook:

    ansible-playbook single-instance-db-on-fs.yml -e hostgroup=myhostgroup -i /path/to/inventory

    where the -i part is optional

Roles

A lot of these roles uses Ansible modules that comes from ansible-oracle-modules

common

This will configure stuff common to all machines

  • Install some generic packages
  • Configure ntp

orahost

This will configure the host specific Oracle stuff:

  • Add a user & group
  • Create directory structures
  • Handle filesystem storage (partition devices, creates vg/lv and a filesystem (ext4, xfs, btrfs) etc). If you want to create your database on a filesystem (instead of ASM) this is where you define the layout.
  • Install required packages
  • Change kernel paramemeters
  • Set up pam.d/limits config
  • Configures Hugepages (as a percentage of total RAM)
  • Disables transparent hugepages
  • Disables NUMA (if needed)
  • Configures the interconnect network (if needed)
  • Configures Oracle ASMLib

orahost-ssh

Configures passwordless ssh between clusternodes if setting up RAC (configure_cluster=True)

  • Uses existing ssh-keys

orahost-storage

This role configures storage that shoud be used by ASM.

  • Partitions devices (using parted)
  • Create ASMlib labels or sets up udev-rules for device name persistence

oraswgi-install

This role will install and configure Oracle Grid Infrastructure (RAC/SI)

  • Adds a .profile_grid to the oracle user
  • Sets up directory structures
  • Copies the install-files to the servers, or installs from a remote location (e.g nfs share)
  • Install Oracle Grid Infrastructure

oraasm-manage-diskgroups

This role will statefully manage the lifecycle of an ASM diskgroup

  • Uses the oracle_asmdg module
  • Create/delete diskgroup.
  • Add/remove disks
  • Manage attributes for the DG

oraswdb-install

This role will install the oracle database server(s). It is possible to run more than 1 database from each home. It performs both Single Instance/RAC installations.

  • Creates a .profile with the correct environment
  • Creates directory structures
  • Installs the database-server(s)

oradb-manage-db

This role statefully manages the lifecycle of a database

  • Uses the oracle_db module
  • Creates/deletes: state: present/absent
  • Maintains archivelog/force_logging True/False

oraswgi-manage-patches

Manage patches in a GI environment

  • Uses the oracle_opatch module
  • Manages opatchauto type of patches as well as 'normal' one-offs

oraswdb-manage-patches

Statefully manage patches in a DB environment

  • Uses the oracle_opatch module
  • Manages opatchauto type of patches as well as 'normal' one-offs

cxoracle

Installs cx_Oracle in preparation for using ansible-oracle-modules

orahost-cron

Configures cron schedules if needed

orahost-logrotate

oradb-manage-<*>

Statefully manages various aspects of the DB. They all use modules from ansible-oracle-modules

  • oradb-manage-pdb
  • oradb-manage-tablespace
  • oradb-manage-parameters
  • oradb-manage-roles
  • oradb-manage-users
  • oradb-manage-grants
  • oradb-manage-redo
  • oradb-manage-services

Deprecated roles

oraasm-createdg (use oraasm-manage-diskgroups instead)

oradb-create (use oradb-manage-db instead)

oradb-delete (use oradb-manage-db instead)

oraswgi-opatch (use oraswgi-manage-patches instead)

Note

These are the Oracle binaries that are pre-configured to be used. They have to be manually downloaded and made available (either locally, from a web endpoint or through a nfs-share)

For 18.3.0.0:

    LINUX.X64_180000_db_home.zip
    LINUX.X64_180000_grid_home.zip

For 12.2.0.1:

    linuxx64_12201_database.zip
    linuxx64_12201_grid_home.zip

For 12.1.0.2

    linuxamd64_12102_database_1of2.zip
    linuxamd64_12102_database_2of2.zip
    linuxamd64_12102_grid_1of2.zip
    linuxamd64_12102_grid_2of2.zip

For 12.1.0.1:

    linuxamd64_12c_database_1of2.zip
    linuxamd64_12c_database_2of2.zip
    linuxamd64_12c_grid_1of2.zip
    linuxamd64_12c_grid_2of2.zip

For 11.2.0.4:

    p13390677_112040_Linux-x86-64_1of7.zip
    p13390677_112040_Linux-x86-64_2of7.zip
    p13390677_112040_Linux-x86-64_3of7.zip

For 11.2.0.3:

   p10404530_112030_Linux-x86-64_1of7.zip
   p10404530_112030_Linux-x86-64_2of7.zip
   p10404530_112030_Linux-x86-64_3of7.zip
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].