Oracle Database 설치 및 간단 설정


Oracle Database 18c Express를 사용할 것임

 

Oracle Database 18c Express 설치

Oracle Database Express Edition (XE) 18c Downloads

 

Oracle Database Express Edition (XE) 18c Downloads

Support Oracle Database Express Edition (XE) is a community supported edition of the Oracle Database family. Please go to the Oracle Database XE Community Support Forum for help, feedback, and enhancement requests. Note: Oracle Support Services only provid

www.oracle.com

 

windows x64 다운
압축을 풀고 setup 실행
디폴트로 설치하다 비밀번호 입력
설치 진행 (시간이 좀 걸림)
설치완료 Oracle 포트는 1521

 

Oracle 접속

파워셸에서 sqlplus를 입력하고 username에 system / 비밀번호 입력하면 접속완료 ("SQL>"로 바뀜)

 

Oracle Database 간단 설정

Oracle은 mysql과는 다르게 database를 tablespace라 칭한다.

 

## 먼저 C드라이브 아래에 data 폴더를 만들고 진행 ##

SQL> CREATE TABLESPACE shopDB DATAFILE 'c:\data\shopDB.dbf' SIZE 3M ; # 테이블 스페이스 생성
# datafile 경로는 c:\data\shopDB.dbf 크기는 3M로 설정
Tablespace created.

## shopDB를 소유할 Oracle 이용자 생성 및 권한주기 ##
SQL> alter session set "_ORACLE_SCRIPT" = true ; # Session을 Oracle로 설정
Session altered.

SQL> create user shopuser identified by 1234 default tablespace shopDB ; # ShopDB를 위한 shopuser 생성
User created.

SQL> grant connect, resource to shopuser ; # 접속 및 자원 사용 권한 제공
Grant succeeded.

SQL> grant unlimited tablespace to shopuser ; # 모든 테이블스페이스에 할당 용량을 줄수 있는 권한 제공
Grant succeeded.

## shopuser로 접속 ##

SQL> connect shopuser / 1234 ;
Connected.

SQL> show user ;
USER is "SHOPUSER"

 

'Windows server' 카테고리의 다른 글

Web Site 구축 실패.  (0) 2024.02.29
Web Server (IIS, FTP Server)  (0) 2024.02.29
원격 접속 서버  (0) 2024.02.29
Backup 실습  (0) 2024.02.28
저장소 공간 실습  (0) 2024.02.28

+ Recent posts