Oracle · Free Practice Questions · Last reviewed May 2026
30real 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
AWR provides historical performance data aggregated over time intervals.
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
This advisor analyzes access paths and recommends indexes/materialized views.
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
This function creates a baseline from the cursor cache, locking the plan.
Set OPTIMIZER_FEATURES_ENABLE to a previous version
Use SQL Tuning Advisor to accept a new profile
You notice that Automatic SQL Plan Management is not evolving your plans as expected. What is the most likely cause?
SQL Plan Baselines are full
Statistics are gathered manually
The database is in NOARCHIVELOG mode
The SPM Evolve Task is disabled
If the task is disabled, the system will not automatically evolve plans.
An application query is failing to use a newly created index. You suspect the optimizer statistics are inaccurate. Which package should you use to gather statistics for this specific table?
DBMS_SQLTUNE
DBMS_UTILITY
DBMS_STATS.GATHER_TABLE_STATS
This is the correct procedure for gathering table statistics.
DBMS_ADVISOR
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
This view provides the execution plan for cached SQL.
V$SESSION
V$SQLAREA
V$SYSSTAT
Want more Performance Tuning And Diagnostics 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 the native format for vector embeddings.
JSON
You are migrating a legacy application to use Wide Tables in 23ai. What is the maximum number of columns supported by a Wide Table?
4096
4096 is the new limit for Wide Tables.
1000
8192
2048
To enable lock-free reservations on a table, which clause must be used in the CREATE or ALTER TABLE statement?
ENABLE LOCK-FREE
RESERVATIONS ON
LOCK-FREE RESERVATIONS
This is the correct clause for the feature.
CONCURRENT DML
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
The table protects rows until the retention period passes, but manual deletion is still restricted by the feature.
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 is optimized for vector search operations.
When configuring Parallel DML in 23ai, which parameter must be set to 'ALWAYS' to ensure parallel execution for DML statements without hints?
PARALLEL_DEGREE_LIMIT
ENABLE_PARALLEL_DML
This parameter controls the behavior of parallel DML.
DML_PARALLEL_MODE
PARALLEL_EXECUTION_ENABLED
Want more 23ai New Features 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 is the correct dynamic performance view for PDB status.
V$DATABASE
DBA_PDBS
What is the default state of a PDB after creating it using the CREATE PLUGGABLE DATABASE command?
MOUNTED
The default state is MOUNTED.
READ WRITE
OPEN UPGRADE
READ ONLY
A PDB is in 'READ WRITE' mode. You need to perform a maintenance task that requires the PDB to be in 'RESTRICTED' mode. Which command achieves this?
ALTER SYSTEM SET RESTRICTED_SESSION=TRUE;
ALTER PLUGGABLE DATABASE PDB1 CLOSE IMMEDIATE; ALTER PLUGGABLE DATABASE PDB1 OPEN RESTRICTED;
The correct sequence is to close the PDB first, then reopen it with the RESTRICTED privilege.
ALTER PLUGGABLE DATABASE PDB1 UPGRADE;
ALTER DATABASE PDB1 RESTRICTED;
ALTER PLUGGABLE DATABASE PDB1 OPEN RESTRICTED
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
This procedure checks if a non-CDB is compatible with the target CDB.
When managing local and common users in a 23ai CDB, which TWO of the following statements are correct?
Common users can only be created in the root container.
Common users must be created in CDB$ROOT to be visible across PDBs.
Local users are automatically created in all PDBs by default.
Common users can grant local roles to other common users.
Common users must have names prefixed with C## or c##.
The common user naming convention is a strict requirement unless specified otherwise by the O7_DICTIONARY_ACCESSIBILITY parameter.
Local users can grant privileges to common users.
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
This function performs a series of checks on the source database to ensure it can be plugged into the target CDB.
RMAN CONVERT
DBUA
SQL Developer
Data Pump
Want more Core Administration And Cdb Pdb Architecture practice?
Practice this domainYou need to perform a table-level point-in-time recovery. Which RMAN command syntax is correct?
RESTORE TABLE ...
RECOVER TABLE HR.EMPLOYEES UNTIL SCN 12345;
Correct syntax for table PITR.
FLASHBACK TABLE ...
IMPORT TABLE ...
You 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 is the correct syntax for setting the deletion policy based on backup redundancy.
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 2 DAYS;
SET ARCHIVELOG DELETION POLICY TO 2 COPIES;
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE;
Which TWO RMAN settings significantly improve performance during backup operations on an Exadata system?
CONFIGURE CHANNEL ... RATE 10M;
CONFIGURE MAXSETSIZE UNLIMITED;
CONFIGURE BACKUP OPTIMIZATION ON;
Skips files that haven't changed.
CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUPSET;
Reduces I/O load by compressing data.
CONFIGURE CONTROLFILE AUTOBACKUP OFF;
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;
This command creates the necessary tables in the RMAN schema.
REGISTER DATABASE;
CONNECT CATALOG;
UPGRADE CATALOG;
You are migrating an Oracle 23ai database to a different platform with different endianness. Which RMAN command is used to convert the datafiles to the target platform format?
RMAN> CONVERT DATABASE ON TARGET PLATFORM;
RMAN> CONVERT DATAFILE '...' TO PLATFORM '...' FROM PLATFORM '...';
This correctly identifies the source and destination endian formats for conversion.
RMAN> RESTORE DATAFILE FROM PLATFORM;
ALTER DATABASE CONVERT TO PLATFORM;
You are performing a cross-platform transportable tablespace migration from Linux to Windows. Which RMAN command is required to convert the datafiles for the destination platform?
ALTER TABLESPACE ... CONVERT;
RMAN TRANSPORT ...
CONVERT TABLESPACE ... TO PLATFORM 'Microsoft Windows x86 64-bit';
This correctly identifies the destination platform endian format.
RMAN COPY ...
Want more Backup And Recovery practice?
Practice this domainWhich view should you query to verify the encryption status of tablespaces in 23ai?
V$ENCRYPTED_TABLESPACES
This is the correct view for encryption status.
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
The wallet acts as the keystore for the master key.
Oracle Key Vault
Oracle Data Guard
When using AutoUpgrade to move to 23ai, which file format is required for the configuration?
CFG
The configuration file must end in .cfg.
JSON
YAML
XML
What is the primary benefit of using Unified Auditing in 23ai?
Simplified audit management and unified audit trail
This is the main purpose of the feature.
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 is the foundation for a rolling upgrade.
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
This tool identifies issues before the upgrade process starts.
Cloud Pre-Migration Advisor Tool
Oracle Fleet Patching and Provisioning
DBUA
Want more Security And Upgrades practice?
Practice this domainThe OCP exam has 200 questions and must be completed in 120 minutes. The passing score is 700/1000.
Scenario-based questions covering exam objectives with detailed answer explanations.
The exam covers 5 domains: Performance Tuning And Diagnostics, 23ai New Features, Core Administration And Cdb Pdb Architecture, Backup And Recovery, Security And Upgrades. 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.