Scripts:显示有LOB列的表的脚本(慎用)LobData.sql
2014-05-29 10:58
721 查看
REM List table and column information for LOBs for a specific user
REM
REM UNDO handling with LOBs is not designed for frequent updates
REM Frequent updates are best handled with PCTVERSION at 100
REM This means you must have a lot of space available in the LOB
REM tablespace as all UNDO will be maintained over time.
REM
REM Using RETENTION does not work as expected
REM It is set to UNDO_RETENTION at the time of the creation of the
REM object. It does not change over time as UNDO_RETENTION
REM or auto-tuned undo retention changes.
set pages 999
set lines 110
spool lobdata.out
col column_name format a25 head "Column"
col table_name format a25 head "Table"
col tablespace_name format a25 head "Tablespace"
col pctversion format 999 head "PCTVersion %"
col segment_space_management format a30 head "Space|Mngmnt"
col retention format 999,999,999 head "Retention"
select l.table_name, l.column_name, l.tablespace_name, l.pctversion, l.retention,
t.segment_space_management
from dba_lobs l, dba_tablespaces t
where owner=upper('&USER')
and l.tablespace_name = t.tablespace_name
/
spool off
REM
REM UNDO handling with LOBs is not designed for frequent updates
REM Frequent updates are best handled with PCTVERSION at 100
REM This means you must have a lot of space available in the LOB
REM tablespace as all UNDO will be maintained over time.
REM
REM Using RETENTION does not work as expected
REM It is set to UNDO_RETENTION at the time of the creation of the
REM object. It does not change over time as UNDO_RETENTION
REM or auto-tuned undo retention changes.
set pages 999
set lines 110
spool lobdata.out
col column_name format a25 head "Column"
col table_name format a25 head "Table"
col tablespace_name format a25 head "Tablespace"
col pctversion format 999 head "PCTVersion %"
col segment_space_management format a30 head "Space|Mngmnt"
col retention format 999,999,999 head "Retention"
select l.table_name, l.column_name, l.tablespace_name, l.pctversion, l.retention,
t.segment_space_management
from dba_lobs l, dba_tablespaces t
where owner=upper('&USER')
and l.tablespace_name = t.tablespace_name
/
spool off
相关文章推荐
- Scripts:此脚本慎用lob_fragmentation_user.sql
- Scripts:dump clob列内容的脚本(慎用)lob_dump_clob.sql
- Scripts:dump nclob列的脚本(慎用)lob_dump_nclob.sql
- Scripts:dump blob列内容的脚本(慎用)lob_dump_blob.sql
- Scripts:显示数据库中DML,DDL锁的脚本locks_dml_ddl.sql
- FSG报表打印报错,log文件显示java.sql.SQLException: No corresponding LOB data found
- Scripts:基于时间显示闪回日志中redo的脚本fdb_redo_time_matrix.sql
- Scripts:显示数据库中长时间运行的操作的脚本longops.sql
- Scripts:根据sql_id创建sql_profile的脚本(此脚本要慎用)gps.sql
- Scripts:显示数据库每小时每日redo切换频率的脚本logswitchfreq.sql
- Scripts:重新编译失效对象的脚本(生产环境慎用)dba_recompile_invalid_objects.sql
- Scripts:显示数据库所有锁的脚本locks_blocking.sql
- Scripts:显示所有闪回日志的脚本fdb_log_files.sql
- Scripts:显示数据库中每小时每日的redo切换的脚本logswitchsize.sql
- Scripts:显示AWR中执行计划的脚本dplan_allstats.sql
- Scripts:显示闪回数据库状态的脚本fdb_status.sql
- Scripts:分析RAC hang的脚本(此脚本要慎用,在某些版本下可能会导致系统重启)RACDIAG.SQL
- Scripts:显示数据库中DML锁的脚本 locks_dml_lock_time.sql
- Scripts:显示数据库中长时间运行的SQL的脚本longtime.sql
- FSG报表打印报错,log文件显示java.sql.SQLException: No corresponding LOB data found