当前位置:网站首页>Oracle的自动段空间管理怎么关闭?
Oracle的自动段空间管理怎么关闭?
2022-08-05 10:43:00 【布衣&凡尘】
Oracle的自动段空间管理怎么关闭?
采纳答案1:
Oracle主要的空间管理方式有两种,
一种是Oracle 8i以前的字典管理表空间(DMT)技术,
CREATE TABLESPACE tablespace_name DATAFILE 'datafile_path_name' [SIZE INTETER [K|M] |[DEFAULT STORAGE]|[PERMANENT|TEMPORARY]]
一种就是Oracle 8i以后的本地管理表空间(LMT)技术。
本地化管理的表空间的主要创建语法如下:
CREATE TABLESPACE tablespace_name DATAFILE 'datafile_path_name' [EXTENT MANAGEMENT { LOCAL {AUTOALLOCATE | UNIFORM [SIZE INTETER [K|M] ] } } ]
如果不使用自动管理:选择统一尺寸,则还可以详细指定每个区间(Extent)的大小。
注意如果不指定Uniform Size的大小,Oracle默认为每个区分配1MB大小。
示例:
SQL> CREATE TABLESPACE eygle 2 DATAFILE '/opt/oracle/oradata/eygle/eygle01.dbf' SIZE 10 m 3 EXTENT MANAGEMENT LOCAL UNIFORM; Tablespace created. SQL> SELECT tablespace_name, extent_management, allocation_type 2 FROM dba_tablespaces where tablespace_name='EYGLE'; TABLESPACE_NAME EXTENT_MAN ALLOCATIO ------------------------------ ---------- --------- EYGLE LOCAL UNIFORM
其他答案1:
Oracle主要的空间管理方式有两种,
一种是Oracle 8i以前的字典管理表空间(DMT)技术,
CREATE TABLESPACE tablespace_name DATAFILE 'datafile_path_name' [SIZE INTETER [K|M] |[DEFAULT STORAGE]|[PERMANENT|TEMPORARY]]
一种就是Oracle 8i以后的本地管理表空间(LMT)技术。
本地化管理的表空间的主要创建语法如下:
CREATE TABLESPACE tablespace_name DATAFILE 'datafile_path_name' [EXTENT MANAGEMENT { LOCAL {AUTOALLOCATE | UNIFORM [SIZE INTETER [K|M] ] } } ]
如果不使用自动管理:选择统一尺寸,则还可以详细指定每个区间(Extent)的大小。
注意如果不指定Uniform Size的大小,Oracle默认为每个区分配1MB大小。
示例:
SQL> CREATE TABLESPACE eygle 2 DATAFILE '/opt/oracle/oradata/eygle/eygle01.dbf' SIZE 10 m 3 EXTENT MANAGEMENT LOCAL UNIFORM; Tablespace created. SQL> SELECT tablespace_name, extent_management, allocation_type 2 FROM dba_tablespaces where tablespace_name='EYGLE'; TABLESPACE_NAME EXTENT_MAN ALLOCATIO ------------------------------ ---------- --------- EYGLE LOCAL UNIFORM
边栏推荐
- 第四章:redis 数组结构的set和一些通用命令「建议收藏」
- static linking and dynamic linking
- Ali's new launch: Microservices Assault Manual, all operations are written out in PDF
- FPGA:基础入门按键控制LED灯
- 智能算力的枢纽如何构建?中国云都的淮海智算中心打了个样
- PCB layout must know: teach you to correctly lay out the circuit board of the op amp
- 机器学习-基础知识 - Precision, Recall, Sensitivity, Specificity, Accuracy, FNR, FPR, TPR, TNR, F1 Score, Bal
- 用KUSTO查询语句(KQL)在Azure Data Explorer Database上查询LOG实战
- 【温度预警程序de开发】事件驱动模型实例运用
- The JVM collection that Alibaba's top architects have summarized for many years, where can't I check it!
猜你喜欢
The century-old Nordic luxury home appliance brand ASKO smart wine cabinet in the three-temperature area presents the Chinese Valentine’s Day, and tastes the love of the delicacy
什么是 DevOps?看这一篇就够了!
The JVM collection that Alibaba's top architects have summarized for many years, where can't I check it!
MySQL事务
登录功能和退出功能(瑞吉外卖)
abc262-D(dp)
Data Middle Office Construction (10): Data Security Management
单片机:温度控制DS18B20
The founder of the DFINITY Foundation talks about the ups and downs of the bear market, and where should DeFi projects go?
【MindSpore易点通机器人-01】你也许见过很多知识问答机器人,但这个有点不一样
随机推荐
Chapter 4: In the activiti process, variable transmission and acquisition process variables, setting and acquiring multiple process variables, setting and acquiring local process variables "recommende
【综合类型第 35 篇】程序员的七夕浪漫时刻
Confessing in the era of digital transformation: Mai Cong Software allows enterprises to use data in the easiest way
trie树模板
【温度预警程序de开发】事件驱动模型实例运用
Offensive World-PWN-new_easypwn
MySQL事务
RT - Thread record (a, RT, RT Thread version - Thread Studio development environment and cooperate CubeMX quick-and-dirty)
poj2935 Basic Wall Maze (2016xynu暑期集训检测 -----D题)
The century-old Nordic luxury home appliance brand ASKO smart wine cabinet in the three-temperature area presents the Chinese Valentine’s Day, and tastes the love of the delicacy
用KUSTO查询语句(KQL)在Azure Data Explorer Database上查询LOG实战
PCB layout must know: teach you to correctly lay out the circuit board of the op amp
七夕来袭!还要做CDH数据迁移怎么办?来看看DistCp
Leetcode刷题——623. 在二叉树中增加一行
FPGA: Basic Getting Started Button Controlling LED Lights
2022华数杯数学建模思路分析交流
A small test of basic grammar, Go lang1.18 introductory refining tutorial, from Bai Ding to Hongru, basic grammar of go lang and the use of variables EP02
语音社交软件开发——充分发挥其价值
Is digital transformation a business buy-in?
第四章:activiti流程中,变量的传递和获取流程变量 ,设置和获取多个流程变量,设置和获取局部流程变量「建议收藏」