OCA-11-Managing Data Concurrency and Undo

Descrição

OCA OCA Quiz sobre OCA-11-Managing Data Concurrency and Undo, criado por Jamonero Blanco em 29-01-2017.
Jamonero Blanco
Quiz por Jamonero Blanco, atualizado more than 1 year ago
Jamonero Blanco
Criado por Jamonero Blanco mais de 7 anos atrás
194
2

Resumo de Recurso

Questão 1

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

Questão 2

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

Questão 3

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

Questão 4

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

Questão 5

Questão
5. Select the statement that is not true regarding undo tablespaces.
Responda
  • 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.

Questão 6

Questão
6. To resolve a lock conflict, which of the following methods can you use? Choose all that apply.
Responda
  • 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.

Questão 7

Questão
7. Two transactions occur at the wall clock times in the following table. What happens at 10:05?
Responda
  • 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.

Questão 8

Questão
8. If all extents in an undo segment fill up, which of the following occurs next? Choose all that apply.
Responda
  • 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.

Questão 9

Questão
9. Which of the following commands returns control to the user immediately if a table is already locked by another user?
Responda
  • 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;

Questão 10

Questão
10. Undo information falls into all the following categories except for which one?
Responda
  • 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

Questão 11

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

Questão 12

Questão
12. The EM Database Express Undo Advisor uses what to recommend the new size of the undo tablespace?
Responda
  • 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

Questão 13

Questão
13. Choose the option that is true regarding locks in Oracle Database 12c.
Responda
  • 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.

Questão 14

Questão
14. The following table shows the timestamp and actions by two users. Choose the best option that describes the outcome of the actions.
Responda
  • 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.

Questão 15

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

Questão 16

Questão
16. Identify the operation that does not generate redo.
Responda
  • 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

Questão 17

Questão
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?
Responda
  • 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.

Questão 18

Questão
18. Which two statements regarding undo and transactions are true?
Responda
  • 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.

Questão 19

Questão
19. Which statement ends a transaction?
Responda
  • A. UPDATE
  • B. ALTER TABLE
  • C. ALTER SESSION
  • D. ALTER SYSTEM

Questão 20

Questão
20. Which statement regarding lock is true?
Responda
  • 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.

Semelhante

Ciencia Abierta en la UNC
Mario Pizzi
ROUND & TRUNC [DATES]
Adrian Mora
Analgesicos
Adriana
Matérias para Estudar para o Vestibular
Alice Sousa
Como Transformar sua Anotação em Suporte
Alessandra S.
Principais temas para estudar em Biologia
Marina Faria
Direito Penal - Escrevente TJ-SP
Luiz Gustavo Muzzi Rodrigues
Inquérito Policial
cesar_basso
Tabela Periódica
Fael Berranteiro
Quinhentismo
Isadora Borges
Vitaminas
Júlia Figueiredo