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. CreateWindowEx和CreateWindow的区别

    CreateWindowEx 函数功能:该函数创建一个具有扩展风格的重叠式窗口.弹出式窗口或子窗口,其他与 CreateWindow函数相同.关于创建窗口和其他参数的内容,请参看CreateWindo ...

  2. hdu 6082 度度熊与邪恶大魔王(2017"百度之星"程序设计大赛 - 资格赛 )

    度度熊与邪恶大魔王 Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total S ...

  3. 10.3.3 WebView的几个常见功能

    (1)背景设置,例如下面的代码. webView.setBackgroundColor(0);//先设置背景色为transparent webView.setBackgroundResource(R. ...

  4. yii的criteria的用法

    Yii的Active Recorder包装了很多. 特别是把SQL中 把where,order,limit,IN/not IN,like等常用短句都包含进CDbCriteria这个类中去,这样整个代码 ...

  5. selenium3 + python - alert_is_present定位

    from selenium import webdriverfrom selenium.webdriver.support.wait import WebDriverWaitfrom selenium ...

  6. css3 文本模型

    我前期是一名前端开发者,经常会遇到关于文本模型的问题,很多地方我们会经常遇到这种问题.例如栏目的标题,在设计师给我们图的时候并不会考虑到标题的长度,所以我们自己开发的过程中自己注意这一点. 首先和大家 ...

  7. Cookie、Token与Session介绍(非原创)

    文章大纲 一.Cookie介绍二.Token介绍三.Session介绍四.Token.Cookie与Session比较五.参考文章   一.Cookie介绍 1. Cookie是什么 cookie机制 ...

  8. React.js初探

    React.js 菜鸟官方解释: React 是一个用于构建用户界面的 JAVASCRIPT 库. React主要用于构建UI,很多人认为 React 是 MVC 中的 V(视图). React 起源 ...

  9. C - Alice, Bob and Chocolate(贪心)

    Problem description Alice and Bob like games. And now they are ready to start a new game. They have ...

  10. java与安卓中的回调callback学习笔记

    1.回调的简单设计如下: package com.listercai.top; public class A { private CallBack callBack; private AnotherC ...