码迷,mamicode.com
首页 > 其他好文 > 详细

052(十九)

时间:2016-04-06 10:59:55      阅读:216      评论:0      收藏:0      [点我收藏+]

标签:

91、View the Exhibit and examine the user information

技术分享

The user has been granted CONNECT and RESOURCE roles and no individual system privileges. 
The SL_REP user executes this command to create a table:
SQL> CREATE TABLE orders (
oid number(6),
odate date,
ccode number(4),
oamt number(10,2)
) TABLESPACE purchase_space; 
The PURCHASE_SPACE tablespace already exists in the database. 
Which statement describes the effect of the command? 
A. The command executes successfully and creates the table in the USERS tablespace. 
B. The command executes successfully and creates the table in the PURCHASE_SPACE tablespace. 
C. The command produces an error because the user does not have the privilege to createthe table. 
D. The command produces an error because the user does not have quota in the PURCHASE_SPACE tablespace. 
技术分享
Answer: B
View Code

 

92、

92.A constraint in a table is defined with the INITIALLY IMMEDIATE clause. You executed the ALTER 
TABLE command with the ENABLE VALIDATE option to enable the constraint that was disabled. 
What are the two effects of this command? (Choose two.) 
A. It fails if any existing row violates the constraint. 
B. It does not validate the existing data in the table. 
C. It enables the constraint to be enforced at the end of each transaction. 
D. It prevents insert, update, and delete operations on the table while the constraint is in the process of being enabled. 
技术分享
Answer: AD 
View Code

 

93、

93.The session of user SCOTT receives the following error after executing an UPDATE command on the EMP table:
ERROR at line 1:
ORA-00060: deadlock detected while waiting for resource
On investigation, you find that a session opened by user JIM has a transaction that caused the deadlock. 
Which two statements are true regarding the session of SCOTT in this scenario? (Choose two.) 
A. The session is terminated after receiving the error and JIM can continue with his transaction. 
B. SCOTT should perform a COMMIT or ROLLBACK to allow JIM to continue with his transaction. 
C. The session is rolled back after receiving the error and JIM can continue with his transaction. 
D. SCOTT has to reexecute the last command in the transaction after he commits the transaction
技术分享
Answer: BD
View Code

 

94、

94.Examine the following statement that is used to modify the primary key constraint on the SALES table:
SQL> ALTER TABLE SALES MODIFY CONSTRAINT pk DISABLE VALIDATE;
Which three statements are true regarding the above command? (Choose three.)
A. The constraint remains valid. 
B. The index on the constraint is dropped. 
C. It allows the loading of data into the table using SQL *Loader. 
D. New data conforms to the constraint, but existing data is not checked. 
E. It allows the data manipulation on the table using INSERT/UPDATE/DELETE SQL statements. 
技术分享
94.Examine the following statement that is used to modify the primary key constraint on the SALES table:
SQL> ALTER TABLE SALES MODIFY CONSTRAINT pk DISABLE VALIDATE;
Which three statements are true regarding the above command? (Choose three.)
A. The constraint remains valid. 
B. The index on the constraint is dropped. 
C. It allows the loading of data into the table using SQL *Loader. 
D. New data conforms to the constraint, but existing data is not checked. 
E. It allows the data manipulation on the table using INSERT/UPDATE/DELETE SQL statements. 
View Code

 

95、

95.You execute the following command to change the status of the SALES tablespace:
SQL> ALTER TABLESPACE sales OFFLINE;
Which statements describe the effect of the command? (Choose all that apply.) 
A. The tablespace would require recovery to go back online. 
B. A checkpoint is taken on all data files that are associated with the SALES tablespace. 
C. The sessions that subsequently try to access the objects in the SALES tablespace receive an error. 
D. The new status of the SALES tablespace is recorded in the control file when the database instance is closed. 
技术分享
Answer: BC
View Code

 

052(十九)

标签:

原文地址:http://www.cnblogs.com/huanhuanang/p/5358286.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!