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
-
The database services to be registered with the listener
-
The log file and trace file destination for the listener.
-
The protocol used by the listener
-
The server name where the listener runs.
-
The port used by the listener.
C,D,E
Correct answer
Explanation
When creating a new listener through Enterprise Manager, you must specify: the protocol (TCP, TCPS, etc.), the server/hostname where the listener runs, and the port number it listens on. Database services register dynamically with the listener. Log and trace file locations use default values or are configured later. These three parameters are the minimum required for listener creation and basic operation.
-
Extents would be managed by freelists.
-
Free space would be managed by data dictionary
-
The segment would be managed by bitmaps.
-
The segment would be managed by freelists.
C
Correct answer
Explanation
Automatic segment space management uses bitmaps to track free and used space within segments instead of freelists. When you specify automatic segment space management for a tablespace, Oracle uses bitmaps to manage space allocation, which is more efficient than the manual freelists method. Freelists (A and D) are used in manual segment space management, while data dictionary (B) management is an older, deprecated approach.
-
Oracle Net Manager.
-
Data Pump.
-
Oracle Universal Installer (OUI).
-
Oracle Enterprise Manager.
-
Database Configuration Assistant (DBCA).
-
Object level.
-
Row level.
-
Block level.
-
Schema level.
-
Database level.
A,B
Correct answer
Explanation
Object-level (table-level) and row-level locks are the primary locking levels used by Oracle Database to ensure data concurrency and integrity during transactions. Block-level and schema-level locks are not standard transaction-level locks, and database-level locking is only used for database-wide operations rather than typical user transactions.
-
Loss of the initialization parameter file.
-
One of the redo log members.
-
Any data file belonging to the default permanent tablespace
-
Any archive log file.
-
Any control file.
E
Correct answer
Explanation
Control files contain critical metadata about the database structure and are essential for database operation. If any control file is lost, the database instance will shut down because it cannot access the necessary information to manage the database. While Oracle recommends multiplexing (having multiple control files), losing one affects the database's ability to function. The other options - parameter file, redo log members, data files, and archive logs - have different failure characteristics that don't always cause immediate shutdown.
-
It is possible to have tablespaces of different block sizes in a database.
-
A data block is the smallest unit of I/O for data files.
-
Multiple tablespaces can share single data file.
-
Each data block in the database always corresponds to one OS block
-
Each segment contains one or more extents.
A,B,E
Correct answer
Explanation
Oracle's logical database structure supports multiple block sizes within the same database (A). The data block is indeed the smallest unit of I/O for data files (B). Multiple tablespaces cannot share a single data file (C is false) - each data file belongs to exactly one tablespace. Data blocks don't always correspond one-to-one with OS blocks (D is false). Each segment is composed of one or more extents (E).
-
Data files and redo log files can be renamed at the MOUNT stage
-
Control files are required to bring the database to the NOMOUNT stage.
-
Data files and online redo log files are checked for consistency while opening the database
-
Data files and redo log files are made available to users at the OPEN stage.
A,C,D
Correct answer
Explanation
During database startup: At the MOUNT stage, data files and redo log files can be renamed (A). Control files are NOT required for NOMOUNT stage - they're needed for MOUNT stage (B is false). During the OPEN stage, data files and online redo log files are checked for consistency (C). At the OPEN stage, these files become available to users (D). The NOMOUNT stage only starts the instance without accessing control files.
-
User defined function
-
Session variable
-
Mapping parameter
-
Session parameter
C
Correct answer
Explanation
Mapping parameters in Informatica PowerCenter are designed to hold values that change between sessions (like dates, file paths, or external values). They're set before session execution. Session variables are runtime-modifiable, while UDFs are for custom logic, making mapping parameters the best choice for frequently changing external values.
-
SQL query in Hyperion
-
SQL query in Informatica
-
SQL Query on DWH data
-
SQL Query in Datastage
C
Correct answer
Explanation
The 'LR' data is generated by executing SQL queries directly on the Data Warehouse (DWH) data, not through intermediate tools like Hyperion, Informatica, or Datastage. This direct SQL approach on consolidated warehouse data is the standard method for generating such reports.
-
COMPILE
-
BIND
-
TRANSLATE
-
LINK
B
Correct answer
Explanation
BIND is the DB2 process that reads SQL statements from an application plan and creates or updates access paths (indexes, package structures) in the DB2 catalog. It validates SQL syntax, checks permissions, and optimizes query plans, effectively building the bridge between application code and database tables.
-
using SqlClientAlias = System.Data.SqlClient;
-
using System.Data.SqlClient SqlClientAlias;
-
using System.Data.SqlClient @SqlClientAlias;
-
We can't create alias for a namespace.
A
Correct answer
Explanation
In C#, you can create an alias for a namespace using the syntax 'using AliasName = Namespace.Path;'. This is called a 'using alias' and helps avoid naming conflicts or simplify long namespace names. Option A shows the correct syntax, while options B and C have the order reversed or incorrect syntax.
-
HASH
-
MODULUS
-
RANGE
-
RANDOM
C
Correct answer
Explanation
INTERVAL partitioning is an extension of RANGE partitioning. It automatically creates new partitions of a specified range (interval) when data is inserted that falls outside existing partition boundaries, making it fundamentally range-based.
-
ORACLE 11G
-
ORACLE 10G
-
ORACLE 9I
-
ORACLE 9G
-
ORACLE 11I
-
ORACLE 8I
A
Correct answer
Explanation
INTERVAL partitioning was introduced in Oracle Database 11g Release 1 as a new feature. This automatic partition creation method was not available in Oracle 10g or any earlier versions, making it an 11g-specific capability.
-
DB_CREATE_FILE_DEST
-
DB_CREATE_ONLINE_LOG_n
-
USER_DUMP_DEST
-
LOG_ARCHIVE_DEST
-
They indicate an optimized execution plan.
-
They may be able to be tuned to use an index
-
The full-table scan should be normalized from the database design
-
A full-table scan is always sub-optimal.
B
Correct answer
Explanation
Full-table scans on large tables consume significant I/O and CPU resources. Identifying them allows you to investigate whether adding appropriate indexes could improve performance. However, scans aren't always sub-optimal - for small tables or when most rows are needed, a scan may be the best access path.