Vagrant + Oracle Linux 7 + Oracle Database 11g Release 2 (11.2.0.4) | Simple setup of a single instance database.
Vagrant + Oracle Linux 7 + Oracle Database 11g Release 2 (11.2.0.4) | Simple setup of a single instance database.
Download Oracle Database 11g Release 2 (11.2.0.4) software from My Oracle Support. Then place downloaded files in the same directory as the Vagrantfile.
Copy the file dotenv.sample
to a file named .env
and rewrite the contents as needed.
ORACLE_BASE=/u01/app/oracle
ORACLE_CHARACTERSET=AL32UTF8
ORACLE_EDITION=EE
ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/dbhome_1
ORACLE_PASSWORD=oracle
ORACLE_SAMPLESCHEMA=TRUE
ORACLE_SID=orcl
When you run vagrant up
, the following will work internally.
vagrant up
Connect to the guest OS.
vagrant ssh
Connect to the database and browse to the sample table.
sudo su - oracle
sqlplus system/oracle
SELECT * FROM scott.emp;
-- If you have sample schemas installed
SELECT * FROM hr.employees WHERE rownum <= 10;