/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 을 사용하는 방법에 대해 알아봤습니다.
제목 | 조회 수 | 날짜 | 글쓴이 |
---|---|---|---|
macOS Sequoia 15.0.1 24A348 정식버젼 고스트 이미지 OC 1.0.2 ft: 전체공개 +28 | 792 | 24.10.1121:10 | 좌절금지 |
오픈코어 1.0.2 +22 | 544 | 24.10.0900:22 | 줌바이퍼 |
[중급편] 노트북 해킨 +16 | 1365 | 24.07.1219:19 | Stultus |
macOS Ventura 13.7 22H123 정식버젼 고스트 이미지 OC 1.0.1 ft: 전체 공개 +17 | 560 | 24.09.1917:09 | 좌절금지 |
macOS Sonoma 14.7 23H124 정식버젼 고스트 이미지 OC 1.0.1 ft: 전체공개 +31 | 889 | 24.09.1723:58 | 좌절금지 |
[초급편] 문제 스스로 해결하기 +20 | 3975 | 24.03.2920:07 | Stultus |
[입문편] 첫 해킨 길라잡이 +40 | 5033 | 24.01.1218:54 | Stultus |
[필독 - 안정화] macOS 해킨토시 설치 후 안정화 작업 목록 및 글타래 모음 총정리 📋 +67 | 5.1만 | 23.01.0913:39 | shl628 |
733 | 24.09.2923:48 | 머트 | |
623 | 24.09.2822:28 | 머트 | |
626 | 24.09.2203:23 | 누림어멈 | |
1163 | 24.09.1919:17 | 좌절금지 | |
496 | 24.09.1813:37 | Stultus | |
450 | 24.09.1717:13 | 맥가즈아 | |
226 | 24.09.1617:47 | Panictosh | |
482 | 24.09.0118:13 | 머핀X | |
197 | 24.08.1710:14 | jbhlyk | |
309 | 24.08.1622:06 | Stultus | |
214 | 24.08.1511:16 | hackillious | |
161 | 24.08.1421:30 | 세유니 | |
184 | 24.08.1111:21 | 티타보르 | |
523 | 24.08.1022:10 | 오디세이 | |
166 | 24.08.1019:05 | jbhlyk | |
192 | 24.08.0923:20 | RogerT | |
336 | 24.08.0717:18 | 좌절금지 | |
340 | 24.07.2915:37 | 해킨도전자 | |
272 | 24.07.2813:52 | june119 | |
4030 | 23.05.0502:19 | BlueGuerrilla | |
3727 | 21.08.0213:10 | 김태국 | |
198 | 24.07.0811:28 | 의정이 | |
239 | 24.06.2617:24 | talas | |
155 | 24.06.2120:58 | 블루사탕 | |
551 | 24.06.1609:01 | gtrfxdsp | |
762 | 24.06.1115:07 | 새콤칠리 | |
311 | 24.06.1001:11 | Steer | |
210 | 24.06.0810:09 | Door | |
467 | 24.06.0107:41 | Tamy | |
361 | 24.05.2923:53 | ssdwe346 | |
299 | 24.05.2809:58 | joy | |
270 | 24.05.2601:07 | 거니 | |
241 | 24.05.1615:02 | wjdgkdus | |
861 | 24.05.1417:36 | Tamy | |
155 | 24.05.0821:05 | 의정이 | |
2496 | 23.10.0921:28 | ryzen | |
729 | 24.05.0210:00 | 고맹이 | |
1093 | 24.04.3013:54 | shl628 | |
574 | 24.04.3020:54 | 의정이 | |
725 | 24.04.3005:11 | Cerritos | |
1937 | 24.04.2615:51 | 곰비 | |
1553 | 24.04.2612:41 | 곰비 | |
2630 | 24.04.2417:02 | Tamy | |
1012 | 24.04.2123:27 | 달이차가워 | |
3283 | 24.04.1200:06 | 누림어멈 | |
1089 | 24.04.1121:44 | 폴라 | |
1293 | 24.04.1100:15 | 머핀X | |
1336 | 24.04.1001:25 | 윈맥크로 | |
1182 | 24.04.0803:41 | 비트러브 | |
2913 | 24.04.0800:52 | proboy | |
2677 | 24.04.0613:32 | 낡은기계 | |
1120 | 24.04.0609:51 | 비트러브 | |
1381 | 24.03.2820:57 | 의정이 | |
1454 | 24.03.2819:41 | 티타보르 | |
781 | 24.03.2622:16 | miraip | |
806 | 24.03.2213:09 | 낡은기계 | |
1147 | 24.03.1514:42 | 구멍단추눈 | |
761 | 24.03.1423:29 | 광호 | |
786 | 24.03.1421:29 | Stultus | |
808 | 24.03.1313:27 | 뿌엥 | |
582 | 24.03.1302:58 | 투신코 | |
595 | 24.03.1210:42 | 사노라맨 | |
959 | 24.03.1209:40 | TOTORA | |
1111 | 24.03.1210:07 | 애플브리크 | |
626 | 24.03.1102:56 | 란초스 | |
449 | 24.03.1100:14 | 비트러브 | |
477 | 24.03.1018:18 | 해킨도전자 | |
1352 | 24.03.0920:26 | 옥대장 | |
1187 | 24.03.0914:33 | 줌바이퍼 | |
1147 | 24.03.0823:20 | 광호 | |
237 | 24.03.0821:38 | 투신코 | |
873 | 24.03.0819:57 | 줌바이퍼 | |
610 | 24.03.0809:56 | TOTORA | |
1117 | 24.03.0809:44 | 애플브리크 | |
793 | 24.02.2701:24 | 머핀X | |
591 | 24.02.2700:04 | 하나브 | |
293 | 24.02.2019:07 | 루크 | |
1780 | 22.06.1221:21 | decazzang | |
772 | 24.02.2001:01 | 광호 | |
262 | 24.02.1821:09 | 윤수꾸하하 |