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 databases
  1. LOB

  2. XML

  3. Image

  4. Video

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

XQuery is the standard query language designed specifically for retrieving and manipulating data from XML documents. DB2 9 introduced native XML support with XQuery. LOB is a binary storage type, while images and videos are typically stored as BLOBs.

Multiple choice technology databases
  1. Recover

  2. Repair

  3. Rebuild

  4. Runstats

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

RUNSTATS is recommended after REORG because REORG changes the physical data distribution, making existing statistics obsolete. RUNSTATS collects fresh statistics about table data distribution, enabling the optimizer to choose efficient access paths for subsequent queries.

Multiple choice technology databases
  1. DB2 Directory

  2. DB2 Catalog

  3. Optimizer

  4. Data Manager

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The DB2 Directory contains Database Descriptors (DBDs), which are internal control structures describing database physical structures. The DB2 Catalog stores metadata about database objects, the Optimizer uses statistics for access path selection, and the Data Manager manages actual data access.

Multiple choice technology databases
  1. DSN_STATEMNT_TABLE

  2. PLAN_TABLE

  3. SYSPLAN

  4. SYSPACKAGE

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The DB2/SQL EXPLAIN statement inserts detailed information about the access path of the query being explained into a table named PLAN_TABLE. DSN_STATEMNT_TABLE contains cost estimates, while SYSPLAN and SYSPACKAGE are catalog tables storing plan and package metadata rather than explain output.

Multiple choice technology databases
  1. 9iDBA

  2. OSADM

  3. OSDBA

  4. OSOPER

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In Oracle 9i database, the OSDBA operating system group is mapped to the SYSDBA database privilege, allowing users within this group to authenticate via the operating system. OSOPER maps to the SYSOPER privilege. Other options like 9iDBA or OSADM are not standard Oracle-predefined OS groups for database administration privileges.

Multiple choice technology databases
  1. Install the Oracle Software

  2. Plan the Database

  3. Implement the Database Design

  4. Back Up the Fully Functional Database

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Oracle's recommended approach requires backing up the fully functional database before beginning any tuning activities. This ensures you have a recovery point if tuning changes cause issues. Installing software, planning, and implementing design are prerequisites but must complete before the database is fully functional and ready for backup.

Multiple choice technology databases
  1. Install the Oracle Software

  2. Evaluate the Database Server Hardware

  3. Implement the Database Design

  4. Plan the Database

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Evaluating the database server hardware is Oracle's first recommended task before any software installation or database design. Hardware assessment ensures the server meets requirements for memory, CPU, storage, and I/O capacity. Software installation (A), planning (D), and implementation (C) all happen after hardware evaluation.

Multiple choice technology databases
  1. It provides a security scan against all user accounts

  2. It provides a SID scan against all rows

  3. It provides a central means of updating all user accounts

  4. It provides a mechanism for switching between Oracle9i databases with ease

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The oraenv script provides a central mechanism for switching between different Oracle database instances by updating environment variables like ORACLE_SID, ORACLE_HOME, and PATH for all user accounts. Option C correctly describes this central update function. Options A and B mention scanning functions which don't apply. Option D describes database switching, which is the result, not the function.

Multiple choice technology databases
  1. modify the parameter, backup the init file and the database, and restart the instance

  2. modify the parameter and restart the instance

  3. re-create the database

  4. modify the parameter, backup the init file and restart the instance

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

DB_BLOCK_SIZE is a fundamental storage parameter that can only be set when a database is first created. It determines the size of data blocks and cannot be changed by simply modifying parameters or restarting - the entire database must be recreated with the new block size.