https://github.com/steveswinsburg/oracle12c-vagrant
A vagrant box that provisions Oracle 12c automatically.
https://github.com/steveswinsburg/oracle12c-vagrant
centos7 database oracle oracle-12c vagrant
Last synced: about 1 year ago
JSON representation
A vagrant box that provisions Oracle 12c automatically.
- Host: GitHub
- URL: https://github.com/steveswinsburg/oracle12c-vagrant
- Owner: steveswinsburg
- License: apache-2.0
- Created: 2016-06-01T10:40:52.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-10-26T08:34:49.000Z (over 8 years ago)
- Last Synced: 2025-04-08T08:48:41.883Z (over 1 year ago)
- Topics: centos7, database, oracle, oracle-12c, vagrant
- Language: Shell
- Homepage:
- Size: 41 KB
- Stars: 48
- Watchers: 6
- Forks: 71
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# oracle12c-vagrant
A vagrant box that provisions Oracle 12c automatically, using only Vagrant and a shell script.
## Getting started
1. Clone this repository
2. Download the Oracle Database 12c binaries `linuxamd64_12102_database_1of2.zip` and `linuxamd64_12102_database_2of2.zip`
from http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html and unzip to `database/`
* Ensure you unzip into the same directory and they merge. There are some common directories in each. On the commandline, you can run `unzip '*.zip'` to do this for you.
3. Install Virtualbox
4. Install Vagrant
5. Install VirtualBox plugin `vagrant plugin install vagrant-vbguest`
6. Run `vagrant up`
* The first time you run this it will provision everything and may take a while. Ensure you have a good internet connection!
7. Connect to the database (see below).
8. You can shutdown the box via the usual `vagrant halt` and the start it up again via `vagrant up`.
## Connecting to Oracle
* Hostname: `localhost`
* Port: `1521`
* SID: `orcl`
* All passwords are `password`.
## Tablespaces
The folder `oradata` is mounted as a shared folder with permissions for Oracle to use it. If you have Oracle schemas that will consume a lot of space, create a tablespace for your schema in this directory instead of using the built in tablespaces. See [tablespace.sql](/scripts/tablespace.sql) for an example of how to create a tablespace in this directory.
## Other info
* If you need to, you can connect to the machine via `vagrant ssh`.
* You can `sudo su - oracle` to switch to the oracle user.
* The Oracle installation path is `/opt/oracle/`
* On the guest OS, the directory `/vagrant` is a shared folder and maps to wherever you have this file checked out.
## Known issues
#### Repeated authentication failure message
On `vagrant up` if you experience this issue:
```
default: Error: Authentication failure. Retrying...
default: Error: Authentication failure. Retrying...
default: Error: Authentication failure. Retrying...
default: Error: Authentication failure. Retrying...
default: Error: Authentication failure. Retrying...
```
Then you may have hit a bug in vagrant 1.8.5. See
http://stackoverflow.com/questions/22922891/vagrant-ssh-authentication-failure
The solution is to:
```
vagrant ssh
password: vagrant
chmod 0600 ~/.ssh/authorized_keys
exit
```
then `vagrant reload`.
#### Connection time after startup
Once Oracle and the listener starts up, it may take a few moments until you are able to connect to the DB, eg via SQL Developer.
#### Provisioning fails with "id: oracle: no such user"
Comment out line 35 in the Vagrant file. This mounts an additional folder however depending on how long it takes the machine to boot, the database might startup before that happens and things will complain.