Ubuntu 오라클 19c 설치 - Ubuntu olakeul 19c seolchi

Docker로 Oracle 19c 이미지를 생성하고 설치하는 방법을 알아보겠습니다.

시작하기 전에 먼저 Docker가 설치되어 있어야 합니다. 설치 방법은 아래 글을 참조해주세요.

//bundw.tistory.com/entry/CentOS-%EB%8F%84%EC%BB%A4Docker-%EB%B0%8F-docker-compose-%EC%84%A4%EC%B9%98%EC%99%80-%EB%B0%A9%ED%99%94%EB%B2%BD-%EB%93%B1%EB%A1%9D

CentOS 도커(Docker) 및 docker-compose 설치와 방화벽 등록

CentOS에서 Docker와 docker-compose 설치 및 방화벽 등록하는 방법을 알아보겠습니다. CentOS 8에서 테스트되었습니다. Docker 설치 $ sudo yum config-manager --add-repo=//download.docker.com/linux/ce..

bundw.tistory.com

시작하기 앞서 작업 디렉토리는 홈(~)으로 가정하고 작성되었습니다. 적절히 위치를 변경해 주세요.

docker-images를 git clone으로 다운받습니다.

$ git clone //github.com/oracle/docker-images.git

Oracle 소프트웨어를 다운받습니다.

//www.oracle.com/kr/database/technologies/oracle-database-software-downloads.html

위 페이지에서 하단의 Linux x86-64를 클릭해서 다운받습니다.

다운받은 파일(LINUX.X64_193000_db_home.zip)을 docker-images/OracleDatabase/SingleInstance/dockerfiles/19.3.0 디렉토리로 복사합니다.

$ cp LINUX.X64_193000_db_home.zip ~/docker-images/OracleDatabase/SingleInstance/dockerfiles/19.3.0

이미지를 빌드합니다.

$ cd ~/docker-images/OracleDatabase/SingleInstance/dockerfiles $ sudo ./buildContainerImage.sh -e -v 19.3.0

Oracle 데이터베이스가 위치할 디렉토리를 생성하고 권한을 변경합니다. (Docker Volume)

$ cd ~ $ mkdir oracle $ sudo chmod 777 oracle

Oracle 컨테이너를 생성하고 실행 및 초기화합니다.

$ cd ~ $ sudo docker run --name oracle -p 1521:1521 -p 5500:5500 -e ORACLE_PWD=oracle -v ./oracle:/opt/oracle/oradata oracle/database:19.3.0-ee

최초 실행시에는 세팅으로 인해 약간 시간이 걸리므로 기다린 후 완료합니다. (10분 이상)

위 초기화가 완료되면 종료 후(Ctrl+C) 서비스로 실행할 수 있습니다.

$ sudo docker start oracle

sqlplus는 아래의 방법으로 접속할 수 있습니다.

$ sudo docker exec -it oracle sqlplus sys/oracle@//localhost:1521/ORCLCDB as sysdba

DB 사용자 추가 예시

$ sudo docker exec -it oracle sqlplus sys/oracle@//localhost:1521/ORCLCDB as sysdba > ALTER SESSION SET CONTAINER=ORCLPDB1; > CREATE USER <USER> IDENTIFIED BY <PASSWORD>; > GRANT CONNECT, RESOURCE, DBA TO <USER>; > GRANT CREATE SESSION TO <USER>; > GRANT EXECUTE ON dbms_crypto TO <USER>;

Asked 1 year, 10 months ago

Viewed 3k times

I am trying to install Oracle 19c, and It needs X-display so I typed xhost +, but it doesn't work. Any ideas to solve this problem? Also, I want to know that Ubuntu literally support Oracle 19c.

asked Feb 15, 2021 at 9:16

2

Oracle does NOT support Ubuntu. From the documentation:

//docs.oracle.com/en/database/oracle/oracle-database/19/ladbi/operating-system-checklist-for-oracle-database-installation-on-linux.html#GUID-E5C0A90E-7750-45D9-A8BC-C7319ED934F0

The following Linux x86-64 kernels are supported:

  • Oracle Linux 8.1 with the Unbreakable Enterprise Kernel 6: 5.4.17-2011.0.7.el8uek.x86_64 or later Oracle Linux 8 with the Red Hat Compatible kernel: 4.18.0-80.el8.x86_64 or later

  • Oracle Linux 7.4 with the Unbreakable Enterprise Kernel 4: 4.1.12-124.19.2.el7uek.x86_64 or later Oracle Linux 7.4 with the Unbreakable Enterprise Kernel 5: 4.14.35-1818.1.6.el7uek.x86_64 or later Oracle Linux 7.7 with the Unbreakable Enterprise Kernel 6: 5.4.17-2011.4.4.el7uek.x86_64 or later Oracle Linux 7.5 with the Red Hat Compatible Kernel: 3.10.0-862.11.6.el7.x86_64 or later

  • Red Hat Enterprise Linux 8: 4.18.0-80.el8.x86_64 or later

  • Red Hat Enterprise Linux 7.5: 3.10.0-862.11.6.el7.x86_64 or later

  • SUSE Linux Enterprise Server 15: 4.12.14-23-default or later

  • SUSE Linux Enterprise Server 12 SP3: 4.4.162-94.72-default or later

Ubuntu is an entirely different branch of Linux, and no matter how many people claim they have hacked it to work, it is NOT supported and results are NOT guaranteed.

answered Feb 15, 2021 at 12:23

pmdbapmdba

2,4112 gold badges4 silver badges11 bronze badges

8

Toplist

최신 우편물

태그