This code manages memory and storage for the DBMS.
Repository of metadataThis repository is usually called a data dictionary.
Query language
This language enables applications to access the data.
一个数据库管理系统包括,内核代码(控制内存和数据存储)、元数据(数据字典)、查询语言(SQL)
In his seminal 1970 paper "A Relational Model of Data for Large Shared Data Banks," E. F. Codd defined a relational model based on mathematical set theory.
这个是关系型数据库的重要时刻
http://dl.acm.org/citation.cfm?id=362685 for an abstract and link to Codd's paper
喜欢研究该论文的可以访问上边的网站链接
下面介绍了一些oracle的历史,暂略过,感兴趣的可以看以下链接:
http://www.oracle.com/technetwork/issue-archive/2007/07-jul/o4730-090772.html
A database schema is owned by a database user and has the same name as the user name.
一个用户拥有一个数据库的schema,并且他俩是同名的,schema并不是数据库用户,schema概念上是数据库逻辑数据结构的集合,与数据库用户概念上是不同的,虽然他们是相同的名字
A schema object is one type of database object. Some database objects, such as profiles and roles, do not reside in schemas.
schema对象就是一个数据库对象的类型,例如表或者索引。而有一些数据库对象例如profile和roles并没有在schema里
A table is a set of rows.
表就是行的集合
An index is an optional data structure that you can create on one or more columns of a table.Indexes are useful when applications often query a specific row or range of rows.
索引是一个可选的数据结构,可以创建在一个或多个列上,索引对于那种经常查询某个或者某个范围的列的应用很有用处
Indexes are logically and physically independent of the data.
索引物理和逻辑上独立于数据,创建和删除索引并不影响表或其它索引
In contrast to procedural languages such as C, which describe how things should be done, SQL is nonprocedural and describes what should be done.
C语言是过程语言,它描述了事情应该怎样做,SQL不是过程语言,描述了应该做什么
SQL statements enable you to perform the following tasks:
Query data
In Oracle Database, each user must see a consistent view of the data, including visible changes made by a user's own transactions and committed transactions of other users. For example, the database must not permit a dirty read, which occurs when one transaction sees uncommitted changes made by another concurrent transaction.
数据库只能看到自己更改未提交的数据,而不能看到别人更改未提交的数据,也就是不允许脏读。
An Oracle database server consists of a database and at least one database instance (commonly referred to as simply an instance).
一个oracle数据库服务器包括一个数据库和至少一个数据库实例
A database is a set of files, located on disk, that store data. These files can exist independently of a database instance.
数据库就是一系列放置在磁盘文件的集合,这些文件存储数据,这些文件能够独立于数据库实例
An instance is a set of memory structures that manage database files. The instance consists of a shared memory area, called the system global area (SGA), and a set of background processes. An instance can exist independently of database files.
实例就是一系列管理数据文件的内存结构,实例由SGA和后台进程组成,他能够独立于数据库实例存在
数据库中的物理结构和逻辑结构俩个是独立的,修改物理结构并不影响逻辑结构,反之亦然
数据库物理结构包括以下最基本三种文件:
1.数据文件
用于存放数据
2.控制文件
Every Oracle database has a control file.
A control file contains metadata specifying the physical structure of
the database, including the database name and the names and locations of
the database files.
控制文件包括数据库名字以及数据文件的各自名字和位置
3.在线日志文件
Every Oracle Database has an online redo log, which is a set of two or more online redo log files. An online redo log is made up of redo entries (also called redo records), which record all changes made to data.
在线日志文件记录所有对数据的更改,以redo entries组成
Many other files are important for the functioning of an Oracle database
server. These files include parameter files and diagnostic files.
Backup files and archived redo log files are offline files important for backup and recovery.
还有其他比较重要的文件:参数文件、诊断日志文件、归档日志文件、备份文件等
数据库逻辑结构包括以下种类:
1.数据块
At the finest level of granularity, Oracle Database data is stored in data blocks. One data block corresponds to a specific number of bytes on disk.
数据块是数据库的最小粒度单元,oracle数据库数据存储在数据块中,一个数据块对应指定数目bytes的磁盘块
2.区
An extent is a specific number of logically contiguous data blocks, obtained in a single allocation, used to store a specific type of information.
一个区是连续的数据块,单独进行分配,存储指定类型的数据信息
3.段
A segment is a set of extents allocated for a user object (for example, a table or index), undo data, or temporary data.
一个段是分配个某个用户对象的区的集合,包括数据段、回滚段和临时段
4.表空间
A database is divided into logical storage units called tablespaces. A tablespace is the logical container for a segment. Each tablespace contains at least one data file.
数据块是被表空间进行逻辑单元分割,段逻辑上是归属于表空间,每个表空间包含至少一个数据文件
When applications connect to an Oracle database, they are connected to a
database instance. The instance services applications by allocating
other memory areas in addition to the SGA, and starting other processes
in addition to background processes.
当应用连接到一个数据库时,他们连接的是数据库实例。这个实例为这个应用分配一块独立于SGA的内存(PGA)进行服务,并且启动区别于其他数据库后台的进程(server process)来进行服务
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/30291162/viewspace-1701879/ ,如需转载,请注明出处,否则将追究法律责任。