반응형

Database(데이터베이스) - 저장소에 구분되는 가장 큰 단위


Table(테이블) - 데이터베이스에 뭔가를 저장하기 위해 맨 첫 단계에 만드는 테이블


Column(컬럼) - 관계형 데이터베이스에서 행(레코드)을 분류하는 기준


Row(행) - 데이터를 저장하는 값으로 컬럼(필드) 내의 단 하나의 값


컬럼(Column)과 필드(Filed)는 같은 의미이고 행(Row)과 레코드(Record)는 같은 의미이다.






데이터 모델


데이터 타입, 관계 제약 조건들을 명시하기 위해 사용 할 수 있는 개념들의 집합

추상화를 달성하기 위한 필수적 의미를 제공



저수준(물리적) 데이터 모델


데이터가 어떻게 컴퓨터에 저장되는지 세부 사항을 명시하는 개념을 제공(EX:: 하드 디스크)



고수준(개념적) 데이터 모델


사용자들이 데이터를 인식하는 방식에 대한 개념을 제공(EX:: ER 모델)



표현(구현) 데이터 모델 


고수준과 저수준 모델 사이 존재, 일반 사용자들이 이해 할 수 있는 개념을 제공

몇몇 데이터 저장소의 자세한 것들을 숨기지만, 직접적으로 컴퓨터 시스템에 구현 할 수 있다. (EX :: 네트워크 모델, 계층 모델 ... )



스키마 (뜻 : 계획, 도식)


데이터베이스의 구조(개체, 속성, 관계)와 제약 조건에 대한 정의이다.

메타 데이터라고도 한다.


데이터베이스 관리 시스템(DBMS)이 주어진 설정에 따라 데이터베이스 스키마를 생성하고, 데이터베이스 사용자가 자료를 저장, 조회, 삭제, 변경 할 때 DBMS는 자신이 생성한 데이터 베이스 스키마를 참조하여 명령을 수행한다.


한마디로 DBMS는 스키마를 참조하여 사용자의 명령을 수행하는 것이다.


외부 스키마 = 서브 스키마

= 데이터 베이스의 논리적 구조 정의, 사용자 뷰


개념 스키마

= 데이터의 접근 권한, 보안 정책, 무결성 규칙에 대한 명세를 정의


내부 스키마

= 저장 장치의 관점에서 데이터 베이스가 저장되는 방법을 명세



데이터 베이스 인스턴스 


특정 시점의 데이터베이스의 내용을 의미하며 시간이 지남에 따라 계속해서 바뀐다.

DB 상태가 유효한 상태를 유지하도록 보장해준다.





3가지 중요한 DB 특성


- 프로그램과 데이터의 절연기능(insulation)

- 다양한 유저 관점을 지원

- DB 스키마를 저장하는 카탈로그의 사용



db의 특징

수 많은 유저로 부터 Control Access를 수행한다.
  i) Isolation : 다른 유저간의 interaction 방지한다.
  ii) Atomicity : 수행하는 명령이 중간에 끝나는 일이 없도록 한다.


db를 쓸 때 장점

1. 중복을 줄일 수 있다.

2. 불법적인 접근을 제한할 수있다.

3. 효율적인 저장관리를 할 수 있다.
- 실수로 데이터를 잃거나 그러한 상황을 방지할 수 있다.

4. 추론과 액션을 할 수 있다.

5. 복잡한 상황들에 처리를 할 수 있다.

예를들면, 생년월일 폼은
직접입력이 아닌 선택사항을 주고 선택하도록 만드는 틀리지 못하게 만드는 방법이다.

(즉, db에서는 원천적으로 잘못된 접근을 막아버린다.)


즉 위의 내용은 아래와 같다.

security and authorization subsystem

불법적인 접근을 제한하고 막아주는 역할을 한다


query processing and optimization

데이터베이스에 조인이 많이 되고 복잡할 때 어느 방향으로 갈지 판단 후 움직이는 과정

인덱스를 탈지 안탈지, 여러 개를 조인할 때 어떤 순서로(A,B를 먼저 할지, B,C를 먼저할지) 할지 등등.. 주어진 SQL에 대한 처리 방향은 질의처리기(query processor)에서 어떤 것이 나을지 예측, 평가를 한 후에 결정합니다

backup and recovery subsystem

백업과 복원 기능을 제공한다. 

integrity constraints

잘못된 데이터가 들어오지 못하도록 무결성을 제공한다.








1.     Database  A collection of related data


2.     Data  Known facts that can be recorded and have an implicit meaning 


3.     DBMS A software package/ system to facilitate the creation and maintenance of a computerized database


4.     Program-Data-Independence Insulation between programs and data, and data abstraction 


5.     Data Abstraction A data model is used to hide storage details and present the users with a conceptual view of the database.


6.     Concurrency control Multiple users access the database at the same time 


7.     DBA(database administrator) A chief administrator to oversee and manage these resources


8.     Query Processing and optimization Choosing an efficient query execution plan for each query based on the existing storage structures


9.     Backup and recovery subsystem Facilities for recovering from hardware or software failures


10.  Security and authorization subsystem Restricting Unauthorized Access 


11.  Impedance mismatch problem The data structures provided by the DBMS were incompatible with the programming language’s data structures


12.  Integrity constraints Derived from the meaning or semantics of the data and of the miniworld


13.  Metadata A complete definition(description) of the DB structure and constraints


14.  Database designers Identifying the data to be stored and choosing appropriate structures to represent and store this data


15.  Data model Used to hide storage details and present the users with a conceptual view of the database


16.  Stored data manager A module of the DBMS that controls access to the DBMS information that is stored on disk


17.  Domain A set of values that may be assigned to the attribute for each individual entity


18.  Degree The number of participating entity types in a relationship type


19.  Data Mining Applications that analyze large amounts of data searching for the occurrences of specific patterns or relationships


20.  Entity A thing in the real world with an independent existence









반응형