首页 | 资讯动态 | linux基础 | 系统管理 | 网络管理 | 编程开发 | linux数据库 | 服务器技术 | linux相关 | linux认证 | 嵌入式 | 下载中心 | 专题 | linux招聘 | HR | 镜像
OKLinux中文技术站
·设为首页
·加入收藏
·联系我们
系统管理: 中文环境 系统管理 桌面应用 内核技术 | Linux基础: 基础入门 安装配置 常用命令 经验技巧 软件应用 | Linux数据库: Mysql Postgre Oracle DB2 Sybase other
网络管理: 网络安全 网络应用 Linux服务器 环境配置 黑客安全 | 编程开发: PHP CC++ Python Perl Shell 嵌入式开发 java jsp | PHP技术: PHP基础 PHP技巧 PHP应用 PHP文摘
搜索中心 Linux招聘 Linux专题 Apache | Linux相关: 硬件相关 Linux解决方案 Linux认证 企业应用 其它Unix | 相关下载: 资料下载 参考手册 开发工具 服务器类 软路由 其它
 技术搜索:
会员中心 注册会员 高级搜索  
  → 当前位置:首页>linux数据库>oracle>正文

行连接和行迁移的不同之处

http://www.oklinux.cn  2008-10-24  ccidnet Anna  会员收藏  游客收藏  【 】 
您查看的文章来源于http://www.oklinux.cn

两者之间的区别:

行连接是指一个行存储在多个块中的情况,因为一个该行的长度超过了一个块的可用空间大小。

行迁移是指一个数据行不适合放入当前块而被重新定位到另一个块,但在原始块中保留一个指针,原始块中的指针是必需的,因为索引的rowid项仍然指向原始位置.

行连接通常与行的长度和oracle数据库块中的大小有关,而行迁移通常是当一个更新操作的长度增加且又要保持该行在同一块中,而该块又缺少可用空间时产生的问题,oracle在决定行连接之前先试图进行行迁移。

检查是否存在行迁移或是连接:

(1)ANALYZE TABLE order_hist LIST CHAINED ROWS;

(2)SELECT * FROM CHAINED_ROWS WHERE TABLE_NAME = 'ORDER_HIST';

OWNER_NAME TABLE_NAME CLUST... HEAD_ROWID TIMESTAMP

---------- ---------- -----... ------------------ ---------

SCOTT ORDER_HIST ... AAAAluAAHAAAAA1AAA 04-MAR-96

SCOTT ORDER_HIST ... AAAAluAAHAAAAA1AAB 04-MAR-96

SCOTT ORDER_HIST ... AAAAluAAHAAAAA1AAC 04-MAR-96

贴个document 9i里面的资料,说得比较详细:

Listing Chained Rows of Tables and Clusters

You can look at the chained and migrated rows of a table or cluster using the ANALYZE statement with the LIST CHAINED ROWS

clause. The results of this statement are stored in a specified table created explicitly to accept the information returned

by the LIST CHAINED ROWS clause. These results are useful in determining whether you have enough room for updates to rows.

For example, this information can show whether PCTFREE is set appropriately for the table or cluster.

Creating a CHAINED_ROWS Table

To create the table to accept data returned by an ANALYZE ... LIST CHAINED ROWS statement, execute the UTLCHAIN.SQL or

UTLCHN1.SQL scrīpt. These scrīpts are provided by Oracle. They create a table named CHAINED_ROWS in the schema of the user

submitting the scrīpt.

--------------------------------------------------------------------------------

Note:

Your choice of scrīpt to execute for creating the CHAINED_ROWS table is dependent upon the compatibility level of your

database and the type of table you are analyzing. See the Oracle9i SQL Reference for more information.

--------------------------------------------------------------------------------

After a CHAINED_ROWS table is created, you specify it in the INTO clause of the ANALYZE statement. For example, the following

statement inserts rows containing information about the chained rows in the emp_dept cluster into the CHAINED_ROWS table:

ANALYZE CLUSTER emp_dept LIST CHAINED ROWS INTO CHAINED_ROWS;

See Also:

Oracle9i Database Reference for a descrīption of the CHAINED_ROWS table

Eliminating Migrated or Chained Rows in a Table

You can use the information in the CHAINED_ROWS table to reduce or eliminate migrated and chained rows in an existing table.

Use the following procedure.

Use the ANALYZE statement to collect information about migrated and chained rows.

ANALYZE TABLE order_hist LIST CHAINED ROWS;

Query the output table:

SELECT *

FROM CHAINED_ROWS

WHERE TABLE_NAME = 'ORDER_HIST';

OWNER_NAME TABLE_NAME CLUST... HEAD_ROWID TIMESTAMP

---------- ---------- -----... ------------------ ---------

SCOTT ORDER_HIST ... AAAAluAAHAAAAA1AAA 04-MAR-96

共4页: 上一页 1 [2] [3] [4] 下一页

上一篇:如何为Vista/Win2008中的IIS7添加PHP支持   下一篇:加速PHP动态网站 关于MySQL索引分析优化

收藏于收藏夹】 【评论】 【推荐】 【打印】 【关闭
相关文档
·带你深入了解Oracle数据库的"SYS"口令
·婓Oracle杅擂踱笢痄雄杅擂恅璃腔撿极源楊
·sqlplus的autotrace的设置
·Oracle监听口令及监听器安全
·在Oracle中恢复被DROP掉的表
·Oracle 10g手工创建数据库
·Oracle数据库SCN号详解
·查看数据库中有无多余的索引SQL
·intersect和minus运算
·一次Oracle数据库冷备份恢复过程
·Linux真机环境Oracle 10gR2 RAC 安装完成经验心得
·教你怎样在Oracle数据库中高速导出/导入
·Oracle 10g表空间创建的完整步骤
·切换Oracle的归档模式以及非归档模式
·各个数据库中TOP10记录的查询方法
·Oracle日期函数知识整理
发表评论
密码: 匿名评论
评论内容:

(不超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规)
 
  最新文档
·关于Oracle将目标数据库设为归档模式应
·Linux下OCI基础:配置Instant Client连
·Oracle中被锁定的解决办法
·Oracle 11G 无法连接到数据库实例故障
·浅谈创建Oracle数据库连接的两种方法
·如何从Oracle技术支持获得更多
·Oracle数据库中安全知识介绍
·Oracle推出Linux服务并不成功
·Oracle专用服务器的内存结构分布原则
·如何在RAC环境下修改Oracle字符集
·Oracle过程中执行动态SQL或DDL语句
·2008年Oracle错误、备份、升级等最热门
  阅读排行
·详解远程SHELL下安装配置RedHat ES 5的
·Ubuntu上安装Oracle 10G及相关配置
·Oracle高级复制(同步复制)配置步骤详细
·如何修改遗失的MySQL的ROOT用户密码
·Redhat Linux AS4 安装Oracle 10g(包括
·Linux下OCI基础:配置Instant Client连
·解决启动数据库时发生的ORA-12528错误
·在 Oracle Enterprise Linux 上升级到
·Oracle 10g表空间创建的完整步骤
·centos 5.0中成功安装Oracle10g (1020
·如何在RAC环境下修改Oracle字符集
·Oracle数据库导入导出方法的个人总结
·巧用Oracle执行计划机制提高查询性能
·Oracle 10g 在AIX 5.3上安装过程笔记
·Linux真机环境Oracle 10gR2 RAC 安装完
网摘收藏: