REM rowid_ranges should be at least 21 REM utilize this script help delete large table REM if update large table Why not online redefinition or CTAS -- This script spits desired number of rowid ranges to be used for any parallel operations. -- Best to use it for copying a huge table with out of row lob columns in it or CTAS/copy the data over db links. -- This can also be used to simulate parallel insert/update/delete operations. -- Maximum number of rowid ranges you can get here is 255. -- Doesn't work for partitioned tables, but with minor changes it can be adopted easily. -- Doesn't display any output if the total table blocks are less than rowid ranges times 128. -- It can split a table into more ranges than the number of extents From Saibabu Devabhaktuni http://sai-oracle.blogspot.com/2006/03/how-to-split-table-into-rowid-ranges.html set verify off undefine rowid_ranges undefine segment_name undefine owner set head off set pages 0 set trimspool on select 'where rowid between ''' ||sys.dbms_rowid.rowid_create(1, d.oid, c.fid1, c.bid1, 0) ||''' and ''' ||sys.dbms_rowid.rowid_create(1, d.oid, c.fid2, c.bid2, 9999) || '''' ||';'
Script:partition table into rowid extent chunks
原创maclean_007 ©著作权
文章标签 update dml rowid parallel Oracle脚本script very 文章分类 Oracle 数据库

-
elementUI table 表头 宽度 动态调整
elementUI table 表头宽度自适应
elementUI 宽度自适应 -
Apple Partition Table职场 Apple Table 休闲 Partition
-
Script: Computing Table Size
This script calculates the average row size for all tables in a schema.It generates a script (getAvgCol.sql) from USER_TABLES and then runs it.The following type of SELECT is generated for each tabl
CALCULATE DATA_COLLECT DBA_TABLES DBA_TAB_COLUMNS TABLESPACE~FREE