QUESTION 165
View the Exhibit for some of the current parameter settings. A user logs in to the HR schema and issues the
following commands:
SQL> CREATE TABLE emp
(empno NUMBER(3),
ename VARCHAR2(20),
sal NUMBER(8,2));
SQL> INSERT INTO emp(empno,ename) VALUES(1,'JAMES');
At this moment, a second user also logs in to the HRschema and issues the following command:
SQL> ALTER TABLE emp MODIFY sal NUMBER(10,2);
What happens in the above scenario?
A. The second user's session immediately produces theresource busy error.
B. The second user's command executes successfully.
C. The second user's session waits for a time periodbefore producing the resource busy error.
D. A deadlock is created.
Answer: C
同141题:http://blog.csdn.net/rlhua/article/details/16844811
Explanation/Reference:
Section: Managing Database Performance & Tuning
本文探讨了两个用户同时对同一表进行不同操作时的情形。其中一个用户创建表并插入数据,而另一个用户尝试修改该表的列定义。文章分析了在这种情况下数据库如何处理并发操作,并解释了为什么第二个用户的会话会在一段时间后报告资源忙错误。

7311

被折叠的 条评论
为什么被折叠?



