Computer Knowledge
Database Management Systems
5,344 Questions
Database Management Systems (DBMS) form the core framework for data storage, retrieval, and security in modern software applications. Concepts such as the E-R model, backup planning, SQL integration, and big data architecture are essential for computer knowledge sections. This hub offers a comprehensive set of practice questions to master DBMS fundamentals and advanced database operations.
E-R Model ConceptsBackup and RecoverySQL Server UpgradesJDBC and ODBCBig Data CharacteristicsData VirtualizationOracle Database
Database Management Systems Questions
-
Redo log file
-
Paramerter File
-
Password File
-
Control File
D
Correct answer
Explanation
The control file is a small binary file that contains critical metadata about the database structure, including the names, locations, and status of all datafiles. Oracle reads the control file at startup to locate and open all datafiles. Redo logs contain transaction changes, parameter files have initialization settings, and password files store authentication data.
-
a mechanism used by the Oracle optimizer to run user queries in parallel
-
a mechanism to prevent data files that make up the database from auto-extending
-
a mechanism used by the background process PMON for cleaning up the caches and freeing up resources the user processes were using
-
a low-level serialization mechanism to protect shared data structures in the system global area
D
Correct answer
Explanation
In Oracle databases, a latch is a low-level, highly efficient serialization mechanism used to protect shared data structures in the System Global Area (SGA) from simultaneous access by multiple processes.
-
Database Buffer Cache
-
PGA
-
Redo Log Buffer
-
Shared Pool
-
The sort-merge join
-
The nested loops join
-
This depends on some sort parameter values.
-
This depends on the number of rows in each table.
-
A file containing a SQL statement which will re-create the database
-
A text copy to the control file
-
A binary copy of the control file
-
A file containing a SQL statement which will re-create the control file
C
Correct answer
Explanation
The ALTER DATABASE BACKUP CONTROL FILE TO 'filename' command creates a binary copy of the control file at the specified location. This is different from the TO TRACE option which generates a SQL script. The binary backup preserves all control file contents in their native format.
-
redo files
-
exec files
-
control files
-
trace files
D
Correct answer
Explanation
When an Oracle background process encounters an exception or error, it writes diagnostic information to trace files in the user_dump_dest or background_dump_dest directory. These trace files contain error details, stack traces, and context information useful for troubleshooting database issues.
-
Make a complete backup right after opening the database.
-
Copy the data file DF1 back to the backup directory.
-
Back up the data file.
-
Bring tablespace TS1 online.
A
Correct answer
Explanation
Making a complete backup immediately after opening the database ensures that all changes made during recovery (including any uncommitted transactions that were rolled back) are preserved. This provides a recoverable baseline. Options B and C only address individual files, and option D doesn't create any backup.
-
Recovery Manager
-
Oracle Enterprise Manager
-
Oracle Universal Installer
-
Oracle Database Configuration Assistant
B
Correct answer
Explanation
Oracle Enterprise Manager is the comprehensive monitoring and management tool for Oracle databases, providing performance dashboards, alerts, and diagnostic capabilities. Recovery Manager (RMAN) handles backups, Oracle Universal Installer manages software installation, and Database Configuration Assistant creates databases - none focus on performance examination.
-
When a transaction commits
-
When a rollback is executed
-
When the redo log buffer is about to become completely full (90%)
-
Before the DBWn writes modified blocks in the database buffer cache to the data files
A,D
Correct answer
Explanation
LGWR writes redo entries to online redo log files at two key times: when a transaction commits (to ensure durability) and before DBWn writes dirty buffers to data files (to maintain recovery capability). Rollbacks do not trigger LGWR writes, and the buffer writes at 1/3 full, not 90%.
-
rman> RUN
2> CHECK LOGICAL
3> ALLOCATE CHANNEL c1 TYPE DISK;
4> DATAFILE 1 TO '/backup/f1.dbf',
5> DATAFILE 2 TO '/backup/f2.dbf';
-
rman> RUN
2> ALLOCATE CHANNEL c1 TYPE DISK;
3> COPY LEVEL 0
4> DATAFILE 1 TO '/backup/f1.dbf',
5> DATAFILE 2 TO '/backup/f2.dbf';
-
rman> RUN
2> ALLOCATE CHANNEL c1 TYPE DISK;
3> DATAFILE 1 TO '/backup/f1.dbf',
4> DATAFILE 2 TO '/backup/f2.dbf';
-
rman> RUN
2> ALLOCATE CHANNEL c1 TYPE sbt_tape;
3> DATAFILE 1 TO '/backup/f1.dbf',
4> DATAFILE 2 TO '/backup/f2.dbf';
B
Correct answer
Explanation
The correct RUN block allocates a DISK channel and creates image copies with LEVEL 0 specification, making them usable for incremental backups. Option A includes CHECK LOGICAL (explicitly NOT wanted), and options C, D lack the LEVEL 0 clause needed for incremental backup compatibility. The TYPE should be DISK, not sbt_tape.
-
Bitmap
-
Unique
-
Partitioned
-
Reverse key
-
Single column
C
Correct answer
Explanation
A partitioned index spreads a large index across multiple tablespaces, reducing contention during index lookups and improving manageability by allowing operations on individual partitions. Bitmap indexes are for low-cardinality data, unique indexes enforce uniqueness, reverse key indexes reduce contention in sequence-based PKs, and single-column describes structure not distribution.
-
Create a snapshot log for the object.
-
Enter the object into the deferred transaction queue.
-
Generate replication support for the object.
C
Correct answer
Explanation
After adding an object to a replication group, you must generate replication support to create the necessary triggers, procedures, and packages that track changes and propagate them to other master sites. Snapshot logs are for materialized views, and the deferred transaction queue is automatically populated - manual entry is not required.
-
%ORACLE_HOME%BIN
-
%ORACLE_HOME%
-
%ORACLE_HOME%NETWORKADMIN
-
%ORACLE_HOME%RDBMSADMIN
C
Correct answer
Explanation
The sqlnet.ora file resides in the NETWORK/ADMIN directory under ORACLE_HOME (ORACLE_HOME/network/admin on Unix, %ORACLE_HOME%\NETWORK\ADMIN on Windows). This directory contains all SQL*Net configuration files including tnsnames.ora and listener.ora. BIN is for executables, RDBMS/ADMIN is for database scripts.
-
In the extent
-
In the control file
-
In the data dictionary
-
In the undo tablespace
A
Correct answer
Explanation
With automatic segment-space management (ASSM), free space is tracked using bitmaps stored in the segment header itself (within the extent), not in the data dictionary or control file. This eliminates contention on dictionary tables and improves space management efficiency. Undo tablespaces store rollback data, not free space maps.
-
When defining multiple archive destinations, at least one LOCATION parameter must be included.
-
The maximum number of remote archive destinations is ten.
-
Archive destinations may only be modified at the system level.
-
Possible archive destinations include the local disk, any remote database, or a remote standby database.
A
Correct answer
Explanation
When defining multiple LOG_ARCHIVE_DEST_n destinations, at least one must be a local disk destination (mandatory for the primary database). The maximum is 10 or 31 depending on Oracle version, not specifically 10. Destinations can be modified at both system and session level. Options include local disk and remote standby databases, but not arbitrary remote databases without Data Guard.