OCA-11-Managing Data Concurrency and Undo

Descripción

OCA OCA Test sobre OCA-11-Managing Data Concurrency and Undo, creado por Jamonero Blanco el 29/01/2017.
Jamonero Blanco
Test por Jamonero Blanco, actualizado hace más de 1 año
Jamonero Blanco
Creado por Jamonero Blanco hace casi 8 años
199
2

Resumen del Recurso

Pregunta 1

Pregunta
1. Changes made with an UPDATE statement in a transaction are permanent in the data-base and visible to other users after what occurs?
Respuesta
  • A. DBWR flushes the changes to disk.
  • B. You issue a SAVEPOINT statement.
  • C. You issue a COMMIT statement.
  • D. A checkpoint occurs.

Pregunta 2

Pregunta
2. Which of the following commands returns an error if the transaction starts with SET TRANSACTION READ ONLY ?
Respuesta
  • A. ALTER SYSTEM
  • B. SET ROLE
  • C. ALTER USER
  • D. None of the above

Pregunta 3

Pregunta
3. Guaranteed undo retention can be specified for which of the following objects?
Respuesta
  • A. A tablespace
  • B. A table
  • C. The database
  • D. A transaction
  • E. The instance

Pregunta 4

Pregunta
4. Which of the following lock modes permits concurrent queries on a table but prohibits updates to the locked table?
Respuesta
  • A. ROW SHARE
  • B. ROW EXCLUSIVE
  • C. SHARE ROW EXCLUSIVE
  • D. All of the above

Pregunta 5

Pregunta
5. Select the statement that is not true regarding undo tablespaces.
Respuesta
  • A. Undo tablespaces will not be created if they are not specified in the CREATE DATABASE command.
  • B. Two undo tablespaces can be active if a new undo tablespace was specified and the old one contains pending transactions.
  • C. You can switch from one undo tablespace to another while the database is online.
  • D. UNDO_MANAGEMENT cannot be changed dynamically while the instance is running.

Pregunta 6

Pregunta
6. To resolve a lock conflict, which of the following methods can you use? Choose all that apply.
Respuesta
  • A. Oracle automatically resolves the lock after a short but predefined time period by killing the session that is holding the lock.
  • B. The DBA can kill the session holding the lock.
  • C. The user can either roll back or commit the transaction that is holding the lock.
  • D. Oracle automatically resolves the lock after a short but predefined period by killing the session that is requesting the lock.

Pregunta 7

Pregunta
7. Two transactions occur at the wall clock times in the following table. What happens at 10:05?
Respuesta
  • A. Session 2 will wait for session 1 to commit or roll back.
  • B. Session 1 will wait for session 2 to commit or roll back.
  • C. A deadlock will occur, and both sessions will hang unless one of the users cancels their statement or the DBA kills one of the sessions.
  • D. A deadlock will occur, and Oracle will cancel one of the statements.
  • E. Neither session is updating the same column, so no waiting or deadlock will occur.

Pregunta 8

Pregunta
8. If all extents in an undo segment fill up, which of the following occurs next? Choose all that apply.
Respuesta
  • A. A new extent is allocated in the undo segment if all existing extents still contain active transaction data.
  • B. Other transactions using the segment are moved to another existing segment with enough free space.
  • C. A new undo segment is created, and the transaction that filled up the undo segment is moved in its entirety to another undo segment.
  • D. The first extent in the segment is reused if the undo data in the first extent is not needed.
  • E. The transaction that filled up the undo segment spills over to another undo segment.

Pregunta 9

Pregunta
9. Which of the following commands returns control to the user immediately if a table is already locked by another user?
Respuesta
  • A. LOCK TABLE HR.EMPLOYEES IN EXCLUSIVE MODE WAIT DEFERRED;
  • B. LOCK TABLE HR.EMPLOYEES IN SHARE MODE NOWAIT;
  • C. LOCK TABLE HR.EMPLOYEES IN SHARE MODE WAIT DISABLED;
  • D. LOCK TABLE HR.EMPLOYEES IN EXCLUSIVE MODE NOWAIT DEFERRED;

Pregunta 10

Pregunta
10. Undo information falls into all the following categories except for which one?
Respuesta
  • A. Uncommitted undo information
  • B. Undo information required in case an instance crash requires a roll forward operation when the instance is restarted
  • C. Committed undo information required to satisfy the undo retention interval
  • D. Expired undo information that is no longer needed to support a running transaction

Pregunta 11

Pregunta
11. Undo segments are owned by which user?
Respuesta
  • A. SYSTEM
  • B. The user who initiated the transaction
  • C. SYS
  • D. The user who owns the object changed by the transaction

Pregunta 12

Pregunta
12. The EM Database Express Undo Advisor uses what to recommend the new size of the undo tablespace?
Respuesta
  • A. The value of the parameter UNDO_RETENTION
  • B. The number of Snapshot too old errors
  • C. The current size of the undo tablespace
  • D. The desired amount of time to retain undo data
  • E. The most recent undo generation rate

Pregunta 13

Pregunta
13. Choose the option that is true regarding locks in Oracle Database 12c.
Respuesta
  • A. When session 1 has a table locked using the LOCK TABLE...EXCLUSIVE MODE statement, all DML statements and queries wait until session 1 does a COMMIT or ROLLBACK .
  • B. When SELECT...FOR UPDATE is performed, the table is locked.
  • C. The DDL_LOCK_TIMEOUT parameter can be set to TRUE to not return the ORA-00054 error.
  • D. The LOCK TABLE statement can include the WAIT clause to specify the number of seconds to wait for acquiring the lock.

Pregunta 14

Pregunta
14. The following table shows the timestamp and actions by two users. Choose the best option that describes the outcome of the actions.
Respuesta
  • A. John’s query will return the same results all three times it is executed as they are run in the same session.
  • B. John’s queries run at 10:16 and 10:20 produce the same result, which is different from the one at 10:14.
  • C. John’s query run at 10:16 waits until 10:18 to produce results, waiting for the com- mit to happen.
  • D. John’s queries run at 10:14 and 10:16 produce the same result, which is different from the one at 10:20.

Pregunta 15

Pregunta
15. Which statement is true regarding the locking behavior of Oracle Database 12c?
Respuesta
  • A. Readers block writers.
  • B. Writers block readers.
  • C. Readers block writers.
  • D. Writers do not block readers.

Pregunta 16

Pregunta
16. Identify the operation that does not generate redo.
Respuesta
  • A. An INSERT statement reading from a global temporary table into a persistent table
  • B. An INSERT statement reading from a persistent table into a global temporary table
  • C. Roll back an UPDATE operation
  • D. Writing undo records during a DML operation

Pregunta 17

Pregunta
17. User Maria just called to let you know that the long-running query she runs every week just received a Snapshot Too Old error. What is the best action you can take?
Respuesta
  • A. Tell Maria to rerun the query.
  • B. Increase Undo Retention.
  • C. The materialized view used in the query is stale and needs to be refreshed.
  • D. Increase the undo tablespace size.

Pregunta 18

Pregunta
18. Which two statements regarding undo and transactions are true?
Respuesta
  • A. Multiple active transactions can write concurrently to the same extent in an undo segment.
  • B. Multiple active transactions can write concurrently to the same undo segment.
  • C. Each transaction acquires an extent in the undo segment and does not share the extent.
  • D. Each transaction acquires a segment in the undo tablespace and does not share the segments.

Pregunta 19

Pregunta
19. Which statement ends a transaction?
Respuesta
  • A. UPDATE
  • B. ALTER TABLE
  • C. ALTER SESSION
  • D. ALTER SYSTEM

Pregunta 20

Pregunta
20. Which statement regarding lock is true?
Respuesta
  • A. A developer must lock the row before performing an update to prevent others from changing the same row.
  • B. When a row in a table is locked, the table is locked and no other transactions can update the table.
  • C. When two sessions try to update the same row at the same time, both sessions fail.
  • D. When a session tries to update the row already updated by another session, it waits until the other session does a commit or rollback.
Mostrar resumen completo Ocultar resumen completo

Similar

Ciencia Abierta en la UNC
Mario Pizzi
ROUND & TRUNC [DATES]
Adrian Mora
NÚMEROS ROMANOS
JL Cadenas
Mapa Mental para Resumir y Conectar Ideas
Diego Santos
Indicadores y parámetros básicos en los sistemas de manufactura
itsel_quistian14
31012: LENGUAJE Y COMUNICACIÓN.
Lidia Irene Barzana R
TEOREMA DE PITAGORAS
Alejandra GamboaMLLM
TIC APLICADA A LA EDUCACIÓN INICIAL
rosita_20_13
Declinaciones del Latín
Licha Eliza
Vocabulario inglés variado con expresiones
María Luisa
Insuficiencia Renal Cronica
Angela Madroñero