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
-
CONNECT
-
CONTROL
-
SYSMAINT
-
EXECUTE
C
Correct answer
Explanation
SYSMAINT is a database-level authority granted by the DB2 Database Manager configuration file (db2.cfg). It allows maintenance operations without full database administrative rights. CONNECT, CONTROL, and EXECUTE are database-level privileges/authorities, not configuration file authorities.
-
Uncommitted Read
-
Cursor Stability
-
Read Stability
-
Repeatable Read
D
Correct answer
Explanation
Repeatable Read locks all rows scanned to build the result set, preventing other transactions from updating or deleting them. Uncommitted Read takes no locks, Cursor Stability locks only the current row, and Read Stability locks only rows that are actually returned (not all scanned rows).
-
The cursor is moved to another row
-
The row the cursor is on is deleted by the application
-
The row the cursor is on is deleted by another application
-
The row the cursor is on needs to be updated by another application
A
Correct answer
Explanation
In Cursor Stability isolation level, locks are released when the cursor moves to another row. This is the defining behavior of CS - it only locks the row currently positioned on. Deleting the row or update attempts do not release the lock until the cursor moves.
-
Uncommitted Read
-
Cursor Stability
-
Read Stability
-
Repeatable Read
D
Correct answer
Explanation
Repeatable Read locks all rows scanned during query execution, preventing phantom reads and non-repeatable reads. UR takes no locks, CS locks only current row, and RS locks only qualifying rows. This is the strongest isolation level before Serializable.
-
Backup purposes
-
Storing intermediate results
-
Staging area for load operations
-
Sharing result data sets between applications
B
Correct answer
Explanation
Declared temporary tables are specifically designed for storing intermediate results during complex query processing. They are session-specific, not for backup (use backup utilities), load staging (use staging tables), or sharing between applications (use regular tables).
-
Uncommitted Read
-
Cursor Stability
-
Read Stability
-
Repeatable Read
D
Correct answer
Explanation
Repeatable Read isolation level locks all rows scanned to build the result set, ensuring the same query can be repeated with identical results. UR doesn't lock, CS locks only the current cursor position, and RS only locks rows that match the query criteria.
-
parameter files
-
control files
-
redo logs
-
data files
B
Correct answer
Explanation
Oracle control files are critical metadata files that record the physical structure of the database. They store the names and locations of all physical database components including data files, redo log files, and tablespace information. Parameter files contain initialization parameters, redo logs store transaction changes, and data files hold actual table data - only control files track component locations.
B
Correct answer
Explanation
File-Aid (now owned by Broadcom) is a mainframe data management product originally developed by Compuware. It's not an IBM, CA (Broadcom), or Oracle product. File-Aid has been a standard tool in mainframe environments for decades, specifically for working with DB2 databases and VSAM files.
-
Test DB2 Queries
-
Create, Modify DB2 Objects
-
Load / Unload data
-
All of the above
D
Correct answer
Explanation
File-Aid is a comprehensive mainframe data management tool that supports multiple database operations. It can test DB2 queries through its browse and edit features, create and modify DB2 objects through its DDL generation capabilities, and efficiently load/unload data between datasets and tables. This versatility makes it a complete data management solution.
-
Write Cobol programs
-
Test Cobol programs
-
Explain Analysis
-
Run Trace for DB2 programs
C
Correct answer
Explanation
File-Aid includes explain analysis functionality that helps developers understand DB2 query access paths and performance characteristics. The explain feature shows how DB2 executes SQL statements, revealing table access methods, join strategies, sort usage, and index information. Options A, B, and D describe functions outside File-Aid's core scope - it's not a Cobol development or tracing tool.
-
DB2 Sub-Server ID
-
DB2 Sub-System ID
-
DB2 Super-System ID
-
DB2 Super-Server ID
B
Correct answer
Explanation
The DB2 SSID (Subsystem Identifier) is a 1-4 character identifier that uniquely names a specific DB2 subsystem within a mainframe environment. Multiple DB2 subsystems can run on the same mainframe, and the SSID distinguishes between them for connections, administration, and operational purposes. It's not a server, super-system, or sub-server identifier.
-
Location ID/Database
-
Location ID/Tablespace
-
Creator/Table Name
-
Location ID/Table Name
C
Correct answer
Explanation
To browse table data in File-Aid DB2, the Creator (schema/qualifier) and Table Name are the mandatory parameters. Location ID and Tablespace are not required for basic table browsing. Database alone is insufficient without the table qualifier.
D
Correct answer
Explanation
In File-Aid DB2's first menu, option 3.4 is designated for DB2 Object List Processing. Options 3.1, 3.2, and 3.3 correspond to other functions (Browse, Edit, and Copy respectively).
-
Tables
-
Views
-
Databases
-
All of the above
D
Correct answer
Explanation
File-Aid for DB2 is a comprehensive database management tool that allows users to view, edit, and manipulate various DB2 objects, including tables, views, and entire databases.
B
Correct answer
Explanation
In the File-Aid for DB2 main menu, option 1 is designated for the 'Browse' function, which allows users to view DB2 table data without making modifications. Option 2 is typically for Edit.