vault repo for oracle db and plugin
- virtualbox
- vagrant
- oracle db xe
Place the binary for 18c xe db in sw directory
sw/oracle-database-xe-18c-1.0-1.x86_64.rpm
- clone this repo
git clone https://github.com/kikitux/vault-dev-orcl
- change directory
cd vault-dev-orcl
-
place the oracle db xe binary in the
sw/
directory -
create the vms
vagrant up
The following users will be created:
- dynamic
- static
- myuser
if there is the need to connect to the database, to perform operations like create users, you can connect like this
vault ssh db
sudo su - oracle
. oraenv
XE
export ORACLE_PDB_SID=XEPDB1
sqlplus / as sysdba
if there is the need to restore database to a good point, you can do
vagrant provision --provision-with flashback
vagrant ssh vault
source /vagrant/scripts/instantclient.env
sqlplus system/password@//db.test:1521/XEPDB1
VAULT_ADDR=http://127.0.0.1:8200 vault status
sample output
VAULT_ADDR=http://127.0.0.1:8200 vault status
Key Value
--- -----
Seal Type shamir
Initialized true
Sealed false
Total Shares 1
Threshold 1
Version 1.6.3
Storage Type inmem
Cluster Name vault-cluster-0ef20ec9
Cluster ID 859a991b-5643-e1bc-b6ee-b6b165fcf6e8
HA Enabled false
VAULT_ADDR=http://127.0.0.1:8200 vault read database/creds/my-role
- url
http://192.168.56.51:8100/ui
- root token
changeme