下载此文档

Oracle 数据库表空间容量调整(表空间缩容脚本)脚本.pdf


文档分类:IT计算机 | 页数:约4页 举报非法文档有奖
1/4
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/4 下载此文档
文档列表 文档介绍
DBA never sleep-DBA,永不眠
Focus on Oracle Database, GodenGate and Unix
[置顶] Oracle 数据库表空间容量调整(表空间缩容脚本)脚本
分类: Automatic Storage Management Oracle DBA Tools & Scripts 2013-05-31 19:18 308人阅读评论(0) 收
藏举报
Oracle 数据库表空间表空间缩容表空间扩容表空间容量调整
--1、获取需要释放空间的表空间信息(包含oracle database自有表空间)
--drop table ;
create table as select
,
"Sum_MB",
(-)/1024/1024 "used_MB",
"free_MB",
round(((-)/)*100,2) "percent_used"   
from
(select tablespace_name,sum(bytes) bytes from dba_data_files group by tablespace_name) a,    
(select tablespace_name,sum(bytes) bytes,max(bytes) largest from dba_free_space group by
tablespace_name) b    
where =    
order by ((-)/) desc;
--select * from order by "Sum_MB" desc,"free_MB" desc;
--2、获取需要释放空间的应用表空间数据文件使用情况
--drop table ;
create table as 
select ,
       ,
        / 1024 / 1024 total,
        / 1024 / 1024 free
  from dba_data_files a,
       (select file_id, sum(bytes) sum_free
          from dba_free_space
         group by file_id) b
 where =
   and in (select tablespace_name
                               from system.

Oracle 数据库表空间容量调整(表空间缩容脚本)脚本 来自淘豆网m.daumloan.com转载请标明出处.

非法内容举报中心
文档信息
  • 页数4
  • 收藏数0 收藏
  • 顶次数0
  • 上传人紫岑旖旎
  • 文件大小0 KB
  • 时间2013-12-22