数据库管理系统采用三级加锁协议来防止并发操作可能导致的数据错误。在三级加锁协议中,一级加锁协议能够解决的问题是______。
A. 丢失修改
B. 不可重复读
C. 读脏数据
D. 死锁
查看答案
事务T对数据对象A加上何种锁,其他事务只能再加对A加S锁,不能加X锁,直到事务T释放A上的S锁为止______
A. 共享锁
B. 排他锁
C. 独占锁
D. 写锁
某系统中事务T1从账户A转出资金到账户B中,在此事务执行过程中,另一事务T2要进行所有账户金额统计操作。在T1和T2事务成功提交后,数据库服务器突然掉电重启。为了保证T2事务统计结果及重启后A,B两账户金额正确,需利用到的事务性质分别是______。
A. 一致性和隔离性
B. 隔离性和持久性
C. 原子性和一致性
D. 原子性和持久性
Topic: Will petty criminals get light punishment Questions for Reference: 1. A new prosecution guideline was recently released: people convicted of petty crimes may get light punishment if they are minors, the elderly people, and people who have slightly breached the law because of poverty. What do you think of this new law 2. This new law is said to be a humane practice and it will help them put their lives back in order and better serve their families. Do you think it can achieve its end 3. Some people think that if petty crimes are not punished in a timely way, more serious consequences will follow. What do you think of this argument
死锁是数据库系统中可能出现的一种状态。下列有关死锁的说法错误的是______。
A. 当事务由于无法获得对需要访问的数据项的控制权而处于等待状态时,称数据库中产生了死锁
B. 死锁是由于系统中各事务间存在冲突操作且冲突操作的并发执行顺序不当而产生的
C. 死锁预防可以使用一次加锁和顺序加锁两种方法,其中一次加锁法可能会降低系统的并发程度
D. 解除死锁通常采用的方法是选择一个或几个造成死锁的事务,撤销这些事务并释放其持有的锁