Oracle OCP 1z0-052 最新考过的题库分享-2

1 Which three are true about lock ownership and contention in an Oracle database server?
A) A transaction can hold many row locks on rows in the same table at the same time.

B) A transaction can hold many row locks on rows in different tables at the same time.
C) A transaction can wait on many row locks on rows from the same table at the same time.
D) A transaction can hold many table locks at the same time.
E) Using the DBMS_LOCK package is more efficient than having the Oracle server's default
locking occur.
F) A transaction can wait on many table locks at the same time.
G) A transaction can wait on many row locks on rows from different tables at the same time.

Answer: ABG

 

2 Which three statements are true regarding a PL/SQL package body?
A) Recompiling the package body requires recompilation of the package header.
B) It requires a package specification.
C) The procedures within a package body can invoke other procedures only within the same package body.
D) It can contain procedures defined in the package specification.
E) The functions within a package body can invoke other functions only within the same package body.
F) It can contain procedures not defined in the package specification.

Answer: BDF

 

3 Examine the following statement:
SQL> ALTER TABLE SALES MODIFY CONSTRAINT pk DISABLE VALIDATE;
Which three statements are true?

A)Rows may be inserted into the table.
B) The PK index is made unusable.
C)The PK index is dropped.
D)The constraint is still enforced for updated rows.
E)The constraint is still enforced for inserted rows.

Answer:CDE

 

4.Which four are true about the performance if DML statements on very large tables with
bitmapped indexes?

A) Multiple bitmap indexes on different columns of the same table degrade query performance.
B) Bitmaps can be ANDed memory when filtering on multiple values in the same table column.
C) Queries filtering on numeric keys may improve performance compared to using conventional
B*tree indexes.
D) Update statements perform as well as they do when using conventional B*tree indexes.
E) DML performance is degraded because individual rows cannot be locked in the index.
F)Querying rows whose keys are null can use the index and this may improve performance
compared to using convention
G)Insert statements perform as well as they do when using conventional B*tree indexes.

Answer:BCEF

 

5.Which two are true when updating a table’s index key columns?

A) A leaf row is marked as logically deleted.
B) A leaf row is deleted.
C) A leaf row is always inserted into the same block from where a leaf row was deleted.
D) A leaf row is inserted such as to maintain the collating sequence the index.
E) A leaf row is updated and remains in the same location in the same block.
F) A leaf row is always inserted into a different block from where a leaf row was deleted.

Answer: AD

 

6.User SCOTT gets this errpr immediately:
INSERT INTO EMP_DEP(emp_id,name,salary,dep_name,mgr_id)
*

ERROR at line 1:
ORA-01653 unable to extend table SCOTT.EMP_DEP by 128 in tablespace users; Which two are
true?

A) Resumable space allocation is not enabled for the instance.
B) A BIGFILE tablespace would guarantee that this error does not occur.
C) SCOTT requires a larger quita in tablespace users.
D) Resumable space allocation is not enabled for the session

E) AUTOEXTEND on tablespace users could help avoid this error.

Answer: BE

 

7. Which three are true about reverse key indexes?
A. The index keys are maintained in the collating sequence of the reversed keys.
B. The index keys are maintained in the collating sequence of the un-reversed keys.
C. The bytes of the key are reversed when inserting a row into the table.
D. The byes of the key are reversed when inserting a row into the index.
E. They can be accessed when using an equality operator on a single key value.
F. They can be accessed to perform an index range scan.

Answer:ADE

 

8. User HR executes this statement:
CREATE OR REPLACE PROCEDURE create_ dept
( v_ deptno NUMBER,
v_dname VARCHAR2,
v_ mgr NUMBER, v_
loc NUMBER)
BEGIN
INSERT INTO departments
VALUES (v_ deptno, v_ dname, v_ mgr, v_ loc);
END;
Only 10 of 100 users can execute CREATE_DEPT successfully but they have no INSERT privilege
on HR . DEPARTMENTS.
Which two are definitely true?

A. The CREATE_ DEPT procedure has definer's rights.
B. The 90  users unable to execute the procedure must be granted the DBA role to execute it.
C. The DEPARTMENTS table belongs to HR.
D. The 10 users able to execute the procedure have been granted EXECUTE privilege on CREATE_ DEPT.
E. The CREATE_ DEPT procedure has invoker's rights.
F. The 10 users able to execute the procedure have been granted EXECUTE ANY PROCEDURE privilege.

Answer:A D

 

9.You executed this statement as user SH and have enough quota remaining in the USERS
tablespace.
SQL> CREATE TABLE orders
(oid NUMBER(6) PRIMARY KEY,
Odate DATE,
Ccode NUMBER(6),

Oamt NUMBER(10,2))
TABLESPACE users;
Which three statements are true?

A A NOT NULL constraint is created on the OID column.
B
A CHECK constraint is created on the OID column.
C
The ORDERS table is created as an INDEX ORGANIZED table(IOT).
D) A unique index is created on the OID column in the system tablespace.
E
A unique index is created on the OID column in the user SH’s default tablespace.
F
The orders table is created in the users tablespace.
G
A unique index is created on the OID column in the users tablespace.
H
The orders table is created as a HEAP table.
Answer:E F H

 

10.User A executes this command:
SQL>ALTER TABLE oe.trans
MOVE TABLESPACE TBS2;
While this is executing, user B executes this command:
SQL>DELETE FROM oe.trans
WHERE tr_type=’SL’;
Which statement is true regarding the DELETE command?

A)It fails because rows are locked in EXCLUSIVE mode.
B) It fails because the table is locked in EXCLUSIVE mode.
C) It fails because rows are locked in SHARE mode.
D) It fails because the table is locked in SHARE ROW EXCLUSIVE mode.
E) It deletes the rows.

Answer:B

 

47.This is a description of your ORDERS table containing orders placed each day.
Name Null? Type
-------------------------- -------------------- -------------------------------------------------
ORDID NUMBER(6)
ODATE DATE
CCODE NUMBER(6)
OAMT NUMBER(10,2)
All rows contain data in the ORDID column, which is a unique order identifier.
You must ensure that the ORDID column contains unique values for any inserted or updated
rows.
Which two methods would work?
A) Add a CHECK constraint and a NOT NULL constraint to the ORDID column.
B) Add a PRIMARY KEY constraint to the ORDID column.
C) Add a NOT NULL and a UNIQUE constraint to the ORDID column.

D) Add a NOT NULL constraint to the ORDID column.
E) Add a UNIQUE constraint to the ORDID column

Answer:BC

 

11. Which three types of processing use an exclusive pinned buffer in the Oracle buffer cache?
A. A previously read database block has been updated but not yet committed.
B. A database block read physical operation is in progress into a previously used buffer.
C. A database block logical read operation is in progress from a used buffer.
D. A database block physical read operation is in progress into a previously free and empty buffer.

E. A database block is in the process of being updated.

Answer: ACE

猜你喜欢

转载自blog.csdn.net/byrgzs/article/details/82902571