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
-
The database server is constrained, causing calls to the database to consume more resources than are available for processing.
-
This condition indicates there is a bottleneck in one of the processes upstream in the pipeline of process flows within the application server.
-
The Tivoli Performance Viewer percentages are only useful for performing performance analysis on a server that is executing in a controlled load test scenario.
-
The connection pools have not been defined to account for parallel application server calls to the database, causing this particular server to show low utilization.
B
Correct answer
Explanation
Low database connection pool utilization despite high activity suggests an upstream bottleneck. If earlier processing stages are slow, requests never reach the database layer efficiently, resulting in underutilized database connections.
-
This condition indicates there is a bottleneck in one of the processes upstream in the pipeline of process flows within the application server.
-
The connection pools have not been defined to account for parallel application server calls to the database, causing this particular server to show low utilization.
-
The Tivoli Performance Viewer percentages are only useful for performing performance analysis on a server that is executing in a controlled load test scenario.
-
The database server is constrained, causing calls to the database to consume more resources than are available for processin
A
Correct answer
Explanation
This is a duplicate of question 142149. Low database connection pool utilization during active application usage indicates an upstream bottleneck: earlier processing stages are constraining flow before database requests can be made.
-
alter database archivelog;
-
alter database open resetlogs;
-
alter database mount exclusive
-
alter system archive log all
B
Correct answer
Explanation
The ALTER DATABASE OPEN RESETLOGS statement initializes and resets the online redo logs, effectively discarding their current content during recovery. Other options change the database's archiving mode, mount it, or archive logs manually, but they do not clear or reset the logs.
-
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.
-
default tablespace
-
profile
-
idle_time
-
default role
C
Correct answer
Explanation
When creating a user in Oracle, properties like the default tablespace and profile can be specified. However, idle_time is a resource limit configured inside a profile rather than directly on the user during creation. Roles are also managed through separate commands.
-
CONNECT
-
RENAME
-
SELECT
-
INSERT
-
DELETE
B
Correct answer
Explanation
RENAME is a DDL command and DDL commands cause implicit commits before and after execution. CONNECT, SELECT, INSERT, and DELETE do not cause automatic commits - they are DDL (CONNECT) or DML (SELECT, INSERT, DELETE) that require explicit COMMIT. The implicit commit with RENAME happens even if the user has uncommitted changes.
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.