Giter VIP home page Giter VIP logo

vagrant-vbox-si-fs's Introduction

vagrant-vbox-si-fs

Vagrant setup to install an Oracle single instance database on filesystem.

The provisioning step of this vagrant solution is: https://github.com/oravirt/ansible-oracle

Getting started

Pre-requisites:

Clone this repository: git clone --recursive https://github.com/oravirt/vagrant-vbox-si-fs.git

cd vagrant-vbox-si-fs

Edit the hosts.yml file if you want to change the ip, number of cpu's, amount of RAM etc.

If you want to use a different version or Oracle Linux, change the parameter box: oravirt/ol75 to one of the following:

  • oravirt/ol74
  • oravirt/ol73
  • oravirt/ol72
  • oravirt/ol69
  • oravirt/ol68
  • oravirt/ol67
  • oravirt/ol65

These boxes are prepared with all Oracle pre-req packages installed

Download the Oracle binaries (see below) and place them in the swrepo directory. Alternatively, if you already have a directory where all Oracle binaries are located, change the synced_folders: src to point to your local directory (/Users/xxx/Downloads/oracle)

And then: setup=true vagrant up. If you're on Windows you can do:

set setup=true
vagrant up

This will (by default):

  • create a VM based on Oracle Linux 7.5
  • create a 18.3 container database called orclcdb
  • create a pdb called orclpdb1
  • sys/system passwords are Oracle_123
  • A tablespace called appuser1_data is created in the pdb
  • A user called appuser1 is created in the pdb
  • A service called app1_service is created in the pdb

If you just want to create the machine, and not run the provisioning step run this:

vagrant up

Modifying the filesystems on the host

The VM configures 2 filesystems (u01/ & /u02). /u01 uses ext4 as the filesystem & /u02 uses xfs by default. If you'd want to change either of these, do the follwing:

  • edit the ansible-oracle/group_vars/vbox-si-fs/vbox-si-fs.yml file
  • Under host_fs_layout change the fstype parameter to ext4/xfs/btrfs.

Modifying the Oracle installation

If you want to install a different version of Oracle, edit the ansible-oracle/group_vars/vbox-si-fs/databases.yml file and change the following:

Under oracle_databases, change the parameter oracle_version_db: to one of the following:

  • 12.2.0.1
  • 12.1.0.2
  • 12.1.0.1
  • 11.2.0.4
  • 11.2.0.3

If you want to change other parameters they're all under oracle_databases.

Adding more ORACLE_HOMES, or databases to an existing home

If you want to install more than 1 ORACLE_HOME (using different version etc), just uncomment the part that is commented in ansible-oracle/group_vars/vbox-si-fs/databases.yml.

It is also possible to add more homes & databases than those already configured.

After you've done the changes, run vagrant provision again, and it will install the new home and/or create the database.

Logging in to the VM

To log on to the VM (ssh), you have the following options:

  • run vagrant ssh from within the directory, then sudo to oracle/root
  • ssh to VM using the ssh binary of your choice, i.e: ssh 192.168.9.61 -l oracle (oracle/oracle, root/root). The oracle user also have sudo rights

For each database created there is a /home/oracle/.profile_<dbname> created which have all the environment variables set up for this particular database.

These are the Oracle binaries that should be used.

For 12.2.0.1:

    linuxx64_12201_database.zip

For 12.1.0.2

    linuxamd64_12102_database_1of2.zip
    linuxamd64_12102_database_2of2.zip

For 12.1.0.1:

    linuxamd64_12c_database_1of2.zip
    linuxamd64_12c_database_2of2.zip

For 11.2.0.4:

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

For 11.2.0.3:

   p10404530_112030_Linux-x86-64_1of7.zip
   p10404530_112030_Linux-x86-64_2of7.zip

vagrant-vbox-si-fs's People

Contributors

msandstr avatar oravirt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vagrant-vbox-si-fs's Issues

Error :

Hi

I am new to ansible. I followed all steps mentioned in the read me. however I am getting this errors

I provisioned with the steps setup=True and vagrant up, however it has not provisioned the database nor installed, just simply provisioned the box.

So I have ssh into the box and trying to run the playbook, and this is the error.

I am using windows 10 and I checked the ansible version in the box is 2.5.5

[vagrant@db-fs-1 ansible-oracle]$ ansible-playbook vbox-si-fs-install.yml -e vbox-si-fs -i inventory/db-fs-1
ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.

The error appears to have been in '/vagrant/extra-provision/ansible-oracle/roles/oradb-manage-pdb/tasks/main.yml': line 23, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  • name: Manage pdb(s)
    ^ here

extra provision not working

Hello

I did the

git clone --recursive https://github.com/oravirt/vagrant-vbox-si-fs.git

after that

Execute vagrant up

I only run the basic provision

I think the provisioning that sees the extra provision is not running well

hosts.yml

...
  create_shared_disk: false
   provisioning: extra-provision / ansible-oracle / vbox-si-fs-install.yml
   provisioning_env_override: true

in the readme I see that by default is the oracle 18 which variables should be configured for an installation in 12.102

Thanks in advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.