根据metalink脚本学习undo(二)
来源:互联网 发布:充值系统源码php 编辑:程序博客网 时间:2024/06/06 00:01
UndoDatafiles.sql
set lines 120set pages 999clear colset termout offset trimout onset trimspool onconnect / as sysdbaalter session set nls_date_format='dd-Mon-yyyy hh24:mi';spool undodatafiles.outpromptprompt ############## RUNTIME ############## promptcol rdate head "Run Time"select sysdate rdate from dual;prompt prompt ############## DATAFILES ############## prompt col retention head "Retention"col tablespace_name format a30 head "TBSP Name"col file_id format 999 head "File #"col a format 999,999,999,999,999 head "Bytes Alloc (MB)"col b format 999,999,999,999,999 head "Max Bytes Used (MB)"col autoextensible head "Auto|Ext"col extent_management head "Ext Mngmnt"col allocation_type head "Type"col segment_space_management head "SSM"select tablespace_name, --undo表空间名称 file_id, --文件ID sum(bytes)/1024/1024 a, --当前undo表空间大小 sum(maxbytes)/1024/1024 b, --最大大小 autoextensible --是否开启自动扩展from dba_data_fileswhere tablespace_name in (select tablespace_name from dba_tablespaces where retention like '%GUARANTEE' )group by file_id, tablespace_name, autoextensibleorder by tablespace_name//**/spool offset termout onset trimout offset trimspool offclear col
0 0
- 根据metalink脚本学习undo(二)
- 根据metalink脚本学习undo(一)
- 根据metalink脚本学习undo(三)
- 根据metalink脚本学习undo(四)
- 根据metalink脚本学习undo(五)
- 根据metalink脚本学习undo(六)
- 根据metalink脚本学习undo(七)
- 根据metalink脚本学习undo(八)
- shell脚本学习(二)
- Metalink
- undo系列学习之oracle DBA常用的脚本
- 第七章 Redo and Undo (二)
- UNDO表空间备份恢复(二)
- UNDO相关问题总结(二)
- InnoDB undo log解析(二)
- UNDO相关问题总结(二)
- UNDO相关问题总结(二)
- InnoDB undo log解析(二)
- ubuntu12.04LTS安装已经共享的打印机
- 百度测试开发算法题
- 一句话解释『锟斤拷』
- KMP算法思路
- [Kinect]Kinect与Unity结合开发
- 根据metalink脚本学习undo(二)
- 关于Hashtable与Dictionary性能的讨论
- ios 把view生成image, 保持清晰度
- 服务端推送技术
- PHP 数组导出(extract函数)
- 可在 html5 游戏中使用的 js 工具库
- 第十六章 16.1.6节练习
- numpy教程:数组操作
- 数据结构:约瑟夫环问题