项目作者: shakiyam

项目描述 :
Vagrant + Oracle Linux 7 + Oracle Database 11g Release 2 (11.2.0.4) | Simple setup of a single instance database.
高级语言: Modelica
项目地址: git://github.com/shakiyam/vagrant-oracle11.2.git
创建时间: 2017-01-30T12:22:52Z
项目社区:https://github.com/shakiyam/vagrant-oracle11.2

开源协议:MIT License

下载


vagrant-oracle11.2

Vagrant + Oracle Linux 7 + Oracle Database 11g Release 2 (11.2.0.4) | Simple setup of a single instance database.

Download

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.

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

Configuration

Copy the file dotenv.sample to a file named .env and rewrite the contents as needed.

  1. ORACLE_BASE=/u01/app/oracle
  2. ORACLE_CHARACTERSET=AL32UTF8
  3. ORACLE_EDITION=EE
  4. ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/dbhome_1
  5. ORACLE_PASSWORD=oracle
  6. ORACLE_SAMPLESCHEMA=TRUE
  7. ORACLE_SID=orcl

Provision

When you run vagrant up, the following will work internally.

  • Download and boot Oracle Linux 7
  • Install Oracle Preinstallation RPM and unzip
  • Create directories
  • Set environment variables
  • Set password for oracle user
  • Unzip downloaded Oracle Database software
  • Install Oracle Database
  • Create a listener
  • Create a database
  1. vagrant up

Example of use

Connect to the guest OS.

  1. vagrant ssh

Connect to the database and browse to the sample table.

  1. sudo su - oracle
  2. sqlplus system/oracle
  3. SELECT * FROM scott.emp;
  4. -- If you have sample schemas installed
  5. SELECT * FROM hr.employees WHERE rownum <= 10;

Author

Shinichi Akiyama

License

MIT License