Oracle · Free Practice Questions · Last reviewed May 2026
30 real exam-style questions organised by domain, each with the correct answer highlighted and a plain-English explanation of why it's right — and why the others are wrong.
You need to identify the top SQL statements consuming the most CPU resources in an Oracle 23ai database over the last hour. Which tool provides the most direct analysis of this performance issue?
SQL Tuning Advisor
Automatic Workload Repository (AWR) report
The AWR report captures snapshots of database activity, including SQL statistics ranked by CPU consumption, over a specified interval such as the last hour. This directly identifies the top CPU-consuming SQL statements, unlike real-time tools that lack historical aggregation.
Active Session History (ASH) report
SQL Plan Management
To improve performance, you suspect an index is missing. Which advisor should you invoke to get recommendations for new indexes?
SQL Tuning Advisor
Memory Advisor
ADDM
SQL Access Advisor
SQL Access Advisor analyses workload from the SQL cache and recommends indexes, materialised views and partitioning for the supplied workload, which directly satisfies the stem's need for new index recommendations. Unlike the SQL Tuning Advisor, which tunes individual statements, it evaluates an entire workload to propose missing indexes.
You have a query that is performing poorly due to a stale execution plan. You want to lock the current optimal plan to prevent the optimizer from changing it during subsequent runs. What should you do?
Run DBMS_STATS.LOCK_TABLE_STATS
Use DBMS_SPM.LOAD_PLANS_FROM_CURSOR_CACHE
DBMS_SPM.LOAD_PLANS_FROM_CURSOR_CACHE captures the existing optimal plan from the shared pool and loads it into a SQL plan baseline, which pins that plan so the optimizer cannot substitute a different one on later executions. This directly satisfies the requirement to lock the current plan against change.
Set OPTIMIZER_FEATURES_ENABLE to a previous version
Use SQL Tuning Advisor to accept a new profile
You are tuning a complex SQL statement. You want to see the execution plan that the optimizer is currently choosing. Which dynamic performance view is most useful?
V$SQL_PLAN
V$SQL_PLAN exposes the execution plan rows the optimizer actually chose for a cached SQL statement, keyed by SQL_ID and child number. It satisfies the requirement to see the plan currently in use, unlike EXPLAIN PLAN, which shows a predicted plan.
V$SESSION
V$SQLAREA
V$SYSSTAT
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?
Generate an AWR report for the last hour
Query V$ACTIVE_SESSION_HISTORY
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.
Check the Alert Log for ORA errors
Run the SQL Access Advisor
What is the primary function of ADDM in Oracle Database 23ai?
To capture SQL execution plans
To migrate data between instances
To identify performance bottlenecks and provide recommendations
ADDM (Automatic Database Diagnostic Monitor) analyses Automatic Workload Repository data to detect performance bottlenecks and generate actionable recommendations. This directly satisfies the stem's requirement, distinguishing it from AWR, which merely collects statistics, and SQL Tuning Advisor, which targets individual statements.
To automatically tune individual SQL statements
Want more Performance Tuning And Diagnostics practice?
Practice this domainWhich view provides information about the open status of all PDBs in a CDB?
V$INSTANCE
V$CONTAINERS
V$PDBS
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.
V$DATABASE
DBA_PDBS
You need to migrate a non-CDB to a PDB in an existing CDB. Which package should you use to check for compatibility issues before starting the migration?
DBMS_PDB_MIGRATE
DBMS_METADATA.CHECK
DBMS_CDB_UPGRADE
DBMS_PDB.CHECK_PLUG_COMPATIBILITY
DBMS_PDB.CHECK_PLUG_COMPATIBILITY validates a non-CDB's data dictionary against the target CDB before migration, reporting violations that would block plugging. It satisfies the stem's requirement to detect compatibility issues prior to starting, unlike DBMS_PDB.DESCRIBE, which only generates the XML manifest without performing any compatibility checks.
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?
DBMS_PDB.CHECK_PLUG_COMPATIBILITY
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.
RMAN CONVERT
DBUA
SQL Developer
Data Pump
What is the purpose of the 'Seed' PDB (PDB$SEED)?
To store undo data
To act as a template for new PDBs
PDB$SEED is a read-only template containing the system and sysaux datafiles that Oracle copies when you issue CREATE PLUGGABLE DATABASE. It supplies the starting file structure for every new PDB, matching the stem's template purpose.
To hold CDB diagnostic logs
To store temporary data
Which command is used to move a PDB from one CDB to another without using Data Pump?
CREATE PDB AS CLONE
DBMS_PDB.COPY
ALTER PLUGGABLE DATABASE UNPLUG
UNPLUG writes the PDB's metadata into its own XML manifest and closes it, letting you move the data files and plug them into a different CDB via CREATE PLUGGABLE DATABASE. This satisfies the no-Data-Pump constraint by relocating files directly.
MOVE PLUGGABLE DATABASE
What happens when you execute 'ALTER PLUGGABLE DATABASE ALL OPEN'?
Opens only PDB$SEED
Opens all PDBs in read-write mode
Issuing this command opens every pluggable database whose current open mode is mounted, transitioning each to read-write, provided the CDB itself is open. It satisfies the requirement to bring all PDBs online simultaneously without naming them individually, respecting each PDB's saved state and any instance-restriction settings.
Opens all PDBs in read-only mode
Starts the CDB instance
Want more Core Administration And Cdb Pdb Architecture practice?
Practice this domainYou are implementing AI Vector Search in Oracle Database 23ai. Which data type is mandatory for storing vector embeddings?
BLOB
CLOB
VECTOR
The VECTOR data type is mandatory for storing vector embeddings in Oracle Database 23ai; it holds the dimensional float array and supports the distance functions and indexes used by AI Vector Search. No other type satisfies the stem's storage requirement.
JSON
When using Blockchain Tables, what is the default behavior for rows that have reached their 'no drop' period?
Rows are moved to archive storage
Rows are automatically purged
Rows remain immutable until deleted manually
Rows past the 'no drop' period stay immutable; the retention lock only prevents deletion, it never authorises it. Oracle Blockchain Tables expose no automatic purge, so rows persist until an explicit DELETE runs. This satisfies the stem's default-behaviour constraint: expiry of the no-drop window merely permits deletion, it does not trigger it.
Rows become updateable
You have a vector index and notice search performance is slow. Which index type should you use to optimize similarity search?
Inverted Index
B-tree
Bitmap
HNSW
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.
Which database feature is recommended for high-frequency inserts into a single table with minimal overhead?
Materialized Views
Flashback
Memoptimized Write
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.
Partitioning
What is the primary benefit of Lock-Free Reservations in high-concurrency environments?
Faster queries
Reduced row-level locking contention
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.
Better compression
Automatic indexing
Which TWO of the following statements about True Cache are correct?
It replaces Data Guard
It requires a dedicated database
It supports DML operations
It resides in the application tier
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.
It is a read-only cache
True Cache is strictly read-only: it serves queries but never accepts writes. All DML is routed to the primary database, and the cache refreshes itself automatically from the primary, keeping data current without any application-side write logic.
Want more 23ai New Features practice?
Practice this domainWhich view should you query to verify the encryption status of tablespaces in 23ai?
V$ENCRYPTED_TABLESPACES
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.
DBA_ENCRYPTED_COLUMNS
DBA_ENCRYPTION_KEYS
DBA_TABLESPACES
V$WALLET
Which component is required to implement Transparent Data Encryption (TDE) in 23ai?
Oracle Audit Vault
Oracle Wallet
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.
Oracle Key Vault
Oracle Data Guard
What is the primary benefit of using Unified Auditing in 23ai?
Simplified audit management and unified audit trail
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.
Improved query performance for application tables
Increased storage capacity
Automatic data masking
You need to perform a Rolling Upgrade using Data Guard. What is the minimum required configuration?
Physical Standby Database
A physical standby applies redo directly, so during a rolling upgrade the primary runs the new Oracle version while the standby stays on the old one, then roles swap. Logical standby or snapshot standby cannot sustain this cross-version redo apply, making physical standby the minimum configuration.
Active Data Guard
Oracle GoldenGate
Snapshot Standby
You are upgrading from 19c to 23ai and need to identify incompatible parameters before the upgrade. Which tool should you use?
Pre-Upgrade Information Tool
The Pre-Upgrade Information Tool directly satisfies the requirement to identify incompatible parameters before upgrading. It analyses the source database and reports deprecated and obsolete initialisation parameters, along with other pre-upgrade fix-ups, producing a detailed report that must be reviewed and resolved prior to running the upgrade itself.
Cloud Pre-Migration Advisor Tool
Oracle Fleet Patching and Provisioning
DBUA
You want to enforce password complexity in 23ai using a profile. Which clause is used to reference a custom verification function?
PASSWORD_VERIFY_FUNCTION
PASSWORD_VERIFY_FUNCTION names a PL/SQL function that Oracle invokes during password changes, letting you enforce bespoke complexity rules beyond the built-in limits. Referencing your custom function in the profile clause satisfies the requirement to apply organisation-specific verification logic to every user assigned that profile.
FAILED_LOGIN_ATTEMPTS
PASSWORD_LOCK_TIME
PASSWORD_LIFE_TIME
Want more Security And Upgrades practice?
Practice this domainYou need to ensure that RMAN automatically deletes archived redo logs after they have been backed up twice to tape. Which configuration command should you use?
CONFIGURE ARCHIVELOG DELETION POLICY TO BACKED UP 2 TIMES TO DEVICE TYPE SBT;
This policy instructs RMAN to delete archived redo logs only after two successful SBT backups, matching the stem's twice-to-tape requirement. The BACKED UP n TIMES TO DEVICE TYPE clause is the precise mechanism controlling automatic archivelog deletion.
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 2 DAYS;
SET ARCHIVELOG DELETION POLICY TO 2 COPIES;
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE;
You are configuring a recovery catalog in Oracle 23ai. Which command must you execute first to ensure the catalog is ready to register the target database?
CREATE CATALOG;
CREATE CATALOG initialises the recovery catalog schema and its internal packages inside the nominated schema. Until this runs, the catalog contains no repository structures, so REGISTER DATABASE cannot store target metadata. It is the mandatory first step before any target registration.
REGISTER DATABASE;
CONNECT CATALOG;
UPGRADE CATALOG;
What is the primary purpose of the Flashback Database feature?
To restore individual corrupted datafiles
To recover dropped tables
To revert the entire database to a point in time
Flashback Database uses flashback logs to return the entire database to an earlier point in time, reversing block-level changes without a full restore. This whole-database rewind is its primary purpose, distinct from object-level or row-level flashback features.
To undo a specific transaction
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?
V$FLASHBACK_DATABASE_LOG
V$DATABASE_BLOCK_CORRUPTION
V$RMAN_STATUS
V$RECOVERY_FILE_DEST
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.
You are performing a cross-platform data migration using RMAN CONVERT. The destination platform has different endianness. Which file type must be converted before it can be transported?
Redo log files
Parameter files
Datafiles
Datafiles store blocks in the source platform's endian format, so RMAN CONVERT must translate their byte order before the destination can open them. The differing endianness named in the stem is precisely what makes conversion mandatory for these files.
Control files
A user accidentally dropped a critical table. You decide to use Flashback Table. What is the mandatory prerequisite before this command can execute?
The table must have a Primary Key.
The database must be in ARCHIVELOG mode.
The Recycle Bin must be disabled.
Row movement must be enabled on the table.
Enabling row movement lets Oracle reassign a row's physical location during undo-based restoration, which Flashback Table requires to return dropped rows to their original blocks. Without it, the command fails with ORA-08189, so row movement is the mandatory prerequisite the stem demands before execution.
Want more Backup And Recovery practice?
Practice this domainThe vendor does not publish an exact question count for the OCP. Always confirm current details on the vendor's official exam page.
Scenario-based questions covering exam objectives with detailed answer explanations.
The exam covers 5 domains: Performance Tuning And Diagnostics, Core Administration And Cdb Pdb Architecture, 23ai New Features, Security And Upgrades, Backup And Recovery. Questions are weighted by domain — higher-weight domains appear more on your actual exam.
No. These are original exam-style practice questions written against the official Oracle OCP exam objectives. They are not copied from the real exam. Courseiva focuses on genuine understanding, not memorisation of braindumps.
Courseiva tracks your accuracy per domain and routes you toward weak areas automatically. Free, no account required.