/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# 싱볼릭 링크 생성 ln -s (원본) (링크) ln -s "/Applications/Docker.app/Contents/Resources/bin/com.docker.cli" /usr/local/bin/com.docker.cli ln -s "/Applications/Docker.app/Contents/Resources/bin/docker" /usr/local/bin/docker ln -s "/Applications/Docker.app/Contents/Resources/bin/docker-compose" /usr/local/bin/docker-compose ln -s "/Applications/Docker.app/Contents/Resources/bin/docker-credential-desktop" /usr/local/bin/docker-credential-desktop ln -s "/Applications/Docker.app/Contents/Resources/bin/docker-credential-osxkeychain" /usr/local/bin/docker-credential-osxkeychain
# VirtualBox와 docker-machine 설치 brew install virtualbox docker-machine
# 터미널에서 docker-machine 생성 docker-machine create \ --driver "virtualbox" \ --virtualbox-cpu-count "1" \ --virtualbox-disk-size "40000" \ --virtualbox-memory "8192" \ --virtualbox-no-vtx-check \ default
# 설치내역 확인 ( machine-name : oracle ) docker-machine env oracle # 출력되는 값 export DOCKER_TLS_VERIFY="1" export DOCKER_HOST="tcp://192.168.99.100:2376" export DOCKER_CERT_PATH="/Users/llallallall/.docker/machine/machines/oracle" export DOCKER_MACHINE_NAME="oracle" # Run this command to configure your shell: # eval $(docker-machine env oracle)
# 환경 변수 저장 ( machine-name : oracle ) eval $(docker-machine env oracle) # 출력되는 값은 따로 없습니다.
# 도커 머신 확인 docker-machine ls # 출력되는 값 NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS oracle * virtualbox Running tcp://192.168.99.100:2376 v19.03.12
# docker registry 에서 oracle-xe-11g 이미지 검색 docker search oracle-xe-11g # 출력된 값 NAME DESCRIPTION STARS OFFICIAL AUTOMATED oracleinanutshell/oracle-xe-11g 164 wnameless/oracle-xe-11g-r2 Oracle Express Edition 11g Release 2 on Ubun… 59 orangehrm/oracle-xe-11g docker container with Oracle Express Editio… 15 [OK] christophesurmont/oracle-xe-11g Clone of the wnameless/oracle-xe-11g. 6 ukhomeofficedigital/oracle-xe-11g Oracle Database Express Edition 11g Container 4 [OK] jaspeen/oracle-xe-11g Fork from sath89/docker-oracle-xe-11g - smal… 3 [OK] thebookpeople/oracle-xe-11g 3 wscherphof/oracle-xe-11g-r2 Oracle® Database Express Edition 11g Release… 3 mcgregorandrew/oracle-xe-11g Oracle image with password expiry time set t… 2 alxfduch/oracle-xe-11g-tridion Oracle Express 11g R2 on Ubuntu 16.04 LTS Tr… 2 acktsw/oracle-xe-11g fork from https://hub.docker.com/r/sath89/or… 2 [OK] webdizz/oracle-xe-11g-sa This is a simple image based on sath89/oracl… 1 [OK] wilxim/oracle-xe-11g docker-oracle-xe-11g 1 larmic/oracle-xe-11g Using wnameless/oracle-xe-11g with created u… 0 activeeon/oracle-xe-11g 0 toneloc01/oracle-xe-11g Out-of-the-box oralce xe image from ubuntu 1… 0 gaesi/oracle-xe-11g Based on: oracleinanutshell/oracle-xe-11g 0 dotcms/oracle-xe-11g 0 zeroturnaround/oracle-xe-11g 0 aerisconsulting/oracle-xe-11g Oracle Express 11g R2 on Ubuntu 16.04 LTS (b… 0 wjma90/oracle-xe-11g 0 nritholtz/oracle-xe-11g nritholtz/oracle-xe-11g 0 andyrbell/oracle-xe-11g-centos Oracle Express Edition 11g Release 2 on Cent… 0 avuletica/oracle-xe-11g-r2 Dockerfile of Oracle Database Express Editio… 0 paliari/oracle-xe-11g 0
# docker pull <이미지 이름> docker pull wnameless/oracle-xe-11g-r2 # 출력된 값 Using default tag: latest latest: Pulling from wnameless/oracle-xe-11g-r2 Digest: sha256:e8cfa3733a2c11b415fb94a9632424025d69165fb4903a22206f6073be30eeb9 .... .... ....
# docker 이미지 확인 docker images # 출력된 값 REPOSITORY TAG IMAGE ID CREATED SIZE hello-world latest d1165f221234 3 months ago 13.3kB wnameless/oracle-xe-11g-r2 latest 0d19fd2e072e 20 months ago 2.1GB avuletica/oracle-xe-11g-r2 latest f794779ccdb9 3 years ago 2.23GB deepdiver/docker-oracle-xe-11g latest 396b3e06a5dc 5 years ago 2.7GB
# docker container 생성 # docker run --name <container-name> -d -p <내부포트>:<외부포트> -p <내부포트>:<외부포트> -v <디렉토리 경로> <이미지 이름> docker run --name oracle11gr2 -d -p 49160:22 -p 49161:1521 -v /자료/AI/oracle/oracle11gr2 wnameless/oracle-xe-11g-r2 # 출력된 값 81e06ee5eabd9796c9632a3f20bc683e23e84c618dd377b7a381016b6b5ce5ce
# container 생성 내역 확인 docker inspect oracle11gr2 # 출력된 값 [ { "Id": "81e06ee5eabd9796c9632a3f20bc683e23e84c618dd377b7a381016b6b5ce5ce", "Created": "2021-06-18T05:28:47.850505365Z", "Path": "/bin/sh", "Args": [ "-c", "/usr/sbin/startup.sh && tail -f /dev/null" ], "State": { "Status": "running", "Running": true, "Paused": false, "Restarting": false, "OOMKilled": false, "Dead": false, "Pid": 7147, "ExitCode": 0, "Error": "", "StartedAt": "2021-06-18T05:28:47.977242791Z", "FinishedAt": "0001-01-01T00:00:00Z" ... ... ... "Mounts": [ { "Type": "volume", "Name": "2dec50eafa2048a82b39075bf3a8d0192ae644196db97abc9a62b56c5e408a47", "Source": "/mnt/sda1/var/lib/docker/volumes/2dec50eafa2048a82b39075bf3a8d0192ae644196db97abc9a62b56c5e408a47/_data", "Destination": "/자료/AI/oracle/oracle11gr2", "Driver": "local", "Mode": "", "RW": true, "Propagation": "" } ], ... ... ... } ]
# docker container 실행 상태 확인 docker container ls -all # 출력된 값 CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 81e06ee5eabd wnameless/oracle-xe-11g-r2 "/bin/sh -c '/usr/sb…" 4 minutes ago Up 4 minutes 8080/tcp, 0.0.0.0:49160->22/tcp, 0.0.0.0:49161->1521/tcp oracle11gr2
sql developer 실행시 crash 가 발생한다면 jdk 버전을 15 이상으로 올려서 재시도 해보세요.
11버전 하여야한다는 경고 문구는 무시하시고 계속 실행하셔도 정상적으로 실행됩니다.
# 자바 설치 경로 확인 cd /Library/Java/JavaVirtualMachines ls # 출력된 값 jdk-16.0.1.jdk # 자바 설치경로는 /Library/Java/JavaVirtualMachines/jdk-16.0.1.jdk 입니다.
# SQL Developer 자바 경로 설정 sudo vi ~/.sqldeveloper/20.4.1/product.conf # product.conf 파일 중간 쯤 SetJavaHome 부분이 있습니다. # 확인된 자바 경로를 아래와 같이 추가해줍니다. SetJavaHome /Library/Java/JavaVirtualMachines/jdk-16.0.1.jdk/Contents/Home #:wq! 를 입력해서 저장합니다.
# Set the default memory options for the Java VM. # These values can be overridden in the user .conf file, see the comment at the top of this file. # The options for 32-bit Java VM's Add32VMOption -Xms512M Add32VMOption -Xmx2G # The options for 64-bit Java VM's Add64VMOption -Xms1024M Add64VMOption -Xmx3G
# docker-machine IP주소 확인 docker-machine ls # 출력된 값 NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS oracle - virtualbox Running tcp://192.168.99.100:2376 v19.03.12 # 확인된 IP 주소 192.168.99.100
이상으로 Mac 에서 SQL Developer 을 사용하는 방법에 대해 알아봤습니다.
brightly님의 새글 알림을 받으실려면 구독
제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|
macOS Ventura 13.7 22H123 정식버젼 고스트 이미지 OC 1.0.1 ft: 전체 공개 +3 | 좌절금지 | 24.09.1917:09 | 71 |
macOS Sonoma 14.7 23H124 정식버젼 고스트 이미지 OC 1.0.1 ft: 전체공개 +15 | 좌절금지 | 24.09.1723:58 | 183 |
[중급편] 노트북 해킨 +8 | Stultus | 24.07.1219:19 | 755 |
[초급편] 문제 스스로 해결하기 +17 | Stultus | 24.03.2920:07 | 3534 |
[입문편] 첫 해킨 길라잡이 +32 | Stultus | 24.01.1218:54 | 4298 |
[필독 - 안정화] macOS 해킨토시 설치 후 안정화 작업 목록 및 글타래 모음 총정리 📋 +63 | shl628 | 23.01.0913:39 | 5만 |
Sonoma 14.7(23H124) i9-12900, GA-Z690 Proart Creator + BCM WiFi Support +4 | 좌절금지 | 24.09.1722:40 | 200 |
macOS Sequoia 15 설치 후기 + Bcm94360NG WiFi 작동함 | 좌절금지 | 24.09.1919:17 | 202 |
[ Sequoia 15.0, OC 1.0.1 ] BIOSTAR H410MH, i5-10500, RX580 | Stultus | 24.09.1813:37 | 155 |
좌절금지 | 24.09.1919:17 | 202 | |
좌절금지 | 24.09.1917:09 | 71 | |
Stultus | 24.09.1813:37 | 155 | |
좌절금지 | 24.09.1723:58 | 183 | |
좌절금지 | 24.09.1722:40 | 200 | |
맥가즈아 | 24.09.1717:13 | 90 | |
김경석 | 24.09.1708:13 | 221 | |
Panictosh | 24.09.1617:47 | 99 | |
Tamy | 24.09.1504:35 | 467 | |
Stultus | 24.09.1319:18 | 437 | |
치토 | 24.09.1019:44 | 471 | |
머핀X | 24.09.0118:13 | 394 | |
해킨도전자 | 24.09.0112:54 | 295 | |
머핀X | 24.08.3115:34 | 374 | |
화정큐삼 | 24.08.2601:42 | 239 | |
하나브 | 24.08.2422:59 | 209 | |
화정큐삼 | 24.08.2316:25 | 248 | |
CanBe | 24.08.1810:56 | 329 | |
화정큐삼 | 24.08.1800:04 | 205 | |
화정큐삼 | 24.08.1722:03 | 189 | |
jbhlyk | 24.08.1710:14 | 167 | |
Stultus | 24.08.1622:06 | 251 | |
hackillious | 24.08.1511:16 | 159 | |
세유니 | 24.08.1421:30 | 124 | |
Stultus | 24.08.1419:58 | 345 | |
오디세이 | 24.08.1311:26 | 271 | |
좌절금지 | 24.08.1115:46 | 194 | |
티타보르 | 24.08.1111:21 | 141 | |
Stultus | 24.08.1022:46 | 183 | |
오디세이 | 24.08.1022:10 | 393 | |
jbhlyk | 24.08.1019:05 | 127 | |
RogerT | 24.08.0923:20 | 145 | |
좌절금지 | 24.08.0717:18 | 286 | |
RogerT | 24.08.0609:17 | 115 | |
줌바이퍼 | 24.08.0606:14 | 459 | |
jbhlyk | 24.08.0523:34 | 81 | |
수인과윤슈 | 24.08.0521:10 | 185 | |
좌절금지 | 24.08.0521:08 | 838 | |
Stultus | 24.08.0221:07 | 427 | |
Tamy | 24.07.3019:12 | 343 | |
해킨도전자 | 24.07.2915:37 | 262 | |
june119 | 24.07.2813:52 | 206 | |
Stultus | 24.07.2112:43 | 245 | |
BlueGuerrilla | 23.05.0502:19 | 3993 | |
Stultus | 24.07.1219:19 | 755 | |
김태국 | 21.08.0213:10 | 3679 | |
Stultus | 24.07.1122:47 | 215 | |
Stultus | 24.07.1020:44 | 138 | |
Stultus | 24.07.0921:44 | 137 | |
Stultus | 24.07.0820:57 | 223 | |
의정이 | 24.07.0811:28 | 171 | |
Stultus | 24.07.0721:25 | 264 | |
bsiugr | 24.07.0604:41 | 288 | |
애플브리크 | 24.07.0509:56 | 492 | |
광호 | 24.02.1715:21 | 2186 | |
치토 | 24.06.2723:24 | 398 | |
talas | 24.06.2617:24 | 193 | |
블루사탕 | 24.06.2120:58 | 116 | |
gtrfxdsp | 24.06.1609:01 | 511 | |
Mactopia | 24.06.1401:04 | 345 | |
Stultus | 24.06.1120:40 | 726 | |
새콤칠리 | 24.06.1115:07 | 672 | |
좌절금지 | 23.02.2118:35 | 118만 | |
Steer | 24.06.1001:11 | 275 | |
Door | 24.06.0810:09 | 155 | |
Tamy | 24.06.0107:41 | 417 | |
ssdwe346 | 24.05.2923:53 | 299 | |
joy | 24.05.2809:58 | 265 | |
거니 | 24.05.2601:07 | 243 | |
RogerT | 24.05.2520:14 | 247 | |
좌절금지 | 24.05.1812:40 | 913 | |
wjdgkdus | 24.05.1615:02 | 211 | |
Tamy | 24.05.1417:36 | 797 | |
줌바이퍼 | 24.05.1002:04 | 1008 | |
의정이 | 24.05.0821:05 | 144 | |
ryzen | 23.10.0921:28 | 2405 | |
챠니앤차니 | 24.05.0319:15 | 146 | |
챠니앤차니 | 24.05.0220:17 | 174 | |
고맹이 | 24.05.0210:00 | 635 | |
shl628 | 24.04.3013:54 | 1067 |