121 Practice Questions & Answers
You need to configure Oracle Database to automatically manage memory allocation across the SGA and PGA. Which parameter should you set to enable this feature?
-
A
MEMORY_TARGET
✓ Correct
-
B
PROCESSES
-
C
PGA_AGGREGATE_TARGET
-
D
SGA_MAX_SIZE
Explanation
MEMORY_TARGET enables Automatic Memory Management (AMM), which automatically distributes memory between SGA and PGA components based on workload demands.
A database user reports that they cannot create new tables due to insufficient space. After investigation, you find the tablespace is full but has free space in a datafile that can be extended. What is the BEST approach to resolve this immediately?
-
A
Resize the existing datafile to extend its size and increase available space
✓ Correct
-
B
Decrease the EXTENTS parameter to allow tables to use smaller increments
-
C
Add a new datafile to the tablespace
-
D
Migrate all objects to a new tablespace with more space
Explanation
Resizing (extending) an existing datafile is the quickest solution to provide immediate space without the overhead of adding new files or migrating objects.
You are implementing a backup strategy for a critical production database. The database must be able to recover to any point in time within the last 7 days. Which feature must be enabled?
-
A
Incremental backups with block change tracking
-
B
Archive Log mode with sufficient archive log retention
✓ Correct
-
C
Flashback Database with DB_RECOVERY_FILE_DEST configured
-
D
Online backups with control file autobackups
Explanation
Archive Log mode combined with sufficient archive log retention for 7 days enables point-in-time recovery (PITR). Flashback Database alone cannot guarantee 7-day recovery without archive logs.
What is the primary purpose of the Fast Recovery Area (FRA)?
-
A
To encrypt sensitive data at rest within the database
-
B
To replicate database files across multiple nodes in a Data Guard configuration
-
C
To centralize storage for backup files, archive logs, and recovery-related files for faster recovery operations
✓ Correct
-
D
To store user data and improve query performance through caching
Explanation
The FRA (Fast Recovery Area) is a dedicated disk location that stores backups, archive logs, and flashback logs, enabling faster and more organized recovery operations.
You notice that a long-running SQL query is consuming excessive CPU and memory resources. Which view should you query to identify the session consuming the most resources?
-
A
V$SQL_WORKAREA for memory allocation details of specific SQL operations
-
B
V$ACTIVE_SESSION_HISTORY for historical analysis of resource consumption
-
C
V$SESSSTAT combined with V$SESSION to correlate CPU and memory metrics
✓ Correct
-
D
V$SESSION_LONGOPS
Explanation
V$SESSSTAT provides detailed statistics per session (including CPU and memory), which can be joined with V$SESSION to identify the problematic session and its resource usage patterns.
When configuring Oracle Net Services, which file contains the listener configuration and specifies which databases and services the listener will manage?
-
A
listener.ora
✓ Correct
-
B
sqlnet.ora
-
C
init.ora
-
D
tnsnames.ora
Explanation
The listener.ora file contains Listener process configuration, including which databases the listener manages and the protocols it listens on.
You have configured Oracle Enterprise Manager Cloud Control to monitor 50 databases across your organization. A database is showing a critical alert for high redo log generation. Where would you check detailed metrics to diagnose the root cause?
-
A
The listener.ora file to check if the listener is properly configured for all databases
-
B
Automatic Workload Repository (AWR) reports to review historical performance metrics and redo generation patterns
✓ Correct
-
C
Database Alert Log and V$LOG_HISTORY to analyze log switch frequency and redo rate
-
D
V$SESSION to identify active sessions generating DML statements
Explanation
AWR reports provide comprehensive historical data on database performance, including redo generation rates, which helps identify trends and the actual cause of high redo log activity.
A production database experiences intermittent performance degradation during peak hours. You want to establish a performance baseline and identify when degradation occurs. Which approach is most appropriate?
-
A
Run DBMS_STATS.GATHER_DATABASE_STATS multiple times daily to keep statistics current
-
B
Increase the LOG_ARCHIVE_DEST_1 parameter to ensure all redo logs are preserved for analysis
-
C
Collect AWR snapshots regularly and compare reports during baseline periods versus degraded periods
✓ Correct
-
D
Enable SQL trace (10046 event) on all sessions to capture all SQL statements executed
Explanation
AWR provides periodic snapshots of database activity; comparing baseline AWR reports with those from degradation periods clearly identifies performance changes and their causes.
You are managing tablespace fragmentation and want to coalesce free space in a locally managed tablespace. Which statement correctly coalesces free extents?
-
A
ALTER TABLE table_name MOVE TABLESPACE users;
-
B
Free space is automatically coalesced in locally managed tablespaces, so manual coalescing is not necessary
✓ Correct
-
C
ALTER TABLESPACE users DEALLOCATE UNUSED;
-
D
ALTER TABLESPACE users COALESCE;
Explanation
Locally managed tablespaces automatically coalesce adjacent free extents, eliminating the need for manual coalescing operations that were required with dictionary-managed tablespaces.
Which initialization parameter controls the maximum number of processes that can connect to the database simultaneously?
-
A
MAX_CONNECTIONS
-
B
PROCESSES
✓ Correct
-
C
MAX_SESSIONS
-
D
DB_PROCESSES
Explanation
The PROCESSES parameter specifies the maximum number of operating system processes that can connect to an Oracle instance.
You need to implement a strategy where archived redo logs are automatically backed up and deleted after backup completion. Which parameter should you configure?
-
A
LOG_ARCHIVE_DEST_1 with the DELETE option
✓ Correct
-
B
ARCHIVE_LAG_TARGET for automatic log rotation
-
C
RETENTION policy in RMAN with the REDUNDANCY clause
-
D
DB_RECOVERY_FILE_DEST_SIZE to automatically manage retention
Explanation
The LOG_ARCHIVE_DEST_1 parameter with the DELETE option automatically deletes archived logs after they are successfully backed up, implementing the desired backup-and-delete workflow.
A table in your database contains sensitive personal information and must be encrypted at the column level. Which Oracle feature provides transparent column-level encryption?
-
A
Tablespace Encryption
-
B
Transparent Data Encryption (TDE)
✓ Correct
-
C
Oracle Label Security (OLS)
-
D
Encrypted tablespaces with ENCRYPTION clause
Explanation
Transparent Data Encryption (TDE) supports column-level encryption using the ENCRYPT option in the column definition, providing transparent encryption and decryption without application changes.
When using RMAN to restore a database, you want to recover all changes up to but not including a specific time. Which RMAN RECOVER command option should you use?
-
A
RECOVER DATABASE UNTIL TIME '2024-01-15 14:30:00'
-
B
RECOVER DATABASE UNTIL TIMESTAMP '2024-01-15 14:30:00'
-
C
RECOVER DATABASE UNTIL CANCEL BEFORE '2024-01-15 14:30:00'
-
D
RECOVER DATABASE UNTIL BEFORE TIME '2024-01-15 14:30:00'
✓ Correct
Explanation
The UNTIL BEFORE TIME clause recovers the database to the point immediately before the specified time, excluding transactions at or after that time.
You are configuring a standby database using Oracle Data Guard. The primary database is in ARCHIVELOG mode and you want automatic failover capability. Which Data Guard protection mode should you use?
-
A
Maximum Performance mode with asynchronous redo log transmission
-
B
Maximum Availability mode with synchronous redo log transmission and at least one standby synchronized
-
C
Maximum Protection mode requiring all standby databases to acknowledge redo before the primary commits
✓ Correct
-
D
Minimum Protection mode with no guarantees of redo log transmission to standby databases
Explanation
Maximum Protection mode ensures zero data loss during failover by requiring acknowledgment from at least one standby before the primary commits, meeting the automatic failover requirement with data safety.
Which parameter controls the interval at which DBWR flushes dirty buffers from the SGA to disk?
-
A
DB_WRITER_PROCESSES
-
B
Event 10046 logging provides flush details but doesn't control intervals
-
C
DB_BLOCK_CHECKSUM controls checksum validation, not flush intervals
✓ Correct
-
D
CHECKPOINT_PROCESS_STYLE with the BACKGROUND option
Explanation
DBWR is a background process that flushes dirty buffers based on checkpoints and log switches; no specific parameter controls flush intervals—DBWR operates opportunistically based on database events and thresholds.
After a failed RMAN restore operation, you need to verify which backup sets are valid and usable. Which RMAN command will validate all backup sets in the repository?
-
A
LIST BACKUP;
-
B
RESTORE VALIDATE;
-
C
VALIDATE BACKUPSET ALL;
✓ Correct
-
D
BACKUP VALIDATE;
Explanation
The VALIDATE BACKUPSET ALL command in RMAN checks all backup sets for corruption and validity without actually restoring data, helping identify usable backups.
You want to implement an automated job that backs up the database every night at 10 PM and sends an email notification on completion or failure. Which Oracle component should you use?
-
A
Oracle Enterprise Manager Cloud Control Job Scheduler exclusively
-
B
DBMS_JOB package with DBMS_MAIL for notifications
-
C
Operating system cron jobs calling RMAN scripts with mail commands
-
D
Oracle Scheduler (DBMS_SCHEDULER) with job notifications and email chain actions
✓ Correct
Explanation
DBMS_SCHEDULER is the modern Oracle scheduling tool that supports job definitions, notifications via email through job chains, and is the recommended approach for automated database tasks.
A database is running in NOARCHIVELOG mode and you need to change it to ARCHIVELOG mode with minimal downtime. What is the correct sequence of steps?
-
A
Issue ALTER DATABASE ARCHIVELOG while the database is open, then restart the listener
-
B
Issue SHUTDOWN NORMAL, then reconfigure init.ora with log_archive_dest_1, then startup with MOUNT and ALTER DATABASE ARCHIVELOG
-
C
Issue SHUTDOWN IMMEDIATE, then startup MOUNT, then ALTER DATABASE ARCHIVELOG, then ALTER DATABASE OPEN
✓ Correct
-
D
Create archive log destinations first, issue SHUTDOWN ABORT, then startup MOUNT with archivelog enabled in initialization parameters
Explanation
ARCHIVELOG mode requires the database to be in MOUNT (not OPEN) state. The correct sequence is shutdown, mount the database, enable archivelog, and then open it.
You observe that a specific table experiences significant fragmentation due to frequent DML operations. Which method is most efficient for defragmenting this table without causing extended downtime?
-
A
ALTER TABLE table_name SHRINK SPACE CASCADE during a maintenance window
✓ Correct
-
B
Use ANALYZE TABLE and then REBUILD INDEX to reorganize storage
-
C
Execute OPTIMIZE SPACE command to consolidate fragmented rows automatically
-
D
Create a new table with the same structure, copy data using INSERT AS SELECT, then rename tables and drop the old table
Explanation
ALTER TABLE SHRINK SPACE compacts a table and reclaims unused space with minimal blocking (online shrink), making it the most efficient method for addressing fragmentation.
When configuring Oracle Database Network Encryption, which sqlnet.ora parameter specifies the encryption algorithms that can be used for client-server communication?
-
A
SQLNET.ENCRYPTION_ALGORITHMS_CLIENT
✓ Correct
-
B
SQLNET.ENCRYPTION_ALGORITHMS_SERVER
-
C
SQLNET.ENCRYPTION_TYPES with ALGORITHM='AES256'
-
D
ENCRYPTION_ALGORITHMS in the SQLNET_CRYPTO section
Explanation
The SQLNET.ENCRYPTION_ALGORITHMS_CLIENT parameter in sqlnet.ora specifies which encryption algorithms the client will accept, controlling encryption negotiation with the server.
A table contains 100 million rows and you need to create an index on a large column. Creating a traditional B-tree index proves too slow. Which indexing technique provides faster index creation with potential space savings?
-
A
Partitioned indexes on the same partitioning key as the table
-
B
Function-based indexes using computed columns
-
C
Bitmap indexes for lower cardinality columns
-
D
Compressed indexes or parallel index creation with specific parallelism degree
✓ Correct
Explanation
Compressed indexes reduce space requirements and parallel index creation (PARALLEL clause) significantly accelerates index building on large tables by utilizing multiple processes.
You need to restore a database from a backup taken 3 days ago, but you want to recover all transactions up to 2 hours before the current time. Which combination of RMAN commands correctly accomplishes this?
-
A
RECOVER DATABASE UNTIL TIME '...' and archive logs must be available for the recovery period
✓ Correct
-
B
RESTORE DATABASE; RECOVER DATABASE UNTIL TIME '...'
-
C
All of the above are equivalent and will produce the same result
-
D
SET UNTIL TIME '...'; RESTORE DATABASE; RECOVER DATABASE
Explanation
To recover to a specific point in time, you must have the backup plus all archive logs from backup time to the recovery time. RESTORE restores the backup; RECOVER applies archive logs until the specified time.
Which Oracle background process is responsible for cleaning up rejected connections and managing connection pooling in the database listener?
-
A
SMON (System Monitor) manages instance recovery and resource cleanup
-
B
LMON (Lock Monitor) manages distributed lock coordination
-
C
PMON (Process Monitor) handles abnormal process termination and connection cleanup
✓ Correct
-
D
RECO (Recoverer) processes in-doubt distributed transactions
Explanation
PMON (Process Monitor) is responsible for detecting and cleaning up abnormal process terminations, managing connection resources, and handling connection pooling operations.
You are implementing a Disaster Recovery (DR) solution where the standby database must never lag more than 30 seconds behind the primary. Which Data Guard configuration and redo transport mechanism best meets this requirement?
-
A
Maximum Protection mode with SYNC redo transport, though it may impact primary database performance under heavy load
✓ Correct
-
B
Maximum Availability mode with SYNC redo transport and NET_TIMEOUT=30 to ensure synchronization within the RTO window
-
C
Snapshot Standby with synchronous redo log transmission and database refresh every 30 seconds
-
D
Maximum Performance mode with ASYNC redo transport and multiple standby databases for redundancy across regions
Explanation
Maximum Protection mode with synchronous redo transport ensures the standby is never more than a few seconds behind, though at the cost of potential performance impact when standby acknowledgment is slow.
A report job is scheduled to run daily using Oracle Scheduler, but it frequently encounters locking conflicts with OLTP transactions. How should you modify the job to reduce contention?
-
A
Change the job priority using the PRIORITY attribute and implement serialization with other critical jobs
-
B
Add a RESOURCE_PLAN to the job definition to restrict its resource consumption
-
C
Schedule the job during off-peak hours using the schedule_name attribute in DBMS_SCHEDULER
✓ Correct
-
D
Increase the CPU_PER_SESSION parameter to give the report job higher priority allocation
Explanation
Scheduling jobs during off-peak hours (using DBMS_SCHEDULER's scheduling capabilities) is the most straightforward approach to reduce contention with OLTP transactions.
Which parameter controls the maximum number of processes that can connect to an Oracle database instance?
-
A
DB_FILES
-
B
OPEN_CURSORS
-
C
PROCESSES
✓ Correct
-
D
MAX_STRING_SIZE
Explanation
The PROCESSES parameter specifies the maximum number of operating system user processes that can simultaneously connect to Oracle. This is a fundamental initialization parameter for database capacity planning.
You need to move a datafile from one location to another on the same server while the database is online. Which method is most appropriate?
-
A
Use OMF (Oracle Managed Files) to automatically relocate the datafile
-
B
Use ALTER DATABASE MOVE DATAFILE command with the database open
-
C
Offline the tablespace, copy the file, use ALTER DATABASE RENAME DATAFILE, and online the tablespace
✓ Correct
-
D
Perform a full database backup, restore the datafile, and recover the database
Explanation
To move a datafile while the database is open, you must offline the associated tablespace, physically move the file, rename the datafile reference in the database, and then online the tablespace. This maintains data integrity and allows continued database operation.
What is the primary purpose of the UNDO tablespace in Oracle Database?
-
A
To store redo log information for crash recovery
-
B
To cache frequently accessed data blocks to improve query performance
-
C
To store temporary sorting operations for large queries
-
D
To provide read consistency by maintaining before-image data and enabling rollback operations
✓ Correct
Explanation
The UNDO tablespace maintains undo records that provide read consistency for queries and allow transactions to be rolled back. It is essential for Oracle's MVCC (Multi-Version Concurrency Control) mechanism.
A user reports that their long-running query is waiting on a resource. You suspect there is a blocking lock. Which view should you query to identify which session is holding the lock?
-
A
V$LOCKED_OBJECT and DBA_LOCKS
✓ Correct
-
B
V$SESSION_LONGOPS
-
C
V$SESSION_WAIT
-
D
V$PROCESS
Explanation
V$LOCKED_OBJECT and DBA_LOCKS views show which objects are locked and by which sessions. These views are essential for diagnosing blocking lock situations in the database.
You want to implement automatic undo retention to help with long-running queries and Flashback operations. Which parameter must be set?
-
A
UNDO_RETENTION and the undo tablespace must be set to auto-extend
✓ Correct
-
B
TABLESPACE_EXTENT_MANAGEMENT must be LOCAL
-
C
UNDO_MANAGEMENT must be set to MANUAL
-
D
DB_RECOVERY_FILE_DEST must point to a fast storage location
Explanation
The UNDO_RETENTION parameter specifies how long undo data should be retained in seconds. When combined with an auto-extending undo tablespace, it ensures adequate undo for long-running queries and Flashback operations.
Which of the following best describes the role of the checkpoint process in Oracle Database?
-
A
It writes dirty blocks from the buffer cache to disk and updates the control file with the checkpoint SCN
✓ Correct
-
B
It archives filled redo log groups and manages log switch operations
-
C
It manages the allocation of new extents to growing tables
-
D
It records all committed transactions to the redo log files
Explanation
The checkpoint process writes modified data blocks from the SGA to disk and updates the control file with the current checkpoint SCN. This reduces recovery time and ensures data durability.
You are implementing a backup strategy that includes daily incremental backups. What is a key advantage of incremental backups over full backups?
-
A
They require less storage space and backup time because only changed blocks are backed up
✓ Correct
-
B
They allow you to restore individual tables without recovering the entire database
-
C
They automatically compress data and eliminate the need for archivelog mode
-
D
They eliminate the need for redo logs and provide instantaneous point-in-time recovery
Explanation
Incremental backups only capture blocks that have changed since the previous backup, significantly reducing backup time, network bandwidth, and storage requirements compared to full backups.
A tablespace is running out of space. You have added new datafiles, but space issues persist. Which of the following should you investigate first?
-
A
Drop unused indexes to free up space immediately
-
B
Enable compression on all tables in the tablespace
-
C
Increase the SGA to allow more data caching and reduce disk I/O
-
D
Check if there are large objects or tables consuming excessive space, and consider archiving or purging old data
✓ Correct
Explanation
Before adding more storage, you should identify what is consuming space. Large objects, unneeded data, or poorly designed tables may be the root cause. Archiving or purging old data is often more cost-effective than continuously adding storage.
Which initialization parameter controls the size of the Shared Pool, which caches SQL statements and their execution plans?
-
A
SGA_TARGET
-
B
PGA_AGGREGATE_TARGET
-
C
SHARED_POOL_SIZE
✓ Correct
-
D
DB_CACHE_SIZE
Explanation
SHARED_POOL_SIZE directly controls the size of the Shared Pool component of the SGA. A larger Shared Pool allows more SQL statements and execution plans to be cached, improving performance for frequently executed queries.
You need to perform a point-in-time recovery to restore the database to a specific time in the past. Which method is most appropriate when the database is in ARCHIVELOG mode?
-
A
Use the FLASHBACK DATABASE command to rewind to the desired timestamp
-
B
Restore all datafiles from the most recent backup and apply redo logs up to the target time using RECOVER DATABASE UNTIL TIME
✓ Correct
-
C
Re-create the control file and manually apply archived redo logs using SQL*Plus
-
D
Restore from a backup taken before the target time and use the incomplete recovery option
Explanation
The standard method for point-in-time recovery in ARCHIVELOG mode is to restore from the most recent backup and apply archived redo logs up to the target time using the RECOVER DATABASE UNTIL TIME command.
A database experiences high disk I/O on the redo log files. What might be the cause, and how would you address it?
-
A
Archive destination is misconfigured; disable archiving to reduce I/O overhead
-
B
Redo log file size is too small, causing frequent log switches; consider increasing the size of redo log groups
✓ Correct
-
C
The database is running too many queries; implement query optimization to reduce redo generation
-
D
The log buffer is too small; increase LOG_BUFFER to reduce log write frequency
Explanation
If redo log files are undersized, the log buffer fills quickly, causing frequent log switches and increased disk I/O. Increasing redo log file size allows longer intervals between switches, reducing disk write pressure.
You want to grant a user the ability to create tables, indexes, and views in their own schema, but prevent them from creating other objects. Which approach is best?
-
A
Grant the CREATE SESSION privilege and CREATE TABLE, CREATE INDEX, CREATE VIEW system privileges without ADMIN OPTION
✓ Correct
-
B
Grant the RESOURCE role, which includes all necessary creation privileges
-
C
Grant the CREATE TABLE, CREATE INDEX, and CREATE VIEW system privileges with ADMIN OPTION
-
D
Grant the CREATE SESSION role and specific object privileges for each table
Explanation
Granting specific system privileges (CREATE TABLE, CREATE INDEX, CREATE VIEW) without ADMIN OPTION allows the user to create those objects only in their own schema. ADMIN OPTION allows the user to grant these privileges to others, which you want to prevent.
What is the primary function of the alert log file in Oracle Database?
-
A
To record all user login and logout activities for security auditing
-
B
To store archived redo log information before it is written to backup media
-
C
To log all SQL statements executed by privileged users for compliance purposes
-
D
To record database errors, warnings, internal errors, and significant events that occur during database operation
✓ Correct
Explanation
The alert log is a chronological log of database errors, warnings, and significant events. It is essential for diagnosing problems and monitoring database health. The location is determined by the DIAGNOSTIC_DEST parameter.
You are designing a backup strategy for a critical production database. The database is in ARCHIVELOG mode. Which combination provides the best protection against data loss?
-
A
Weekly full backups only, with continuous monitoring of disk space
-
B
Daily incremental backups with log archiving disabled to reduce complexity
-
C
Daily full backups with continuous archiving and off-site storage of backup sets and archived logs
✓ Correct
-
D
Monthly full backups with weekly incremental backups but no log archiving
Explanation
For critical databases, daily full or incremental backups combined with continuous archiving and off-site storage provide the best protection. This minimizes data loss risk and enables recovery to any point in time.
A table has grown significantly, and queries are becoming slower. You decide to partition the table. Which partitioning method is best when you want to divide data based on date ranges?
-
A
Hash partitioning for even distribution of data across partitions
-
B
Composite partitioning to combine multiple partitioning strategies
-
C
List partitioning to group specific discrete values into individual partitions
-
D
Range partitioning to divide data into partitions based on column values within specified ranges
✓ Correct
Explanation
Range partitioning is ideal for time-based data because it divides rows into partitions based on ranges of column values (e.g., by month or year). This is the most common approach for date-based partitioning.
Which dynamic performance view can be used to monitor real-time session activity and resource consumption?
-
A
V$ARCHIVE_DEST to monitor backup destinations
-
B
DBA_TABLES to check table sizes and row counts
-
C
V$SESSION to view current session details and V$SESSTAT for session statistics
✓ Correct
-
D
V$SESSION_LONGOPS
Explanation
V$SESSION displays information about all current sessions, while V$SESSTAT provides session-level statistics on CPU, memory, and I/O. Together, they offer comprehensive real-time monitoring of session activity.
You need to implement a data dictionary view that shows all privileges granted to a specific user. Which approach would you use?
-
A
Create a custom view based on the underlying SYS tables because data dictionary views do not show privilege information
-
B
Query USER_TAB_PRIVS and USER_SYS_PRIVS views, which automatically filter for the current user only
-
C
Query DBA_TAB_PRIVS and DBA_SYS_PRIVS with the GRANTEE column filtered for the user
✓ Correct
-
D
Use the DBMS_METADATA.GET_DDL function to retrieve the original GRANT statements for the user
Explanation
DBA_TAB_PRIVS (for object privileges) and DBA_SYS_PRIVS (for system privileges) are the data dictionary views that show granted privileges. Filtering the GRANTEE column returns privileges for a specific user.
A database has experienced a media failure on a non-critical datafile. The tablespace containing the file is still needed. What is the best approach for recovery with minimal downtime?
-
A
Use RMAN to perform an online tablespace recovery while the database remains open and available
-
B
Offline the affected tablespace, restore the datafile from backup, apply archived redo logs, and online the tablespace
✓ Correct
-
C
Drop the tablespace and recreate it from scratch with new datafiles
-
D
Bring the database to a complete halt and perform a full restore from backup
Explanation
For a single datafile failure in a non-critical tablespace, offlining the tablespace allows the rest of the database to remain available. Then restore and recover just that datafile before bringing the tablespace online.
Which parameter determines whether the database automatically generates statistics for the optimizer when they are missing?
-
A
OPTIMIZER_USE_SQL_PLAN_BASELINES to enable adaptive optimization
-
B
STATISTICS_LEVEL set to BASIC or ALL
✓ Correct
-
C
OPTIMIZER_DYNAMIC_SAMPLING set to a value greater than 0 to gather statistics on small tables
-
D
CONTROL_MANAGEMENT_PACK_ACCESS to enable or disable SQL monitoring
Explanation
The STATISTICS_LEVEL parameter controls the level of automatic statistics collection. When set to ALL, the database automatically gathers optimizer statistics for missing or stale data.
You want to ensure that a user cannot exceed a specific amount of CPU time per session. Which resource limit should you implement?
-
A
An initialization parameter CPU_MAX_TIME set in the database configuration
-
B
A role-based privilege restriction that limits CPU allocation
-
C
A profile with CPU_PER_SESSION limit assigned to the user
✓ Correct
-
D
A database job that monitors and terminates excessive CPU-consuming sessions automatically
Explanation
CPU_PER_SESSION is a resource limit within a database profile that restricts CPU usage per session, measured in centiseconds. Assigning this profile to a user enforces the limit automatically.
A table has multiple columns with NULL values, and you want to optimize queries that check for the presence or absence of NULL. What should you do?
-
A
Enable bitmap indexes instead of B-tree indexes for better NULL handling
-
B
Create an index on the columns to improve NULL value lookups
-
C
Use a function-based index with NVL() or COALESCE() to index NULL and non-NULL values consistently
✓ Correct
-
D
Modify the table to disallow NULL values by adding NOT NULL constraints
Explanation
A function-based index using NVL() or COALESCE() creates an index on the result of the function, allowing the optimizer to use the index for queries that filter on NULL values. Standard B-tree indexes do not include all NULL values.
You need to configure database auditing to track when users attempt to execute privileged operations. Which auditing approach should you use?
-
A
Use AUDIT command with specific system privileges like AUDIT EXECUTE ON or AUDIT DROP ANY TABLE
-
B
Configure OS-level auditing through the database server's operating system settings
-
C
Enable fine-grained auditing with DBMS_FGA package to audit specific SQL statements and conditions
-
D
Enable unified auditing for comprehensive tracking of administrative and user operations
✓ Correct
Explanation
Unified auditing provides comprehensive tracking of all database activity including administrative operations, user actions, and security-relevant events. It is the recommended modern approach in newer Oracle versions.
What is the impact of setting LOG_ARCHIVE_DEST_STATE_<n> to DEFER for an archiving destination?
-
A
It temporarily disables archiving to that destination without affecting other active destinations
✓ Correct
-
B
It permanently removes the destination from the configuration and requires a database restart to reconfigure
-
C
It causes an immediate log switch and forces archiving of all pending redo logs
-
D
It converts the destination from synchronous to asynchronous archiving mode to improve performance
Explanation
Setting LOG_ARCHIVE_DEST_STATE_<n> to DEFER temporarily disables archiving to that destination. This allows maintenance without permanently removing the configuration. Other destinations continue to function normally.
A user reports that they cannot access a table they previously had access to. The user's privileges were revoked yesterday. Which step would restore access with the least disruption?
-
A
Grant the specific object privilege (SELECT, INSERT, UPDATE, DELETE) directly to the user or re-grant through a role
✓ Correct
-
B
Create a new user account with the same name and re-establish all permissions
-
C
Re-grant the CONNECT and RESOURCE roles to reset all user privileges
-
D
Restore the user account from a backup taken before the revocation occurred
Explanation
The quickest and least disruptive approach is to re-grant the necessary object privileges either directly or through a role. This restores access without recreating the user or affecting other database objects.
You want to implement a recovery strategy where the database can be recovered to any point in time within the last 7 days. What configuration is required?
-
A
Enable block change tracking and configure RMAN with incremental backup strategy for 7-day recovery window
-
B
Configure Data Guard standby with 7-day log shipping to the standby database for point-in-time recovery
-
C
Enable ARCHIVELOG mode, set UNDO_RETENTION to 7 days, and enable FLASHBACK DATABASE with sufficient FRA space
✓ Correct
-
D
Set LOG_ARCHIVE_DEST to a local directory and enable continuous backups with BACKUP_RETENTION = 7
Explanation
To enable 7-day point-in-time recovery, enable ARCHIVELOG mode for archive retention, set UNDO_RETENTION to 604800 seconds (7 days), and enable FLASHBACK DATABASE in the FRA. Together these provide comprehensive recovery options.
When examining V$SESSION_WAIT, you notice many sessions waiting on 'db file scattered read'. What does this indicate?
-
A
Sessions are waiting for single-block reads from datafiles, typically due to index lookups
-
B
Sessions are waiting for redo log buffer space, indicating high transaction volume
-
C
Sessions are waiting for multi-block reads from datafiles, typically during full table scans or index fast full scans
✓ Correct
-
D
Sessions are waiting for writes to complete before proceeding, indicating slow disk writes
Explanation
The 'db file scattered read' wait event indicates sessions are waiting for multi-block reads from disk. This is common during full table scans and index fast full scans. High occurrences may suggest the need for more memory or query optimization.
You want to create a tablespace that grows automatically when space is needed. Which characteristics should the tablespace have?
-
A
Dictionary-managed segments with automatic extent allocation based on table growth
-
B
UNDO tablespace with automatic undo retention to manage space allocation
-
C
AUTOEXTEND OFF to prevent uncontrolled growth and manual space management
-
D
Datafiles with AUTOEXTEND ON, EXTENT_MANAGEMENT LOCAL, and SEGMENT_SPACE_MANAGEMENT AUTO
✓ Correct
Explanation
A self-extending tablespace requires datafiles with AUTOEXTEND ON, local extent management (EXTENT_MANAGEMENT LOCAL), and automatic segment space management (SEGMENT_SPACE_MANAGEMENT AUTO). This provides efficient and automatic space administration.
You are managing an Oracle Database 19c instance and need to implement a backup strategy that ensures point-in-time recovery. Which initialization parameter must be set to enable the database to generate archive log files?
-
A
log_archive_dest_1
-
B
db_archive_state
-
C
db_recovery_file_dest
-
D
log_archive_mode
✓ Correct
Explanation
The log_archive_mode parameter controls whether the database operates in ARCHIVELOG mode or NOARCHIVELOG mode. When set to TRUE, archive log files are generated automatically, enabling point-in-time recovery. The other parameters configure archive destinations but do not enable archiving itself.
A database administrator needs to recover a table that was accidentally dropped 2 hours ago. The database is running in ARCHIVELOG mode with flashback enabled. Which recovery method would be most efficient in this scenario?
-
A
Use the FLASHBACK TABLE command to recover the dropped table to its state before the DROP operation
✓ Correct
-
B
Use SQL*Loader to reload the data from an export file created before the drop occurred
-
C
Perform a complete database restore from the last full backup and apply archive logs up to the point before the table drop
-
D
Restore only the datafile containing the table and perform partial recovery
Explanation
FLASHBACK TABLE is the most efficient method to recover a dropped table when Flashback Database is enabled. It allows point-in-time recovery of a single table without affecting other objects or requiring a full database recovery. This operation is much faster than performing complete restore and recovery procedures.
You are configuring Oracle Data Guard for a production database. Which protection mode provides synchronous log transmission and guarantees zero data loss in case of primary failure?
-
A
Maximum Performance
-
B
Maximum Protection
✓ Correct
-
C
Optimal Protection
-
D
Maximum Availability
Explanation
Maximum Protection mode ensures synchronous transmission of redo logs to the standby database and commits are blocked if the standby cannot be updated. This guarantees zero data loss (RPO = 0) but may impact performance. Maximum Availability uses asynchronous transmission with safeguards, while Maximum Performance prioritizes performance over protection.
During a database audit, you discover that multiple user sessions have excessive privileges. You need to implement the principle of least privilege. Which feature allows you to grant a subset of privileges for a limited time period?
-
A
Privilege delegation through proxy authentication
-
B
Role-based access control with privilege inheritance
-
C
Temporary privileges using Oracle Database Vault
✓ Correct
-
D
Edition-based redefinition with restricted privileges
Explanation
Oracle Database Vault provides mechanisms to grant temporary privileges with automatic expiration, enabling enforcement of the principle of least privilege. Roles provide persistent groupings, proxy authentication enables delegation but not time-limited grants, and edition-based redefinition is for application versioning, not privilege management.
You are troubleshooting a performance issue in your Oracle Database 19c instance. The alert log shows excessive full table scans despite the presence of appropriate indexes. Which parameter adjustment would most likely help the optimizer make better decisions?
-
A
Increase db_file_multiblock_read_count to reduce I/O operations
-
B
Adjust optimizer_index_cost_adj to make index access more attractive to the optimizer
✓ Correct
-
C
Enable query_rewrite_enabled to allow materialized view rewrites
-
D
Decrease processes to reduce memory pressure on the SGA
Explanation
The optimizer_index_cost_adj parameter controls the perceived cost of index access relative to full table scans. Decreasing this value makes indexes appear more cost-effective, encouraging the optimizer to use them. The other options address different performance aspects but do not directly influence index selection decisions.
Your organization requires that all administrative activities on the Oracle Database be logged and audited for compliance purposes. Which feature provides real-time auditing of privileged user actions with minimal performance overhead?
-
A
Operating system level audit logs with logon triggers
-
B
Unified Audit Trail with fine-grained audit policies
✓ Correct
-
C
Application context variables with custom audit tables
-
D
Standard Database Auditing with AUDIT command
Explanation
Unified Auditing (available in Oracle Database 12c and later) provides comprehensive, real-time auditing of privileged actions with flexible audit policies and centralized audit trail management. It has lower overhead than traditional auditing and provides better filtering and reporting capabilities compared to standard database auditing.
You are managing a large Oracle Database with multiple tablespaces. A tablespace has approached its maximum size limit, and you need to extend storage capacity. Which approach is NOT a valid method to increase tablespace space?
-
A
Migrate the tablespace to Automatic Storage Management (ASM) with larger allocation
✓ Correct
-
B
Increase the size of an existing datafile by using ALTER DATABASE DATAFILE
-
C
Enable autoextend on existing datafiles with a specified increment
-
D
Add a new datafile to the existing tablespace
Explanation
While ASM can be used for storage management, migrating a tablespace is not a direct method to extend its capacity—it is a storage architecture change. Valid methods include adding new datafiles, resizing existing datafiles with ALTER DATABASE DATAFILE, or enabling autoextend. Migration to ASM would require additional steps and is not a straightforward capacity extension.
You need to implement a disaster recovery solution that maintains a synchronized copy of your production database in a remote location. The recovery time objective (RTO) is 4 hours and recovery point objective (RPO) is 1 hour. Which Data Guard configuration would be most appropriate?
-
A
Physical standby in Maximum Performance mode with hourly log transmission
✓ Correct
-
B
Golden Gate replication with scheduled apply at 1-hour intervals
-
C
Logical standby with SQL Apply disabled and manual synchronization
-
D
Physical standby in Maximum Availability mode with asynchronous log transmission and Broker monitoring
Explanation
A physical standby in Maximum Performance mode with hourly log transmission meets the stated RPO of 1 hour and RTO of 4 hours. Physical standbys provide faster recovery than logical standbys or Golden Gate, and Maximum Performance mode allows asynchronous transmission suitable for these objectives. Golden Gate and logical standbys add unnecessary complexity for this requirement.
During database maintenance, you need to move a datafile from one disk location to another without shutting down the database. Which procedure correctly accomplishes this task?
-
A
ALTER DATABASE DATAFILE 'old_path' OFFLINE; ALTER SYSTEM MOVE DATAFILE old_path TO new_path; ALTER DATABASE DATAFILE 'new_path' ONLINE;
-
B
ALTER TABLESPACE tablespace_name OFFLINE IMMEDIATE; ALTER DATABASE MOVE DATAFILE 'old_path' TO 'new_path'; ALTER TABLESPACE tablespace_name ONLINE;
-
C
ALTER TABLESPACE tablespace_name OFFLINE; ALTER DATABASE MOVE DATAFILE 'old_path' TO 'new_path'; ALTER TABLESPACE tablespace_name ONLINE;
-
D
ALTER DATABASE DATAFILE 'old_path' OFFLINE; Copy or move the physical file to new location; ALTER DATABASE RENAME DATAFILE 'old_path' TO 'new_path'; ALTER DATABASE DATAFILE 'new_path' ONLINE;
✓ Correct
Explanation
The correct procedure involves taking the datafile offline, moving the physical file at the operating system level, using ALTER DATABASE RENAME DATAFILE to update the data dictionary, and bringing the datafile back online. This allows datafile relocation without full database shutdown. The other options contain incorrect syntax or non-existent commands.
You are configuring resource management for your Oracle Database to ensure critical applications receive adequate CPU and memory resources. Which initialization parameter defines resource allocation constraints for consumer groups?
-
A
resource_mgmt_control
-
B
memory_target
-
C
db_recovery_file_dest_size
-
D
resource_limits
✓ Correct
Explanation
The resource_limits parameter enables resource limit enforcement at the session level in conjunction with the resource manager. When set to TRUE, it enforces limits defined in resource consumer groups such as CPU, memory, and session limits. memory_target controls total SGA/PGA size but not consumer group allocation, and db_recovery_file_dest_size controls Flash Recovery Area size.
Which parameter should you set to enable automatic undo management in Oracle Database?
-
A
UNDO_RETENTION = 900
-
B
UNDO_MANAGEMENT = AUTO
✓ Correct
-
C
UNDO_TABLESPACE = UNDOTBS1
-
D
AUTOMATIC_UNDO = TRUE
Explanation
The UNDO_MANAGEMENT parameter controls whether undo is managed automatically or manually; setting it to AUTO enables Automatic Undo Management (AUM).
You need to recover a tablespace that was accidentally dropped. Which recovery method would be most appropriate if you have recent RMAN backups?
-
A
Execute ALTER DATABASE RECOVER TABLESPACE command followed by media recovery
-
B
Use Data Pump to import the tablespace metadata from an export dump file
-
C
Use flashback database to restore the entire database to a point before the drop
-
D
Restore the tablespace from RMAN backup and perform point-in-time recovery
✓ Correct
Explanation
RMAN can restore specific tablespaces from backups and perform point-in-time recovery to recover the dropped tablespace without recovering the entire database.
What is the primary advantage of using Oracle Data Guard with synchronous redo transmission (Maximum Protection mode)?
-
A
Automatic failover without requiring manual intervention or configuration
-
B
Improved performance of the primary database due to asynchronous writes
-
C
Guaranteed zero data loss in case of primary database failure
✓ Correct
-
D
Reduced network bandwidth consumption between primary and standby databases
Explanation
Maximum Protection mode ensures that redo is written synchronously to the standby before commit on the primary, guaranteeing zero data loss (RPO=0).
When using RMAN, which command would you use to create a backup of the database that includes all datafiles, control files, and server parameter file?
-
A
BACKUP FULL DATABASE INCLUDING CONTROLFILE AND SPFILE;
-
B
BACKUP DATABASE INCLUDE CURRENT CONTROLFILE SPFILE;
-
C
BACKUP DATABASE;
✓ Correct
-
D
BACKUP DATABASE PLUS ARCHIVELOG;
Explanation
The BACKUP DATABASE command automatically includes all datafiles, the current control file, and the SPFILE by default in RMAN backups.
You are monitoring a database and notice that the SMON process is consuming excessive CPU. Which condition would most likely cause this behavior?
-
A
High redo log generation due to heavy DML activity across multiple sessions
-
B
A large number of dead transactions that need cleanup and coalescing of free space in tablespaces
✓ Correct
-
C
Excessive sorting operations in user queries requiring temporary tablespace space
-
D
Insufficient shared pool memory causing repeated soft parse operations
Explanation
SMON (System Monitor) is responsible for cleaning up dead transactions and coalescing free space; excessive activity indicates many transactions need cleanup.
In a Data Guard environment, what is the primary purpose of the LOG_ARCHIVE_DEST_n parameter?
-
A
To specify the retention period for archived redo logs before deletion
-
B
To configure destinations for redo log archiving including remote standby database locations
✓ Correct
-
C
To enable compression of archived redo logs to save storage space
-
D
To define the location where archived redo log files are stored on the primary database
Explanation
LOG_ARCHIVE_DEST_n parameters define archiving destinations which can include local or remote locations (standby databases), with various attributes like synchronous transmission.
Which view should you query to monitor the current status of RMAN backup jobs and their progress?
-
A
V$BACKUP_PIECE
-
B
V$RMAN_BACKUP_JOB_DETAILS
✓ Correct
-
C
V$RMAN_OUTPUT
-
D
V$BACKUP_SET
Explanation
V$RMAN_BACKUP_JOB_DETAILS provides detailed information about completed and running RMAN backup jobs including status and progress metrics.
You need to implement a solution where the standby database processes redo logs while remaining available for read-only queries. Which Data Guard configuration would you implement?
-
A
Logical Standby with SQL Apply processing redo in real time
-
B
Active Data Guard with read-only standby operations and real-time redo application
✓ Correct
-
C
Physical Standby with SQL Apply enabled
-
D
Snapshot Standby configuration with synchronous redo transmission
Explanation
Active Data Guard allows the physical standby database to apply redo logs in real-time (Managed Recovery Mode) while serving read-only queries simultaneously.
What is the purpose of the DBMS_REPAIR package in Oracle Database administration?
-
A
To restore corrupted database objects from RMAN backup sets without stopping the database
-
B
To detect, mark, and repair logical and physical corruption in tables and indexes
✓ Correct
-
C
To perform online defragmentation and reorganization of fragmented tables and indexes
-
D
To automatically repair corrupted data blocks by reconstructing them from backup copies
Explanation
DBMS_REPAIR provides procedures to detect corrupt blocks, mark them, and repair logical corruption in tables and indexes using skip_corrupt_blocks and fix_corrupt_blocks.
Which initialization parameter controls the maximum number of processes that can be created in an Oracle instance?
-
A
DATABASE_PROCESSES
-
B
MAX_PROCESSES
-
C
PROCESSES
✓ Correct
-
D
SESSION_PROCESSES
Explanation
The PROCESSES parameter specifies the maximum number of OS processes that can connect to the database; it must be set before database startup.
You are implementing a backup strategy and need to ensure that full backups are retained for compliance purposes. Which RMAN retention policy would you implement?
-
A
CONFIGURE RETENTION POLICY TO REDUNDANCY 4;
✓ Correct
-
B
RETENTION POLICY TO REDUNDANCY 4 FOR COMPLIANCE
-
C
RETENTION POLICY TO RECOVERY WINDOW OF 30 DAYS
-
D
RETENTION POLICY TO KEEP BACKUP FOR 30 DAYS
Explanation
The CONFIGURE RETENTION POLICY command sets RMAN retention rules; REDUNDANCY specifies the number of backup copies to retain for each datafile.
When you execute RMAN RECOVER command on a physical standby database, what must be true for recovery to proceed successfully?
-
A
The standby database must be in MOUNT state and all archived logs must be available locally
✓ Correct
-
B
The primary database must be shut down and all redo logs must be transmitted to the standby before recovery starts
-
C
Recovery can only proceed if the standby is converted to a snapshot standby configuration first
-
D
Standby Redo Logs must be configured and the standby database must have sufficient resources to apply redo concurrently
Explanation
RMAN recovery on standby requires the database in MOUNT state; standby must have access to archived logs needed for recovery from the point of backup.
What is the primary function of the archiver (ARCn) background process in Oracle Database?
-
A
To monitor redo log generation and trigger automatic backups when thresholds are exceeded
-
B
To compress and encrypt redo logs before storing them in backup locations
-
C
To copy filled redo log groups to the archive log destination for long-term retention
✓ Correct
-
D
To transmit redo logs to standby databases in a Data Guard environment
Explanation
The ARCn process automatically copies completed redo log files to archive log destinations when the database is in ARCHIVELOG mode.
You need to perform a point-in-time recovery (PITR) of a single table without recovering the entire database. Which approach would you use?
-
A
Use flashback table with the ENABLE ROW MOVEMENT clause on the target table
-
B
Execute RMAN RECOVER TABLE command to restore the table from backup to a point in time
-
C
Clone the database to a different location, perform PITR there, and export the table back
✓ Correct
-
D
Export the table using Data Pump from a backup database recovered to the target time
Explanation
Single table PITR typically requires cloning/duplicating the database to a point-in-time, extracting the table via Data Pump, and importing it into the production database.
Which SQL statement would you use to check the current size and utilization of the UNDO tablespace?
-
A
SELECT TABLESPACE_NAME, SUM(BYTES), SUM(BLOCKS) FROM DBA_EXTENTS WHERE TABLESPACE_NAME='UNDOTBS1';
-
B
SELECT TABLESPACE_NAME, SUM(BYTES) FROM DBA_DATA_FILES WHERE TABLESPACE_NAME='UNDOTBS1';
✓ Correct
-
C
SELECT TABLESPACE_NAME, BYTES, FREE_SPACE FROM V$UNDOSTAT WHERE TABLESPACE_NAME='UNDOTBS1';
-
D
SELECT TABLESPACE_NAME, SUM(BYTES) FROM DBA_FREE_SPACE WHERE TABLESPACE_NAME='UNDOTBS1';
Explanation
Querying DBA_DATA_FILES with the UNDOTBS1 tablespace name provides the allocated size of the undo tablespace.
In an Oracle RAC environment, which component is responsible for maintaining cache coherency across multiple instances?
-
A
The Distributed Lock Manager (DLM) running on the primary database node
-
B
The Instance Lock Manager (ILM) coordinated through the cluster interconnect
-
C
The Cluster Ready Services (CRS) and Cluster Synchronization Services (CSS)
-
D
The Global Cache Service (GCS) and Global Enqueue Service (GES)
✓ Correct
Explanation
GCS and GES are RAC services that manage cache coherency by coordinating block access and lock requests across multiple instances in the cluster.
What does the COMPATIBLE initialization parameter determine?
-
A
Whether the database can be patched with interim patches from different vendor suppliers
-
B
The character set compatibility for data migration from legacy systems
-
C
The database features and behavior that are enabled based on the specified Oracle version compatibility level
✓ Correct
-
D
The minimum software version required to connect to the database using client applications
Explanation
COMPATIBLE specifies the minimum database release level for backward compatibility; it determines which features and behaviors are available in the running database.
You are implementing block change tracking to improve RMAN incremental backup performance. Which file stores the change tracking data?
-
A
Change tracking data stored in a dedicated tablespace named CHANGE_TRACKING_TS
-
B
The change tracking file specified by DB_CREATE_FILE_DEST parameter
-
C
The control file and each datafile which record block changes internally
-
D
The change tracking file whose location is set by DB_BLOCK_CHANGE_TRACKING_FILE parameter
✓ Correct
Explanation
DB_BLOCK_CHANGE_TRACKING_FILE parameter specifies the location of the change tracking file used by RMAN to identify changed blocks since the last backup.
Which situation would require you to perform an incomplete recovery rather than complete recovery?
-
A
When the database has missing or corrupted archive logs that prevent applying all transactions
✓ Correct
-
B
When online redo logs are missing and only cold backups of the datafiles are available
-
C
When you need to recover the database to a specific point in time before a user error occurred
-
D
When the recovery catalog is unavailable and you must use control file backups instead
Explanation
Incomplete recovery is necessary when archive logs are missing or corrupted, preventing the application of all redo through the current time.
In a Data Guard environment, what does the DB_UNIQUE_NAME parameter identify?
-
A
The unique database identifier used by Oracle Net for client connections to any database in the Data Guard configuration
-
B
The unique service name registered with the listener that routes connections to the appropriate Data Guard database
-
C
The globally unique database name combined with the instance number to create a unique instance identifier across the cluster
-
D
A unique name for each database instance within a Data Guard configuration to distinguish the primary and standby databases
✓ Correct
Explanation
DB_UNIQUE_NAME provides a unique identifier for each database in a Data Guard setup, allowing proper configuration and distinction between primary and standby databases.
You need to restore a datafile that was accidentally deleted from disk. The database is open and you don't want to shut it down. Which steps would you follow?
-
A
Create a new empty datafile with ALTER DATABASE DATAFILE ADD command and then restore data using Data Pump import
-
B
Shut down the database cleanly, restore the datafile from backup, and restart the database with automatic recovery
-
C
Take the datafile offline, restore it from backup using RMAN, bring it online, and perform recovery
✓ Correct
-
D
Use RMAN to restore the datafile to a new location while the database is online, then rename the datafile using ALTER DATABASE
Explanation
To restore a deleted datafile while the database is open: take it offline with ALTER DATABASE, restore via RMAN, bring it online, and recover to apply missing transactions.
Which view would you query to identify which tablespaces contain segments that are experiencing fragmentation?
-
A
DBA_SEGMENTS and DBA_EXTENTS to analyze extent allocation patterns
-
B
DBA_FREE_SPACE joined with DBA_TABLESPACES to find fragmented free space
✓ Correct
-
C
V$SEGMENT_STATISTICS to find segments with high logical I/O operations
-
D
DBA_TABLES and DBA_INDEXES with the BLOCKS and EMPTY_BLOCKS columns
Explanation
Querying DBA_FREE_SPACE shows the distribution of free space across extents; high fragmentation is indicated by many small free extents in a tablespace.
What is the maximum number of redo log groups that can be configured for a single database instance?
-
A
No hard limit; the number is limited only by available disk space and practical considerations
✓ Correct
-
B
Unlimited; any number of redo log groups can be created as needed for performance
-
C
Maximum of 32 redo log groups per instance in any Oracle Database version
-
D
Maximum of 16 redo log groups determined by the LOG_GROUPS parameter
Explanation
Oracle does not impose a hard limit on the number of redo log groups; the practical limit depends on disk space, I/O performance, and administration overhead.
You are analyzing the performance impact of enabling archivelog mode on a production database. Which aspect would NOT typically cause performance degradation?
-
A
Redo log switch operations occurring more frequently if the archive destination is slow
-
B
Additional I/O operations to write archived redo logs to disk or remote locations
-
C
Increased CPU usage by the archiver process to copy and compress redo log files
-
D
Potential performance improvement due to better ability to perform incremental backups using block change tracking
✓ Correct
Explanation
Enabling archivelog mode enables incremental backups and block change tracking, which actually improves backup performance; the other options represent typical performance impacts.
You are managing an Oracle Database 19c instance and need to configure automatic undo management. Which initialization parameter controls the retention period for undo data?
-
A
UNDO_TABLESPACE_RETENTION
-
B
UNDO_MANAGEMENT_PERIOD
-
C
UNDO_RETENTION
✓ Correct
-
D
UNDO_SUPPRESS_ERRORS
Explanation
UNDO_RETENTION specifies the minimum amount of time in seconds that Oracle retains undo information. This parameter is essential for configuring automatic undo management behavior.
What is the primary advantage of using Oracle Data Guard with synchronous redo transport mode compared to asynchronous mode?
-
A
It requires less network bandwidth between the primary and standby databases
-
B
It reduces CPU consumption on the standby database server
-
C
It allows for faster redo log switches on the primary database
-
D
It guarantees zero data loss in case of a primary database failure
✓ Correct
Explanation
Synchronous redo transport (SYNC) waits for acknowledgment from the standby before committing, ensuring zero data loss. Asynchronous mode prioritizes performance but may lose some committed transactions.
You need to implement a backup strategy using Recovery Manager (RMAN). Which backup type creates a copy of only the database blocks that have changed since the last full backup?
-
A
Full backup
-
B
Differential backup
-
C
Incremental backup
✓ Correct
-
D
Cumulative backup
Explanation
Incremental backups capture only changed blocks, reducing backup time and storage. Differential incremental backups start from the last incremental backup, while cumulative incremental backups start from the last full backup.
When configuring Oracle Flashback Database, which initialization parameter must be set to enable the flashback logs?
-
A
DB_FLASHBACK_ENABLED
✓ Correct
-
B
DB_RECOVERY_FILE_DEST
-
C
LOG_ARCHIVE_DEST_1
-
D
DB_FLASHBACK_RETENTION_TARGET
Explanation
The DB_FLASHBACK_ENABLED parameter controls whether flashback logs are generated. Additional parameters like DB_FLASHBACK_RETENTION_TARGET specify the retention time in minutes.
You are troubleshooting a parameter file and discover that the database was started with a server parameter file (SPFILE). Which statement correctly describes the relationship between SPFILE and PFILE?
-
A
SPFILE is a binary file that persists parameter changes across restarts, while PFILE is a text file requiring manual editing
✓ Correct
-
B
SPFILE is a text file that must be manually edited, while PFILE is binary and updated automatically
-
C
SPFILE contains only dynamic parameters, while PFILE contains static parameters only
-
D
SPFILE and PFILE are identical formats that can be used interchangeably without conversion
Explanation
SPFILE (Server Parameter File) is a binary file that persists ALTER SYSTEM changes across database restarts. PFILE (initialization parameter file) is a text file that must be manually edited and does not persist dynamic changes.
During a database migration, you need to transport tablespaces across two Oracle Database 19c instances. What is the first step in the tablespace transport process?
-
A
Configure the initialization parameters on the destination database to match source
-
B
Set the source tablespace to read-only mode and generate a transport set
✓ Correct
-
C
Create an export dump file containing the tablespace metadata
-
D
Copy the datafiles to the destination server using operating system commands
Explanation
The first step in tablespace transport is to set the tablespace to read-only mode and use Data Pump or traditional export to generate the transport set metadata. This ensures data consistency during transport.
You are monitoring the alert log and notice frequent 'LGWR wait on REDO copy' wait events. What does this typically indicate?
-
A
Archive log destinations are unavailable or misconfigured
-
B
The redo log buffer is too large and causing memory pressure
-
C
Redo copy latch contention is occurring, suggesting disk I/O bottleneck on log files
-
D
The log writer process is waiting for free space in the redo log files
✓ Correct
Explanation
This wait event indicates that LGWR (Log Writer) is waiting for free space in the redo log files, typically because log switches cannot complete. This often results from slow archiving or inadequate redo log sizing.
What is the correct method to enable block change tracking for use with incremental backups in RMAN?
-
A
Run the RMAN command 'CONFIGURE BACKUP OPTIMIZATION ON'
-
B
Execute ALTER DATABASE ENABLE BLOCK CHANGE TRACKING
✓ Correct
-
C
Enable the change data capture (CDC) feature using DBMS_CDC
-
D
Set DB_BLOCK_CHANGE_TRACKING=TRUE in the initialization parameter file
Explanation
The ALTER DATABASE ENABLE BLOCK CHANGE TRACKING command enables block change tracking, which RMAN uses to identify changed blocks for incremental backups. This significantly improves incremental backup performance.
You are configuring archive log deletion policies in Data Guard. Which RMAN command correctly specifies that archived logs can be deleted after being applied to the standby database?
-
A
CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON ALL STANDBY;
✓ Correct
-
B
SET ARCHIVELOG RETENTION = APPLIED TO STANDBY;
-
C
DELETE ARCHIVELOG WHEN APPLIED TO STANDBY;
-
D
CONFIGURE ARCHIVELOG DELETION POLICY TO BACKED UP 1 TIMES TO DEVICE TYPE SBT_TAPE;
Explanation
The CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON ALL STANDBY command ensures that archived logs are retained until applied to all standby databases before deletion. This is essential for Data Guard protection.
You need to add a new log group to your database. Which statement best describes the proper procedure?
-
A
Use RMAN RESTORE command to add the new log group from a backup
-
B
Use ALTER DATABASE ADD LOGFILE GROUP while the database is mounted but not open
-
C
Create the redo log file at the OS level first, then register it with ALTER DATABASE command
-
D
Execute ALTER DATABASE ADD LOGFILE GROUP while the database is open in normal mode
✓ Correct
Explanation
The ALTER DATABASE ADD LOGFILE GROUP command can be executed while the database is open and in normal operational mode. The new redo log group becomes available immediately after successful creation.
When implementing Oracle GoldenGate for replication, which component is responsible for capturing database changes from the source database?
-
A
Extract process
✓ Correct
-
B
Collector process
-
C
Replicat process
-
D
Trail process
Explanation
The Extract process captures data changes from the source database by reading database logs and transaction records. The Replicat process applies these changes to the target database.
You are setting up a database with Oracle Managed Files (OMF). Which initialization parameter specifies the default location for all OMF-managed datafiles?
-
A
DB_DEFAULT_DATAFILE_LOCATION
-
B
DB_CREATE_FILE_DEST
✓ Correct
-
C
DB_RECOVERY_FILE_DEST
-
D
OMF_DATAFILE_LOCATION
Explanation
The DB_CREATE_FILE_DEST parameter specifies the location where Oracle automatically creates OMF datafiles, log files, and control files without requiring explicit file path specification.
During performance tuning, you discover that the database has high session wait times on 'library cache lock' events. Which action would most likely resolve this issue?
-
A
Reduce the number of concurrent sessions connected to the database
-
B
Increase the DB_FILES parameter to allow more database objects
-
C
Implement Oracle Result Cache to bypass library cache lookups
-
D
Increase the size of the shared pool to accommodate more parsed SQL statements
✓ Correct
Explanation
Library cache lock waits typically indicate insufficient shared pool space, causing excessive object invalidation and reparsing. Increasing the shared pool reduces contention and improves performance.
What is the primary purpose of the Data Recovery Advisor (DRA) in Oracle Database 19c?
-
A
To diagnose and recommend solutions for data failures detected in the database
✓ Correct
-
B
To automatically backup the database without RMAN configuration
-
C
To restore lost tablespaces from archive logs without manual intervention
-
D
To migrate data between different Oracle Database versions
Explanation
The Data Recovery Advisor analyzes failures detected by the Health Monitor and recommends manual or automated recovery procedures. It provides repair scripts through RMAN.
You are configuring a standby database using Data Guard and need to ensure redo logs are applied automatically. Which parameter controls this behavior?
-
A
LOG_ARCHIVE_DEST_STATE_2
✓ Correct
-
B
STANDBY_FILE_MANAGEMENT
-
C
ARCHIVE_LAG_TARGET
-
D
DB_RECOVERY_FILE_DEST
Explanation
The LOG_ARCHIVE_DEST_STATE_2 parameter controls whether the standby database is open for read-only access and whether redo logs are automatically applied. Setting it to 'DEFER' enables managed recovery.
When using RMAN for backup, what is the difference between a 'backup set' and an 'image copy'?
-
A
An image copy requires compression, while a backup set can store uncompressed data only
-
B
A backup set is faster for large databases, while an image copy provides faster recovery without additional steps
-
C
An image copy can only be used on disk, while a backup set can be stored on tape or disk
-
D
A backup set stores multiple files compressed in one or more backup pieces, while an image copy is a direct copy of a datafile
✓ Correct
Explanation
Backup sets compress and multiplex multiple files into backup pieces, while image copies are bit-for-bit duplicates of datafiles that can be directly used by Oracle without processing.
You need to create a new tablespace with specific storage characteristics. Which clause in the CREATE TABLESPACE statement defines the space allocated to a segment when initially created?
-
A
SEGMENT SPACE MANAGEMENT clause
-
B
EXTENT ALLOCATION clause
-
C
INITIAL parameter within STORAGE clause
✓ Correct
-
D
NEXT parameter in the datafile definition
Explanation
The INITIAL parameter within the STORAGE clause defines the size of the first extent allocated to a segment. Modern tablespaces typically use AUTOEXTEND and automatic extent allocation.
During database startup, you receive the error 'ORA-00205: error in identifying control file'. What is the most likely cause and appropriate resolution?
-
A
All control file copies must be multiplexed; create additional control file copies before startup
-
B
The control file paths specified in CONTROL_FILES parameter do not exist or are inaccessible; verify paths and permissions
✓ Correct
-
C
One or more control files are corrupted; restore from backup and recover the database
-
D
The control file size exceeds the maximum limit; increase CONTROL_FILE_SIZE parameter
Explanation
ORA-00205 indicates that Oracle cannot locate or read the control files specified in the CONTROL_FILES initialization parameter. Verify file paths, existence, and file permissions are correct.
You are implementing a compression strategy for a large table. Which compression method reduces space consumption by storing duplicate values within a single block?
-
A
Prefix compression with COMPRESS FOR LOAD
-
B
Basic row compression (COMP_FOR_DML)
✓ Correct
-
C
HCC (Hybrid Columnar Compression) with QUERY LOW
-
D
Advanced row compression (COMP_FOR_OLTP)
Explanation
Basic row compression stores duplicate values as symbols within a block's symbol table, reducing space without affecting DML performance. Advanced compression provides better ratios for read-heavy workloads.
What is the correct procedure to transport a pluggable database (PDB) from one CDB (Container Database) to another in Oracle 19c?
-
A
Execute CREATE PLUGGABLE DATABASE ... FROM source CDB while both CDBs are open
-
B
Backup the PDB, restore it on the destination server, then execute ALTER SYSTEM REGISTER command
-
C
Close the PDB, copy datafiles, copy wallet files, execute XMLDB transport commands, and plug into new CDB
✓ Correct
-
D
Use Data Pump to export/import the entire PDB between CDBs
Explanation
PDB transport involves closing the source PDB, copying its datafiles and associated files, then plugging it into the destination CDB using CREATE PLUGGABLE DATABASE ... USING DATAFILE COPY. This maintains all PDB configurations.
You are monitoring database performance and notice the KEEP pool in the buffer cache has very low hit ratio. What does this typically indicate?
-
A
Objects marked to use the KEEP pool have been flushed due to inactivity
-
B
The database is not using the KEEP pool for its intended purpose of retaining frequently used objects
-
C
The KEEP pool size is too small for the objects designated to use it
✓ Correct
-
D
Archive logs are not being properly cleared from the KEEP pool, reducing available cache space
Explanation
A low hit ratio in the KEEP pool indicates the pool is not large enough to hold all the objects designated for it, causing necessary evictions. Increasing the KEEP pool size improves hit ratio.
When configuring Oracle Net Services, which file contains the network configuration for client connections to the database?
-
A
listener.ora for all network communications
-
B
Net.config as the primary configuration file for both client and server
-
C
sqlnet.ora on the server side only
-
D
tnsnames.ora on the client side and sqlnet.ora on the server side
✓ Correct
Explanation
The tnsnames.ora file on the client defines available database services, while sqlnet.ora on the server controls connection behavior. The listener.ora file configures the Oracle Listener process.
You need to implement secure database backup with encryption. Which RMAN command enables encryption for all subsequent backups?
-
A
CONFIGURE ENCRYPTION FOR DATABASE ON;
-
B
CONFIGURE ENCRYPTION ALGORITHM 'AES256' IDENTIFIED BY password;
✓ Correct
-
C
BACKUP DATABASE WITH ENCRYPTION USING ALGORITHM AES256;
-
D
SET ENCRYPTION ON PASSWORD='backup_key' ALGORITHM=AES256;
Explanation
The CONFIGURE ENCRYPTION ALGORITHM command enables transparent backup encryption with specified cipher algorithm. This persists across RMAN sessions and applies to all subsequent backups automatically.
During application testing, you receive 'ORA-00054: resource busy' errors during index creation. What does this error indicate and how should you proceed?
-
A
DDL operations are currently disabled; enable with ALTER SYSTEM ENABLE DDL
-
B
Another session is holding an exclusive lock on the table; use ALTER SYSTEM KILL SESSION to terminate blocking session
✓ Correct
-
C
The index space is full; add more extents to the index tablespace before retrying
-
D
The database is in restricted mode; execute ALTER SYSTEM DISABLE RESTRICTED SESSION
Explanation
ORA-00054 indicates the resource (table) is locked by another session. Use V$SESSIONS to identify the blocking session, then kill it or wait for the lock to release.
What is the primary advantage of using Active Data Guard compared to a standard read-only standby database?
-
A
Active Data Guard simplifies the network configuration between primary and standby databases
-
B
Active Data Guard provides automatic failover without data loss and enables reporting on the standby without stopping redo apply
✓ Correct
-
C
Active Data Guard allows both read and write operations on the standby while redo logs are being applied in real time
-
D
Active Data Guard reduces licensing costs by consolidating backup and disaster recovery into a single standby database
Explanation
Active Data Guard enables read-only queries on the standby while redo is actively being applied, providing both disaster recovery capability and reporting capacity without impacting protection.
You need to configure Data Guard to protect your production database. Which component is responsible for transmitting redo logs from the primary to standby databases?
-
A
Database listener on the standby server
-
B
Archive processes managing only archived logs
-
C
Recovery Manager (RMAN) backup jobs
-
D
Log Writer (LGWR) background process
✓ Correct
Explanation
The LGWR process transmits redo logs from primary to standby in real-time using the LOG_ARCHIVE_DEST_n parameter. Archive processes handle only archived logs after they're full, not real-time transmission.
When implementing Oracle Database Vault, what is the primary purpose of a Realm?
-
A
To define a protected set of objects and restrict access based on user roles and command rules
✓ Correct
-
B
To monitor all database activity for compliance reporting
-
C
To create backup policies for sensitive tables
-
D
To encrypt sensitive data columns automatically
Explanation
Realms in Database Vault define protected groups of objects (tables, views, procedures) and enforce access controls through roles and command rules. Encryption, monitoring, and backup are separate Database Vault features.
You are troubleshooting a database performance issue. You examine the AWR report and notice that the 'log file sync' wait event has the highest wait time. What does this typically indicate?
-
A
The listener is not responding to client connection requests
-
B
The database is spending too much time writing to the undo tablespace
-
C
The redo log files are located on a slow disk subsystem affecting commit performance
✓ Correct
-
D
The SMON process is unable to clean up temporary segments
Explanation
The 'log file sync' wait event indicates slow disk I/O when writing redo logs to disk, which directly impacts transaction commit times. This suggests the redo log disk subsystem needs optimization.
What is the correct method to add a new online redo log group to an Oracle Database?
-
A
ALTER DATABASE ADD LOGFILE GROUP 4 ('/path/to/redo04.log') SIZE 50M;
✓ Correct
-
B
CREATE LOGFILE GROUP 4 ('/path/to/redo04.log') SIZE 50M;
-
C
ALTER SYSTEM ADD LOGFILE GROUP 4 ('/path/to/redo04.log') SIZE 50M;
-
D
ALTER TABLESPACE UNDO ADD LOGFILE ('/path/to/redo04.log') SIZE 50M;
Explanation
The correct syntax is ALTER DATABASE ADD LOGFILE GROUP to add new online redo log groups. ALTER SYSTEM is used for parameter changes, not redo log management.
You need to implement a backup strategy that allows for point-in-time recovery. Which RMAN backup mode should you configure, and what must be enabled on the database?
-
A
Full backups with archivelog mode enabled to capture redo logs between backups
✓ Correct
-
B
Differential backups; noarchivelog mode must be set for consistency
-
C
Cumulative backups with flashback database enabled
-
D
Incremental backups only; archivelog mode is optional
Explanation
Point-in-time recovery requires the database to be in ARCHIVELOG mode so redo logs are archived, allowing recovery to any point between backups. Full or incremental backups with archived redo logs enable this capability.
A developer reports that their application receives 'ORA-01555: snapshot too old' errors during a long-running query. What is the most likely cause and appropriate solution?
-
A
Other transactions are committing and generating undo data faster than the query can read it; increase UNDO_RETENTION
✓ Correct
-
B
The temp tablespace is full; add more tempfiles
-
C
The database listener has crashed; restart the listener service
-
D
The PROCESSES parameter is set too low; increase it to allocate more memory to the database
Explanation
ORA-01555 occurs when undo retention expires before long-running queries complete. Increasing UNDO_RETENTION and the undo tablespace size allows queries to access older undo blocks needed for consistent reads.
When configuring Oracle GoldenGate for real-time data replication, which process is responsible for reading the database redo logs?
-
A
The TRAIL file manager process
-
B
The REPLICAT process on the target database
-
C
The EXTRACT process on the source database
✓ Correct
-
D
The PUMP process between source and target
Explanation
EXTRACT reads redo logs and transaction data from the source database, captures changes, and writes them to trail files. REPLICAT applies these changes to the target, while PUMP manages delivery.
You are managing storage for a large production database and want to implement Automatic Storage Management (ASM). What is a key requirement before migrating existing files to an ASM disk group?
-
A
ASM must be running as a separate Oracle instance with its own disks or partitions dedicated to ASM
✓ Correct
-
B
All tablespaces must be converted to bigfile tablespaces first
-
C
The undo tablespace must be moved to the System Managed Storage area manually
-
D
The database must be shut down completely during ASM configuration
Explanation
ASM runs as a separate instance (typically ASM+SID) and requires dedicated disk devices or partitions. The database can remain online during migration, bigfile conversion is optional, and undo conversion is automatic.
While monitoring your database, you observe that the parameter STATISTICS_LEVEL is set to 'BASIC'. What is the impact of this setting on database diagnostics and performance tuning?
-
A
The database collects all available statistics with no filtering, increasing memory usage by 20%
-
B
AWR snapshots are still collected normally, providing full diagnostic capabilities
-
C
Automatic workload repository stops running entirely, and all diagnostic packs become unavailable
-
D
Only basic wait events are captured; advanced metrics for Active Session History (ASH) and some performance statistics are not collected
✓ Correct
Explanation
STATISTICS_LEVEL=BASIC limits diagnostic data collection and disables ASH and many AWR features. Setting it to 'TYPICAL' or 'ALL' enables full diagnostic capabilities. Basic level reduces overhead but limits troubleshooting ability.
You need to perform a full recovery of your database after a media failure. The backup was taken 3 days ago, and redo logs are available up to the point of failure. What is the correct recovery approach?
-
A
Perform a flashback database operation to recover the corrupted files
-
B
Restore the backup and use only the current redo logs; archived redo logs cannot be applied after a media failure
-
C
Use RMAN RECOVER DATABASE from the 3-day-old backup, then use archived redo logs and current redo logs to recover to the point of failure
✓ Correct
-
D
Use RMAN DUPLICATE DATABASE to create a duplicate instance instead of recovering the original
Explanation
Complete recovery uses the backup as a starting point, then applies all archived redo logs followed by current redo logs to recover to point of failure. Flashback is for logical errors, and DUPLICATE is for cloning, not recovery.