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

Multiple choice technology web technology
  1. The database server is constrained, causing calls to the database to consume more resources than are available for processing.

  2. This condition indicates there is a bottleneck in one of the processes upstream in the pipeline of process flows within the application server.

  3. The Tivoli Performance Viewer percentages are only useful for performing performance analysis on a server that is executing in a controlled load test scenario.

  4. 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.

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. This condition indicates there is a bottleneck in one of the processes upstream in the pipeline of process flows within the application server.

  2. 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.

  3. The Tivoli Performance Viewer percentages are only useful for performing performance analysis on a server that is executing in a controlled load test scenario.

  4. The database server is constrained, causing calls to the database to consume more resources than are available for processin

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. alter database archivelog;

  2. alter database open resetlogs;

  3. alter database mount exclusive

  4. alter system archive log all

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. SGA

  2. SQL Area

  3. Library Cache

  4. PGA

  5. Shared Pool

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. audit

  2. quota

  3. limit

  4. profile

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. default tablespace

  2. profile

  3. idle_time

  4. default role

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. CONNECT

  2. RENAME

  3. SELECT

  4. INSERT

  5. DELETE

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. Defers writes for I/O optimization

  2. Uses a LRU algorithm to keep most recently used blocks in memory

  3. Writes to database redo log files as people COMMIT data

  4. Writes all changed (i.e. dirty) buffers to datafiles

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. There is only one redo log writer per instance

  2. A commit confirmation may be issued before a transaction has been recorded in the redo log file

  3. During long transactions Oracle can flush data to the redo logs before it is committed

  4. An Oracle instance cannot survive without a redo log writer

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology databases
  1. infodb

  2. ckpdb

  3. jnl

  4. accessdb

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology databases
  1. accessdb

  2. rollforwarddb

  3. restoredb

  4. dbrestore

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology databases
  1. accessdb

  2. infodb

  3. tempdb

  4. userdb

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology databases
  1. unloaddb

  2. downloaddb

  3. copydb

  4. movedb

Reveal answer Fill a bubble to check yourself
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.