Database Ch.1

chezze·2023년 3월 29일
0

Database

목록 보기
1/5
post-thumbnail

Data vs Information

DataInformation은 서로 연관되어 있지만 다른 개념으로, 각각 다음과 같이 정의한다.

Data

현실 세계로부터 단순한 관찰이나 측정을 통해 수집된 사실이나 값

Information

Data를 처리한 결과로, 어떤 상황에 대한 적절한 결정에 대한 근거로 사용됨.

What is a Database?

Wikipedia 에서는 Database를 다음과 같이 설명한다.

Database

In computing, a database is an organized collection of data stored and accessed electronically. Small databases can be stored on a file system, while large databases are hosted on computer clusters or cloud storage

즉, Database를 한 마디로 정의하면 data의 집합이라고 할 수 있다.

Components of the Database System

Database System은 다음과 같은 요소들로 구성되어 있다.

  • Physical Database
  • Schema (Metadata)
  • Database Management System (DBMS)
  • Database Language
    ... etc

각 구성 요소를 간단하게 설명하면 다음과 같다 :

Physical Database
Data 내용을 포함하는 파일들의 집합

Schema
Physical Database의 내용을 명세하는 Data (Data of Data)

Database Management System (DBMS)
Database 내부의 내용에 접근하여 변경할 수 있는 소프트웨어

Database Language
Schema를 정의하고 Database에 접근하기 위해 사용하는 Language

Database

Definition

An organized collection of data stored and accessed electronically

Database는 다음의 방식으로 정의할 수도 있다 :

  • Integrated Data (통합된 데이터)
    Minimal Redundancy(최소의 중복) 또는 Controlled Redundancy(통제된 중복)

  • Stored Data (저장된 데이터)
    컴퓨터가 접근 가능한 저장 매체에 저장

  • Operational Data (운영 데이터)
    한 조직의 고유 기능을 수행하기 위해 필요한 데이터

  • Shared Data (공유된 데이터)
    한 조직에 있는 여러 Application Software가 공동으로 소유 및 이용하는 데이터

The characteristic of Database

Database는 다음과 같은 특성을 가진다 :

  • Online Accessibilities (온라인 접근성)
    질의에 대한 실시간 처리 및 응답이 가능하다.

  • Continuous Evolution (계속적인 진화)
    새로운 데이터의 삽입, 기존 데이터의 삭제 및 갱신으로 현재의 상태를 유지한다.

  • Concurrent Sharing (동시 공유)
    여러 사용자가 동시에 사용할 수 있다.

  • Content Reference (내용에 의한 참조)
    데이터베이스의 데이터는 위치, 주소가 아닌 내용(값)에 의해 참조된다.

Schema (Metadata)

Definition

The formal definition of a database schema is a set of formulas (sentences) called integrity constraints imposed on a database.
(from Wikipedia)

Schema는 데이터베이스에 적용되는 여러 가지 제약 조건을 정의하는 수식의 집합이다.
예를 들어, Schema는 데이터베이스에 저장될 수 있는 데이터 유형, 데이터 유형 간의 관계, 데이터 필드의 이름, 데이터 필드의 최소 및 최댓값을 정의하는 등의 정보를 포함한다.
Schema는 Metadata라고도 하며, 이는 데이터에 대한 데이터라는 의미이다.

Database Management System (DBMS)

Definition

Software system that enables users to define, create, maintain and control access to the database
(from Wikipedia)

DBMS는 사용자가 데이터베이스에 대한 액세스를 정의, 생성, 유지 및 제어할 수 있도록 하는 소프트웨어 시스템을 뜻하며, 사용자가 Application Software을 통해 DB를 사용할 수 있게 관리하는 역할을 한다.

Functions of DBMS

DBMS는 다음 3가지의 기능을 가지고 있다 :

  • Data Definition (데이터 정의)
    데이터베이스에서 사용되는 데이터의 구조와 특성을 정의하고 관리하는 기능

  • Data Manipulation (데이터 조작)
    데이터베이스에서 저장된 데이터에 대한 검색, 추가, 수정, 삭제 등을 수행하는 기능
    검색 : SELECT
    추가 : INSERT
    수정 : UPDATE
    삭제 : DELETE

  • Data Control (데이터 제어)
    데이터베이스에서 저장된 데이터를 관리하고 보호하는 기능

Database Language

Definition

Database languages are special-purpose languages, which allow one or more of the following tasks, sometimes distinguished as sublanguages:

  • Data control language (DCL) – controls access to data;
  • Data definition language (DDL) – defines data types such as creating, altering, or dropping tables and the relationships among them;
  • Data manipulation language (DML) – performs tasks such as inserting, updating, or deleting data occurrences;
  • Data query language (DQL) – allows searching for information and computing derived information.
    (from Wikipedia)

Database language는 데이터베이스를 다루기 위한 언어로, DB의 구축, 관리, 조회, 수정 및 삭제 등의 작업을 수행할 때 사용된다.
Database language는 크게 DDL, DML, DCL로 나뉘며, DCL에서 SELECT만을 따로 분리한 DQL 등도 존재한다.
데이터베이스 언어는 보통 SQL (Structured Query Language) 이라는 표준 언어를 사용한다.

Users of the Database System

Database System을 이용하는 사용자는 4가지로 나눌 수 있다.

  • End User (최종 사용자)
  • Database Architect (데이터베이스 설계자)
  • Application Developer (응용 개발자)
  • Database Administrator (데이터베이스 관리자)
profile
주니어 컴공학부생🌱

0개의 댓글