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 ...
随机推荐
- JavaScript模式读书笔记 第4章 函数
2014年11月10日 1.JavaScript函数具有两个特点: 函数是第一类对象 函数能够提供作用域 函数即对象,表现为: -1,函数能够在执行时动态创建,也 ...
- 使用printf函数实现串口信息打印——设置IAR和Keil的Options
在Keil和IAR中都可以使用printf函数,但两者设置的方法不一样.以下分别是IAR和Keil的设置. 下面是Keil的设置. 选中Options--->Target--->Code ...
- 【CTSC 2007】 数据备份
[题目链接] https://www.lydsy.com/JudgeOnline/problem.php?id=1150 [算法] 首先,有一个很显然的结论 : 如果要使距离和最小,必须选择相邻的办公 ...
- C/C++中输入多组数据方法
--------开始-------- 对于刚开始学编程的人来说每次基本上就是一次数据输入,多次的话基本也是会给定一个数组的大小,但随着做刷算法题开始,题目有的会不直接告诉输入几组数据,基本输入都是多组 ...
- Java 位运算符 &、|、^、~、<<、>>、>>>
撸了N久的代码,但是突然冒出来个位运算,我就蒙蔽了,这是什么?我是谁?我在干什么?我在哪? 1)闲扯 关于位运算符无非也就 与(&).或(|).异或(^).取反(~).左移(<< ...
- vue vuex初学基础 常见错误解决方式
前端界面使用篇 vue生命周期初始化事件 http://www.cnblogs.com/lily1010/p/5830946.html 常见错误篇 1 Newline required at end ...
- bootstrap模态框和select2合用时input无法获取焦点(转)
在bootstrap的模态框里使用select2插件,会导致select2里的input输入框没有办法获得焦点,没有办法输入. 解决方法: 1. 把页面中的 tabindex="-1&qu ...
- java如何设置文件的权限
import java.io.File; 2.import java.io.IOException; 3./× 4.×只能给当前用户赋予对该文件的权限,调用createNewFile()方法默认的权限 ...
- Percona Xtrabackup备份及恢复
1. http://www.percona.com/software/percona-xtrabackup下载并安装 2. 全量备份 a.全量备份到制定目录 innobacku ...
- h5调用app中写好的的方法
做h5页面的时候,总会遇到些不能解决的问题于是就要与app做一些交互, app那边编辑好的方法后我们怎么用js语法去调用app编写好的方法 if(this.$winInfo.shebei == 1){ ...