Skip to content

Instantly share code, notes, and snippets.

@rajasgs
Last active April 17, 2019 16:00
Show Gist options
  • Save rajasgs/0504df1a97d9311a2c585d192b1f7dd2 to your computer and use it in GitHub Desktop.
Save rajasgs/0504df1a97d9311a2c585d192b1f7dd2 to your computer and use it in GitHub Desktop.
docker run -d --name or12cee \ --privileged -v $(pwd)/oradata:/u01/app/oracle \ -e ORACLE_ALLOW_REMOTE=true \ -p 8082:8080 -p 1521:1521 absolutapps/oracle-12c-ee
docker exec -it or12cee /bin/bash
docker logs -f or12cee
sqlplus system/oracle@//localhost:1521/orcl
SQL>desc v$instance;
SQL>select INSTANCE_NAME,HOST_NAME from v$instance;
SQL>select tablespace_name, file_name from dba_data_files;
docker cp /Users/abc/abc.sql or12cee:/home/.
sqlplus system/oracle@//localhost:1521/orcl @/home/abc.sql
ref:
https://oraclespin.com/2018/03/30/docker-installation-of-oracle-database-12c-on-mac/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment