precondition dependency
Docker installation
Download and install directly from the official website
Colima installation
Install using homebrew:
brew install colima
Check if the installation is successful:
colima --version
Enable Colima: the architecture is x86_64 and the memory is 4G
colima start --arch x86_64 --memory 4
The first startup line needs to download the virtual machine image to create a virtual machine, and it needs to wait slowly. The final result is:
Use the limact tool to view the status of the virtual machine
limactl list
Oracle installation
-
Pull the image:
docker pull deepdiver/docker-oracle-xe-11g
-
view mirror
docker images
-
boot image
docker run -d -p 1526:1521 --name oracle11g deepdiver/docker-oracle-xe-11g
-
view mirror
docker ps
-
into the container
docker exec -it { CONTAINER ID} /bin/bash
-
Log in to Oracle, user name: system, password: oracle
sqlplus system/oracle
-
Set and change the passwords of sys and system users to oracle, and set the password validity period to be permanent
alter user system identified by oracle;
alter user sys identified by oracle;
ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
-
Login using database tools
-
create new user
CREATE USER appsale IDENTIFIED BY 123456;
Username: appsale
Password: 123456
-
Set new user permissions
GRANT CONNECT, RESOURCE, DBA TO appsale;
Finish
Colima: A free alternative to Docker Desktop for Mac, so you can't see running containers in Docker Desktop.