12
返回列表 发新帖
楼主: Puber

[原创] A Simple Experiment for Oracle Transaction

[复制链接]
论坛徽章:
47
蒙奇·D·路飞
日期:2017-03-27 08:04:23马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11一汽
日期:2013-09-01 20:46:27复活蛋
日期:2013-03-13 07:55:232013年新春福章
日期:2013-02-25 14:51:24ITPUB 11周年纪念徽章
日期:2012-10-09 18:03:322012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:20
11#
发表于 2005-1-17 02:11 | 只看该作者
最初由 Puber 发布
[B]create or replace procedure show_rowid
( pi_rowid_in      in  varchar2)
...
I have not tested in Oracle 10g.
It is not important that where the data  is.
Hope you are able to find them by upper procedure. [/B]


I know the point of your research is finding the transaction mechanism, not where the data exists. I also know how your show_rowid procedure works even if you don't show the code here. I'm just curious about something you alluded to in the passing (i.e. in 9i, the data resides in the middle of the extent instead of after pagetable header block).

Yong Huang

使用道具 举报

回复
论坛徽章:
25
每日论坛发贴之星
日期:2005-05-23 01:01:10马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:09
12#
 楼主| 发表于 2005-1-17 09:42 | 只看该作者
This question confuses me too.
I can not explain it.

BTW: The 'TOOLS' tablespace has ever been used. All segments on it were dropped before the experiment.

select owner,segment_name,segment_type,tablespace_name,extent_id,file_id,block_id,blocks,relative_fno from dba_extents where tablespace_name='TOOLS';
OWNER    SEGMENT_NA SEGMENT_ TABLESPACE EXTENT_ID FILE_ID BLOCK_ID BLOCKS RELATIVE_FNO
-------- ---------- -------- ---------- --------- ------- -------- ------ ------------
SYS      DEMOTAB    TABLE    TOOLS              0       4        9      8            4


select object_name,createD from dba_objects where object_name in ('DEMOTAB','ZNTEST');

OBJECT_NAME                              CREATED
---------------------------------------- -----------------
DEMOTAB                                  20050115 15:11:47

使用道具 举报

回复
论坛徽章:
60
2007年度最佳版主
日期:2008-04-03 16:46:15现任管理团队成员
日期:2011-05-07 01:45:08双黄蛋
日期:2011-06-15 17:03:34ITPUB十周年纪念徽章
日期:2011-11-01 16:19:412012新春纪念徽章
日期:2012-01-04 11:49:542012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:20
13#
发表于 2005-1-17 10:42 | 只看该作者
怎么没看到红颜色的字?

使用道具 举报

回复
论坛徽章:
25
每日论坛发贴之星
日期:2005-05-23 01:01:10马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:09
14#
 楼主| 发表于 2005-1-17 11:09 | 只看该作者
最初由 Fenng 发布
[B]怎么没看到红颜色的字? [/B]


这个.这个...

去偶的blog看吧.

http://blog.itpub.net/puber

或看附件.

a simple experiment for oracle transaction_20050115.pdf

142.75 KB, 下载次数: 47

使用道具 举报

回复
论坛徽章:
47
蒙奇·D·路飞
日期:2017-03-27 08:04:23马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11一汽
日期:2013-09-01 20:46:27复活蛋
日期:2013-03-13 07:55:232013年新春福章
日期:2013-02-25 14:51:24ITPUB 11周年纪念徽章
日期:2012-10-09 18:03:322012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:20
15#
发表于 2005-1-17 12:23 | 只看该作者
最初由 Puber 发布
[B]...
BTW: The 'TOOLS' tablespace has ever been used. All segments on it were dropped before the experiment.

select owner,segment_name,segment_type,tablespace_name,extent_id,file_id,block_id,blocks,relative_fno from dba_extents where tablespace_name='TOOLS';
OWNER    SEGMENT_NA SEGMENT_ TABLESPACE EXTENT_ID FILE_ID BLOCK_ID BLOCKS RELATIVE_FNO
-------- ---------- -------- ---------- --------- ------- -------- ------ ------------
SYS      DEMOTAB    TABLE    TOOLS              0       4        9      8            4
...
[/B]


Are you saying TOOLS was never used or it *was* used at some point of time? But I don't think it matters.

Thanks for telling us the number of blocks in the extent. Since the starting block is 9 and blocks is 8 and your data is in block 15, it looks like the data is in kind of in the middle of the second half of the extent. Mine is too (BTW, earlier I said my data was in the first block of the second half. I was wrong. I just edited and changed my message saying it's near the middle of the second half). I don't know how to explain.

Yong Huang

使用道具 举报

回复
论坛徽章:
25
每日论坛发贴之星
日期:2005-05-23 01:01:10马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:09
16#
 楼主| 发表于 2005-1-17 18:09 | 只看该作者
"The 'TOOLS' tablespace has ever been used.All segments on it were dropped before the experiment."

这句话的意思偶应该没译错吧!

TOOLS表空间曾经被使用过,但在开始实验之前其中所有的segment都被drop了.


偶的E文菜的说,见谅了!

但还是坚持用的说!

使用道具 举报

回复
论坛徽章:
25
每日论坛发贴之星
日期:2005-05-23 01:01:10马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:092012新春纪念徽章
日期:2012-02-13 15:08:09
17#
 楼主| 发表于 2005-1-17 18:13 | 只看该作者
做这个实验另一个主要原因是,看了这个贴了http://www.itpub.net/showthread.php?threadid=131231&pagenumber=
,对里面提到的很多名专用名词不熟.
于是dump出来对应一下.

而现在那个贴子的内容还是没有全想通.

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表