Language/Spring

[Spring] Oracle DB 설치 및 SQL developer 초기 설정

rame 2022. 9. 15. 10:22


  1. Oracle Database Express Edition 18c 다운로드
  2. Oracle SQL Developer 다운로드
  3. 압축 해제 후 설치
  4. SQL 로그인
  5. 계정 생성하기
  6. 계정 권한 주기
  7. 로그인 확인하기

1. Oracle Database Express Edition 18c 다운로드

링크 : https://www.youwindowsworld.com/en/downloads/database/oracle/oracle-database-express-edition-18c

 

Download Oracle Database Express Edition 18c - You Windows World

Oracle Database Express Edition 18c free download. Oracle Database Express Edition 18c for 64-bit Windows and 64-bit Linux systems ...

www.youwindowsworld.com

 

 

 

2. Oracle SQL Developer 다운로드

링크 : https://www.oracle.com/database/sqldeveloper/technologies/download/

 

Oracle SQL Developer Downloads

This archive. will work on a 32 or 64 bit Windows OS. The bit level of the JDK you install will determine if it runs as a 32 or 64 bit application. This download does not include the required Oracle Java JDK. You will need to install it if it's not already

www.oracle.com

 

 

3. 압축 해제 후 설치

* oracle database express edition 서비스가 이미 있습니다 해결법 (더보기)

더보기

   1) cmd 관리자 권한으로 실행

    - window r + cmd 입력

    - ctrl + shift + enter

  2) sc delete OracleServiceXE 입력

  3) 삭제 성공

 

 

 

4. SQL 로그인

 - cmd 실행

sqlplus /nolog

 

 

conn sys as sysdba;

--비밀번호 입력하지 않고 엔터

 

 

5. 계정 생성하기

create user c##human identified by human;

 

 

6. 계정 권한 주기

* CONNECT

   - 기본적으로 DB에 접속할 수 있는 권한, CREATE SESSION이 들어있음

* RESOURCE

   - DB의 테이블이나 뷰 등을 생성, 삭제, 변경할 수 있고 프로시져나 트리거와 같은 PL/SQL을 사용할 수 있는 권한

* DBA

   - 모든 DB의 권한 (DBA 권한은 DB 관리자에게만 부여해야 함)

grant connect, resource, dba to c##human;

 

 

7. 로그인 확인하기

conn
사용자명: c##human
비밀번호: human

show user;