Last active
April 17, 2019 16:00
-
-
Save rajasgs/0504df1a97d9311a2c585d192b1f7dd2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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