Oracle database with docker
https://geraldonit.com/2021/08/15/oracle-xe-docker-images/
1. docker command:
docker run --name oracle-xe-slim -p 1521:1521 -e ORACLE_RANDOM_PASSWORD=true gvenzl/oracle-xe:18-slim
2. data gripden qowulmaq ucun:
bele bir password generate olunacaq.
password yerine docker generate etdiyi password yaziriq.
3. user yaradilmalidir:
create user parvin
identified by parvin
temporary tablespace TEMP
default tablespace USERS
quota unlimited on USERS;
4. hemin user-e grant verilmelidir:
grant connect, resource to parvin;
5. esas bazanin uzerine sag klik edib duplicate duymesine basib, sonra credentiallari daxil edib qowuluruq
Docker compose file:
*** lakin diqqet etmek lazimdir ki, bu compose faylini hansisa foldere atmaq lazimdir. Sonra ise git bash ile docker compose up etmek lazimdir.
version: '3.3'
services:
oracle:
image: gvenzl/oracle-xe:18-slim
volumes:
- ./oracle-volume:/opt/oracle/oradata
ports:
- 1991:1521
environment:
ORACLE_RANDOM_PASSWORD: true
ORACLE_ALLOW_REMOTE: true
ORACLE_USER: oracle
volumes:
oracle-volume:
Комментарии
Отправить комментарий