# All Vagrant configuration is done below. The “2” in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don’t change it unless you know what
# you’re doing.
Vagrant.configure(“2”) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
# https://docs.vagrantup.com.

# Every Vagrant development environment requires a box. You can search for
# boxes at https://atlas.hashicorp.com/search.
config.vm.box = “bento/centos-7.2”
config.vm.synced_folder “d:/software/dev_tools/BPM/bpm4.0/TIB_amx-bpm_4.0.0_linux24gl23_x86_64”, “/vagrant/bpm_install”
config.vm.synced_folder “d:/software/dev_tools/BPM/EMS8.2.2”, “/vagrant/ems_install”
config.vm.synced_folder “d:/software/dev_tools/oracle/12c/linux64/database”, “/vagrant/oracle_install”
# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
# `vagrant box outdated`. This is not recommended.
# config.vm.box_check_update = false

# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing “localhost:8080” will access port 80 on the guest machine.
# config.vm.network “forwarded_port”, guest: 80, host: 8080

# Create a public network, which generally matched to bridged network.
# Bridged networks make the machine appear as another physical device on
# your network.
config.vm.network “public_network”

# Share an additional folder to the guest VM. The first argument is
# the path on the host to the actual folder. The second argument is
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
# config.vm.synced_folder “../data”, “/vagrant_data”

# Provider-specific configuration so you can fine-tune various
# backing providers for Vagrant. These expose provider-specific options.
# Example for VirtualBox:
#
config.vm.provider “virtualbox” do |vb|
vb.memory = “6144”
end

#
# View the documentation for the provider you are using for more
# information on available options.

# Define a Vagrant Push strategy for pushing to Atlas. Other push strategies
# such as FTP and Heroku are also available. See the documentation at
# https://docs.vagrantup.com/v2/push/atlas.html for more information.
# config.push.define “atlas” do |push|
# push.app = “YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME”
# end

# Enable provisioning with a shell script. Additional provisioners such as
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
# documentation for more information about their specific syntax and use.
config.vm.provision “initialize”, type: “shell”, path: “scripts/initialize.sh”

[Note: if the database wasn’t started, you need to check the /etc/oratab to see if the third field is set to ‘N’. If so, the database will be ignored by dbstart and you need to manually change it to ‘Y’.]

#——————————————————————————-
# Specify the hostname of the system as set during the install. It can be used
# to force the installation to use an alternative hostname rather than using the
# first hostname found on the system. (e.g., for systems with multiple hostnames
# and network interfaces)
#——————————————————————————-
ORACLE_HOSTNAME=localhost

#——————————————————————————-
# Specify the Unix group to be set for the inventory directory.
#——————————————————————————-
UNIX_GROUP_NAME=oinstall

#——————————————————————————-
# Specify the installation edition of the component.
#
# The value should contain only one of these choices.

# – EE : Enterprise Edition

#——————————————————————————-
oracle.install.db.InstallEdition=EE

###############################################################################
# #
# PRIVILEGED OPERATING SYSTEM GROUPS #
# —————————————— #
# Provide values for the OS groups to which OSDBA and OSOPER privileges #
# needs to be granted. If the install is being performed as a member of the #
# group “dba”, then that will be used unless specified otherwise below. #
# #
# The value to be specified for OSDBA and OSOPER group is only for UNIX based #
# Operating System. #
# #
###############################################################################

#——————————————————————————
# The DBA_GROUP is the OS group which is to be granted OSDBA privileges.
#——————————————————————————-
oracle.install.db.DBA_GROUP=dba

#——————————————————————————
# The OPER_GROUP is the OS group which is to be granted OSOPER privileges.
# The value to be specified for OSOPER group is optional.
#——————————————————————————
oracle.install.db.OPER_GROUP=dba

#——————————————————————————
# The BACKUPDBA_GROUP is the OS group which is to be granted OSBACKUPDBA privileges.
#——————————————————————————
oracle.install.db.BACKUPDBA_GROUP=dba

#——————————————————————————
# The DGDBA_GROUP is the OS group which is to be granted OSDGDBA privileges.
#——————————————————————————
oracle.install.db.DGDBA_GROUP=dba

#——————————————————————————
# The KMDBA_GROUP is the OS group which is to be granted OSKMDBA privileges.
#——————————————————————————
oracle.install.db.KMDBA_GROUP=dba

#——————————————————————————
# Value is required only if RAC database type is ADMIN_MANAGED
#
# Specify the cluster node names selected during the installation.
# Leaving it blank will result in install on local server only (Single Instance)
#
# Example : oracle.install.db.CLUSTER_NODES=node1,node2
#——————————————————————————
oracle.install.db.CLUSTER_NODES=

#——————————————————————————
# This variable is used to enable or disable RAC One Node install.
#
# – true : Value of RAC One Node service name is used.
# – false : Value of RAC One Node service name is not used.
#
# If left blank, it will be assumed to be false.
#——————————————————————————
oracle.install.db.isRACOneInstall=false

#——————————————————————————
# Value is required only if oracle.install.db.isRACOneInstall is true.
#
# Specify the name for RAC One Node Service
#——————————————————————————
oracle.install.db.racOneServiceName=

#——————————————————————————
# Value is required only if RAC database type is POLICY_MANAGED
#
# Specify a name for the new Server pool that will be configured
# Example : oracle.install.db.rac.serverpoolName=pool1
#——————————————————————————
oracle.install.db.rac.serverpoolName=

#——————————————————————————
# Value is required only if RAC database type is POLICY_MANAGED
#
# Specify a number as cardinality for the new Server pool that will be configured
# Example : oracle.install.db.rac.serverpoolCardinality=2
#——————————————————————————
oracle.install.db.rac.serverpoolCardinality=0

#——————————————————————————-
# Specify the type of database to create.
# It can be one of the following:
# – GENERAL_PURPOSE
# – DATA_WAREHOUSE
# GENERAL_PURPOSE: A starter database designed for general purpose use or transaction-heavy applications.
# DATA_WAREHOUSE : A starter database optimized for data warehousing applications.
#——————————————————————————-
oracle.install.db.config.starterdb.type=GENERAL_PURPOSE

#——————————————————————————-
# Specify whether the database should be configured as a Container database.
# The value can be either “true” or “false”. If left blank it will be assumed
# to be “false”.
#——————————————————————————-
oracle.install.db.ConfigureAsContainerDB=true

#——————————————————————————-
# Specify the Pluggable Database name for the pluggable database in Container Database.
#——————————————————————————-
oracle.install.db.config.PDBName=pdborcl

#——————————————————————————
# This variable should be set to true if Automatic Memory Management
# in Database is desired.
# If Automatic Memory Management is not desired, and memory allocation
# is to be done manually, then set it to false.
#——————————————————————————
oracle.install.db.config.starterdb.memoryOption=false

#——————————————————————————-
# Specify the total memory allocation for the database. Value(in MB) should be
# at least 256 MB, and should not exceed the total physical memory available
# on the system.
# Example: oracle.install.db.config.starterdb.memoryLimit=512
#——————————————————————————-
oracle.install.db.config.starterdb.memoryLimit=2322

#——————————————————————————-
# This variable controls whether to load Example Schemas onto
# the starter database or not.
# The value can be either “true” or “false”. If left blank it will be assumed
# to be “false”.
#——————————————————————————-
oracle.install.db.config.starterdb.installExampleSchemas=true

###############################################################################
# #
# Passwords can be supplied for the following four schemas in the #
# starter database: #
# SYS #
# SYSTEM #
# DBSNMP (used by Enterprise Manager) #
# #
# Same password can be used for all accounts (not recommended) #
# or different passwords for each account can be provided (recommended) #
# #
###############################################################################

#——————————————————————————
# This variable holds the password that is to be used for all schemas in the
# starter database.
#——————————————————————————-
oracle.install.db.config.starterdb.password.ALL=

#——————————————————————————-
# Specify the EM Admin user name to use to connect to Cloud Control.
# Applicable only when oracle.install.db.config.starterdb.managementOption=CLOUD_CONTROL
#——————————————————————————-
oracle.install.db.config.starterdb.emAdminUser=

#——————————————————————————-
# Specify the EM Admin password to use to connect to Cloud Control.
# Applicable only when oracle.install.db.config.starterdb.managementOption=CLOUD_CONTROL
#——————————————————————————-
oracle.install.db.config.starterdb.emAdminPassword=

#——————————————————————————
# This variable is to be set to false if database recovery is not required. Else
# this can be set to true.
#——————————————————————————-
oracle.install.db.config.starterdb.enableRecovery=false

#——————————————————————————-
# Specify the type of storage to use for the database.
# It can be one of the following:
# – FILE_SYSTEM_STORAGE
# – ASM_STORAGE
#——————————————————————————-
oracle.install.db.config.starterdb.storageType=FILE_SYSTEM_STORAGE

#——————————————————————————-
# Specify the database file location which is a directory for datafiles, control
# files, redo logs.
#
# Applicable only when oracle.install.db.config.starterdb.storage=FILE_SYSTEM_STORAGE
#——————————————————————————-
oracle.install.db.config.starterdb.fileSystemStorage.dataLocation=/home/oracle/app/oracle/oradata

#——————————————————————————-
# Specify the existing ASM disk groups to be used for storage.
#
# Applicable only when oracle.install.db.config.starterdb.storageType=ASM_STORAGE
#——————————————————————————-
oracle.install.db.config.asm.diskGroup=

#——————————————————————————-
# Specify the password for ASMSNMP user of the ASM instance.
#
# Applicable only when oracle.install.db.config.starterdb.storage=ASM_STORAGE
#——————————————————————————-
oracle.install.db.config.asm.ASMSNMPPassword=

#——————————————————————————
# Specify whether to enable the user to set the password for
# My Oracle Support credentials. The value can be either true or false.
# If left blank it will be assumed to be false.
#
# Example : SECURITY_UPDATES_VIA_MYORACLESUPPORT=true
#——————————————————————————
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false

#——————————————————————————
# Specify whether user doesn’t want to configure Security Updates.
# The value for this variable should be true if you don’t want to configure
# Security Updates, false otherwise.
#
# The value can be either true or false. If left blank it will be assumed
# to be false.
#
# Example : DECLINE_SECURITY_UPDATES=false
#——————————————————————————
DECLINE_SECURITY_UPDATES=true

#——————————————————————————-
# Specify the hostname of the system as set during the install. It can be used
# to force the installation to use an alternative hostname rather than using the
# first hostname found on the system. (e.g., for systems with multiple hostnames
# and network interfaces)
#——————————————————————————-
ORACLE_HOSTNAME=localhost

#——————————————————————————-
# Specify the Unix group to be set for the inventory directory.
#——————————————————————————-
UNIX_GROUP_NAME=oinstall

#——————————————————————————-
# Specify the installation edition of the component.
#
# The value should contain only one of these choices.
# – EE : Enterprise Edition

#——————————————————————————-
oracle.install.db.InstallEdition=EE

###############################################################################
# #
# PRIVILEGED OPERATING SYSTEM GROUPS #
# —————————————— #
# Provide values for the OS groups to which OSDBA and OSOPER privileges #
# needs to be granted. If the install is being performed as a member of the #
# group “dba”, then that will be used unless specified otherwise below. #
# #
# The value to be specified for OSDBA and OSOPER group is only for UNIX based #
# Operating System. #
# #
###############################################################################

#——————————————————————————
# The DBA_GROUP is the OS group which is to be granted OSDBA privileges.
#——————————————————————————-
oracle.install.db.DBA_GROUP=dba

#——————————————————————————
# The OPER_GROUP is the OS group which is to be granted OSOPER privileges.
# The value to be specified for OSOPER group is optional.
#——————————————————————————
oracle.install.db.OPER_GROUP=dba

#——————————————————————————
# The BACKUPDBA_GROUP is the OS group which is to be granted OSBACKUPDBA privileges.
#——————————————————————————
oracle.install.db.BACKUPDBA_GROUP=dba

#——————————————————————————
# The DGDBA_GROUP is the OS group which is to be granted OSDGDBA privileges.
#——————————————————————————
oracle.install.db.DGDBA_GROUP=dba

#——————————————————————————
# The KMDBA_GROUP is the OS group which is to be granted OSKMDBA privileges.
#——————————————————————————
oracle.install.db.KMDBA_GROUP=dba

#——————————————————————————
# Value is required only if RAC database type is ADMIN_MANAGED
#
# Specify the cluster node names selected during the installation.
# Leaving it blank will result in install on local server only (Single Instance)
#
# Example : oracle.install.db.CLUSTER_NODES=node1,node2
#——————————————————————————
oracle.install.db.CLUSTER_NODES=

#——————————————————————————
# This variable is used to enable or disable RAC One Node install.
#
# – true : Value of RAC One Node service name is used.
# – false : Value of RAC One Node service name is not used.
#
# If left blank, it will be assumed to be false.
#——————————————————————————
oracle.install.db.isRACOneInstall=false

#——————————————————————————
# Value is required only if oracle.install.db.isRACOneInstall is true.
#
# Specify the name for RAC One Node Service
#——————————————————————————
oracle.install.db.racOneServiceName=

#——————————————————————————
# Value is required only if RAC database type is POLICY_MANAGED
#
# Specify a name for the new Server pool that will be configured
# Example : oracle.install.db.rac.serverpoolName=pool1
#——————————————————————————
oracle.install.db.rac.serverpoolName=

#——————————————————————————
# Value is required only if RAC database type is POLICY_MANAGED
#
# Specify a number as cardinality for the new Server pool that will be configured
# Example : oracle.install.db.rac.serverpoolCardinality=2
#——————————————————————————
oracle.install.db.rac.serverpoolCardinality=0

#——————————————————————————-
# Specify the type of database to create.
# It can be one of the following:
# – GENERAL_PURPOSE
# – DATA_WAREHOUSE
# GENERAL_PURPOSE: A starter database designed for general purpose use or transaction-heavy applications.
# DATA_WAREHOUSE : A starter database optimized for data warehousing applications.
#——————————————————————————-
oracle.install.db.config.starterdb.type=GENERAL_PURPOSE

#——————————————————————————-
# Specify whether the database should be configured as a Container database.
# The value can be either “true” or “false”. If left blank it will be assumed
# to be “false”.
#——————————————————————————-
oracle.install.db.ConfigureAsContainerDB=false

#——————————————————————————-
# Specify the Pluggable Database name for the pluggable database in Container Database.
#——————————————————————————-
oracle.install.db.config.PDBName=

#——————————————————————————
# This variable should be set to true if Automatic Memory Management
# in Database is desired.
# If Automatic Memory Management is not desired, and memory allocation
# is to be done manually, then set it to false.
#——————————————————————————
oracle.install.db.config.starterdb.memoryOption=false

#——————————————————————————-
# Specify the total memory allocation for the database. Value(in MB) should be
# at least 256 MB, and should not exceed the total physical memory available
# on the system.
# Example: oracle.install.db.config.starterdb.memoryLimit=512
#——————————————————————————-
oracle.install.db.config.starterdb.memoryLimit=2322

#——————————————————————————-
# This variable controls whether to load Example Schemas onto
# the starter database or not.
# The value can be either “true” or “false”. If left blank it will be assumed
# to be “false”.
#——————————————————————————-
oracle.install.db.config.starterdb.installExampleSchemas=false

###############################################################################
# #
# Passwords can be supplied for the following four schemas in the #
# starter database: #
# SYS #
# SYSTEM #
# DBSNMP (used by Enterprise Manager) #
# #
# Same password can be used for all accounts (not recommended) #
# or different passwords for each account can be provided (recommended) #
# #
###############################################################################

#——————————————————————————
# This variable holds the password that is to be used for all schemas in the
# starter database.
#——————————————————————————-
oracle.install.db.config.starterdb.password.ALL=

#——————————————————————————-
# Specify the EM Admin user name to use to connect to Cloud Control.
# Applicable only when oracle.install.db.config.starterdb.managementOption=CLOUD_CONTROL
#——————————————————————————-
oracle.install.db.config.starterdb.emAdminUser=

#——————————————————————————-
# Specify the EM Admin password to use to connect to Cloud Control.
# Applicable only when oracle.install.db.config.starterdb.managementOption=CLOUD_CONTROL
#——————————————————————————-
oracle.install.db.config.starterdb.emAdminPassword=

#——————————————————————————
# This variable is to be set to false if database recovery is not required. Else
# this can be set to true.
#——————————————————————————-
oracle.install.db.config.starterdb.enableRecovery=false

#——————————————————————————-
# Specify the type of storage to use for the database.
# It can be one of the following:
# – FILE_SYSTEM_STORAGE
# – ASM_STORAGE
#——————————————————————————-
oracle.install.db.config.starterdb.storageType=FILE_SYSTEM_STORAGE

#——————————————————————————-
# Specify the database file location which is a directory for datafiles, control
# files, redo logs.
#
# Applicable only when oracle.install.db.config.starterdb.storage=FILE_SYSTEM_STORAGE
#——————————————————————————-
oracle.install.db.config.starterdb.fileSystemStorage.dataLocation=/opt/oracle/oradata/ORCL/datafile/

#——————————————————————————-
# Specify the existing ASM disk groups to be used for storage.
#
# Applicable only when oracle.install.db.config.starterdb.storageType=ASM_STORAGE
#——————————————————————————-
oracle.install.db.config.asm.diskGroup=

#——————————————————————————-
# Specify the password for ASMSNMP user of the ASM instance.
#
# Applicable only when oracle.install.db.config.starterdb.storage=ASM_STORAGE
#——————————————————————————-
oracle.install.db.config.asm.ASMSNMPPassword=

#——————————————————————————
# Specify whether to enable the user to set the password for
# My Oracle Support credentials. The value can be either true or false.
# If left blank it will be assumed to be false.
#
# Example : SECURITY_UPDATES_VIA_MYORACLESUPPORT=true
#——————————————————————————
SECURITY_UPDATES_VIA_MYORACLESUPPORT=

#——————————————————————————
# Specify whether user doesn’t want to configure Security Updates.
# The value for this variable should be true if you don’t want to configure
# Security Updates, false otherwise.
#
# The value can be either true or false. If left blank it will be assumed
# to be false.
#
# Example : DECLINE_SECURITY_UPDATES=false
#——————————————————————————
DECLINE_SECURITY_UPDATES=true

1. groupadd -g 54321 oinstall
2. groupadd -g 54322 dba
3. useradd oracle -u 54321 -g oinstall -G dba
4. echo oracle:oracle | sudo chpasswd
(optional) make oracle sudoer: sudo usermod -aG wheel oracle
5. make sure the following are set up correctly for oracle user by modifying /etc/security/limits.conf
Open file descriptors
nofile
at least 1024
at least 65536
Number of processes available to a single user
nproc
at least 2047
at least 16384
Size of the stack segment of the process
stack
at least 10240 KB
at least 10240 KB, and at most 32768 KB

To see the hard and soft values of open file descriptors:
ulimit -Hn
ulimit -Sn

To see the hard and soft values of processes available:
ulimit -Hu
ulimit -Su

To see the hard and soft values of stack segment
ulimit -Hs
ulimit -Ss
6. make a copy of database install response file: database/response/db_install.rsp
7. edit the response file db_install.rsp by following the instructions in the file and change its permission to 700
chmod 700 database/response/db_install.rsp
8. if use /opt as the parent folder of oracle home, make sure to set the group of the folder to dba and add group write privilege
sudo chown :dba /opt
sudo chmod g+w /opt

13. after installation completes, following the instructions to run generated scripts. You need to create a password response file to run configToolAllCommands script.
touch ~/cfgrsp.properties
chmod 600 ~/cfgrsp.properties
Add the following to cfgrsp.properties file:
oracle.assistants.server|S_SYSPASSWORD=password
oracle.assistants.server|S_SYSTEMPASSWORD=password
oracle.assistants.server|S_DBSNMPPASSWORD=password
oracle.assistants.server|S_PDBADMINPASSWORD=password
oracle.assistants.server|S_EMADMINPASSWORD=password
oracle.assistants.server|S_ASMSNMPPASSWORD=password