找回密码
 立即注册

扫一扫,访问微社区

QQ登录

只需一步,快速开始

查看: 3188|回复: 1

[已解决] 问一道sql -T的题

5

主题

10

帖子

10

积分

贫民

积分
10
tongxue 发表于 2017-4-23 15:59:09 | 显示全部楼层 |阅读模式
问一道sql transaction的题,老师给的课件英文的怎么看也不太懂,或者大家有推荐的博客或文章讲这一部分的也行,谢谢了各位
An IT company developed a new database system to record the statics data of the coming Opera House Open Day including the number of reservations X, remaining gifts Y and meals ordered Z. Here is a schedule of three transactions:
S1, R1(X), S2, R2(Y), W1(X), E1, R3(X), A, W2(Y), E2, R3(Y), B, W3(Y), W3(X), E3
Where Si indicates the start point of transaction i, Ei indicates the end point of transaction i, Ri(X) indicates a read operation in transaction i on a variable X, and Wi(X) indicates a write operation in transaction i on a variable Y.
Answer the following questions and justify your answers.
1)  Assume that the system crashes at B, what should be done to recover the system?
2)  Assume a checkpoint is made at point A, what should be done to the three transactions when the crash happens at B?  
3)  Is the transaction schedule conflict serializable?  
4)  Construct a schedule (may not be the same as above) of these three transactions which causes deadlock when using two-phase locking protocol. If no such schedule exists, explain why.  
谢谢各位

回复

使用道具 举报

50

主题

1057

帖子

1108

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1108

活跃会员热心会员最佳导师默默耕耘突出贡献优秀版主荣誉管理论坛元老

blueelwang 发表于 2017-4-25 10:36:11 | 显示全部楼层
回复 支持 反对

使用道具 举报

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

本版积分规则

快速回复 返回顶部 返回列表