반응형
🛠️ 맥북에 오라클 설치하기
1. Colima 설치
$ brew install colima
2. Docker 설치
$ brew install docker
3. Colima 실행
$ colima start --memory 4 --arch x86_64
4. Oracle 컨테이너 Run
$ docker run -e ORACLE_PASSWORD=1234 -p 1521:1521 -d gvenzl/oracle-xe
5. Oracle 컨테이너 실행상태 확인
$ docker ps
6. Oracle 컨테이너 이름 변경
[5. Oracle 컨테이너 실행상태 확인]에서 실행한 스크립트 결과의 NAMES를 확인하여 아래 스크립트를 실행한다.
$ docker rename {현재컨테이너이름} {변경할이름}
Ex)
$ docker rename festive_khorana oracle
7. Oracle 컨테이너 실행상태 재확인
$ docker ps
아래와 같이 이름이 변경된 것을 확인할 수 있다.
8. SQL Plus 터미널 연결
$ docker exec -it oracle sqlplus
9. User 생성
SQL> CREATE USER {계정명} IDENTIFIED BY {비밀번호};
SQL> GRANT RESOURCE, CONNECT TO {계정명};
SQL> grant create session, create table, create procedure to {계정명};
SQL> ALTER USER {계정명} quota unlimited on USERS;
Ex)
SQL> CREATE USER choi IDENTIFIED BY 1234;
SQL> GRANT RESOURCE, CONNECT TO choi;
SQL> grant create session, create table, create procedure to choi;
SQL> ALTER USER choi quota unlimited on USERS;
References.
1. 코이팅 - M1 맥북에서 Docker로 oracle DB 실행하는 방법
반응형
'Server' 카테고리의 다른 글
[Linux] 리눅스마스터 2급 정리 #1 (0) | 2023.07.16 |
---|---|
[Linux] 리눅스 alias (0) | 2023.07.04 |
도메인주소로 IP주소 찾기 (0) | 2023.07.03 |
[macOS] zsh: command not found: brew (1) | 2023.04.23 |
[macOS] 맥북 재부팅 후 오라클 데이터베이스(Oracle Database) 재시작 (0) | 2023.04.23 |