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
-
Database Buffer Cache
-
Redo Log Buffer
-
Shared Pool
-
PGA
C
Correct answer
Explanation
The Shared Pool contains the data dictionary cache (row cache), which caches metadata information about tables, columns, and privileges. The Database Buffer Cache holds actual data blocks, the Redo Log Buffer caches transaction recovery info, and the PGA holds private session and SQL execution work areas.
-
To access the HR user account, the account should be unlocked first
-
All accounts created by the Database Creation Assistant are locked
-
The SYS and SYSTEM accounts use the same default password as in previous Oracle versions
-
All accounts created by the Database Creation Assistant initially have expired passwords
A
Correct answer
Explanation
When creating an Oracle database using the Database Creation Assistant, most default accounts are initially locked for security. The HR account (Human Resources schema) exists but must be explicitly unlocked before use. Option A correctly states this requirement. Option B is incorrect because not all accounts are locked (some like SYS/SYSTEM are accessible). Option C is incorrect because modern Oracle versions require password changes, not reusing old defaults. Option D is incorrect because accounts don't have expired passwords initially - they're locked.
-
The related columns of the tables are called the cluster key. The cluster key is indexed using a cluster index and its value is stored only once for multiple tables in the cluster.
-
The related columns of the tables are called the cluster key. The cluster key is indexed using a b+ tree index and its value is stored only once for multiple tables in the cluster.
-
The related columns of the tables are called the cluster key. The cluster key is indexed using a bitmap index and its value is stored only once for multiple tables in the cluster.
-
The related columns of the tables are called the cluster key. The cluster key is indexed using a range index and its value is stored only once for multiple tables in the cluster.
A
Correct answer
Explanation
In an Oracle table cluster, the cluster key consists of the related columns shared by the clustered tables. This key is indexed using a cluster index, allowing rows with the same key value to be stored together physically, reducing storage redundancy. B-tree, bitmap, or range indexes are not used for cluster keys.
-
Two-phase commit is mechanism that guarantees a distributed transaction that always commits on all involved nodes to maintain data consistency across the global distributed database.
-
Two-phase commit is mechanism that guarantees a distributed transaction either commits on all involved nodes or rolls back on all involved nodes to maintain data consistency across the global distributed database. It has two phase, a Prepare Phase and a C
-
Two-phase commit is mechanism that guarantees a distributed transaction that always rollback on all involved nodes to maintain data consistency across the global distributed database.
-
Two-phase commit is mechanism that guarantees a distributed transaction that always commit on all involved nodes to maintain data consistency across the global heirarchical database.
B
Correct answer
Explanation
Two-Phase Commit (2PC) ensures distributed transactions either commit on all nodes OR roll back on all nodes, maintaining consistency. It has two phases: Prepare Phase (all nodes verify they can commit) and Commit Phase (coordinator instructs all to commit). Option A incorrectly states it always commits, which would allow inconsistency. Option C incorrectly states it always rolls back. Option D mentions 'heirarchical database' (typo for hierarchical) and incorrectly states it always commits. Option B correctly describes the all-or-nothing guarantee with both phases.
-
Heterogeneous Services
-
Oracle Connection Manager
-
Dynamic Service Registration
-
Oracle Names Server
C
Correct answer
Explanation
When an instance is down, Oracle Net's Dynamic Service Registration enables automatic failover. With service registration, listeners track instance availability and can redirect connection requests to surviving instances without manual configuration. Heterogeneous Services (A) is for non-Oracle data sources. Oracle Connection Manager (B) provides connection pooling and firewall features, not failover. Oracle Names Server (D) is a deprecated naming/directory service.
-
It consists of Redo Log files that have archived before being reused.
-
It consists of Redo Log files that have archived after being reused.
-
It consists of Redo Log files that is archiving when currently being reused.
-
It consists of Redo Log files that have archived not being reused.
A
Correct answer
Explanation
Archived Redo Logs are copies of online redo log files that have been saved before being reused. When an online redo log fills, Oracle switches to a new log. Archiving (if enabled) copies the filled log to an archive location before it can be overwritten. Option A correctly states they are archived before reuse. Option B is incorrect because archiving happens before, not after, reuse. Option C incorrectly suggests archiving occurs during reuse. Option D is incorrectly phrased and unclear.
-
V$LOG
-
V$THREAD
-
V$DATAFILE
-
All of the above
D
Correct answer
Explanation
Dynamic performance views like V$LOG, V$THREAD, and V$DATAFILE obtain their structural database details directly from the control file. Since all these views rely on the database's physical layout and current states registered in the control file, 'All of the above' is the correct answer.
-
The MAXLOGFILES are set too low
-
The CONTROLFILE REUSE clause is omitted
-
The online redo log files cannot be reused
-
The data file belonging to the SYSTEM tablespace cannot be reused
B
Correct answer
Explanation
The CREATE DATABASE statement fails because CONTROLFILE REUSE clause is missing. When reusing existing database files (specified by REUSE for datafiles and logs), you must explicitly include CONTROLFILE REUSE to allow Oracle to reuse the existing control file. Without this clause, Oracle attempts to create a new control file, causing conflict. Option A is incorrect because MAXLOGFILES=5 is reasonable. Option C is incorrect because online redo logs CAN be reused (the REUSE clause explicitly allows this). Option D is incorrect because the SYSTEM tablespace datafile can be reused with REUSE.
-
Data Load Performance
-
Batch Calculation Performance
-
Retrieval Performance
-
None of the above
C
Correct answer
Explanation
Attribute dimensions in Essbase are sparse dimensions used primarily for reporting and analysis. When attribute dimensions are used extensively, they can slow down data retrieval operations because the system needs to perform additional lookups and calculations to associate attribute values with the base data. This doesn't significantly affect data load or batch calculation performance.
-
The number of CPUs on the server
-
The degree of parallelism on the tables
-
The use of bitmap indexes
-
The quality of the SQL optimization
D
Correct answer
Explanation
SQL statement tuning focuses primarily on improving the execution plan generated by the optimizer. While hardware resources like CPU count, index choices, and parallelism influence execution environment decisions, the fundamental component of statement tuning is the quality of the SQL optimizer's decisions and execution plans.
-
SQL Data Source
-
XML Data Source
-
Object.
-
ODBC
A,B,C
Correct answer
Explanation
ASP.NET 2.0 introduced SqlDataSource, XmlDataSource, and ObjectDataSource controls to simplify data binding. These were new declarative data source controls that eliminated much of the code required in previous versions. ODBC data sources existed prior to 2.0.
-
Columns of defined Datatype
-
Tables schema information within them.
-
All of the above
-
None of the above
C
Correct answer
Explanation
Strongly typed datasets encapsulate both table definitions and column data types within their schema, providing compile-time type safety. Unlike untyped datasets, they know the structure and data types at design time.
-
Model View Controller
-
Composite Entity
-
Fast Lane Reader
-
View Helper
C
Correct answer
Explanation
Fast Lane Reader is specifically designed to improve read performance for tabular data by bypassing complex EJB (Enterprise JavaBean) overhead. It directly accesses data using simpler mechanisms like JDBC, providing faster reads for simple queries. This pattern is ideal when you need quick, read-only access to tabular data without full transactional overhead.
A
Correct answer
Explanation
Row migration occurs when a row grows too large to fit in its original data block due to insufficient PCTFREE space. PCTFREE reserves space in each block for future updates to existing rows. If set too low and rows expand, they must migrate to new blocks, leaving a forwarding pointer. This degrades performance due to additional I/O.
-
To get automatic values
-
For esay access
-
For fast access
-
All of the above
C
Correct answer
Explanation
The CACHE option in Oracle sequences pre-allocates sequence values and keeps them in memory for faster access. This minimizes disk I/O when generating values. While the sequence generates automatic values, CACHE specifically optimizes speed.