Courseiva

Oracle Database 23ai Administrator Professional (OCP, 1Z0-183) (OCP) (OCP) — Questions 76–150

261 questions total · 4 pages · All types, answers revealed

Page 1

Page 2 of 4

Page 3
76
MCQmedium

Which component is required to implement Transparent Data Encryption (TDE) in 23ai?

A.Oracle Audit Vault
B.Oracle Wallet
C.Oracle Key Vault
D.Oracle Data Guard
AnswerB

Oracle Wallet stores and manages the TDE master encryption key, which is mandatory for column and tablespace encryption in 23ai. Without this keystore, the database cannot encrypt or decrypt data, so it directly satisfies the stem's requirement for implementing Transparent Data Encryption.

Why this answer

A keystore (wallet) is required to hold the master encryption key for TDE.

77
MCQhard

Which view should you query to verify the encryption status of tablespaces in 23ai?

A.V$ENCRYPTED_TABLESPACES
B.DBA_ENCRYPTED_COLUMNS
C.DBA_ENCRYPTION_KEYS
D.DBA_TABLESPACES
E.V$WALLET
AnswerA

V$ENCRYPTED_TABLESPACES lists every tablespace with its encryption status, so querying it directly satisfies the requirement to verify which tablespaces are encrypted in 23ai. It reports the ENCRYPTED column plus the encryption algorithm, giving authoritative confirmation without inspecting datafiles or wallet configuration.

Why this answer

V$ENCRYPTED_TABLESPACES shows the encryption status of all tablespaces in the database.

78
MCQmedium

In a multitenant environment, what is the best approach to backup only a specific PDB?

A.BACKUP CDB PDB pdb_name
B.BACKUP DATABASE PDBNAME
C.BACKUP PLUGGABLE DATABASE pdb_name
D.BACKUP PDB ALL
AnswerC

BACKUP PLUGGABLE DATABASE restricts the backup scope to the named PDB alone, so only that pluggable database's datafiles and control file metadata are copied. This satisfies the multitenant constraint of isolating one PDB without touching the CDB root or other PDBs.

Why this answer

The correct RMAN syntax to back up a single pluggable database from the root container is BACKUP PLUGGABLE DATABASE pdb_name. This command must be executed while connected to the root (CDB$ROOT) and targets only the specified PDB's datafiles, control file, and archived logs as applicable. It is the documented, supported way to isolate a PDB backup in a multitenant architecture.

Exam trap

The trap is that candidates confuse the CDB/PDB connection context and invent plausible-sounding syntax like 'BACKUP CDB PDB' or 'BACKUP DATABASE PDBNAME'; the exam tests whether you know the exact RMAN keyword PLUGGABLE DATABASE.

How to eliminate wrong answers

Option A is wrong because 'BACKUP CDB PDB pdb_name' is not valid RMAN syntax — RMAN does not accept a CDB keyword in the BACKUP command. Option B is wrong because 'BACKUP DATABASE PDBNAME' would be interpreted as backing up the entire CDB database, not a specific PDB, and the identifier PDBNAME is not a recognized RMAN keyword. Option D is wrong because 'BACKUP PDB ALL' is not valid syntax; the correct form for all PDBs is BACKUP PLUGGABLE DATABASE ALL.

79
Multi-Selectmedium

You are implementing Transparent Data Encryption (TDE) in Oracle Database 23ai. You have already configured the keystore and created the master encryption key. Now you need to encrypt several existing tablespaces and columns. Which two actions must you perform to ensure that the data is encrypted and accessible? (Choose two.)

Select 2 answers
A.Use the ALTER DATABASE OPEN command with the ENCRYPTION option to enable encryption for the entire database.
B.Use the ALTER TABLE ... MODIFY (column ENCRYPT) command to encrypt existing columns.
C.Use the ALTER SYSTEM SET ENCRYPTION KEY command to generate a new master key.
D.Use the ALTER TABLESPACE ... ENCRYPTION ONLINE ENCRYPT command to encrypt existing tablespaces.
E.Use the DBMS_TDE package to encrypt all schemas in the database.
AnswersB, D

The ALTER TABLE ... MODIFY (column ENCRYPT) command encrypts an existing column that was not previously encrypted. It is used for column-level encryption when you want to encrypt specific columns containing sensitive data. This command causes the column data to be encrypted using the TDE master key. It is a required step if you have existing columns that need encryption, as TDE does not automatically encrypt existing data without explicit commands.

Why this answer

To encrypt existing data with TDE, you must explicitly encrypt tablespaces and columns. The ALTER TABLESPACE ... ENCRYPTION ONLINE ENCRYPT command encrypts existing tablespaces, while ALTER TABLE ...

MODIFY (column ENCRYPT) encrypts existing columns. These actions ensure that the data is encrypted using the TDE master key. Other commands like setting the encryption key or opening the database do not perform the encryption of existing objects; they are part of key management or database startup.

Exam trap

The trap here is confusing key management commands, such as setting the encryption key, with the actual encryption of existing data, which requires explicit ALTER TABLESPACE or ALTER TABLE commands.

80
MCQmedium

How does 23ai handle vector distance calculations at scale?

A.By offloading to external servers
B.Using optimized native SQL execution
C.By caching every result
D.Using a temporary tablespace
AnswerB

Vector distance calculations execute through native SQL operators, letting the optimiser push computations into the database engine rather than fetching vectors to clients. This satisfies the scale constraint by avoiding per-row round trips, enabling parallel execution and index-assisted approximate search across large vector sets.

Why this answer

Oracle Database 23ai implements vector distance calculations natively inside the database engine, so operations such as VECTOR_DISTANCE are executed as optimized native SQL rather than being shipped to external services. This allows the optimizer to use vector indexes (such as HNSW or IVF) and parallel execution to compute distances at scale while keeping data local and transactionally consistent. The result is that similarity search can be combined with relational filters in a single SQL statement.

Exam trap

The trap is assuming vector search requires an external vector database or special caching layer, when 23ai's design goal is to run vector distance calculations as native SQL inside the database engine.

How to eliminate wrong answers

Option A is wrong because 23ai performs vector distance computation in-database; offloading to external servers would add latency, network overhead, and consistency problems, and is not how the feature is designed. Option C is wrong because caching every result is neither feasible nor how vector search scales; results depend on the query vector, and caching all pairwise distances would be impractical. Option D is wrong because a temporary tablespace is used for sorting and temporary work areas, not for vector distance computation, which is handled by the vector engine and indexes.

81
MCQmedium

You are investigating an RMAN backup failure. The log indicates that RMAN is unable to access the recovery area. Which view should you query to check the current space usage of the Fast Recovery Area?

A.V$FLASHBACK_DATABASE_LOG
B.V$DATABASE_BLOCK_CORRUPTION
C.V$RMAN_STATUS
D.V$RECOVERY_FILE_DEST
AnswerD

V$RECOVERY_FILE_DEST reports the Fast Recovery Area's configured location, disk quota limit, space used, and space reclaimable, directly satisfying the need to check current space usage. Querying it reveals whether the recovery area has filled to its quota, which commonly causes RMAN's inability to access it.

Why this answer

V$RECOVERY_FILE_DEST provides the directory, space limit, and space used for the FRA.

82
MCQeasy

You are an Oracle Database 23ai administrator. A user reports that a specific SQL query is running slowly. You want to see the execution plan that the optimizer actually used for the most recent execution of that query. Which dynamic performance view should you query?

A.V$SESSION_LONGOPS
B.V$SQL_PLAN
C.V$SQLAREA
D.DBA_HIST_SQL_PLAN
AnswerB

V$SQL_PLAN displays the execution plans for cursors currently in the library cache. It shows the plan that was actually used for each child cursor, including operations, costs, and cardinalities. By joining to V$SQL on SQL_ID and CHILD_NUMBER, you can retrieve the exact plan for the most recent execution, making it the correct choice.

Why this answer

To see the actual execution plan used for a recently executed SQL statement, you query V$SQL_PLAN. It stores the plan for each child cursor in the library cache, including the operations and their order. By joining with V$SQL, you can identify the specific SQL_ID and CHILD_NUMBER, and then retrieve the plan steps.

Exam trap

The trap here is choosing a historical plan view like DBA_HIST_SQL_PLAN or an aggregate view like V$SQLAREA, which do not show the current actual plan for a specific execution.

83
MCQeasy

You are managing a high-concurrency OLTP system on Oracle Database 23ai. Multiple sessions frequently update a single row in an inventory table, causing contention and lock waits. You want to eliminate this contention without changing the application logic. Which 23ai feature should you implement?

A.Lock-Free Reservations
B.True Cache
C.Automatic Indexing
D.In-Memory Column Store
AnswerA

Lock-Free Reservations allow multiple sessions to update a numeric column concurrently without row-level locking, by using a reservation mechanism that tracks changes in a separate structure. This eliminates contention on the row and improves throughput. It is designed for high-concurrency updates to a single row, exactly the scenario described.

Why this answer

Lock-Free Reservations is a 23ai feature that allows concurrent updates to a numeric column without locking the row, using a reservation journal. This directly addresses the contention caused by multiple sessions updating the same row. Other features like True Cache, In-Memory Column Store, and Automatic Indexing do not reduce write contention and are not designed for this purpose.

Exam trap

The trap here is confusing read-optimization features like True Cache with write-contention solutions; only Lock-Free Reservations targets concurrent updates.

84
Multi-Selectmedium

You are the DBA for a CDB named CORPCDB that has several PDBs. You need to shut down the entire CDB instance cleanly, including all PDBs, as part of a planned maintenance window. Which two statements about the shutdown process are correct? (Choose two.)

Select 2 answers
A.You must connect to each PDB individually and issue SHUTDOWN ABORT before shutting down the CDB root.
B.A PDB can be shut down individually with ALTER PLUGGABLE DATABASE pdb_name CLOSE IMMEDIATE while the CDB instance remains running.
C.SHUTDOWN TRANSACTIONAL from the root container waits for all PDB transactions to complete but leaves PDBs open for new connections until the end.
D.Issuing SHUTDOWN IMMEDIATE from the root container closes all open PDBs and then shuts down the CDB instance.
E.After SHUTDOWN IMMEDIATE from the root, any PDB that was in MOUNTED state remains mounted and does not need to be closed separately.
AnswersB, D

ALTER PLUGGABLE DATABASE ... CLOSE IMMEDIATE closes a single PDB without affecting the CDB instance or other PDBs. It rolls back that PDB's active transactions and disconnects its users. This is the correct way to isolate maintenance to one container while keeping the rest of the CDB available.

Why this answer

Shutting down the CDB from the root with SHUTDOWN IMMEDIATE closes every PDB and stops the instance, so no per-PDB action is needed. When only one container must be taken offline, ALTER PLUGGABLE DATABASE ... CLOSE IMMEDIATE closes that PDB while the CDB and other PDBs continue running.

The remaining statements misdescribe transactional shutdown, abort requirements, or the fate of mounted PDBs.

Exam trap

The trap here is believing that PDBs must be shut down one by one before the CDB, when a root shutdown already closes all containers.

85
MCQhard

When configuring parallel DML, what is the effect of setting 'FORCE' on a statement?

A.It disables parallel DML
B.It runs sequentially
C.It causes an error
D.It forces parallel execution
AnswerD

FORCE overrides session or object-level restrictions that would otherwise downgrade a DML statement to serial execution, compelling the parallel coordinator to engage. It satisfies the stem's constraint by guaranteeing parallel DML runs regardless of conflicting settings.

Why this answer

The FORCE keyword in a parallel DML statement (e.g., ALTER SESSION FORCE PARALLEL DML) overrides session- or object-level restrictions and forces the statement to execute in parallel even if the optimizer would otherwise choose serial execution. It is an explicit directive to the SQL engine to use parallel DML.

Exam trap

OCP often tests the confusion between ENABLE PARALLEL DML (which respects object-level restrictions) and FORCE PARALLEL DML (which overrides them) — candidates pick 'disables' or 'errors' when they see FORCE.

How to eliminate wrong answers

Option A is wrong because FORCE does the opposite of disabling parallel DML — it enables/forces it. Option B is wrong because running sequentially is the default behavior when parallel DML is not enabled; FORCE overrides that. Option C is wrong because FORCE is a valid keyword and does not raise an error; it is a supported hint/directive.

86
MCQmedium

Your Oracle 23ai database writes archived redo logs to a fast recovery area that is nearly full. You need to free space immediately without compromising recoverability, and you have already taken a full backup that includes the archived logs. Which action is most appropriate?

A.Configure RMAN retention and run DELETE ARCHIVELOG ALL BACKED UP 1 TIMES TO DEVICE TYPE DISK;
B.Manually delete the oldest archived redo log files from the operating system.
C.Increase the size of the fast recovery area by adding disk space.
D.Disable ARCHIVELOG mode to stop generating archived redo logs.
AnswerA

This command deletes archived redo logs that have already been backed up at least once to disk, which is safe because the backups preserve recoverability. It frees space in the fast recovery area immediately while honoring the principle that only backed-up logs are removed. The retention policy ensures logs still needed for recovery are retained, preventing premature deletion that would break restore capability.

Why this answer

Deleting only archived logs that have already been backed up frees fast recovery area space while preserving the ability to recover, because the backups retain the necessary redo. This is the standard RMAN-managed cleanup approach. Manual deletion and disabling archiving both undermine recoverability, and adding storage does not address the immediate accumulation.

Exam trap

The trap here is manually removing archived logs from the OS, which desynchronizes RMAN metadata and may delete logs still needed for recovery.

87
MCQhard

You have a high volume of parse time in your database. What could be the cause?

A.High memory usage
B.Using literals instead of bind variables
C.Too many indexes
D.Missing statistics
AnswerB

Literals force Oracle to hard-parse every distinct statement, so each execution incurs full parse and optimisation cost, inflating parse time. Bind variables let one parsed cursor be reused across executions, eliminating repeated hard parsing. This directly addresses the high parse time described in the stem.

Why this answer

Hard parsing occurs when SQL is not shared, often due to literals instead of bind variables.

88
MCQmedium

You are the DBA for an Oracle 23ai database running in ARCHIVELOG mode with a fast recovery area configured. A user reports that a query against the SALES table returns ORA-01578: ORACLE data block corrupted (file # 7, block # 1482). You want RMAN to repair only the affected block using a backup while the database remains open. Which command should you execute?

A.RESTORE DATAFILE 7 BLOCK 1482;
B.RECOVER DATAFILE 7;
C.VALIDATE DATAFILE 7;
D.RECOVER DATAFILE 7 BLOCK 1482;
AnswerD

Block-level media recovery uses the RECOVER ... BLOCK syntax and can be executed while the database is open, restoring and recovering only the specified block from an RMAN backup. It requires the data file to be online and the database in ARCHIVELOG mode, exactly matching this scenario where only one block in file 7 is corrupt.

Why this answer

Block media recovery with RECOVER DATAFILE ... BLOCK ... is designed precisely for isolated corruption reported by ORA-01578 while the database stays open. It restores and recovers only the damaged block from RMAN backups, keeping the rest of the data file online.

Validation and whole-file restore/recover are either non-repairing or unnecessarily disruptive for a single corrupt block.

Exam trap

The trap here is assuming any RESTORE command can target a single block, when only RECOVER supports block-level repair.

89
MCQhard

You are upgrading an Oracle Database 19c non-CDB to Oracle Database 23ai. The database uses a custom application that relies on the DBMS_LOB package and has a large amount of PL/SQL code. You have chosen the AutoUpgrade utility to perform the upgrade. During the upgrade, you encounter an error related to the DBMS_LOB package. Which action should you take to resolve the issue?

A.Recompile all invalid PL/SQL objects manually using utlrp.sql after the upgrade.
B.Restart the upgrade from the beginning after restoring the database from a backup.
C.Manually grant EXECUTE privilege on DBMS_LOB to the application schema and retry the upgrade.
D.Check the AutoUpgrade log files for detailed error messages and apply the recommended fix, such as running the preupgrade script or applying a patch.
AnswerD

The AutoUpgrade utility generates detailed log files that include specific error messages and recommendations. For a DBMS_LOB related error, the logs may indicate a missing prerequisite patch or a need to run the preupgrade fixup script. Following the recommended actions, such as applying a patch or re-running the preupgrade tool, is the correct approach to resolve the issue before proceeding with the upgrade.

Why this answer

The AutoUpgrade utility provides comprehensive logging that pinpoints the cause of failures. When an error related to a built-in package like DBMS_LOB occurs, it often indicates a missing patch or an environment issue that the preupgrade script can identify. The correct action is to review the logs and follow the tool's recommendations, which may include applying a patch or running the fixup script.

This ensures the upgrade proceeds smoothly without unnecessary rollbacks.

Exam trap

The trap here is assuming that recompiling invalid objects or granting privileges will fix a package-related upgrade error, when the real issue is often a missing prerequisite patch or configuration that the AutoUpgrade logs will reveal.

90
MCQmedium

Your Oracle 23ai production database runs in ARCHIVELOG mode with a fast recovery area configured. A media failure destroys the disk holding data file 7 of the SALES tablespace, but the control file and all archived redo logs remain intact. You still have the original data file header information available. Which RMAN command restores data file 7 and then applies only the redo needed to make it consistent, without restoring the entire database?

A.RESTORE DATABASE; then RECOVER DATABASE;
B.RECOVER DATAFILE 7; only, without a preceding RESTORE
C.SWITCH DATAFILE 7 TO COPY; then RECOVER DATAFILE 7;
D.RESTORE DATAFILE 7; then RECOVER DATAFILE 7;
AnswerD

RESTORE DATAFILE 7 pulls the most recent usable backup of that file from the fast recovery area or backup set, and RECOVER DATAFILE 7 applies archived and online redo to roll it forward to a consistent SCN. Because the control file is intact, RMAN knows the exact checkpoint and can perform the targeted recovery without touching other data files, minimizing downtime for the SALES tablespace.

Why this answer

Restoring a single data file requires first bringing back the physical file from a backup, then applying redo to synchronize it with the rest of the database. Because the control file survived, RMAN retains the metadata needed to identify the correct backup and the recovery SCN. This granular approach avoids a full database restore and shortens the outage.

Exam trap

The trap here is assuming that RECOVER alone can rebuild a physically destroyed data file; recovery only applies redo to an existing file.

91
MCQmedium

You have a vector index and notice search performance is slow. Which index type should you use to optimize similarity search?

A.Inverted Index
B.B-tree
C.Bitmap
D.HNSW
AnswerD

HNSW builds a hierarchical navigable small-world graph, enabling logarithmic-time approximate nearest-neighbour traversal instead of exhaustive comparison. This directly addresses the slow similarity search by pruning the candidate set during query, satisfying the performance constraint. Unlike flat or IVF indexes, it delivers low-latency recall without scanning every vector.

Why this answer

HNSW (Hierarchical Navigable Small World) is a graph-based index specifically designed for approximate nearest neighbor search in high-dimensional vector spaces. It provides fast and accurate similarity search by building a multi-layer graph structure. Other index types like inverted, B-tree, or bitmap are not optimized for vector similarity.

Exam trap

OCP often tests index types for specific use cases; candidates might confuse inverted index with vector index because both handle 'search', but inverted is for text, not vectors.

How to eliminate wrong answers

Option A is wrong because an inverted index is used for full-text search, mapping terms to documents, not for vector similarity. Option B is wrong because a B-tree is for exact match and range queries on scalar data, not for high-dimensional vectors. Option C is wrong because a bitmap index is for low-cardinality columns and performs poorly for high-dimensional vector search.

92
MCQeasy

What is the purpose of the 'ASH' report?

A.To backup the database
B.To analyze short-term performance
C.To analyze long-term trends
D.To manage user accounts
AnswerB

ASH samples active session activity every second into a circular buffer, so it exposes transient spikes and brief contention that AWR's ten-minute snapshots smooth over. This short-term sampling interval is precisely what makes it suited to analysing short-term performance.

Why this answer

ASH reports analyze transient problems by looking at recent active session history.

93
MCQmedium

You are the lead DBA for a CDB called PRODCDB that contains 30 PDBs. A developer reports that the application connecting to the PDB named SALESPDB receives ORA-01033 (Oracle initialization or shutdown in progress) when the database is otherwise available. You connect to the CDB root and query V$PDBS and see that SALESPDB shows OPEN_MODE of MOUNTED while all other PDBs show READ WRITE. Which command should you execute to make SALESPDB available to the application with the least administrative effort?

A.ALTER PLUGGABLE DATABASE SALESPDB OPEN READ ONLY;
B.SHUTDOWN IMMEDIATE; STARTUP;
C.ALTER PLUGGABLE DATABASE SALESPDB OPEN;
D.ALTER SYSTEM STARTUP PLUGGABLE DATABASE SALESPDB;
AnswerC

This command transitions SALESPDB from MOUNTED to READ WRITE in one step and is issued from the CDB root. Because the PDB datafiles are already open at the CDB instance level when the PDB is MOUNTED, opening it requires no additional instance startup and is the standard, lowest-effort recovery action for this exact symptom.

Why this answer

A PDB left in MOUNTED state has its datafiles associated with the instance but its dictionary and services are not available to user sessions, producing ORA-01033. Opening the PDB from the CDB root with ALTER PLUGGABLE DATABASE ... OPEN transitions it to READ WRITE and restores service without affecting other PDBs.

The read-only variant would not satisfy a transactional application, no ALTER SYSTEM STARTUP syntax exists, and a full instance restart is unnecessary and disruptive.

Exam trap

The trap here is assuming that opening a PDB requires a full instance restart or a special ALTER SYSTEM clause, when in fact a simple ALTER PLUGGABLE DATABASE ... OPEN from the root is sufficient.

94
MCQhard

You need to ensure that the PDB name is unique in your network. Which parameter should you check?

A.INSTANCE_NAME
B.DB_UNIQUE_NAME
C.DB_NAME
D.PDB_NAME
AnswerB

Must be unique for each database in a Data Guard configuration.

Why this answer

DB_UNIQUE_NAME must be unique across the CDB infrastructure.

95
MCQmedium

You need to perform an incomplete recovery of your Oracle 23ai database to a specific SCN. The database is in ARCHIVELOG mode. Which RMAN command sequence correctly performs this recovery?

A.STARTUP NOMOUNT; RESTORE DATABASE; RECOVER DATABASE UNTIL SCN 123456; ALTER DATABASE OPEN RESETLOGS;
B.STARTUP MOUNT; RECOVER DATABASE UNTIL SCN 123456; ALTER DATABASE OPEN;
C.STARTUP MOUNT; RESTORE DATABASE; RECOVER DATABASE UNTIL SCN 123456; ALTER DATABASE OPEN;
D.STARTUP MOUNT; RESTORE DATABASE; RECOVER DATABASE UNTIL SCN 123456; ALTER DATABASE OPEN RESETLOGS;
AnswerD

This sequence mounts the database, restores all data files from backup, recovers the database up to the specified SCN, and then opens with RESETLOGS. Incomplete recovery requires the database to be mounted, and after recovery, RESETLOGS is mandatory to reset the online redo logs and create a new incarnation.

Why this answer

Incomplete recovery to a specific SCN requires the database to be mounted, data files restored from backup, recovery up to the target SCN, and then opened with RESETLOGS. The RESETLOGS operation is mandatory after any incomplete recovery to reset the online redo logs and create a new database incarnation. Omitting RESTORE or using NOMOUNT would fail, and opening without RESETLOGS is not permitted.

Exam trap

The trap here is forgetting that RESETLOGS is mandatory after incomplete recovery, or thinking that RECOVER alone can restore files.

96
MCQhard

When using the VECTOR data type, what is the maximum number of dimensions supported?

A.512
B.2048
C.1024
D.4096
AnswerB

Oracle 23ai caps VECTOR columns at 2048 dimensions, matching the maximum array length the vector data type stores. Exceeding this limit is rejected at DDL time, so 2048 is the correct ceiling for dense and sparse vectors alike.

Why this answer

Oracle 23ai supports up to 2048 dimensions for the vector data type.

97
MCQeasy

What is the default behavior when shutting down a CDB instance?

A.Closes all PDBs, then the CDB
B.Leaves PDBs open
C.Only closes the CDB root
D.Forces immediate abort
AnswerA

A multitenant container database shutdown cascades to its pluggable databases: the CDB closes every PDB first, then shuts itself down. This ordered teardown satisfies the default behaviour, whereas PDBs cannot remain open once the root container and instance terminate.

Why this answer

The SHUTDOWN command closes all PDBs before the CDB.

98
MCQeasy

What happens if a block is marked as corrupt during an RMAN backup?

A.The backup terminates immediately.
B.The backup is marked as 'failed' in the recovery catalog.
C.The information is recorded in the V$DATABASE_BLOCK_CORRUPTION view.
D.The corrupt blocks are repaired automatically.
AnswerC

Marking a block corrupt during an RMAN backup records it in V$DATABASE_BLOCK_CORRUPTION, satisfying the need to track physical corruption for later recovery. RMAN populates this view automatically, so subsequent BACKUP VALIDATE or RECOVER CORRUPTION operations can target the affected blocks without rescanning the entire datafile.

Why this answer

RMAN writes the corruption information to V$DATABASE_BLOCK_CORRUPTION but continues the backup unless the number of errors exceeds MAXCORRUPT.

99
Multi-Selectmedium

Which TWO features of 23ai help improve performance of high-concurrency workloads?

Select 2 answers
A.Wide tables
B.Lock-Free Reservations
C.Blockchain tables
D.JSON Duality
E.Memoptimized Write
AnswersB, E

Lock-Free Reservations let concurrent transactions decrement or increment numeric columns, such as inventory or account balances, without row-level locks. This removes serialisation and lock contention between sessions, directly improving throughput for high-concurrency workloads where many transactions target the same rows.

Why this answer

Lock-Free Reservations (B) is correct because it lets concurrent transactions reserve a column value (e.g., inventory quantity) without holding a row lock, eliminating lock contention and enabling high-concurrency OLTP throughput. Memoptimized Write (E) is correct because it uses the Memoptimized Rowstore fast ingest path to buffer inserts in memory and write them to disk asynchronously, dramatically improving insert performance under many concurrent sessions. Wide tables (A) merely allow up to 1,000 columns and do not by themselves improve concurrency.

Blockchain tables (C) add tamper-evident row chaining for auditing, which adds overhead rather than boosting concurrency. JSON Duality (D) provides dual relational/JSON access to the same data for developer flexibility, not a high-concurrency performance feature.

Exam trap

OCP often tests the misconception that any new feature improves performance, but candidates must distinguish between features for specific use cases (e.g., blockchain for auditing) and those for high-concurrency (e.g., Lock-Free Reservations).

100
MCQhard

Your CDB named FINCDB has several PDBs. A developer reports that they cannot create a local user in the PDB named REPORTSPDB because the PDB is in RESTRICTED mode. You connect to the root as SYSDBA and want to allow normal user connections to REPORTSPDB while keeping other PDBs unchanged. Which command should you execute?

A.ALTER PLUGGABLE DATABASE REPORTSPDB CLOSE IMMEDIATE; ALTER PLUGGABLE DATABASE REPORTSPDB OPEN;
B.ALTER PLUGGABLE DATABASE REPORTSPDB OPEN READ WRITE RESTRICTED;
C.ALTER SYSTEM ENABLE RESTRICTED SESSION;
D.ALTER PLUGGABLE DATABASE REPORTSPDB OPEN READ WRITE;
AnswerD

Reissuing the OPEN command without the RESTRICTED clause transitions REPORTSPDB to READ WRITE mode with normal connection semantics, allowing the developer to connect and create a local user. Because the statement names only REPORTSPDB, other PDBs in FINCDB retain their current open modes, satisfying the requirement to limit the change to one PDB.

Why this answer

RESTRICTED mode on a PDB permits only users holding the RESTRICTED SESSION privilege to connect. To restore normal access, the PDB must be reopened in READ WRITE mode without the RESTRICTED clause. Executing ALTER PLUGGABLE DATABASE REPORTSPDB OPEN READ WRITE from the root applies the change only to REPORTSPDB, so the developer can connect and create a local user while other PDBs in the CDB remain unaffected.

Exam trap

The trap here is confusing PDB-level RESTRICTED mode with the instance-level restricted session feature, leading to ALTER SYSTEM ENABLE RESTRICTED SESSION, which restricts the whole CDB instead of un-restricting one PDB.

101
MCQeasy

Which command is used to display the current container you are connected to?

A.SHOW CDB_NAME
B.SHOW CURRENT_PDB
C.SELECT CONTAINER FROM DUAL
D.SHOW CON_NAME
AnswerD

SHOW CON_NAME returns the name of the container to which the current session is connected, directly answering the requirement to display the active container. It works in both CDB root and PDB contexts without needing to query data dictionary views.

Why this answer

SHOW CON_NAME shows the current container name in SQL*Plus.

102
MCQmedium

What is the primary purpose of 'Data Masking' in the Oracle Data Masking and Subsetting Pack?

A.To improve performance
B.To protect sensitive data in non-production databases
C.To encrypt data in transit
D.To audit privileged users
AnswerB

Data Masking replaces sensitive values with realistic but fictitious data, preserving referential integrity and application behaviour while removing genuine personal or confidential information. This directly satisfies the non-production constraint: development, test and training environments need realistic datasets without exposing live production data, so masking enables safe sharing outside production.

Why this answer

Oracle Data Masking and Subsetting Pack is designed to replace sensitive production data with realistic but fictitious values before it is used in non-production environments such as development, test, and QA. This protects sensitive data (PII, PCI, PHI) from exposure while preserving data format and referential integrity for application testing. It is not a performance, encryption-in-transit, or auditing tool.

Exam trap

The trap is assuming Data Masking encrypts or audits data; candidates confuse it with Transparent Data Encryption (TDE) or Audit Vault, but its sole purpose is protecting sensitive data in non-production clones.

How to eliminate wrong answers

Option A is wrong because Data Masking does not improve query or database performance; its purpose is data protection, not optimization. Option C is wrong because encrypting data in transit is handled by network encryption (TLS/SSL, Oracle Net encryption), not by the Data Masking Pack. Option D is wrong because auditing privileged users is the domain of Oracle Audit Vault and Database Firewall or unified auditing, not data masking.

103
MCQhard

You have a query that is being incorrectly optimized because the statistics are not representative of the actual data distribution. What is the best method to handle this without changing the global statistics?

A.Run the SQL Tuning Advisor
B.Modify the init.ora parameter
C.Use DBMS_STATS.SET_TABLE_PREFS
D.Create a SQL Plan Baseline
AnswerC

Preferences allow granular control over how stats are gathered for a specific object.

Why this answer

Table-specific statistics collection with specific parameters or using preference settings can help.

104
MCQhard

Which feature allows you to capture SQL statements from the cursor cache and load them into a SQL Tuning Set?

A.DBMS_SPM.LOAD_PLANS_FROM_CURSOR_CACHE
B.DBMS_STATS.GATHER_SYSTEM_STATS
C.DBMS_WORKLOAD_REPOSITORY.EXTRACT_SQL
D.DBMS_SQLTUNE.CAPTURE_CURSOR_CACHE_SQLSET
AnswerD

DBMS_SQLTUNE.CAPTURE_CURSOR_CACHE_SQLSET polls the shared pool's cursor cache over a specified interval, extracting SQL statements and their execution statistics directly into a SQL Tuning Set. This satisfies the stem's requirement to capture statements from the cursor cache, unlike alternatives that load sets from AWR snapshots or manual SQL text.

Why this answer

DBMS_SQLTUNE.CAPTURE_CURSOR_CACHE_SQLSET is the procedure used to pull queries from memory.

105
MCQeasy

You are analyzing an AWR report for an Oracle Database 23ai instance. You notice that the 'DB Time' is significantly higher than the 'Elapsed Time' for the snapshot interval. What does this indicate?

A.The database is experiencing a high number of user calls.
B.The database instance is running on a single CPU.
C.There is significant concurrency; multiple sessions are active simultaneously.
D.The AWR snapshot interval was too short.
AnswerC

DB Time is the sum of the time spent by all foreground sessions in database calls (CPU time plus wait time). Elapsed Time is the actual wall-clock time of the AWR snapshot interval. If DB Time exceeds Elapsed Time, it means that on average, more than one session was active at the same time. For example, if DB Time is 10 minutes and Elapsed Time is 5 minutes, the average concurrency was 2. This indicates that the database was handling multiple concurrent requests, which is normal in a busy system but can highlight contention if waits are high.

Why this answer

In an AWR report, Elapsed Time is the duration of the snapshot interval in wall-clock time. DB Time is the total time spent by all foreground sessions in database calls, which includes CPU time and wait time. If DB Time is greater than Elapsed Time, it means that on average, more than one session was active at the same time.

This is a measure of average concurrency. For instance, if DB Time is 120 minutes and Elapsed Time is 60 minutes, the average concurrency is 2. This is normal for a multi-user system and does not necessarily indicate a problem, but it helps in understanding the workload.

Exam trap

The trap here is thinking that DB Time > Elapsed Time indicates a problem, when it actually just reflects concurrent session activity.

106
MCQmedium

What does the 'Elapsed Time' in a SQL statement represent?

A.The time spent on CPU only
B.The total duration of the SQL execution
C.The time since the SQL was parsed
D.The time spent waiting for I/O
AnswerB

Elapsed Time measures the total wall-clock duration of the SQL execution, from parse through fetch completion, including all waits and CPU time. It reflects the full end-to-end latency the user experiences, not just CPU consumption or database time.

Why this answer

It is the total wall-clock time spent executing the statement from start to finish.

107
MCQhard

You are monitoring parallel DML performance. Which view provides the best insight into current parallel server activity?

A.V$DATABASE
B.V$SESSION
C.V$PARALLEL_DEGREE
D.V$PX_SESSION
AnswerD

V$PX_SESSION exposes one row per active parallel execution server session, showing degree of parallelism, slave set, and session pairing. This gives the finest-grained real-time view of parallel server activity, unlike aggregate views such as V$PX_PROCESS or V$SQL.

Why this answer

V$PX_SESSION provides real-time information on parallel sessions.

108
Multi-Selecthard

A DBA is using Oracle Database 23ai and wants to implement a schema-level privilege analysis to monitor privileges used by applications. Which two statements are true about this feature? (Choose two.)

Select 2 answers
A.It requires the database to be in ARCHIVELOG mode.
B.It can be scoped to a specific schema or the entire database.
C.It requires a separate license in addition to the Enterprise Edition license.
D.It automatically revokes unused privileges after the analysis period.
E.It can capture privileges used by specific users or roles, including those granted through roles.
AnswersB, E

Schema-level privilege analysis can be scoped to a specific schema or the entire database. This flexibility allows DBAs to focus on particular schemas of interest or analyze all schemas. The scope is defined when creating the privilege analysis policy.

Why this answer

Schema-level privilege analysis can capture privileges used by users or roles, including role-granted privileges, and can be scoped to a specific schema or the entire database. It does not require ARCHIVELOG mode, does not automatically revoke privileges, and does not require an additional license.

Exam trap

The trap here is assuming that privilege analysis automatically revokes privileges or requires special database modes, when it is purely an analysis tool.

109
Multi-Selectmedium

Which THREE features are enabled in 23ai to simplify database management?

Select 3 answers
A.Flashback Data Archive
B.AI Vector Search
C.JSON Duality
D.Lock-Free Reservations
E.Tablespace encryption
AnswersB, C, D

AI Vector Search ships natively in 23ai, letting developers store embeddings in VECTOR columns and run similarity queries through SQL. It removes the need for a separate vector database, simplifying management of AI-driven workloads within the existing Oracle Database engine.

Why this answer

AI Vector Search (B) is correct because Oracle 23ai introduces native VECTOR data type, vector indexes, and vector_distance functions, letting DBAs store and query embeddings directly in the database without a separate vector store, which simplifies AI-driven management and search workloads. JSON Duality (C) is correct because 23ai provides JSON Relational Duality Views, allowing the same underlying relational data to be accessed as JSON documents or as relational tables, eliminating the need to maintain duplicate schemas and simplifying application and data management. Lock-Free Reservations (D) is correct because 23ai enables concurrent transactions to reserve row capacity without blocking on row locks, reducing lock contention and deadlocks and thereby simplifying high-concurrency transaction management.

Flashback Data Archive (A) is not one of the three new 23ai simplification features highlighted here, as it is a long-established Total Recall capability for tracking historical data, and Tablespace encryption (E) is likewise a pre-existing Transparent Data Encryption feature for data-at-rest protection, not a new 23ai management-simplification feature.

Exam trap

OCP often tests whether candidates can distinguish genuinely new 23ai features from long-standing Oracle features (Flashback Data Archive, TDE tablespace encryption) that are simply mentioned alongside them.

110
MCQmedium

An Oracle Database 23ai administrator supports an application that frequently runs ad hoc queries against a large JSON collection stored in an Oracle JSON column. Developers complain that every query must be rewritten to match the document structure, and they want the relational and JSON views of the same data to stay in sync without duplicating storage. The DBA enables JSON Relational Duality Views. Which statement correctly describes how the application benefits from this feature?

A.The duality view exposes relational tables as JSON documents that can be queried and updated with standard JSON and SQL, without duplicating data.
B.The duality view stores a second physical copy of the JSON documents, which the database keeps synchronized automatically.
C.The duality view can only be queried, not updated, so developers must use stored procedures for any data changes.
D.The duality view requires the base tables to be converted to a document-only storage model before it can be used.
AnswerA

A duality view is defined over one or more relational tables and presents them as JSON documents. Applications can issue JSON queries and DML against the view, and Oracle translates those operations into relational operations on the base tables, so both views stay consistent with a single storage footprint. This directly satisfies the requirement for synchronized relational and JSON access without duplication.

Why this answer

JSON Relational Duality Views let applications interact with relational data as JSON documents while the database continues to store the data relationally. The view is a definition, not a copy, so there is no duplicated storage and no synchronization job to manage. Reads and writes through the view are translated into operations on the base tables, keeping relational and JSON access consistent for ad hoc query workloads.

Exam trap

The trap here is believing that a duality view materializes a second JSON copy of the data, when it is only a definition over the existing relational tables.

111
Multi-Selecthard

Which TWO files are modified to configure a secured listener?

Select 2 answers
A.listener.ora
B.spfile.ora
C.init.ora
D.tnsnames.ora
E.sqlnet.ora
AnswersA, E

Configures the listener endpoint.

Why this answer

Option A, listener.ora, is correct because it defines the listener's protocol addresses and static service registrations, and it is where you add the TCPS (TCP with SSL/TLS) protocol address and the SECURE_PROTOCOL_* / SSL_CLIENT_AUTHENTICATION parameters needed to enable a secured listener. Option E, sqlnet.ora, is correct because it holds the client/server-side Oracle Net security settings such as WALLET_LOCATION, SSL_VERSION, SSL_CIPHER_SUITES, and SSL_CLIENT_AUTHENTICATION, which the listener reads to negotiate encrypted connections. Option B, spfile.ora, is not correct because it stores instance initialization parameters, not listener or Oracle Net security configuration.

Option C, init.ora, is not correct because it is a legacy instance parameter file and does not configure listener security. Option D, tnsnames.ora, is not correct because it only maps net service names to connect descriptors for clients, not the listener's secured configuration.

Exam trap

The trap is assuming that securing a listener is a single-file change — candidates often pick only listener.ora and forget that sqlnet.ora carries the encryption/authentication parameters that actually enforce security.

112
MCQhard

When running parallel DML in 23ai, what happens to the data if the transaction fails?

A.The entire transaction is rolled back
B.Partial data is committed
C.Only the DML part is rolled back
D.Requires a manual cleanup
AnswerA

Parallel DML in Oracle 23ai retains full transactional integrity: each parallel execution server performs its portion of the work within the same transaction, and a failure triggers a coordinated rollback of all changes. This satisfies the stem's requirement that no partial data persists when the transaction fails.

Why this answer

Parallel DML operations are fully atomic and follow standard rollback procedures.

113
MCQhard

You are performing an RMAN duplicate database operation. What is the benefit of using the 'FROM ACTIVE DATABASE' clause?

A.It requires less network bandwidth.
B.It is faster than restoring from backup.
C.It does not require a connection to the target.
D.It creates a backup of the source during duplication.
AnswerB

The FROM ACTIVE DATABASE clause copies datafiles directly from the source database's memory and online files over the network, bypassing backup media entirely. This eliminates the restore phase, satisfying the scenario's need for speed, since no backup retrieval or staging is required before duplication proceeds.

Why this answer

It duplicates the database directly from the source without requiring a backup set to be restored first.

114
MCQhard

You have a standby database and want to offload backups to it. What is the recommended way to register the standby's backups in the recovery catalog?

A.Run the register command on the primary.
B.Connect RMAN to the standby and the catalog.
C.Export the primary catalog metadata to the standby.
D.Use the import command in RMAN.
AnswerB

Connecting RMAN to the standby and the recovery catalog lets backups taken on the standby be recorded directly in the shared catalog, satisfying the offload requirement. The standby must be registered as its own target so its backup metadata is captured and visible for restore operations.

Why this answer

The standby database should be connected to the recovery catalog to register its own backups.

115
MCQmedium

You want to backup the control file automatically whenever a change is made to the database structure. Which command do you use?

A.CONFIGURE CONTROLFILE AUTOBACKUP ON
B.BACKUP CONTROLFILE ON
C.ALTER SYSTEM SET CONTROLFILE_AUTOBACKUP=TRUE
D.SET CONTROLFILE AUTOBACKUP ON
AnswerA

CONFIGURE CONTROLFILE AUTOBACKUP ON makes RMAN write the control file and server parameter file automatically after every structural change, such as adding a datafile or tablespace. This directly satisfies the stem's requirement for automatic backup on database structure modification, without manual intervention.

Why this answer

CONFIGURE CONTROLFILE AUTOBACKUP ON is the correct RMAN command to enable automatic control file and SPFILE backups whenever the database structure changes or a backup is performed. This setting is persistent in the RMAN configuration and ensures the control file is backed up to the configured autobackup location (FRA or a specified format).

Exam trap

OCP often tests the confusion between RMAN CONFIGURE commands and SQL ALTER SYSTEM commands; candidates may incorrectly choose an ALTER SYSTEM statement for an RMAN-specific configuration.

How to eliminate wrong answers

Option B is wrong because BACKUP CONTROLFILE ON is not valid RMAN syntax; BACKUP CONTROLFILE is a command to back up the control file manually, but it does not enable automatic backups. Option C is wrong because CONTROLFILE_AUTOBACKUP is not an initialization parameter; it cannot be set via ALTER SYSTEM. Option D is wrong because SET CONTROLFILE AUTOBACKUP ON is not valid RMAN syntax; the correct verb is CONFIGURE, not SET, for persistent configuration changes.

116
MCQmedium

A production database experiences a sudden performance degradation. You want to analyze the last 10 minutes of activity to pinpoint blocked sessions. Which approach is best?

A.Generate an AWR report for the last hour
B.Query V$ACTIVE_SESSION_HISTORY
C.Check the Alert Log for ORA errors
D.Run the SQL Access Advisor
AnswerB

V$ACTIVE_SESSION_HISTORY samples active sessions every second, retaining recent history in memory, so it exposes which sessions blocked others during the last 10 minutes. This directly satisfies the stem's requirement to pinpoint blocked sessions within that short window.

Why this answer

ASH data is stored in memory and is the primary source for recent, short-term performance diagnostics.

117
Multi-Selecthard

Which TWO actions are required when performing a 'Unplug and Plug' operation of a PDB between two different CDBs to ensure data integrity?

Select 2 answers
A.The PDB must be opened in upgrade mode before unplugging
B.An XML metadata file must be created during the unplug process
C.The PDB must be closed before the unplug operation
D.The source CDB must be dropped after the operation
E.The CDB must be in restricted mode
AnswersB, C

Creating the XML metadata file during unplugging captures the PDB's data dictionary, tablespace definitions and service details, which the destination CDB requires to register and integrate the plugged-in PDB correctly. Without this manifest, the target CDB cannot reconcile the PDB's structure, so the operation fails to preserve data integrity across the two containers.

Why this answer

Option B is correct because the unplug operation generates an XML metadata file (the PDB description file) that captures the PDB's datafiles, tablespaces, and metadata, which is essential for plugging the PDB into the target CDB and preserving data integrity. Option C is correct because the PDB must be closed (or placed in MOUNT state) before unplugging; you cannot unplug an open PDB, and closing it ensures a consistent state and proper generation of the XML manifest. Option A is wrong because upgrade mode is only used for running upgrade scripts, not for unplugging.

Option D is wrong because the source CDB does not need to be dropped; only the PDB is unplugged. Option E is wrong because restricted mode is unrelated to unplug/plug operations.

118
Multi-Selectmedium

Which THREE of the following are components of the Oracle performance tuning lifecycle?

Select 3 answers
A.Implementing a solution
B.Deleting all users
C.Identifying the bottleneck
D.Reinstalling the database
E.Analyzing the cause
AnswersA, C, E

Implementing a solution closes the tuning lifecycle by applying the chosen change to the production system. This satisfies the stem's requirement for a lifecycle component, since tuning progresses from observation through diagnosis to corrective action, and implementation is the stage where the remedy is actually deployed and its effect realised.

Why this answer

Tuning is an iterative process involving identification, analysis, and implementation.

119
Multi-Selecthard

You are upgrading a 19c container database (CDB) to Oracle Database 23ai using AutoUpgrade. As part of the upgrade, you need to ensure that the database is in the correct state and that all prerequisites are met. Which two actions should you perform before starting the upgrade? (Choose two.)

Select 2 answers
A.Drop all non-schema users to reduce the number of objects that need to be upgraded.
B.Enable the COMPATIBLE parameter to 23.0.0 in the source database.
C.Ensure the source database is in ARCHIVELOG mode and that there is sufficient disk space for the upgrade.
D.Convert the source database to a pluggable database (PDB) before running AutoUpgrade.
E.Run the preupgrade script (preupgrade.jar) to generate a preupgrade log and fix any issues.
AnswersC, E

ARCHIVELOG mode is required for the upgrade process because it allows for recovery in case of failure. Additionally, sufficient disk space is needed for the new Oracle home, data dictionary changes, and archive logs generated during the upgrade. Verifying these prerequisites prevents interruptions and ensures the upgrade can complete successfully.

Why this answer

Before upgrading a 19c CDB to 23ai with AutoUpgrade, you must run the preupgrade script to identify and fix issues, and ensure the database is in ARCHIVELOG mode with adequate disk space. These steps are critical for a successful upgrade. Setting COMPATIBLE to 23.0.0 in the source, dropping users, or converting to a PDB are either impossible or unnecessary and could cause failures.

Exam trap

The trap here is thinking that COMPATIBLE can be set to the target version before the upgrade, or that dropping users or converting to a PDB is a prerequisite, when these actions are either harmful or irrelevant.

120
MCQhard

You need to capture a specific set of SQL statements that are causing high CPU usage for later tuning. Which tool allows you to group these statements and transport them across different database environments?

A.SQL Tuning Sets
B.SQL Plan Baselines
C.ADDM Findings
D.AWR Snapshots
AnswerA

SQL Tuning Sets capture a defined group of SQL statements with their execution context, and can be exported and imported into another database. This satisfies the stem's requirement to group high-CPU statements and transport them across environments.

Why this answer

SQL Tuning Sets (STS) are designed to capture a specific set of SQL statements along with their execution context, and they can be exported and transported to other databases for tuning or plan comparison. This makes them the correct tool for grouping high-CPU SQL and moving it across environments.

Exam trap

The trap is that candidates pick SQL Plan Baselines because they also deal with SQL and plans, but only SQL Tuning Sets are designed to group and transport multiple SQL statements across databases.

How to eliminate wrong answers

Option B is wrong because SQL Plan Baselines store and enforce execution plans for individual SQL statements; they do not group multiple statements for transport. Option C is wrong because ADDM Findings are diagnostic outputs from the Automatic Database Diagnostic Monitor, not a transportable container for SQL statements. Option D is wrong because AWR Snapshots capture performance statistics over time intervals, not a curated set of SQL statements for tuning across environments.

121
Multi-Selectmedium

A DBA is analyzing an AWR report for an Oracle Database 23ai instance and notices a high number of 'enq: TX - row lock contention' waits. Which two actions should the DBA take to diagnose and resolve this issue? (Choose two.)

Select 2 answers
A.Increase the number of undo tablespaces to reduce contention.
B.Enable automatic undo management and increase the undo retention period.
C.Query V$LOCK and V$SESSION to identify the blocking session and the locked object.
D.Examine the SQL text of the blocking and waiting sessions to identify the problematic transaction.
E.Set the parameter DML_LOCKS to a higher value.
AnswersC, D

V$LOCK shows locks held and requested, including TX locks. By joining V$LOCK with V$SESSION, you can identify the blocking session and the object causing the contention. This is the primary diagnostic step to find the root cause of row lock contention. It helps determine which session is holding the lock and what SQL it is executing.

Why this answer

Row lock contention occurs when one transaction holds a lock on a row that another transaction needs. The first step is to identify the blocking session and the locked object using V$LOCK and V$SESSION. Then, examining the SQL of both sessions helps understand why the lock is held.

This allows the DBA to tune the transaction or application to reduce lock duration. Increasing undo tablespaces or DML_LOCKS does not address the root cause.

Exam trap

The trap here is assuming that row lock contention is related to undo or DML lock limits, when it is actually caused by transaction conflicts on specific rows.

122
MCQmedium

You are an Oracle Database 23ai administrator. Users report that a critical order-entry form intermittently stalls for several seconds when submitting a row. You run an AWR report for the busy period and notice a high average 'row lock wait time' and a significant number of 'enq: TX - row lock contention' waits. Which action should you take first to diagnose the issue?

A.Query V$LOCK to identify the blocking session and the locked object.
B.Increase the value of the DB_BLOCK_CHECKING parameter to detect corruption.
C.Reduce the value of the PGA_AGGREGATE_TARGET to free memory for locks.
D.Run ADDM to automatically resolve the row lock contention.
AnswerA

V$LOCK shows current lock holders and requesters, including the blocking session ID and the object ID for TX enqueue waits. Joining V$LOCK with DBA_OBJECTS and V$SESSION identifies the exact row-level conflict. This is the correct first step to pinpoint which session holds the lock and what object is involved, enabling targeted resolution.

Why this answer

Row lock contention occurs when one session holds a lock on a row that another session needs to modify. The first diagnostic step is to identify the blocking session and the object involved. V$LOCK provides this information by showing lock holders and requesters.

Once identified, you can decide whether to wait, commit, or terminate the blocker.

Exam trap

The trap here is assuming that an advisory tool like ADDM can directly resolve lock contention, when it only reports and recommends.

123
MCQhard

Your Oracle Database 23ai instance is running on an Exadata platform. You have a large table with a column of type VECTOR storing 768-dimensional embeddings. Users frequently run similarity searches using the VECTOR_DISTANCE function with the COSINE metric. To improve query performance, you create a vector index. After creation, you notice that some queries do not use the index and perform full table scans. What is the most likely reason for this behavior?

A.The vector index is automatically disabled after any DML operation on the table and must be rebuilt before it can be used again.
B.The queries are using a distance metric that differs from the one specified when the vector index was created, so the index cannot be used.
C.The VECTOR column is defined with the FLOAT64 format, which is not supported by vector indexes.
D.The vector index is created with the default accuracy parameter, which may cause the optimizer to choose a full table scan for certain queries.
AnswerB

Vector indexes in Oracle Database 23ai are created with a specific distance metric, such as COSINE, EUCLIDEAN, or DOT. If a query uses a different distance metric in VECTOR_DISTANCE, the optimizer cannot use the index and must perform a full table scan. This is a common cause of index not being used.

Why this answer

Vector indexes are created with a specific distance metric. If a query uses a different metric in VECTOR_DISTANCE, the optimizer cannot use the index and resorts to a full table scan. Ensuring that the query's metric matches the index's metric is essential for index usage.

Exam trap

The trap here is assuming that any vector index will be used regardless of the distance metric in the query, when in fact the metric must match the index definition.

124
MCQeasy

How does Memoptimized Write affect data integrity?

A.It bypasses ACID compliance
B.It uses eventual consistency
C.It maintains ACID compliance
D.It is only for non-critical data
AnswerC

Memoptimized Write buffers rows in the SGA but still applies redo and undo logging, so committed transactions remain durable and recoverable. Maintaining ACID compliance satisfies the integrity requirement, since buffering changes performance only, not transactional guarantees.

Why this answer

Memoptimized Write is fully compliant with ACID properties.

125
MCQhard

You are performing a TSPITR (Tablespace Point-in-Time Recovery). What is the purpose of the auxiliary instance?

A.To act as a standby database.
B.To host the recovery catalog.
C.To manage the control file backups.
D.To perform the recovery of the target tablespaces.
AnswerD

The auxiliary instance is a separate, temporary Oracle instance where the target tablespaces' datafiles are restored and recovered to the chosen point in time, isolating the recovery work from the production database before the recovered tablespaces are exported and plugged back in.

Why this answer

The auxiliary instance is used to restore and recover the target tablespaces to the desired point in time before exporting the data back to the primary database.

126
Multi-Selecthard

You are managing a CDB named CDB1 with several PDBs. You need to create a new PDB named DEVPDB by cloning an existing PDB named PRODPDB. You want to minimize the impact on PRODPDB and ensure the clone is consistent. Which two statements are true regarding the CREATE PLUGGABLE DATABASE ... FROM PRODPDB command? (Choose two.)

Select 2 answers
A.The clone DEVPDB will automatically inherit the open mode of the source PDB PRODPDB.
B.The clone operation requires the source PDB to be in MOUNTED state.
C.The source PDB PRODPDB must be in READ ONLY mode during the cloning operation.
D.You can specify a different file name conversion for the clone to place its datafiles in a new location.
E.The source PDB PRODPDB must be unplugged before it can be cloned.
AnswersC, D

When cloning a PDB locally using CREATE PLUGGABLE DATABASE ... FROM, the source PDB must be in READ ONLY mode to ensure a consistent copy. This prevents changes to the source during the cloning process, guaranteeing the clone is a point-in-time snapshot. If the source is open READ WRITE, the command will fail.

Why this answer

Cloning a PDB locally with CREATE PLUGGABLE DATABASE ... FROM requires the source PDB to be in READ ONLY mode to ensure consistency. The FILE_NAME_CONVERT clause allows relocation of the clone's datafiles.

These two statements are true. The clone does not inherit open mode, does not require unplugging, and the source must not be merely mounted.

Exam trap

The trap here is assuming that the source PDB can be open READ WRITE during a local clone, or that unplugging is necessary, when in fact READ ONLY mode and file conversion are the key requirements.

127
MCQeasy

What is the primary benefit of Lock-Free Reservations in high-concurrency environments?

A.Faster queries
B.Reduced row-level locking contention
C.Better compression
D.Automatic indexing
AnswerB

Lock-Free Reservations let concurrent transactions reserve column values without holding row-level locks, eliminating the blocking waits that serialise inserts and updates. This directly reduces row-level locking contention, the bottleneck the stem identifies in high-concurrency workloads.

Why this answer

It eliminates wait events associated with row-level locking for numeric updates.

128
MCQmedium

You are an Oracle Database 23ai administrator. A developer complains that a query joining two large tables is spilling to disk, and the session shows high 'direct path write temp' waits. The database uses Automatic Shared Memory Management (ASMM) and Automatic PGA Memory Management. Which action should you take to allow the query to complete without disk spills?

A.Set the WORKAREA_SIZE_POLICY parameter to MANUAL and configure SORT_AREA_SIZE.
B.Increase the SGA_TARGET parameter.
C.Increase the DB_CACHE_SIZE parameter to cache more blocks and reduce temp usage.
D.Increase the PGA_AGGREGATE_TARGET parameter.
AnswerD

Automatic PGA Memory Management uses PGA_AGGREGATE_TARGET to dynamically allocate work areas. When a query spills to disk, it indicates insufficient PGA memory for the operation. Increasing this parameter gives the database more memory to allocate to work areas, reducing or eliminating temp space usage. This is the correct action to address the spills.

Why this answer

Automatic PGA Memory Management dynamically allocates memory to work areas based on PGA_AGGREGATE_TARGET. When a query spills to disk, it means the allocated work area was insufficient. Increasing PGA_AGGREGATE_TARGET provides more memory for sorts and hash joins, reducing temp space usage and improving performance.

This is the direct solution for the described symptom.

Exam trap

The trap here is confusing SGA and PGA memory, or reverting to manual work area management, when the issue is specifically insufficient PGA memory for a large join.

129
MCQeasy

What does the 'SQL ID' in an Oracle database represent?

A.A table name
B.A user ID
C.An execution plan version
D.A unique identifier for a SQL statement
AnswerD

The SQL ID is the hash-derived identifier Oracle assigns to a SQL statement's text in the shared pool, letting you trace that statement across V$SQL, AWR and ASH. It identifies the statement itself, not a session or execution plan.

Why this answer

The SQL ID is a unique hash of the SQL text, used to identify statements in the library cache.

130
MCQhard

You notice that a specific query is performing very slowly due to excessive 'direct path read' waits. What is the most likely cause?

A.The query is performing a full table scan
B.The library cache is too small
C.The PGA is too large
D.The redo logs are too small
AnswerA

Direct path reads occur when Oracle bypasses the buffer cache and reads blocks straight into PGA memory, typical of parallel or serial full table scans on large segments. Excessive waits therefore point to a full table scan rather than index or rowid access.

Why this answer

Direct path reads often occur during full table scans when the data is not in the buffer cache.

131
MCQeasy

Which command is used to start the AutoUpgrade process?

A.sqlplus / as sysdba
B.opatch
C.dbua
D.java -jar autoupgrade.jar
AnswerD

AutoUpgrade ships as a standalone Java archive, so invoking it with java -jar autoupgrade.jar launches the upgrade process and presents its command console. No database connection or SQL client is involved, distinguishing it from in-database utilities.

Why this answer

AutoUpgrade is Oracle's command-line utility for automating database upgrades, and it is invoked as a Java executable: 'java -jar autoupgrade.jar'. The tool then reads a config file specifying source and target homes, databases, and modes (analyze, fixups, deploy, upgrade).

Exam trap

OCP often tests the distinction between upgrade tools — candidates confuse DBUA (legacy GUI) with AutoUpgrade (modern Java-based CLI) and pick 'dbua' as the startup command.

How to eliminate wrong answers

Option A is wrong because 'sqlplus / as sysdba' merely opens a SQL*Plus session as SYSDBA — it does not launch AutoUpgrade. Option B is wrong because 'opatch' is the Oracle patch utility for applying interim patches and one-off patches, not for database version upgrades. Option C is wrong because 'dbua' is the older Database Upgrade Assistant GUI/CLI, which predates AutoUpgrade and is not the command that starts the AutoUpgrade process.

132
Multi-Selectmedium

When configuring Oracle Network Encryption, which TWO of the following parameters in the sqlnet.ora file are used to specify encryption settings?

Select 2 answers
A.SQLNET.ENCRYPTION_TYPES_SERVER
B.TNS_ENCRYPTION_ENABLED
C.SQLNET.ENCRYPTION_SERVER
D.SQLNET.AUTHENTICATION_SERVICES
E.NETWORK_SECURE_MODE
AnswersA, C

SQLNET.ENCRYPTION_TYPES_SERVER lists the cipher suites the database server will accept for encrypted connections, satisfying the requirement to specify encryption settings in sqlnet.ora. It works alongside SQLNET.ENCRYPTION_SERVER, which enables or declines encryption, making it one of the two parameters that define server-side encryption configuration.

Why this answer

SQLNET.ENCRYPTION_SERVER (option C) is correct because it is the sqlnet.ora parameter that controls whether encryption is required, requested, accepted, or rejected for inbound connections on the server side, with valid values such as ACCEPTED, REJECTED, REQUESTED, and REQUIRED. SQLNET.ENCRYPTION_TYPES_SERVER (option A) is correct because it specifies the list of encryption algorithms the server will use, in order of preference, such as AES256, AES192, AES128, and 3DES168. Together these two parameters define the server-side encryption behavior for Oracle Network Encryption.

Option B (TNS_ENCRYPTION_ENABLED) is not a valid sqlnet.ora parameter, option D (SQLNET.AUTHENTICATION_SERVICES) governs authentication methods such as NONE, ALL, or KERBEROS rather than encryption, and option E (NETWORK_SECURE_MODE) is not a recognized Oracle Net parameter.

Exam trap

OCP often tests the exact sqlnet.ora parameter names, catching candidates who pick plausible-sounding but non-existent parameters like TNS_ENCRYPTION_ENABLED or confuse authentication parameters with encryption parameters.

133
MCQmedium

Your team maintains a large Oracle Database 23ai data warehouse. A new reporting application requires the ability to store and query JSON documents alongside relational data without duplicating the data or writing complex transformation logic. The application will issue both standard SQL queries and Oracle Database API for MongoDB (Oracle API for MongoDB) commands against the same underlying data. Which 23ai feature should you implement to satisfy this requirement?

A.Blockchain Tables
B.JSON Relational Duality Views
C.Wide Tables
D.Memoptimized Rowstore
AnswerB

JSON Relational Duality Views provide a single source of truth where relational data is exposed as JSON documents, allowing both SQL and Oracle API for MongoDB to operate on the same data without duplication. This directly meets the requirement of supporting both access methods while avoiding transformation logic.

Why this answer

JSON Relational Duality Views let you define a JSON document view over relational tables, so the same data can be queried with SQL and manipulated as JSON documents via Oracle API for MongoDB. This eliminates data duplication and transformation code, exactly matching the need for dual access in the data warehouse.

Exam trap

The trap here is assuming that any JSON-related 23ai feature enables Oracle API for MongoDB access, when only JSON Relational Duality Views provide the bidirectional mapping between relational tables and JSON documents.

134
MCQhard

You are recovering an Oracle 23ai database after a disk failure. You restored the data files and control file from an RMAN backup, but the redo needed to complete recovery is partly on archived logs that were written to the fast recovery area. Which RMAN command most directly applies all available archived redo logs and incremental backups to bring the restored files to a consistent state?

A.RECOVER DATABASE;
B.SWITCH DATAFILE ALL;
C.CROSSCHECK BACKUP;
D.RESTORE DATABASE;
AnswerA

RECOVER DATABASE applies archived redo logs and any available incremental backups to the restored data files, rolling them forward to a consistent SCN. This is exactly the step that consumes the archived logs in the fast recovery area and completes media recovery, making it the correct command after the restore.

Why this answer

After data files and the control file are restored, media recovery is completed with RECOVER DATABASE, which applies archived redo logs and incremental backups to roll the files forward to a consistent point. Restore, switch, and crosscheck serve different purposes and do not apply redo, so they cannot bring the restored files to consistency.

Exam trap

The trap here is treating RESTORE and RECOVER as interchangeable, when only RECOVER applies redo to make files consistent.

135
Multi-Selecthard

Which TWO of the following statements about True Cache are correct?

Select 2 answers
A.It replaces Data Guard
B.It requires a dedicated database
C.It supports DML operations
D.It resides in the application tier
E.It is a read-only cache
AnswersD, E

True Cache runs as a separate Oracle instance in the application tier, close to the application servers rather than alongside the primary database. This placement reduces network round-trip latency for read queries while the primary database remains the single source of truth.

Why this answer

Option D is correct because Oracle True Cache is deployed as a separate, lightweight instance that runs in the application tier, close to the application servers, so it can serve queries with minimal network latency. Option E is correct because True Cache is fundamentally a read-only, in-memory cache that serves consistent read queries and does not accept DML; write operations continue to go to the primary database. Option A is incorrect because True Cache does not replace Data Guard — Data Guard remains Oracle's disaster-recovery and data-protection solution, and True Cache is complementary to it.

Option B is incorrect because True Cache does not require a dedicated database; it is an additional cache instance associated with the primary database, not a separate standalone database deployment. Option C is incorrect because True Cache does not support DML operations; it only serves read-only queries, with all DML directed to the primary database.

136
MCQmedium

You need to migrate a non-CDB database to a PDB in a 23ai CDB. Which utility is the recommended tool to assess compatibility before migration?

A.DBMS_PDB.CHECK_PLUG_COMPATIBILITY
B.RMAN CONVERT
C.DBUA
D.SQL Developer
E.Data Pump
AnswerA

DBMS_PDB.CHECK_PLUG_COMPATIBILITY validates a non-CDB's data dictionary against 23ai CDB requirements before plugging, reporting violations that would block migration. It satisfies the stem's pre-migration compatibility assessment constraint, unlike DBMS_PDB.DESCRIBE (metadata only) or transportable tablespace checks, which do not evaluate full plug-in readiness.

Why this answer

DBMS_PDB.CHECK_PLUG_COMPATIBILITY is the standard PL/SQL procedure to identify potential issues before plugging a non-CDB into a CDB.

137
MCQmedium

You are the lead DBA for a CDB named PRODCDB that contains a PDB named SALESPDB. A regulatory audit requires that SALESPDB be opened in READ ONLY mode for the next 48 hours, while all other PDBs in the CDB must remain fully available for normal application traffic. You connect to the root container as SYSDBA and execute: ALTER PLUGGABLE DATABASE SALESPDB OPEN READ ONLY; The command completes successfully. Which statement describes the resulting state of SALESPDB?

A.SALESPDB is open in READ ONLY mode, but only for the current instance; any other instance in the CDB will still have SALESPDB open in READ WRITE mode.
B.SALESPDB remains in MOUNTED state because a PDB cannot be opened in READ ONLY mode until the CDB root is first restarted in READ ONLY mode.
C.SALESPDB is opened in READ ONLY mode, and because the CDB root is still READ WRITE, users connecting to SALESPDB can still perform DML in the root container only.
D.SALESPDB is open in READ ONLY mode, which allows queries against its data but blocks any DML or DDL changes until it is reopened in READ WRITE mode.
AnswerD

Issuing ALTER PLUGGABLE DATABASE SALESPDB OPEN READ ONLY transitions the PDB into a read-only state where users can query data but cannot perform DML or DDL against the PDB. This matches the audit requirement while leaving other PDBs untouched, because the command names only SALESPDB and the root container does not change its own open mode.

Why this answer

Opening a specific PDB in READ ONLY mode is done with ALTER PLUGGABLE DATABASE <pdb> OPEN READ ONLY executed from the root. The named PDB becomes queryable but not modifiable, while other PDBs and the root retain their current open modes. Because the statement scopes to SALESPDB only, normal application traffic to other PDBs continues uninterrupted, satisfying the audit requirement without a CDB-wide outage.

Exam trap

The trap here is assuming that changing a PDB's open mode requires restarting the CDB root or affects every container, when the ALTER PLUGGABLE DATABASE statement scopes the mode change to the named PDB only.

138
MCQmedium

Which procedure in the DBMS_SPM package is used to evolve a SQL plan baseline?

A.DBMS_SPM.EVOLVE_SQL_PLAN_BASELINE
B.DBMS_SPM.DROP_SQL_PLAN_BASELINE
C.DBMS_SPM.ALTER_SQL_PLAN_BASELINE
D.DBMS_SPM.LOAD_PLANS_FROM_SQLSET
AnswerA

DBMS_SPM.EVOLVE_SQL_PLAN_BASELINE verifies unaccepted plans against the SQL performance history and promotes those that perform better to accepted status, optionally running in verify or commit mode. It is the sole DBMS_SPM procedure providing this evolution capability.

Why this answer

DBMS_SPM.EVOLVE_SQL_PLAN_BASELINE is the standard procedure to evolve baselines.

139
MCQeasy

Which type of operation is ideal for Blockchain tables?

A.General configuration tables
B.Transient cache data
C.Audit logs and financial records
D.High-frequency temporary storage
AnswerC

Blockchain tables are append-only and tamper-evident, with rows cryptographically chained so any alteration is detectable. That immutability suits audit logs and financial records, where preserving an unalterable historical trail of transactions is the governing requirement.

Why this answer

Blockchain tables are designed for insert-only, tamper-evident records where each row is cryptographically hashed and chained to the previous row. Audit logs and financial records are the ideal use case because they require an immutable, verifiable history that can be used for compliance and auditing. These tables prevent updates and deletions, ensuring data integrity and non-repudiation.

Exam trap

OCP often tests the misconception that blockchain tables are suitable for any high-volume data, but they are specifically for immutable, auditable records, not for general-purpose or temporary data.

How to eliminate wrong answers

Option A is wrong because general configuration tables require frequent updates and deletions, which blockchain tables do not support. Option B is wrong because transient cache data is temporary and does not need the immutable, auditable ledger that blockchain tables provide. Option D is wrong because high-frequency temporary storage implies rapid insert and delete operations, which are not supported by blockchain tables due to their append-only nature.

140
MCQmedium

What is the result of a 'vector similarity' search?

A.Rows sorted by similarity distance
B.The average value
C.A random sample
D.A list of exact matches
AnswerA

Vector similarity search returns rows ordered by their distance from the query vector, typically ascending so the nearest neighbours appear first. This directly satisfies the stem's requirement to know the search result, since the defining output is a ranked list based on similarity distance rather than exact matches.

Why this answer

It returns rows sorted by distance.

141
MCQmedium

A financial services company runs an Oracle Database 23ai application that performs high-volume, concurrent inserts into a transaction history table. The DBA observes significant buffer busy waits and wants to reduce contention without changing the application. Which 23ai feature should be implemented?

A.Hybrid Columnar Compression
B.Memoptimized Rowstore – Fast Ingest
C.Automatic Indexing
D.Real Application Clusters (RAC) with services
AnswerB

Memoptimized Rowstore – Fast Ingest is designed for high-frequency, concurrent inserts. It buffers inserts in a memory area and writes them to disk asynchronously, reducing buffer busy waits and improving insert throughput. This directly addresses the contention observed by the DBA without application changes.

Why this answer

Memoptimized Rowstore – Fast Ingest is specifically designed to handle high-volume, concurrent inserts by buffering them in memory and writing to disk asynchronously, thereby reducing buffer busy waits. The other options do not directly address the insert contention issue described.

Exam trap

The trap here is assuming that any performance feature, such as Automatic Indexing or compression, will automatically resolve insert contention, when only Fast Ingest is designed for that purpose.

142
MCQhard

Your CDB is configured with a PDB named REPORTSPDB that must be opened automatically in READ ONLY mode every time the CDB instance starts, because it hosts static reporting data. Which two-step approach ensures this behavior across instance restarts? (Choose the best answer.)

A.Set the PDB's OPEN_MODE column in PDB_SAVED_STATE by running an UPDATE statement.
B.Modify the CDB's SPFILE parameter PDB_OPEN_MODE to READ ONLY for REPORTSPDB.
C.Open REPORTSPDB in READ ONLY mode, then run ALTER PLUGGABLE DATABASE REPORTSPDB SAVE STATE.
D.Create a database startup trigger in the root that executes ALTER PLUGGABLE DATABASE REPORTSPDB OPEN READ ONLY.
AnswerC

SAVE STATE records the PDB's current open mode so that on subsequent CDB startups the PDB is automatically reopened in that same mode. Opening it READ ONLY first and then saving state captures exactly the desired behavior. This is the supported mechanism for persisting a non-default open mode across restarts.

Why this answer

To have a PDB reopen in a specific mode after instance restart, open it in that mode and then save its state. ALTER PLUGGABLE DATABASE ... SAVE STATE records the open mode and makes the CDB restore it automatically at startup.

Startup triggers and nonexistent parameters or direct view updates are not the supported approach.

Exam trap

The trap here is inventing a parameter or updatable view for PDB open mode, when the supported mechanism is the SAVE STATE clause of ALTER PLUGGABLE DATABASE.

143
MCQeasy

What is the standard tool to manage CDB/PDB configuration in 23ai?

A.SQL Developer
B.Net Manager
C.SQL*Plus
D.OEM
AnswerC

SQL*Plus remains the standard command-line tool for administering CDB and PDB configuration in Oracle 23ai, satisfying the requirement for a native, always-available interface. It connects directly to the root or a pluggable database, letting you run ALTER SYSTEM and ALTER DATABASE statements to modify container-level parameters without extra tooling.

Why this answer

SQL*Plus or SQLcl are the standard interfaces for managing CDBs.

144
MCQeasy

Which view provides information about the open status of all PDBs in a CDB?

A.V$INSTANCE
B.V$CONTAINERS
C.V$PDBS
D.V$DATABASE
E.DBA_PDBS
AnswerC

V$PDBS lists every pluggable database within a container database, including its open mode and restricted status, directly satisfying the requirement to report open status across all PDBs. Querying it from the CDB root returns one row per PDB, unlike V$DATABASE, which describes only the current container.

Why this answer

V$PDBS provides the current status of each PDB in the container database.

145
MCQmedium

You are performing a SQL tuning exercise. How do you create a SQL Tuning Set (STS) to be used as input for the SQL Tuning Advisor?

A.DBMS_SQLTUNE.CREATE_SQLSET
B.DBMS_WORKLOAD_REPOSITORY.CREATE_SNAPSHOT
C.DBMS_SPM.CREATE_BASELINE
D.DBMS_STATS.CREATE_STAT_TABLE
AnswerA

DBMS_SQLTUNE.CREATE_SQLSET creates the empty SQL tuning set object, which is then populated from sources such as the cursor cache, AWR or SQL trace before being passed to the SQL Tuning Advisor as its input workload.

Why this answer

DBMS_SQLTUNE.CREATE_SQLSET is the required procedure to initialize an STS container.

146
MCQmedium

You are tuning a data warehouse query that performs a large hash join. The query is spilling to disk, and you want to determine if increasing the PGA_AGGREGATE_TARGET would help. Which of the following dynamic performance views would you query to see the current PGA memory usage and the number of multi-pass executions?

A.V$PROCESS
B.V$PGASTAT
C.V$SQL_WORKAREA
D.V$SESSTAT
AnswerB

V$PGASTAT provides instance-level statistics on PGA memory usage, including total PGA allocated, cache hit percentage, and the number of multi-pass and one-pass executions for work areas. This view directly shows if operations are spilling to disk and the overall efficiency of PGA memory, making it the correct choice.

Why this answer

V$PGASTAT is the primary view for monitoring PGA memory allocation and work area execution efficiency. It includes statistics such as 'aggregate PGA target parameter', 'total PGA allocated', 'cache hit percentage', and counts of optimal, one-pass, and multi-pass executions. By checking the number of multi-pass executions, you can determine if increasing PGA_AGGREGATE_TARGET would reduce disk spills and improve performance.

Exam trap

The trap here is focusing on per-session or per-SQL views when the question asks for overall PGA memory usage and multi-pass executions, which are summarized in V$PGASTAT.

147
Multi-Selecthard

Which THREE configuration steps are required to implement True Cache?

Select 3 answers
A.Update the connection pool
B.Configure the True Cache instance
C.Enable on the application side
D.Manual data refresh scripts
E.Disable Data Guard
AnswersA, B, C

The application's connection pool must be updated so it can route read-only connections to the True Cache instance rather than only the primary database. This satisfies the application-tier routing requirement, directing eligible queries to the cache.

Why this answer

To implement True Cache, you must update the connection pool (A) so the application can route read-only queries to the True Cache instance via the appropriate connection descriptor, which is essential for directing traffic to the cache. You must also configure the True Cache instance (B) itself, which involves creating it with the True Cache-specific initialization parameters and associating it with the primary database so it can automatically receive and cache data. Additionally, you must enable on the application side (C), meaning the application must be configured to use the True Cache connection and set to read-only mode where appropriate, allowing it to leverage the cached data.

Manual data refresh scripts (D) are not required because True Cache automatically refreshes data from the primary database, and disabling Data Guard (E) is not required since True Cache can coexist with Data Guard and does not depend on disabling it.

148
MCQeasy

What is the primary benefit of using Unified Auditing in 23ai?

A.Simplified audit management and unified audit trail
B.Improved query performance for application tables
C.Increased storage capacity
D.Automatic data masking
AnswerA

Unified Auditing merges traditional and fine-grained auditing into a single configuration and writes all records to one unified audit trail, eliminating separate audit configurations and their scattered trails. This delivers simplified audit management, the primary benefit sought.

Why this answer

Unified Auditing provides a single, unified audit trail for all audit records from various sources.

149
MCQeasy

Which database feature is recommended for high-frequency inserts into a single table with minimal overhead?

A.Materialized Views
B.Flashback
C.Memoptimized Write
D.Partitioning
AnswerC

Memoptimized Write buffers inserts in a dedicated memory area and flushes them to disk in batches, bypassing much of the per-row redo and buffer overhead. This directly satisfies the minimal-overhead requirement for high-frequency single-table inserts, unlike conventional row-by-row paths.

Why this answer

Memoptimized Write is an Oracle feature designed specifically for high-frequency, low-overhead inserts into a single table. It uses a memory buffer and a lightweight commit path to reduce redo and undo overhead, making it ideal for IoT, telemetry, and logging workloads where rows are appended rapidly. It is the recommended feature for this scenario in 23ai.

Exam trap

OCP often tests the confusion between read-optimization features (Materialized Views, Partitioning) and write-optimization features (Memoptimized Write) — candidates must match the feature to the workload type described in the question.

How to eliminate wrong answers

Option A is wrong because Materialized Views are used to precompute and store query results for faster reads — they add overhead on the write path, not reduce it. Option B is wrong because Flashback is a recovery and query feature that lets you view or restore past data; it does not optimize insert performance. Option D is wrong because Partitioning improves manageability and query performance for large tables, but it does not specifically minimize the overhead of high-frequency single-table inserts.

150
MCQeasy

When upgrading a database, what is a 'Flashback Database' used for?

A.Quick recovery after a failed upgrade
B.User authentication
C.Data migration
D.Performance tuning
AnswerA

Flashback Database restores the entire database to an earlier point in time using flashback logs, letting you rewind past a failed upgrade quickly rather than restoring from backup. This directly satisfies the stem's requirement for fast recovery after an unsuccessful upgrade.

Why this answer

Flashback Database allows you to quickly rewind an Oracle database to a prior point in time without restoring from backup. During an upgrade, if the upgrade fails or introduces regressions, you can flash back to the guaranteed restore point created before the upgrade, returning the database to its pre-upgrade state in minutes. This is far faster than a full restore and recovery.

Exam trap

The trap is confusing Flashback Database with Flashback Query or Flashback Drop; candidates may pick it for data recovery of a single table, but it reverts the entire database to a point in time.

How to eliminate wrong answers

Option B is wrong because user authentication is handled by password files, LDAP, or Kerberos, not Flashback Database. Option C is wrong because data migration involves moving data between systems (Data Pump, GoldenGate), not reverting a database state. Option D is wrong because performance tuning uses AWR, ADDM, and SQL Tuning Advisor; Flashback does not tune performance.

Page 1

Page 2 of 4

Page 3

All pages