【Docker hub image】 https://registry.hub.docker.com/r/banglamon/oracle193db/tags 1. 抓image下來: ```= docker pull banglamon/oracle193db:19.3.0-ee ``` 2. 手動建立這兩個目錄: `D:/0Software/Oracle/opt/oradata`、`D:/0Software/Oracle/u01/oradata` 3. 執行 image 成 container 服務 (sys密碼:111),並且掛載 volume 出來到手動建立的資料夾 ```= docker run -d --name oracle19db -p 1680:1521 -e ORACLE_SID=xe -e ORACLE_PDB=XEPDB -e ORACLE_PWD=111 -v D:/0Software/Oracle/opt/oradata:/opt/oracle/oradata -v D:/0Software/Oracle/u01/oradata:/u01/app/oracle/oradata banglamon/oracle193db:19.3.0-ee ``` 4. 確認 container 是否有啟動 ```= docker ps ``` 5. 找到 CONTAINER ID 後進如該 container 內部 ```= exec -it [CONTAINER ID] bash ``` 6. 登入測試 (container 內部、用 sqlplus) ```= sqlplus sys/111@127.0.0.1:1521/xe as sysdba ``` 7. 登入測試 (外部、用 sqldevelop) ![](https://hackmd.io/_uploads/Syc699B6n.png) 8. 開始建立DDL、DML...(略)
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up