Locally managed (LMT) vs. Dictionary managed (DMT) tablespace
The LMT is implemented by adding the extent management local clause to the tablespace definition syntax. Unlike the older dictionary managed tablespaces (DMTs), LMTs automate extent management and keep the Oracle DBA from being able to specify the next storage parameter to govern extent sizes. The only exception to this rule is when NEXT is used with minextents at table creation time.
In a dictionary managed tablespace (DMT), the data dictionary stores the free space details. While the free blocks list is managed in the segment heard of each table, inside the tablespace), the Free space is recorded in the sys.uet$ table, while used space in the sys.uet$ table.
But with high DML-rate busy tablespaces the data dictionary became a I/O bottleneck and the movement of the space management out of the data dictionary and into the tablespace have two benefits. First, the tablespace become independent and can be transportable (transportable tablespaces). Second, locally managed tablespaces remove the O/O contention away from the SYS tablespace.
Segment size management manual vs segment size management auto.
Here is how to migrate the SYSTEM tablespace from dictionary managed to local managed.
< Code 2.20 ? dbms_space_admin_mig_to_local.sql
conn pkg/pkg#123
--How to migrate SYSTEM tablespace from
dictionary managed to locally managed
--Check if you have temporary tablespace other
than SYSTEM
col file_name for a40
select
file_name,
tablespace_name
from
dba_temp_files;
col tablespace_name for a30
select
tablespace_name,
contents
from
dba_tablespaces
where
contents = 'temporary';
--Check if undo tablespace is online (if you are
using automatic undo management)
select
tablespace_name,contents
from
dba_tablespaces
where
contents
= 'undo';
--Put all tablespace in read only mode (do not
include temporary tablespace or tablespaces that has rollback
segments)
select
?alter tablespace '||tablespace_name||' read only;'
from
dba_tablespaces
where
contents <> 'temporary'
and
contents <> 'undo'
and
tablespace_name not in ('SYSTEM','SYSAUX');
'ALTER TABLESPACE'||TABLESPACE_
-----------------------------------------------------------
alter tablespace
users read only;
alter tablespace
example read only;
alter tablespace
apps_ts_tx_data read only;
alter tablespace
pkg_data read only;
alter tablespace
pkg_idx read only;
alter tablespace
pkg_data_32M read only;
alter tablespace
pkg_idx_32M read only;
alter tablespace
pkg_data_32M_manual read only;
--Put the database in restricted mode
alter system enable restricted session;
System altered
col host_name for a20
select
instance_name,
host_name,
logins
from
v$instance;
INSTANCE_NAME
HOST_NAME
LOGINS
---------------- -------------------- ----------
ora11g
dbms.f2c.com.br
restricted
--Change the SYSTEM tablespace
exec
dbms_space_admin.tablespace_migrate_to_local('SYSTEM');
--Verify the tablespace extent management
select
tablespace_name,
extent_management
from
dba_tablespaces
where
tablespace_name = 'SYSTEM';
TABLESPACE_NAME
EXTENT_MANAGEMENT
------------------------------ -----------------
SYSTEM
local
--Disable restricted mode
alter system disable restricted session;
System altered
--Put tablespaces in reead write mode
select
'alter
tablespace ' || tablespace_name || ' read write;'
from
dba_tablespaces
where
contents <>
'temporary'
and
contents <>
'undo'
and
tablespace_name
not in ('SYSTEM', 'SYSAUX');
'ALTERTABLESPACE'||TABLESPACE_
------------------------------------------------------------
alter
tablespace users read write;
alter
tablespace example read write;
alter
tablespace apps_ts_tx_data read write;
alter
tablespace pkg_data read write;
alter
tablespace pkg_idx read write;
alter
tablespace pkg_data_32M read write;
alter
tablespace pkg_idx_32M read write;
alter
tablespace pkg_data_32M_manual read write;
http://www.dba-oracle.com/t_packages_dbms_lmt_vs_dmt.htm
Locally managed (LMT) vs. Dictionary managed (DMT) tablespace的更多相关文章
- oracle之 Oracle LOB 详解
一. 官方说明 Oracle 11gR2 文档: LOB Storage http://download.oracle.com/docs/cd/E11882_01/appdev.112/e18294 ...
- Oracle管理文件OMF (oracle managed files)
简化dba的管理操作 1:启用 omf 23:16:04 SYS@orcl> show parameter DB_CREATE_FILE_DEST NAME TYPE VALUE ------- ...
- coreData-Fetching Managed Objects
https://developer.apple.com/library/content/documentation/DataManagement/Conceptual/CoreDataSnippets ...
- Debian系统网卡调试出问题,无线网卡提示device not managed如何解决?
参考文章:<How to fix Wired Network interface “Device not managed” error in Debian or Kali Linux?> ...
- weblogic管理2 - 创建并启动一个managed server
创建一个managed server. 1. 进入网页console管理页面,如:http://10.100.25.14:7001/console , 先点击->服务器 (红色标记框) ...
- ADF_General JSF系列3_将JSP页面绑定到一个Managed Bean
2015-02-17 Created By BaoXinjian
- ubuntu 出现device not managed,解决方法
1. 编辑/etc/NetworkManager/NetworkManager.conf: sudo vi /etc/NetworkManager/NetworkManager.conf将其中的man ...
- [转]Passing Managed Structures With Strings To Unmanaged Code Part 2
1. Introduction. 1.1 In part 1 of this series of blogs we studied how to pass a managed structure (w ...
- 【ubuntu】出现device not managed连接不上网络
ubuntu安装好后显示“device not managed” 1. 编辑/etc/NetworkManager/NetworkManager.conf: sudo gedit /etc/Netwo ...
随机推荐
- Java命名规则详细总结
Class名应是首字母大写的名词.命名时应该使其简洁而又具有描述性.异常类的命名,应以Exception结尾.Interface的命名规则与Class相同 1. JAVA源文件的命名 JAVA源文件名 ...
- C# SuperSocket服务端入门(一)
1,新建一个控制台应用程序,.NET版本4.0 2,添加SuperSocket(1.6.1).Binaries\Net40\Debug 目录下的: SuperSocket的dll文件( log4ne ...
- k-means 聚类前的数据分析
原始数据 Say you are given a data set where each observed example has a set of features, but has nolabel ...
- git常见冲突及解决办法
1.内容冲突 产生冲突的原因:两个用户修改了同一个文件的同一块区域,git会报告内容冲突.我们常见的都是这种. 解决冲突的办法:编辑冲突文件,修改冲突. 例如:冲突文件test.c test.c发生冲 ...
- 昂贵的聘礼(Dijkstra)
http://poj.org/problem?id=1062 每个物品看成一个节点,酋长的允诺也看作一个物品, 如果一个物品加上金币可以交换另一个物品,则这两个节点之间有边,权值为金币数,求第一个节点 ...
- JS判断浏览器类型和详细区分IE各版本浏览器
今天用到JS判断浏览器类型,于是就系统整理了一下,便于后期使用. ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 ...
- LeetCode.5-最长回文子串(Longest Palindromic Substring)
这是悦乐书的第342次更新,第366篇原创 01 看题和准备 今天介绍的是LeetCode算法题中Medium级别的第3题(顺位题号是5).给定一个字符串s,找到s中最长的回文子字符串. 您可以假设s ...
- 手机网站下拉加载数据js(简单版)
加载内容的地方html <div class="bgcolor_f0 clearfix"> <div class="recharge"> ...
- 基于Myeclipse+Axis2的WebService开发实录
最近开始学习了下在Myeclipse开发工具下基于WebSerivce的开发,下面将相关相关关键信息予以记录 Myeclipse的安装,本文以Myeclipse2014-blue为开发环境,相关配置执 ...
- RabbitMQ 官方NET教程(五)【Topic】
在上一个教程中,我们改进了我们的日志记录系统.我们使用direct类型转发器,使得接收者有能力进行选择性的接收日志,,而非fanout那样,只能够无脑的转发 虽然使用direct类型改进了我们的系统, ...