Oracle Practice Test - 31

Oracle Practice Test - 31

22 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

An Oracle System Change Number (SCN) _______.

  1. is a value that is incremented whenever a dirty read occurs
  2. is incremented whenever a deadlock occurs
  3. is a value that keeps track of explicit locks
  4. is a value that is incremented whenever database changes are made
Question 2 Multiple Choice (Single Answer)

Which of the following statements is correct with regard to client-side validation?

  1. It requires a network round trip.
  2. It does not require any middle-tier configuration.
  3. It requires setting an item's Implementation Class property.
  4. It is implemented with the When-Validate-Item and When-Validate-Record triggers.
Question 3 Multiple Choice (Single Answer)

Which of the following statements is true when considering the number of indexes to be created on a table?

  1. Every column that is updated requires an index.
  2. Every column that is queried is a candidate for an index.
  3. Columns that are part of a WHERE clause are candidates for an index.
  4. On a table used in a Data Warehouse application there should be no indexes.
  5. All of the above.
Question 4 Multiple Choice (Single Answer)

Examine the following statement:

SELECT empno_seq.CURRVAL
FROM SYS.dual;

Which of the following values is displayed?

  1. Current value of the EMPNO_SEQ sequence
  2. Current value of the EMPNO_SEQ cursor
  3. Values of the EMPNO_SEQ column
  4. Current value of the EMPNO_SEQ index
Question 5 Multiple Choice (Single Answer)

An application that uses a database keeps cursors open. What should be confirmed before changing the CURSOR_SPACE_FOR_TIME parameter in the database initialization file to TRUE?

  1. The TIMED_STATISTICS parameter is set to TRUE.
  2. The hit percentage in the buffer cache is at least 95%.
  3. The OPEN_CURSOR parameter is set to at least twice the default value.
  4. The value in the RELOADS column of V$LIBRARYCACHE is consistently zero or close to zero.
Question 6 Multiple Choice (Single Answer)

Of the three ways to create an Oracle database, which one is the easiest and most recommended?

  1. Using the Oracle Database Configuration Assistant.
  2. Using the Oracle-supplied database creation procedures.
  3. Using the SQL CREATE DATABASE command.
  4. None of the above is correct.
Question 7 Multiple Choice (Single Answer)

Assuming today is Monday, 10 July 2000, what is returned by the given statement?
SELECT to_char(NEXT_DAY(sysdate, 'MONDAY'), 'DD-MON-RR') FROM dual;

  1. 03-JUL-00
  2. 10-JUL-00
  3. 12-JUL-00
  4. 11-JUL-00
  5. 17-JUL-00
Question 8 Multiple Choice (Single Answer)

Can you stop the transaction if your exception is message type. How? (for explanation sent a mail)

  1. Yes, by the help of pragma exception_init
  2. No,you use raise_application_error
  3. It possible in cusor
  4. None of these
Question 9 Multiple Choice (Single Answer)

How many values can a subquery use with the <> operator return?

  1. Only 1
  2. Up to 2
  3. Up to 10
  4. Unlimited
Question 10 Multiple Choice (Single Answer)

Which of the following statements is true with regard to the shared pool?

  1. The shared pool CANNOT be dynamically resized.
  2. The shared pool contains only fixed structures.
  3. The shared pool consists of the library cache and buffer cache.
  4. The shared pool stores the most recently executed SQL statements and the most recently accessed data definitions.
Question 11 Multiple Choice (Single Answer)

Which of the following privileges is required to create a database?

  1. DBA
  2. SYSDBA
  3. SYSOPER
  4. RESOURCE
Question 12 Multiple Choice (Single Answer)

A data file was moved to another physical location because of a media failure, and the ALTER DATABASE RENAME FILE statement was issued. Which of the following files is automatically updated to reflect this change?

  1. Control
  2. Alert
  3. Registry
  4. Parameter
Question 13 Multiple Choice (Single Answer)

What advantages does the server parameter file (SPFILE) provide when managing initialization parameters?

  1. The Oracle server maintains the server parameter file.
  2. The server parameter file is created automatically when the instance is started.
  3. Changes can be made in memory and/or in the SPFILE with the ALTER SYSTEM command.
  4. The use of SPFILE provides the ability to make changes persistent across shut down and start up.
  5. The Oracle server keeps the server parameter file and the text initialization parameter file synchronized.
Question 14 Multiple Choice (Single Answer)

Which of the following type of segments is used to improve the performance of a query?

  1. Index
  2. Table
  3. Temporary
  4. Boot strap
Question 15 Multiple Choice (Single Answer)

Examine the code given below:

SELECT employee_id FROM employees WHERE commission_pct=.5 OR salary > 23000

Which of the following statements is correct with regard to this code?

  1. It returns employees who have 50% of the salary greater than $23,000.
  2. It returns employees who have 50% commission rate or salary greater than $23,000.
  3. It returns employees who have 50% of salary less than $23,000.
  4. None of the above
Question 16 Multiple Choice (Single Answer)

Which of the following Oracle access methods is the fastest way for Oracle to retrieve a single row?

  1. Primary key access
  2. Access via unique index
  3. Table access by ROWID
  4. Full table scan
Question 17 Multiple Choice (Single Answer)

A primary database named PROD and a standby database named PRODS is maintained using standby log transmission to send the log files to the standby database.

To prevent any propagation of errors, the standby database should wait for 20 minutes before processing any log files shipped from the primary database.

What steps should be taken?

  1. The LOG_ARCHIVE_DEST_n = 'SERVICE=PRODS DELAY 20' parameter should be included in the parameter file on the primary database
  2. The LOG_ARCHIVE_DEST_n = 'SERVICE=PROD DELAY 20' parameter should be included in the parameter file on the standby database
  3. The REOPEN option should be specified on the LOG_ARCHIVE_DEST_n parameter
  4. At least one of the log archive destinations should be set to MANDATORY
Question 18 Multiple Choice (Single Answer)

Suppose in the declaration section of a PL/SQL block, you create but do not initialize a NUMBER variable. What will be the initial value of the variable when the block is executed?

  1. 0
  2. NULL
  3. Depends on the scale and precision of the datatype.
  4. Without initialization, a variable cannot be used in the executable section of the block.
Question 19 Multiple Choice (Single Answer)

Which of the following statements is false for incremental backup?

  1. Incremental backup stores all files that have changed since the last FULL, DIFFERENTIAL OR INCREMENTAL backup.
  2. restore operation is lengthy
  3. Takes time to complete
  4. Both (1) and (2)
Question 20 Multiple Choice (Single Answer)

Which data dictionary table should be queried to view the object privileges granted to the user on specific columns?

  1. USER_TAB_PRIVS_MADE
  2. USER_TAB_PRIVS
  3. USER_COL_PRIVS_MADE
  4. USER_COL_PRIVS
Question 21 Multiple Choice (Single Answer)

A tablespace was created for the recovery catalog. A user and a schema were created for the recovery catalog. Next, the appropriate privileges and roles were granted to the user that was created to enable them to maintain the recovery catalog. At the RMAN prompt, the catalog was created. What should be done next?

  1. Set the target database to a consistent incarnation.
  2. Synchronize the control file of the target database with the recovery catalog
  3. Register the target database in the newly created catalog
  4. Reset the target database to an incarnation that is synchronized with the recovery catalog