#add di eof
cat >>/opt/oracle/product/18c/dbhomeXE/network/admin/tnsnames.ora<<EOF
>ketik sembarang
>EOF
#kalau dilihat, cat [namafile]
ketik sembarang
#ada dibawah
#utk search and replace
gunakan sed
#add di eof
cat >>/opt/oracle/product/18c/dbhomeXE/network/admin/tnsnames.ora<<EOF
>ketik sembarang
>EOF
#kalau dilihat, cat [namafile]
ketik sembarang
#ada dibawah
#utk search and replace
gunakan sed
- sudo apt update
#install a few prerequisite
- sudo apt install apt-transport-https ca-certificates curl software-properties-common
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
#Add the Docker repository to APT sources:
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
#update
- sudo apt update
#cek
- apt-cache policy docker-ce
You’ll see output like this, although the version number for Docker may be different:
docker-ce:
Installed: (none)
Candidate: 18.03.1~ce~3-0~ubuntu
Version table:
18.03.1~ce~3-0~ubuntu 500
500 https://download.docker.com/linux/ubuntu bionic/stable amd64 PackagesNotice that docker-ce is not installed, but the candidate for installation is from the Docker repository for Ubuntu 18.04 (bionic).
#Finally, install Docker:
- sudo apt install docker-ce
Docker should now be installed, the daemon started, and the process enabled to start on boot. Check that it’s running:
- sudo systemctl status docker
-----------install docker-compose
#cek version:
https://github.com/docker/compose/releases
#ubah sesuai versi
- sudo curl -L https://github.com/docker/compose/releases/download/[versi]/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
#set
- sudo chmod +x /usr/local/bin/docker-compose
#verify
- docker-compose --version
Outputdocker-compose version [versi], build [xxxxx]
#utk cek running/tidak
docker ps
#utk lihat image
docker images
#utk save
docker save [nama image] > [namafile.tar]
#utk load backup
docker load < [namafile.tar]
#utk masuk ke image
docker exec -it [namaimage] bash
#utk keluar
exit
#utk run oracle:
docker run --name myxedb \
-d \
-p 51521:1521 \
-p 55500:5500 \
-e ORACLE_PWD=mysecurepassword \
-e ORACLE_CHARACTERSET=AL32UTF8 \
oracle/database:18.4.0-xe#utk stop oracle
docker stop myxedb
#utk remove
docker rm [namaimage]
#utk remove image