Oracle EBS 表空间模型 - Oracle Applications Tablespace Model(OAT

本文详细介绍了Oracle EBS的OATM表空间模型,包括其12个表空间类型的用途,如何通过OATM有效减少表空间数量,以及查询表空间状态的SQL脚本。
部署运行你感兴趣的模型镜像

分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.youkuaiyun.com/jiangjunshow

也欢迎大家转载本篇文章。分享知识,造福人民,实现我们中华民族伟大复兴!

               
OATM即Oracle Applications Tablespace Model,是Oracle EBS可选的表空间模型。

OATM提供12个表空间模型用于管理本地表空间," APPS_"开头的属于Oracle EBS的业务表空间,此外的三个为Oracle数据库的系统表空间,包括Temp空间,System表空间,Undo表空间。

OATM是11i10发布的,11i之前,每个模块都有两个表空间,一个是数据表空间,另外一个索引表空间,造成了非常多的表空间,通过OATM可以有效的减少表空间数量,把同一类的表空间合并成一个。

Oracle Applications Tablespace Model

Tablespace TypeTablespace NameContent
Transaction TablesAPPS_TS_TX_DATATables that contain transactional data.
Transaction IndexesAPPS_TS_TX_IDXIndexes on transaction tables.
ReferenceAPPS_TS_SEEDReference and setup data and indexes.
InterfaceAPPS_TS_INTERFACEInterface and temporary data and indexes.
SummaryAPPS_TS_SUMMARYSummary management objects, such as materialized views, fact tables, and other objects that record summary information.
NologgingAPPS_TS_NOLOGGINGMaterialized views not used for summary management and temporary objects.
Advanced Queuing/AQAPPS_TS_QUEUESAdvanced Queuing and dependent tables and indexes.
MediaAPPS_TS_MEDIAMultimedia objects, such as text, video, sound, graphics, and spatial data.
ArchiveAPPS_TS_ARCHIVETables that contain archived purge-related data.
UndoUNDOAutomatic Undo Management (AUM) tablespace. UNDO segments are identical to ROLLBACK segments when AUM is enabled.
TempTEMPTemporary tablespace for global temporary table, sorts, and hash joins.
SystemSYSTEMSystem tablespace used by the Oracle Database

通过OATM管理表空间的好处:
  • Fewer and more consolidated tablespaces

  • Locally Managed Tablespaces

  • Accounts for the I/O characteristics of an object

  • Reclaims space after migration

  • Real Application Cluster (RAC) Support



附表空间查询的脚本:SQL Query for Tablespace
-- list all tablespaces with their associated files, the 
-- tablespace's allocated space, free space, and the 
-- next free extent:clear breaksSET linesize 130SET pagesize 60break ON tablespace_name skip 1col tablespace_name format a15col file_name format a50col tablespace_kb heading 'TABLESPACE|TOTAL KB'col kbytes_free heading 'TOTAL FREE|KBYTES' SELECT dd.tablespace_name tablespace_name, dd.file_name file_name, dd.bytes/1024 TABLESPACE_KB, SUM(fs.bytes)/1024 KBYTES_FREE, MAX(fs.bytes)/1024 NEXT_FREEFROM sys.dba_free_space fs, sys.dba_data_files ddWHERE dd.tablespace_name = fs.tablespace_nameAND dd.file_id = fs.file_idGROUP BY dd.tablespace_name, dd.file_name, dd.bytes/1024ORDER BY dd.tablespace_name, dd.file_name;  -- list datafiles, tablespace names, and size in MB: col file_name format a50col tablespace_name format a10SELECT file_name, tablespace_name, ROUND(bytes/1024000) MBFROM dba_data_filesORDER BY 1;   -- list tablespaces, size, free space, and percent free
-- query originally developed by Michael Lehmann SELECT df.tablespace_name TABLESPACE, df.total_space TOTAL_SPACE,fs.free_space FREE_SPACE, df.total_space_mb TOTAL_SPACE_MB,(df.total_space_mb - fs.free_space_mb) USED_SPACE_MB,fs.free_space_mb FREE_SPACE_MB,ROUND(100 * (fs.free_space / df.total_space),2) PCT_FREEFROM (SELECT tablespace_name, SUM(bytes) TOTAL_SPACE,      ROUND(SUM(bytes) / 1048576) TOTAL_SPACE_MB      FROM dba_data_files      GROUP BY tablespace_name) df,     (SELECT tablespace_name, SUM(bytes) FREE_SPACE,       ROUND(SUM(bytes) / 1048576) FREE_SPACE_MB       FROM dba_free_space       GROUP BY tablespace_name) fsWHERE df.tablespace_name = fs.tablespace_name(+)ORDER BY fs.tablespace_name;

参考:


           

给我老师的人工智能教程打call!http://blog.youkuaiyun.com/jiangjunshow
这里写图片描述

您可能感兴趣的与本文相关的镜像

ACE-Step

ACE-Step

音乐合成
ACE-Step

ACE-Step是由中国团队阶跃星辰(StepFun)与ACE Studio联手打造的开源音乐生成模型。 它拥有3.5B参数量,支持快速高质量生成、强可控性和易于拓展的特点。 最厉害的是,它可以生成多种语言的歌曲,包括但不限于中文、英文、日文等19种语言

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值