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 performance
  1. Explain Plan

  2. Trace

  3. Parse

  4. Bind

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

Explain Plan and Trace are the correct first steps for SQL tuning. Explain Plan shows the execution plan and access paths. Trace provides detailed execution statistics. Parse and Bind are execution phases, not tuning tools - they describe how SQL is processed, not how to analyze or improve it.

Multiple choice technology performance
  1. True

  2. False

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

Bind variables (parameters) should always be used in SQL statements instead of concatenating values. This prevents SQL injection attacks, improves query performance through cursor sharing, and enhances security by separating code from data.

Multiple choice technology performance
  1. True

  2. False

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

Modern Oracle optimizers are cost-based and generally choose the most efficient join methods based on statistics. Explicitly controlling join types (using hints) is rarely necessary and can degrade performance if not done carefully. The optimizer should be trusted unless there's a proven performance issue.

Multiple choice technology mainframe
  1. TSO

  2. IMS

  3. BATCH

  4. All the above can access

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

DB2 can be accessed from all three environments listed: TSO (Time Sharing Option) provides interactive access, IMS (Information Management System) allows transaction processing with DB2, and BATCH jobs can submit SQL queries to DB2. DB2 was specifically designed to support multiple access interfaces in mainframe environments.

Multiple choice technology mainframe
  1. COMMIT

  2. ROLLBACK

  3. ALLOCATE

  4. DEALLOCATE

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

ROLLBACK establishes a syncpoint (rollback point) when a transaction ends unsuccessfully, undoing all changes since the last commit. COMMIT establishes a syncpoint for successful transactions. ALLOCATE and DEALLOCATE are resource management commands for memory or cursors, unrelated to transaction syncpoints.

Multiple choice technology databases
  1. True

  2. False

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

The statement is false because stored procedures ARE stored in system tables of the current database after compilation. When first executed, a stored procedure is compiled and its execution plan is cached in system tables (like syscomments in some systems) for reuse. This caching improves performance on subsequent executions.

Multiple choice technology programming languages
  1. NORMAL

  2. TEMPORARY

  3. IMMEDIATE

  4. FOR RECOVER

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

When a tablespace has erroneous or corrupted datafiles, the TEMPORARY offline option is appropriate because it brings the tablespace offline without performing a checkpoint on the datafiles. NORMAL requires a checkpoint and clean datafiles, IMMEDIATE is used for emergency situations when NORMAL fails, and FOR RECOVER is used when the tablespace needs media recovery before being brought online.

Multiple choice technology programming languages
  1. DBA

  2. RESOURCE

  3. CONNECT

  4. EXP_FULL_DATABASE

  5. IMP_FULL_DATABASE

  6. All the above

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

Oracle provides several predefined roles to simplify privilege management. DBA grants all system privileges, RESOURCE allows users to create objects, CONNECT allows basic database connection, EXP_FULL_DATABASE grants full export privileges, and IMP_FULL_DATABASE grants full import privileges. All of these are valid predefined roles in Oracle.

Multiple choice technology programming languages
  1. By default, tables within the tablespace will not have all its changes written to redo.

  2. It is a locally managed tablespace.

  3. A temporary tablespace has been created.

  4. An error will be produced; the AUTOALLOCATE parameter should be removed

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

In Oracle, the AUTOALLOCATE clause is only valid with EXTENT MANAGEMENT LOCAL. Specifying EXTENT MANAGEMENT DICTIONARY along with AUTOALLOCATE will result in a syntax error, so the statement fails and produces an error.

Multiple choice technology mainframe
  1. True

  2. False

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

ADABAS allows multiple DDMs (Data Definition Modules) to be mapped to the same physical database, providing different logical views of the data. This is a standard feature for accessing the same database with different field selections and naming conventions. The statement is true.