Computer Knowledge
Database Management Systems
5,543 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
-
SGA
-
SQL Area
-
Library Cache
-
PGA
-
Shared Pool
D
Correct answer
Explanation
PGA (Program Global Area) contains session-specific memory like variables and arrays when NOT running in MTS (Multi-Threaded Server) mode. In dedicated server mode (non-MTS), each session gets its own PGA. SGA is shared instance memory, SQL Area and Library Cache are components of Shared Pool within SGA - all are shared, not per-session.
-
audit
-
quota
-
limit
-
profile
D
Correct answer
Explanation
Oracle profiles are used to enforce resource limits including idle time. A profile can set IDLE_TIME to limit minutes of inactivity before a session is terminated. Audit tracks actions, quota limits tablespace usage, and 'limit' is not a valid Oracle resource command.
B
Correct answer
Explanation
SMON (System Monitor) is responsible for coalescing contiguous free space extents in tablespaces. PMON monitors and cleans failed processes, ARCH archives redo logs, and LGWR writes redo entries. Coalescing improves space utilization by merging adjacent free extents.
-
Defers writes for I/O optimization
-
Uses a LRU algorithm to keep most recently used blocks in memory
-
Writes to database redo log files as people COMMIT data
-
Writes all changed (i.e. dirty) buffers to datafiles
C
Correct answer
Explanation
DBWR does NOT write to redo log files - that's LGWR's job. DBWR writes dirty buffers from the buffer cache to datafiles. Option A describes correct DBWR behavior (defers writes for batching). Option B describes DBWR's LRU algorithm for cache management. Option D is DBWR's primary function. Writing to redo logs is exclusively LGWR's responsibility.
-
There is only one redo log writer per instance
-
A commit confirmation may be issued before a transaction has been recorded in the redo log file
-
During long transactions Oracle can flush data to the redo logs before it is committed
-
An Oracle instance cannot survive without a redo log writer
B
Correct answer
Explanation
Option B is false: Oracle guarantees commit confirmation ONLY after the transaction is written to the redo log file. This is fundamental to ACID durability. Options A, C, D are true: one LGWR per instance, long transactions can flush pre-commit (still written), and LGWR is essential for instance survival.
-
infodb
-
ckpdb
-
jnl
-
accessdb
A
Correct answer
Explanation
The infodb utility in Ingres is used to check database consistency and integrity. It validates the database structure and reports any inconsistencies or corruption in the database files, making it essential for maintenance and troubleshooting.
-
accessdb
-
rollforwarddb
-
infodb
-
lartool
D
Correct answer
Explanation
The lartool utility in Ingres is used to manually commit transactions. This is particularly useful in recovery scenarios or when automated transaction processing needs to be controlled explicitly by the administrator.
-
accessdb
-
rollforwarddb
-
restoredb
-
dbrestore
B
Correct answer
Explanation
The rollforwarddb command in Ingres is used to restore a database by applying journal files after a restore, bringing it to a consistent state. This command rolls forward the database transactions to make it valid and current. The accessdb utility is for database access management, not restoration.
-
accessdb
-
infodb
-
tempdb
-
userdb
A
Correct answer
Explanation
The accessdb utility in Ingres is used for database user management, including creating users, granting permissions, and managing access controls. It allows administrators to define who can access the database and what operations they can perform. The other options are not standard Ingres utilities for user management.
-
unloaddb
-
downloaddb
-
copydb
-
movedb
A
Correct answer
Explanation
The unloaddb utility in Ingres is used for data migration by extracting data from database tables into flat files, which can then be loaded into another database. This is the standard utility for data export and migration between Ingres databases. The other options are not valid Ingres migration utilities.
-
Vertica
-
Sybase IQ
-
ParAccel
-
SAND
B
Correct answer
Explanation
Sybase IQ was the first column-oriented database management system to reach the data warehousing market, launching in the mid-1990s. Its columnar storage architecture was revolutionary for analytical queries and data warehousing workloads. Vertica and ParAccel came later, building on the columnar concept.
-
Petadata
-
Exadata
-
Megadb
-
OracleMPP
B
Correct answer
Explanation
Oracle Exadata is the data warehouse database platform developed in cooperation with HP, combining Oracle database software with HP hardware in an engineered system. Exadata uses smart storage scans and columnar compression for high performance. It was introduced as a game-changing data warehouse appliance.
-
Teradata
-
Netezza
-
DATAllegro
-
Sybase IQ
A,B,C
Correct answer
Explanation
Teradata, Netezza, and DATAllegro are all MPP (Massively Parallel Processing) database systems that distribute data and processing across multiple nodes for scalability. Teradata pioneered MPP architecture, Netezza used it in their appliance, and DATAllegro built an MPP data warehouse platform. Sybase IQ uses a columnar architecture but is not typically classified as MPP.
-
Yes
-
No
-
Only for uncataloged datasets
-
Only for cataloged datasets
C
Correct answer
Explanation
VOL=SER specifications are required for tape datasets only when they are not cataloged in the system catalog. For cataloged tape datasets, the system can locate the volume through the catalog entry. For uncataloged datasets, you must explicitly specify the volume serial. This is similar to disk datasets - cataloged ones don't need VOL=SER, but uncataloged ones do.
-
Type of users with access
-
Navigational vs. non navigational
-
Concurrent vs. non concurrent multiple program access
-
Support for single vs. multiple application languages
B
Correct answer
Explanation
Hierarchical DBMS require navigating through parent-child relationships to access data, while relational DBMS allow non-navigational access using SQL queries that reference data values directly. Both support concurrent access and multiple languages. User access control is not the defining difference.