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
-
COMMIT or ROLLBACK
-
A DDL or DCL statement executing
-
USER exiting iSQL*Plus or System crash
-
Any one of the above
D
Correct answer
Explanation
Oracle database transactions end in multiple ways. Explicitly with COMMIT (save changes) or ROLLBACK (discard changes). Implicitly when a DDL statement (CREATE, ALTER, DROP) or DCL statement (GRANT, REVOKE) executes - these auto-commit. Also when user exits the client tool (iSQL*Plus/SQL*Plus) or if the system crashes (forced rollback/commit). Any of these events terminate the current transaction.
A
Correct answer
Explanation
Database locks are crucial in an Oracle Database to ensure data concurrency, consistency, and integrity during simultaneous multi-user transactions. The statement is true.
-
Avoids separate updates
-
ncreases performance and ease of use
-
Is useful in data warehousing applications
-
All of the above
D
Correct answer
Explanation
The MERGE statement combines INSERT, UPDATE, and DELETE operations into a single statement, which avoids writing separate update statements. It is commonly used in data warehousing applications for ETL processes and can improve performance by reducing round trips to the database. The typo 'ncreases' in option B should be 'Increases'.
-
COMMIT or ROLLBACK
-
A DDL or DCL statement executing
-
USER exiting iSQL*Plus or System crash
-
Any one of the above
D
Correct answer
Explanation
Database transactions end through multiple mechanisms: explicit COMMIT or ROLLBACK commands, implicit termination when a DDL (CREATE, ALTER, DROP) or DCL (GRANT, REVOKE) statement executes, or external events like user exit or system crash. All these scenarios can terminate a transaction, making 'Any one of the above' the correct answer.
A
Correct answer
Explanation
Locks are indeed critical mechanisms in Oracle Databases to manage concurrent data access and ensure data integrity. They prevent destructive interactions between transactions, such as lost updates or dirty reads.
A
Correct answer
Explanation
SYSDATE is a built-in SQL function in Oracle that returns the current date and time set on the database server. It is frequently used for timestamping records or performing date arithmetic.
-
Avoids separate updates
-
ncreases performance and ease of use
-
Is useful in data warehousing applications
-
All of the above
D
Correct answer
Explanation
The MERGE statement (also known as UPSERT) combines INSERT and UPDATE operations into a single command, eliminating the need for separate statements. This improves performance, simplifies code, and is commonly used in data warehousing ETL processes.
-
COMMIT or ROLLBACK
-
A DDL or DCL statement executing
-
USER exiting iSQL*Plus or System crash
-
Any one of the above
D
Correct answer
Explanation
Database transactions can end through explicit COMMIT or ROLLBACK commands, implicit commits triggered by DDL or DCL statements, or session termination (user exit or system crash). All three scenarios terminate the current transaction.
B
Correct answer
Explanation
Oracle Database uses automatic, implicit locking at the row level by default. Unlike some databases requiring explicit lock management, Oracle handles locking transparently, making manual lock management unnecessary for most operations.
-
Error Table
-
UV Table
-
Work Table
-
Log Tbale
D
Correct answer
Explanation
When restarting an MLOAD script after a failure, the Log Table (Logtable) is essential because it contains the restart information and metadata needed to resume the job from where it left off. The log table tracks the progress of the MLOAD operation and stores critical state information. Error tables, UV tables, and work tables support the operation but are not the primary source of restart data.
-
Record Description Framework
-
Resource Description Framework
-
Resource Data Framework
-
Row Description Framework
B
Correct answer
Explanation
RDF stands for Resource Description Framework, a standard framework for data interchange on the Web developed by the W3C. It provides a way to describe resources in a structured, machine-readable format using subject-predicate-object triples.
A
Correct answer
Explanation
SYSDATE is an Oracle function returning the current date and time from the database server. It is identical to question 139628.
-
Avoids separate updates
-
ncreases performance and ease of use
-
Is useful in data warehousing applications
-
All of the above
D
Correct answer
Explanation
The MERGE statement combines INSERT and UPDATE actions in a single command, avoiding separate DML statements, improving performance, and simplifying data‑warehouse load processes where upserts are common. All listed benefits are accurate, so the “All of the above” choice correctly captures them.
-
COMMIT or ROLLBACK
-
A DDL or DCL statement executing
-
USER exiting iSQL*Plus or System crash
-
Any one of the above
D
Correct answer
Explanation
Database transactions end through multiple mechanisms: explicit COMMIT or ROLLBACK commands, implicit ending when a DDL (CREATE, ALTER, DROP) or DCL (GRANT, REVOKE) statement executes (which auto-commits), or when the user exits the tool or a system crash occurs. All four scenarios represent valid transaction termination points.
A
Correct answer
Explanation
Locks are critical in an Oracle database to maintain consistency and concurrency control. This is identical to question 139625.