Skip to content

Instantly share code, notes, and snippets.

@bricelam
Created October 11, 2017 22:12
Show Gist options
  • Save bricelam/fed99277f83f2286d71454732edef9e0 to your computer and use it in GitHub Desktop.
Save bricelam/fed99277f83f2286d71454732edef9e0 to your computer and use it in GitHub Desktop.
Docker + Oracle Database + EF Core
  1. docker pull container-registry.oracle.com/database/standard
  2. docker run --name oracle -d -p 1521:1521 -p 5500:5500 --shm-size 4g container-registry.oracle.com/database/standard
  3. docker exec -it oracle /bin/bash
  4. Wait for DB setup to complete. Check progress with tail -f /home/oracle/setup/log/setupDB.log (Ctrl+C to exit)
  5. su - oracle
  6. sqlplus / as sysdba
  7. ALTER PLUGGABLE DATABASE PDB1 CLOSE;
  8. DROP PLUGGABLE DATABASE PDB1 INCLUDING DATAFILES;
  9. Continue with README
  10. Change DataSource in OracleTestStore.CreateConnectionString() to "//localhost:1521/ef.localdomain"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment