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的更多相关文章

  1. oracle之 Oracle LOB 详解

    一.  官方说明 Oracle 11gR2 文档: LOB Storage http://download.oracle.com/docs/cd/E11882_01/appdev.112/e18294 ...

  2. Oracle管理文件OMF (oracle managed files)

    简化dba的管理操作 1:启用 omf 23:16:04 SYS@orcl> show parameter DB_CREATE_FILE_DEST NAME TYPE VALUE ------- ...

  3. coreData-Fetching Managed Objects

    https://developer.apple.com/library/content/documentation/DataManagement/Conceptual/CoreDataSnippets ...

  4. Debian系统网卡调试出问题,无线网卡提示device not managed如何解决?

    参考文章:<How to fix Wired Network interface “Device not managed” error in Debian or Kali Linux?> ...

  5. weblogic管理2 - 创建并启动一个managed server

    创建一个managed server. 1.  进入网页console管理页面,如:http://10.100.25.14:7001/console     , 先点击->服务器 (红色标记框) ...

  6. ADF_General JSF系列3_将JSP页面绑定到一个Managed Bean

    2015-02-17 Created By BaoXinjian

  7. ubuntu 出现device not managed,解决方法

    1. 编辑/etc/NetworkManager/NetworkManager.conf: sudo vi /etc/NetworkManager/NetworkManager.conf将其中的man ...

  8. [转]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 ...

  9. 【ubuntu】出现device not managed连接不上网络

    ubuntu安装好后显示“device not managed” 1. 编辑/etc/NetworkManager/NetworkManager.conf: sudo gedit /etc/Netwo ...

随机推荐

  1. luogu1006 传纸条

    题目大意 小渊坐在矩阵的左上角,坐标 (1,1 ),小轩坐在矩阵的右下角,坐标 (m,n) .从小渊传到小轩的纸条只可以向下或者向右传递,从小轩传给小渊的纸条只可以向上或者向左传递. 在活动进行中,小 ...

  2. c# winform 多条件查找 外加网络人才回答

    浮生 Э 2012-11-22  c# winform 多条件查找  20 我现在有2个textbox  一个是用户名,另一个是电话   现在想对这两个进行条件查找datagridview里的数据 s ...

  3. hdu 2586(Tarjan 离线算法)

    How far away ?                                                                             Time Limi ...

  4. 80.用户管理 Extjs 页面

    1 <%@ page language="java" import="java.util.*" pageEncoding="UTF-8" ...

  5. 2-2 第二天 利用 QQ 浏览器代理调试端口

    在没有域名服务器的情况下微信代理的方案 echo "api_key: N3DYn5356kYDvcd67fRxoecKxQV7fTE0" > ~/.ultrahook gem ...

  6. netty之ByteBuf详解

    [ChannelPromise作用:可以设置success或failure 是为了通知ChannelFutureListener]Netty的数据处理API通过两个组件暴露——abstract cla ...

  7. B - IQ test

    Problem description Bob is preparing to pass IQ test. The most frequent task in this test is to find ...

  8. C# 多线程系列(二)

    传递数据给一个线程 通过函数或lambda表达式包一层进行传递. static void Main(string[] args) { Thread thread = new Thread(() =&g ...

  9. [WIFI插座][阅读记录][SoC][RT5350] 00.目录 RALINK AP SDK 4.1.0.0 USER’s MANUAL

    来源是CSDN,百度网盘下载地址 http://pan.baidu.com/share/link?shareid=3504767505&uk=3426044377   授权声明,略过 免责声明 ...

  10. Python3编写Windows服务程序

    最近做了公司签到的小工具,有同事要求做成Windows服务,开机自启.先说下怎么用Python写Windows服务程序. #encoding=utf-8 import win32serviceutil ...