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
-
System tablespace
-
Users tablespace
-
Default tablespace for the user
-
Oracle will give an error
C
Correct answer
Explanation
When a TABLESPACE clause is omitted, Oracle stores the segment in the user's default tablespace. Each database user has a default tablespace assigned (often USERS or a custom tablespace). The SYSTEM tablespace is reserved for data dictionary objects. Oracle will not give an error - it uses the default tablespace as a fallback.
-
All statements are removed and have to be resubmitted
-
The Oracle server rolls back the statement that detected the deadlock
-
The administrator has to kill the session
-
Deadlocks can not be resolved
B
Correct answer
Explanation
Oracle automatically detects deadlocks and resolves them by rolling back the specific statement that caused the deadlock, allowing other transactions to proceed. Manual intervention or killing the entire session is usually not required for basic resolution.
-
The user disconnects from Oracle
-
A COMMIT or a ROLLBACK statement is used in conjunction with a SAVEPOINT clause
-
A user process is terminated abnormally
-
A DDL statement such as DROP, GRANT, RENAME
B
Correct answer
Explanation
In Oracle, a transaction ends with a COMMIT, ROLLBACK, DDL statement, or disconnection. Using a SAVEPOINT with ROLLBACK only reverts to a specific point within the transaction; it does not terminate the transaction itself.
-
USER_TABLESPACES
-
V$TABLESPACE
-
DBA_TABLESPACE_GROUPS
-
DBA_TABLESPACES
D
Correct answer
Explanation
DBA_TABLESPACES is the correct data dictionary view that contains descriptions of all tablespaces in the database. USER_TABLESPACES only shows tablespaces accessible to the current user, while V$TABLESPACE and DBA_TABLESPACE_GROUPS are not valid views for tablespace descriptions.
-
Statement failure
-
User process failure
-
Network failure
-
Instance failure
B
Correct answer
Explanation
A user process failure occurs when a single database session encounters an error and terminates. Statement failure refers to individual SQL statement errors, network failure involves connectivity issues, and instance failure is when the entire database instance crashes.
-
"SELECT"
-
"_Marketing"
-
m364DaYs
-
SELECT
D
Correct answer
Explanation
In SQL, 'SELECT' is a reserved keyword. While it can be used as an object name if enclosed in double quotes (e.g., "SELECT"), using it unquoted as an identifier is invalid and will cause a syntax error.
-
System tablespace
-
Users tablespace
-
Default tablespace for the user
-
Oracle will give an error
-
Undefined
C
Correct answer
Explanation
In Oracle, if a user creates a segment (like a table) without specifying a tablespace, the database automatically assigns it to the default tablespace defined in that specific user's profile configuration.
-
the process of arranging information stored in a database in a way, which removes redundancy and ambiguity.
-
a special way of selecting data
-
the process of adding primary key to a table
-
All the above
A
Correct answer
Explanation
Database normalization is the systematic process of organizing data to reduce redundancy and minimize ambiguity or data anomalies. Selecting data, adding primary keys, and other operations are separate database design tasks.
-
System tablespace
-
Users tablespace
-
Default tablespace for the user
-
Oracle will give an error
C
Correct answer
Explanation
When no TABLESPACE clause is specified, Oracle automatically stores the segment in the user's default tablespace. This is the tablespace assigned to the user when their account was created or last modified with an ALTER USER statement. The system tablespace is reserved for data dictionary objects, not user data.
A
Correct answer
Explanation
Tables store data, views are virtual tables derived from queries, and indexes improve query performance - all are fundamental database objects in Oracle. The question contains a typo ('incexes' instead of 'indexes') but the meaning is clear and the statement is correct.
-
Programming technique
-
Automatically used in all prpgramme
-
PL/SQL compiler directive
-
All of the above
C
Correct answer
Explanation
AUTONOMOUS_TRANSACTION is a pragma (compiler directive) in PL/SQL that marks a routine as an autonomous transaction. This allows the routine to execute independently of the main transaction - it can commit or rollback without affecting the parent transaction's state. It's a PRAGMA directive, not a programming technique or automatic feature.
-
Roles
-
Sequences
-
Synonyms
-
Index
D
Correct answer
Explanation
An index is a database object specifically designed to improve query performance by creating a data structure that allows faster data retrieval without scanning the entire table. Roles manage security permissions, sequences generate unique numeric values, and synonyms provide alternate names for objects.
-
Hierarchical
-
Relational
-
Object Relational
-
Network
C
Correct answer
Explanation
Object-Relational database systems extend the relational model by allowing PL/SQL programs (methods) to be stored as part of object type definitions. Hierarchical and Network are older database models, while pure Relational databases don't support embedding executable code in objects.
-
binary data up to 4 gigabytes
-
character data up to 4 gigabytes
-
a hexadecimal string representing the unique address of a row in its table
-
raw binary data of variable length up to 2 gigabytes
C
Correct answer
Explanation
The ROWID is a pseudo-column that represents the unique physical address of a row within an Oracle database. It is typically displayed as a base-64 or hexadecimal string and provides the fastest way to access a specific row.
A
Correct answer
Explanation
Oracle's DATE data type stores century information along with year, month, day, hours, minutes, and seconds. The DATE type uses 7 bytes internally and includes full date precision including century.