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. SQL2000数据库定期自动备份与修改

    SQL2000数据库定期自动备份与修改 http://www.veryhuo.com 2009-11-19 烈火网 投递稿件 我有话说   在SQL server企业管理器中,可以设置数据库的定期自动 ...

  2. Ruby类扩张(extension)

    创建: 2017/09/07 更新: 2017/09/16 修改标题字母大小写 ruby ---> Ruby    扩张类  class 类名     扩张的内容  end           ...

  3. 自己对javascript闭包的了解

    目录 闭包的概念 谈谈函数执行环境,作用域链以及变量对象 闭包和函数柯里化 闭包造成的额外的内存占用  (注意我说的不是“内存泄漏”!) 闭包只能取得包含函数的最后一个值 正文 前言: 在这篇文章里, ...

  4. 原生JS---1

    js的历史 在上个世纪的1995年,当时的网景公司正凭借其Navigator浏览器成为Web时代开启时最著名的第一代互联网公司. 由于网景公司希望能在静态HTML页面上添加一些动态效果,于是叫Bren ...

  5. 网络流模板(模板题:POJ1273)

    模板题:POJ1273 EK: #include <queue> #include <cstdio> #include <cstring> #include < ...

  6. 偶尔遇到的“The request was aborted:Could not create SSL/TLS secure channel.”怎么解决?

    项目中涉及到调用第三方的Https的WebService,我使用的是原始的HttpWebRequest. 代码中已经考虑到是Https,加上了SSL3协议,加上了委托调用.但偶尔还是会碰到 The r ...

  7. 【Linux】磁盘分区

    我们在Linux操作过程中,可能会遇到磁盘分区的问题.这篇文章是对/dev/sdb 这块磁盘进行分区. linux分区不同于windows,linux下硬盘设备名为(IDE硬盘为hdx(x为从a—d) ...

  8. Net.Json 常用例子

    #JsonConvert 例子 内容主要都是官方的例子,加上一些中文注释而已. 主要方便自己查询,分享一份出来. 参考文档: https://www.newtonsoft.com/json/help/ ...

  9. js获取当前具体时间

    /** * 获取当前时间 * @param isTime true:显示日期和时间,如:2018-09-20 13:25:12:false:显示日期,如:2018-09-20. * @returns ...

  10. dpkg:处理软件包 mysql-server-5.5 (--configure)时出错

        卸载MySQL重新安装会出现如下问题:出现该问题主要是安装MySQL前需要删除 /var/lib/mysql文件夹以及/etc/mysql文件夹执行命令:    sudo rm /var/li ...