当前位置:网站首页>Logical structure of Oracle Database
Logical structure of Oracle Database
2022-07-24 05:42:00 【hongdi】
Catalog
Two 、 Several logical concepts
( One )Oracle Data blocks Block
( 3、 ... and ) paragraph (Segment)
( Four ) Table space (Tablespace)
One 、 summary
Oracle The logical structure in includes table space 、 paragraph 、 District 、 block
The database is made up of table spaces
And the table space is made up of segments
And segments are made up of zones
And the district is made up of Oracle data Block make up
Here's the picture :

I found a more intuitive picture on the Internet

Two 、 Several logical concepts
( One )Oracle Data blocks Block
Block is the most basic unit used to manage storage space , It is also the smallest logical storage unit . The size of the block is determined by the initialization parameter db_block_size To decide , Different Oracle The size of the version is different , But once the database is created , Its urine and urine cannot be changed . Although each data block can store different types of data , But each data block has the same structure .
The data block structure includes 5 part :
- Block Contains the general attribute information of the data block , Such as the physical address of the data block 、 Segment type, etc
- Table directory If the data stored in the data block is the data of a table , Then the information of the table is stored here
- Line directory Used to store valid row information in the data block
- Free space Index the unused storage space of the data block
- Row space The data of a table or index is stored in row space , Therefore, row space is the storage space already used in the data block
( Two ) District Extent
Area is Oracle Minimum unit of storage allocation , It is composed of one or more data blocks . One or more zones form a segment , In other words, the size of the segment is determined by the number of areas . When a segment's space is used up ,Oracle This segment will be automatically assigned a new zone .
The user can also recycle the table by executing the following command 、 An unused area in an object such as an index :
alter table table_name deallocate unused;In the district Oracle Data blocks are logically adjacent , But it can be physically distributed in different locations on the disk (RAID Striping and file system implementation can lead to this phenomenon )
( 3、 ... and ) paragraph (Segment)
A segment is a set of extents , It is an independent logical storage structure , Used to store all data of objects with independent storage structure . Segments are generally the smallest storage unit processed by database end users , When the data area of the segment is full ,Oracle Assign it another data area , The data area of the segment may be discontinuous on the disk .
- Data segment Used to store all data in the table ;
- Index segment Used to store all the data indexed in the table ;
- A temporary section Used to store temporary data generated when sorting or summarizing tables
- LOB paragraph LOB Used to store large data objects in tables , for example CLOB And BLOB
- Fallback section It is used to store the position and value before the user data is modified ; When you want to rollback the user's data , Use the fallback segment .
( Four ) Table space (Tablespace)
The table space is Oracle The largest logical storage structure , Corresponds to a physical data file , But a tablespace can have multiple data files .
- Data table space Common table space for storing user data .
- SYSTEM tablespace Default table space , Used to save data dictionaries ( A set of internal system tables and views that hold information about the database itself , And for Oracle Some other objects used internally ), Save all PL/SQL Program source code and parsing code , Including stored procedures and functions 、 package 、 Database triggers, etc , Save database objects ( surface 、 View 、 Sequence ) The definition of .
- Rollback table space It is used to store the rollback segment , At most one undo tablespace can be used per instance
- Temporary table space Storage SQL Temporary data generated during execution
Some words and pictures in this article come from the Internet .
边栏推荐
- Flink sql-client.sh使用
- GeoServer automatically uploads shapefiles
- Vscode configuring autoprefixer
- 达梦数据库_触发器、视图、物化视图、序列、同义词、自增列、外部链接等基本的操作
- 公众号开发自定义菜单和服务器配置同时启用
- How can the multiple-choice and single choice results of PHP be displayed in the foreground?
- haclabs: no_name(HL.ova)靶机渗透-Vulnhub
- Similarities and differences of ODS, data mart and data warehouse
- MySQL 批量插入demo
- XML之建模
猜你喜欢

Canvas - rotate

助力传统游戏转型GameFi,Web3Games推动游戏发展新航向

WASM VS EVM,波卡的选择预示了公链未来

GeoServer automatically uploads shapefiles

Canvas Bezier Bezier curve
![[Baidu map API] the version of the map JS API you are using is too low and no longer maintained. In order to ensure the normal use of the basic functions of the map, please upgrade to the latest versi](/img/d5/b0e4cc4155673d6042a0e39de4eddf.png)
[Baidu map API] the version of the map JS API you are using is too low and no longer maintained. In order to ensure the normal use of the basic functions of the map, please upgrade to the latest versi

Vulnhub solidstate: 1 target penetration test

Canvas - fill

Canal+kafka实战(监听mysql binlog实现数据同步)

Function analysis of GeoServer rest API
随机推荐
盘点波卡生态潜力项目 | 跨链特性促进多赛道繁荣
【activiti】activiti介绍
Sunset: noontide target penetration vulnhub
Use of wechat applet map
助力传统游戏转型GameFi,Web3Games推动游戏发展新航向
【activiti】activiti流程引擎配置类
Flink format series (1) -json
【mycat】mycat介绍
达梦数据库_常用的用户管理命令
Flink函数(1):rich function
达梦数据库_触发器、视图、物化视图、序列、同义词、自增列、外部链接等基本的操作
利用流媒体将RSTP流转成WEB端播放(二)[可回看]
Wechat applet reports an error request:fail -2:net:: err_ FAILED
Useref create dynamic reference
Moonbeam orbiters program: provides a new way for collectors to participate in moonbeam and Moonriver
达梦数据库_常用命令
Whole station downloader recommendation
Flink 生产环境配置建议
【mycat】mycat配置文件
Scarcity in Web3: how to become a winner in a decentralized world