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. The loss of an entire redo log file group, but no loss in any other group

  2. The loss of one member of each redo log file group

  3. The failure of the ARC0 background process

  4. The failure of the LGWR background process

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

Losing an entire redo log group means complete loss of that redo log data, which is the most serious failure. Losing one member from each group reduces redundancy but preserves data as long as at least one member per group remains.

Multiple choice technology databases
  1. The last redo log file switch

  2. The last checkpoint position

  3. The last commit

  4. The last incremental backup using RMAN

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

In ARCHIVELOG mode, archived redo logs enable point-in-time recovery to any committed transaction. You can recover the database up to and including the last commit before a failure.

Multiple choice technology databases
  1. ALTER SYSTEM ARCHIVELOG;

  2. ALTER DATABASE ARCHIVELOG;

  3. ALTER SYSTEM SET ARCHIVELOG=TRUE;

  4. ALTER DATABASE ENABLE ARCHIVELOG MODE;

  5. ALTER DATABASE ARCHIVELOG MODE;

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

ALTER DATABASE ARCHIVELOG is the correct SQL command to enable ARCHIVELOG mode. This requires the database to be mounted but not open, and is typically followed by a backup.

Multiple choice technology databases
  1. ALTER DATABASE ADD LOGFILE ‘/logs/redo22.log’ TO GROUP 2;

  2. ALTER DATABASE ADD LOGFILE MEMBER ‘/logs/redo22.log’ TO GROUP 2;

  3. ALTER DATABASE ADD MEMBER ‘/logs/redo22.log’ TO GROUP 2;

  4. ALTER DATABASE ADD LOGFILE ‘/logs/redo22.log’;

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

The ADD LOGFILE MEMBER clause adds a redo log member to an existing group. The syntax requires both LOGFILE MEMBER keywords, not just MEMBER.

Multiple choice technology mainframe
  1. Relational Database

  2. Hierarchical Database

  3. Network Database

  4. OO Database

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

IDMS (Integrated Database Management System) is a network database model that uses sets to represent many-to-many relationships between records. Unlike hierarchical databases (tree structure only) or relational databases (tabular with foreign keys), network databases allow records to have multiple parent and child connections through set relationships.

Multiple choice technology mainframe
  1. NEXT

  2. FIRST

  3. PRIOR

  4. LAST

  5. All of the above.

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

Set linkage in IDMS determines how records in a set are connected: NEXT links each member to the following member (forward chain), and PRIOR links each member to the previous member (backward chain). FIRST and LAST are not valid linkage options; the linkage is about connection direction between members, not position.

Multiple choice technology databases
  1. No stream object defined for field

  2. Communication link failure

  3. Memory allocation failure

  4. None of these

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

SQL462 indicates a memory allocation failure within the database system, meaning the database could not allocate sufficient memory to complete the requested operation. This typically occurs during large operations or when system memory is constrained. Options A and B refer to different error categories (field definitions and network connectivity), while option D would only apply if none of the specific options matched.

Multiple choice technology databases
  1. ALREADY LOGGED IN

  2. UNKNOWN COMMAND

  3. SOCKET READ ERROR

  4. INVALID AGENT SIGNATURE

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

SQL3001 indicates that the database server received a command it does not recognize or cannot process. This is a protocol-level error suggesting the client sent an invalid or unsupported instruction to the database engine.

Multiple choice technology databases
  1. SOCKET WRITE ERROR

  2. SESSION TIMEOUT

  3. SOCKET READ ERROR

  4. HEADER NOT FOUND

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

In this network/database error code mapping, SQL3008 represents a socket read error, indicating that the system failed to read incoming data from the network socket.

Multiple choice technology databases
  1. HEADER TOO LONG

  2. HEADER NOT FOUND

  3. SOCKET READ ERROR

  4. SOCKET WRITE ERROR

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

In this network/database error code mapping, SQL3009 represents a socket write error, which occurs when the application fails to write data to the network socket during communication.

Multiple choice technology databases
  1. SESSION TIMEOUT

  2. INVALID SESSION TICKET

  3. SOCKET WRITE ERROR

  4. FAILED TO EXECUTE GRANT COMMAND

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

In this custom error code mapping, SQL3011 represents a session timeout. This indicates that the connection session has expired due to inactivity or reaching its maximum lifetime.