Mac m1 install oracle through docker

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

  1. Pull the image:

    docker pull deepdiver/docker-oracle-xe-11g
    
  2. view mirror

    docker images
    
  3. boot image

    docker run -d -p 1526:1521 --name oracle11g deepdiver/docker-oracle-xe-11g
    
  4. view mirror

    docker ps
    
  5. into the container

    docker exec -it {
          
          CONTAINER ID} /bin/bash
    
  6. Log in to Oracle, user name: system, password: oracle

    sqlplus system/oracle
    
  7. 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;
  1. Login using database tools
    insert image description here

  2. create new user

    CREATE USER appsale IDENTIFIED BY 123456;
    

    Username: appsale

    Password: 123456

  3. 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.

Supongo que te gusta

Origin blog.csdn.net/qq_18944765/article/details/131148472
Recomendado
Clasificación