Skip to content

Instantly share code, notes, and snippets.

@franciscocpg
Last active March 1, 2016 16:40
Show Gist options
  • Save franciscocpg/8ee62e70c3d3fabc930b to your computer and use it in GitHub Desktop.
Save franciscocpg/8ee62e70c3d3fabc930b to your computer and use it in GitHub Desktop.
Install vagrant oracle
#!/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
@franciscocpg
Copy link
Author

SqlPlus Inside vagrant

vagrant ssh
sqlplus system/manager@XE

JDBC connection URL

jdbc:oracle:thin:@localhost:1521:XE
user: system
pass: manager

@franciscocpg
Copy link
Author

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