当前位置:网站首页>Oracle Database Introduction
Oracle Database Introduction
2022-07-03 06:11:00 【Master core technology】
One 、 Database 4 Basic concepts
1) data (data): Data is the basic object stored in the database
2) database (DataBase,DB): The database is Long term storage In the computer , organized 、 Shareable A collection of large amounts of data
3) Database management system (DataBase Management System,DBMS): Database management system is a layer of data management between users and operating system Systems software
4) Database system (DataBase System,DBS): The database system consists of a database 、 Database management system 、 Application and database administrators (DBA) Composed storage 、 management 、 A system that processes and maintains data
Two 、 Two types of data models
The data model is Abstraction of real-world data features , In other words, the data model is used to describe data 、 Organizing and operating data . According to the different purposes of the model application , Divide the model into two categories .
The first category conceptual model : Also known as information model , Modeling data and information from a user perspective , Mainly used for database design , The most commonly used representation is E-R chart ( Entity - How to contact ,Entity Relationship approach)
The second category logical model and The physical model : The logical model mainly includes relational model 、 Hierarchical model and mesh model , Modeling data from the point of view of a computer system , It is mainly used for the realization of database management system ; Physical models are the lowest level abstraction of data , Describe the representation and access method of data in the system , Or storage mode and access method on disk or tape , It is oriented to computer system .
Data model 3 The elements
data structure : Describe the constituent objects of the database and the relationship between objects ;
Data manipulation : For various objects in the database ( type ) Example ( value ) A collection of allowed operations , Including operation and relevant operation rules ;
Data integrity constraints : A set of integrity rules .
relational model
Relational model refers to a data model that represents entities and their relationships in the form of two-dimensional tables .
ps: Each component of a relationship must be an indivisible data item , That is, no table is allowed in the table .
3、 ... and 、 Three layer mode and two-layer image of database system
A schema is a description of the logical structure and characteristics of all data in a database , It only involves the description of type , No specific values are involved .
Three level mode
1) External mode : Also known as subpattern or user mode , It's the database user's data view . External patterns are usually subsets of patterns , Therefore, there are multiple external modes , External mode DDL To define the outer mode .
2)( Logic ) Pattern : Description of logical structure and characteristics of all data in database , Is a common view for all users . A database has only one schema , Use mode DDL To define patterns .
3) Internal mode : Also known as storage mode , A database has only one internal schema , It is the description of data structure and storage mode , It's how the data is organized inside the database .
In order to realize the connection and transformation of these three abstract levels within the system ,DBMS Provide a two-tier image between the three-level modes
Two layer image
External mode / Pattern image : A pattern can have multiple external patterns . When ( Logic ) When the mode changes , from DBA Change the image accordingly , Without changing the external mode . The application is written according to the external mode , Therefore, there is no need to change , This is called logical independence of data .
Pattern / Internal mode image : A database has only one internal schema . When the storage structure of the database changes , from DBA Change the image accordingly , Without changing the mode , Then there is no need to change the application , This is called the physical independence of data and program .
Reference books : Introduction to Database System ( The fifth edition ) Wang Shan Huang,
边栏推荐
- [teacher Zhao Yuqiang] index in mongodb (Part 2)
- Kubernetes notes (VI) kubernetes storage
- 1. 两数之和
- Txt document download save as solution
- Convolution operation in convolution neural network CNN
- [teacher Zhao Yuqiang] MySQL flashback
- phpstudy设置项目可以由局域网的其他电脑可以访问
- Simple handwritten ORM framework
- 深度学习,从一维特性输入到多维特征输入引发的思考
- 88. Merge two ordered arrays
猜你喜欢
Core principles and source code analysis of disruptor
Migrate data from Mysql to tidb from a small amount of data
[teacher Zhao Yuqiang] the most detailed introduction to PostgreSQL architecture in history
深度学习,从一维特性输入到多维特征输入引发的思考
项目总结--04
JDBC connection database steps
Synthetic keyword and NBAC mechanism
项目总结--01(接口的增删改查;多线程的使用)
Convolution operation in convolution neural network CNN
智牛股--03
随机推荐
Synthetic keyword and NBAC mechanism
Loss function in pytorch multi classification
[Zhao Yuqiang] deploy kubernetes cluster with binary package
Jedis source code analysis (II): jediscluster module source code analysis
[video of Teacher Zhao Yuqiang's speech on wot] redis high performance cache and persistence
Mysql database binlog log enable record
Understand the first prediction stage of yolov1
[teacher Zhao Yuqiang] MySQL flashback
Merge and migrate data from small data volume, sub database and sub table Mysql to tidb
Oauth2.0 - use database to store client information and authorization code
Why is the website slow to open?
表达式的动态解析和计算,Flee用起来真香
Redis cluster creation, capacity expansion and capacity reduction
Migrate data from Mysql to tidb from a small amount of data
Exportation et importation de tables de bibliothèque avec binaires MySQL
Beandefinitionregistrypostprocessor
輕松上手Fluentd,結合 Rainbond 插件市場,日志收集更快捷
Solve the problem of automatic disconnection of SecureCRT timeout connection
Use abp Zero builds a third-party login module (I): Principles
[teacher Zhao Yuqiang] Cassandra foundation of NoSQL database