当前位置:网站首页>Do you know that there is an upper limit on the size of Oracle data files?
Do you know that there is an upper limit on the size of Oracle data files?
2022-07-02 14:02:00 【bisal(Chen Liu)】
Traditional relational database , Although when the client interacts with the database , Are dealing with various caches , however " data " Or do you want to drop the plate , File is his storage form , Since it's a document , There will be capacity limitations , that ,Oracle What is the limit of the data file size ?
Refer to some information , Each data file can contain at most 2^22-1 Data blocks , This limitation is due to Oracle Of Rowid Use in 22 On behalf of Block Number , this 22 At most, it can only represent 2^22-1 Data blocks . Of course ,Oracle10g Introduced large file tablespaces ,Oracle You can use 32 On behalf of Block Number , therefore , Each file in the large file table space can hold at most 4G individual Block.
P. S. 《 What is? rowid?》
If it's the default 8k Data blocks , A data file contains 2^22-1 Data blocks , His file size , Namely 2^22-1 * 8k / 1024 /1024 = 32G, That is, the maximum can not exceed 32G. The corresponding ,
4k The maximum data file of data block shall not exceed 16G.
16k The maximum data file of data block shall not exceed 64G.
32k The maximum data file of data block shall not exceed 128G.
64k The maximum data file of data block shall not exceed 256G.
If it is a large file table space , By default 8k Data blocks , Data files can achieve 32T, If it is 32k A block of data , The data file size can reach 128T.
although , According to the above calculation , There is an upper limit on the size of data files , however , If the maximum capacity of a single file supported by the operating system is less than this value , It is limited to the maximum capacity of the operating system . in addition ,Windows Can only be used in 2k、4K、8K、16K Block size , Maximum block capacity , Will be slightly smaller .
Related to data files is db_files Parameters , He specifies the maximum number of files that an instance can create . This value can be modified , But only after restarting the instance , Will take effect .db_files Set too low , It may cause the problem that new data files cannot be added . Set too high , It will consume more memory resources . For how to set ,《Database Administrator’s Guide》 Gives guidance , But it still has to be combined with the actual situation ,
https://docs.oracle.com/en/database/oracle/oracle-database/19/admin/managing-data-files-and-temp-files.html#GUID-BB7D8910-FCAE-4DAD-BDE5-B5EE35C69C6B
therefore , Including not limited to Oracle And the size of the data file , When we encounter the actual demand scenario , Understand these limitations , It helps us to choose the most suitable scheme .
Reference material ,
http://www.eygle.com/archives/2007/07/oracle_datafile_limit.html
https://www.modb.pro/db/386663?utm_source=index_ai
Recently updated articles :
《Oracle and JSON The combination of 》
《 How to " grace " avoid MySQL Login tips 》
《 Xiaobai studies MySQL - Incremental Statistics SQL The needs of - Scheme of windowed function 》
《 List of domestic databases 》
《 Xiaobai studies MySQL - The statistical " Be opportunistic "》
Recent hot articles :
《" Red Alert " Game open source code brings us a shock 》
Article classification and indexing :
边栏推荐
- [document tree, setting] font becomes smaller
- Stone merging Board [interval DP] (ordinary stone Merging & Ring Stone merging)
- Use of UIC in QT
- selenium,元素操作以及浏览器操作方法
- 【文档树、设置】字体变小
- I did it with two lines of code. As a result, my sister had a more ingenious way
- ArrayList and LinkedList
- 2022 home projector preferred! Dangbei F5 brings the ultimate audio-visual experience with its powerful audio-visual effect
- Codeforces Round #803 (Div. 2)(A~D)
- leetcode621. task scheduler
猜你喜欢
Drawing Nyquist diagram with MATLAB
Systemserver process
Just 1000 fans, record it
Why is the default of switch followed by break?
Daily practice of C language --- monkeys divide peaches
Solution: Compression Technology (original version and sequel version)
In 2021, the global TCB adapter revenue was about $93 million, and it is expected to reach $315.5 million in 2028
Development skills of rxjs observable custom operator
当贝投影4K激光投影X3 Pro获得一致好评:万元投影仪首选
leetcode621. task scheduler
随机推荐
Stone merging Board [interval DP] (ordinary stone Merging & Ring Stone merging)
QT new project_ MyNotepad++
Engineers who can't read device manuals are not good cooks
Qt新项目_MyNotepad++
Common options of tcpdump command: Three
P1347 sorting (topology + SPFA judgment ring or topology [inner judgment ring])
全屋Wi-Fi:一个谁也解决不好的痛点?
MySQL 45 lecture - learning the actual battle of MySQL in Geek time 45 Lecture Notes - 05 | easy to understand index (Part 2)
PyQt5_QScrollArea内容保存成图片
How to explain binary search to my sister? This is really difficult, fan!
不会看器件手册的工程师不是个好厨子
BeanUtils -- shallow copy -- example / principle
Origin绘制热重TG和微分热重DTG曲线
When tidb meets Flink: tidb efficiently enters the lake "new play" | tilaker team interview
Node. JS accessing PostgreSQL database through ODBC
联合搜索:搜索中的所有需求
selenium 在pycharm中安装selenium
Add sequence number column to query results in MySQL
混沌工程平台 ChaosBlade-Box 新版重磅发布
Which do you choose between Alibaba P7 with an annual salary of 900000 and deputy department level cadres?