Last active
March 1, 2016 16:40
-
-
Save franciscocpg/8ee62e70c3d3fabc930b to your computer and use it in GitHub Desktop.
Install vagrant oracle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Stop on any errors | |
set -e | |
# Install vagrant | |
bash <(curl -s https://gist.githubusercontent.com/franciscocpg/cf926a35197981552eab/raw/) | |
# Clone vagrant oracle | |
git clone https://github.com/tidexa-es/vagrant-ubuntu-oracle-xe | |
# Download oracle express 11g | |
wget 'https://www.googledrive.com/host/0B8Ullq6_B51jM3ZTdDFBWmNmX2s' -O oracle-xe-11.2.0-1.0.x86_64.rpm.zip | |
# Move file to vagrant install folder | |
mv oracle-xe-11.2.0-1.0.x86_64.rpm.zip vagrant-ubuntu-oracle-xe/modules/oracle/files/ | |
# Creates service config file | |
cd vagrant-ubuntu-oracle-xe | |
sudo sh -c 'echo "VAGRANT_ORACLE_HOME=$(pwd)" > /etc/default/vagrant-oracle' | |
# Install service | |
sudo wget 'https://gist.githubusercontent.com/franciscocpg/3bef811d554ef433a042/raw/' -O /etc/init.d/vagrant-oracle | |
sudo chmod +x /etc/init.d/vagrant-oracle | |
# vagrant start (will take long for the first time) | |
service vagrant-oracle start |
For remote install use
bash <(curl -s https://gist.githubusercontent.com/franciscocpg/8ee62e70c3d3fabc930b/raw/)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SqlPlus Inside vagrant
JDBC connection URL