Computer Knowledge
Database Management Systems
5,543 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
-
L
-
N
-
E
-
P
-
none of the above
B
Correct answer
Explanation
In RPG IV, the N operation extender is used with input operations like READ or CHAIN to indicate that the record should be read without locking it.
-
Yes
-
No
-
Only for uncataloged datasets
-
Only for cataloged datasets
C
Correct answer
Explanation
VOL=SER (volume serial) specifications are required for tape datasets that are not cataloged. Cataloged tape datasets have their volume information recorded in the system catalog, so VOL=SER is optional. For uncataloged tape datasets, VOL=SER tells the system which tape volume to mount.
-
/opt/Netcool/var/logs
-
/opt/Netcool/ism/datalogs
-
/opt/Netcool/log/ism
-
/opt/Netcool/ism/log
C
Correct answer
Explanation
ISM (IBM Tivoli Netcool/ISM) stores its operational logs in /opt/Netcool/log/ism by default. Options A, B, and D are incorrect - they either point to wrong directories or reverse the correct path structure.
-
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.
B
Correct answer
Explanation
A data warehouse is designed for analytical processing (OLAP) and historical data storage, not for day-to-day operational transactions (OLTP). Operational data stores (ODS) handle day-to-day business data.
-
Subject orientation
-
Non-volatile
-
Integrated
-
Time variant
A,B,C,D
Correct answer
Explanation
Data warehouses have four key characteristics per W.H. Inmon: subject-oriented (organized around major subjects), non-volatile (data is read-only), integrated (data from multiple sources is standardized), and time-variant (provides historical perspective). All options are correct.
-
Fact
-
Dimension
-
Granularity
-
Summary
C
Correct answer
Explanation
Granularity refers to the level of detail stored in the data warehouse - how fine or coarse the data is. For example, sales data stored by day versus by month represents different granularity levels. Facts are measurements, dimensions provide context, and summary is an aggregation.
-
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
-
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.