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

Multiple choice
  1. DBA

  2. SYSDBA

  3. SYSOPER

  4. RESOURCE

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Creating an Oracle database requires SYSDBA privilege, which is the highest administrative privilege. DBA is a role that grants database administration permissions but does NOT include database creation authority. SYSOPER provides startup/shutdown and basic operations but cannot create databases. RESOURCE is a schema-level role for object creation with no database creation rights.

Multiple choice
  1. Control

  2. Alert

  3. Registry

  4. Parameter

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The control file contains the database's physical structure metadata including all data file names and locations. When you execute ALTER DATABASE RENAME FILE, Oracle automatically updates the control file to reflect the new path. Alert log entries are chronological records, parameter files are manual configs, and Registry stores Oracle software metadata - none auto-update from rename operations.

Multiple choice
  1. The Oracle server maintains the server parameter file.

  2. The server parameter file is created automatically when the instance is started.

  3. Changes can be made in memory and/or in the SPFILE with the ALTER SYSTEM command.

  4. The use of SPFILE provides the ability to make changes persistent across shut down and start up.

  5. The Oracle server keeps the server parameter file and the text initialization parameter file synchronized.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The server parameter file (SPFILE) is a binary file maintained by the Oracle server, providing persistent storage and automatic synchronization of initialization parameters. While ALTER SYSTEM can update both memory and SPFILE, and changes persist across restarts, option A captures the core advantage - Oracle actively manages the SPFILE, preventing human edit errors and ensuring consistency.

Multiple choice
  1. Index

  2. Table

  3. Temporary

  4. Boot strap

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Index segments store sorted copies of indexed columns, allowing Oracle to locate rows without scanning entire tables. This dramatically improves query performance, especially for large tables with selective WHERE clauses. Tables store actual data, temporary segments hold intermediate query results, and bootstrap segments contain internal metadata - none exist primarily for query performance enhancement.

Multiple choice
  1. The LOG_ARCHIVE_DEST_n = 'SERVICE=PRODS DELAY 20' parameter should be included in the parameter file on the primary database

  2. The LOG_ARCHIVE_DEST_n = 'SERVICE=PROD DELAY 20' parameter should be included in the parameter file on the standby database

  3. The REOPEN option should be specified on the LOG_ARCHIVE_DEST_n parameter

  4. At least one of the log archive destinations should be set to MANDATORY

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The DELAY attribute in LOG_ARCHIVE_DEST_n parameter on the PRIMARY database causes archived logs to be held for the specified minutes before being applied on the standby. Setting 'SERVICE=PRODS DELAY 20' on PROD ensures PRODS waits 20 minutes before applying shipped logs. This prevents corrupted or erroneous data from being immediately propagated to the standby, providing a recovery window.

Multiple choice
  1. Set the target database to a consistent incarnation.

  2. Synchronize the control file of the target database with the recovery catalog

  3. Register the target database in the newly created catalog

  4. Reset the target database to an incarnation that is synchronized with the recovery catalog

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

After creating the recovery catalog tablespace, user, schema, and granting privileges, then creating the catalog with RMAN, the mandatory next step is registering the target database in the catalog. Option A (setting incarnation) happens later if needed. Option B (synchronizing) occurs during registration and subsequent updates. Option D (resetting incarnation) is only required for advanced recovery scenarios like flashback or point-in-time recovery to a different incarnation, not during initial setup.

Multiple choice
  1. Cluster table

  2. Partitioned table

  3. Unclustered table

  4. Index-organized table

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Cluster tables allow rows from multiple tables to be stored in the same data block based on a cluster key. This improves join performance for frequently joined tables. Partitioned tables split a single table, unclustered is the default, and index-organized tables store data within the index structure.

Multiple choice
  1. taking up the backup of the database while it is still up and running

  2. taking up the backup of the database after the user logs off

  3. taking up the backup followed by taking cold backup

  4. none of the above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

A hot backup is taken while the database is online and running, allowing users to continue working during backup. This contrasts with cold backup, which requires shutting down the database. The key characteristic is that the database remains operational.

Multiple choice
  1. In Oracle8i, I/O slaves are not available; only DBWn processes are available.

  2. I/O slaves perform the write function only, while DBWn processes also perform date-gathering activity.

  3. I/O slaves will work only with synchronous I/O, whereas DBWn processes are available only within asynchronous I/0.

  4. I/O slaves will work only with asynchronous I/O, whereas DBWn processes are available only within synchronous I/0.

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

I/O slaves are specialized processes that only perform write operations to data files. DBWn (Database Writer) processes perform both data gathering (identifying dirty buffers) and writing them to disk. The synchronous/asynchronous I/O distinction is incorrect - both can work with either type.

Multiple choice
  1. OSDBA

  2. 9iDBA

  3. OSADM

  4. OSOPER

  5. None of the above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

OSDBA is the operating system group that grants SYSDBA privileges when connecting to an Oracle database. Members of this group can perform database administration tasks. The other options (9iDBA, OSADM, OSOPER) are not valid Oracle operating system groups for SYSDBA access.

Multiple choice
  1. Test the connection

  2. Configure a listener

  3. Specify a net service name

  4. Specify the Oracle database version

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

After configuring connection parameters (service name, protocol, host, port), the Oracle Net Configuration Assistant's logical next step is testing whether the connection works. This validates the configuration before completing. The listener and net service name would have been configured earlier in the process.

Multiple choice
  1. The direct-path feature allows a user to extract database objects faster than the conventional-path.

  2. The Export Utility can be used to make a logical backup of a table, a tablespace, or a table's associated data files.

  3. The FULL database export mode exports all database objects regardless of the schema.

  4. Performing an export/import of a tablespace is quicker than using the transportable tablespace method to transfer a table and its data.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Direct-path export bypasses the SQL statement processing layer, writing data directly to the export file, which is significantly faster than conventional path. Export cannot export tablespaces or data files directly (only schema objects). FULL export respects schema boundaries. Transportable tablespaces are faster than export/import for table transfer.

Multiple choice
  1. Immediately after setting the database in ARCHIVELOG mode, in SQL*Plus select automatic archiving using this syntax: ALTER DATABASE SET LOG_ARCHIVE_START=TRUE.

  2. Automatic archiving is the default when ARCHIVELOG mode is set. No further actions are required.

  3. Set the LOG_ARCHIVE_MAX_PROCESSES parameter to n (where n is the number of Archiver processes) in the initialization parameter file.

  4. Set the LOG_ARCHIVE_START parameter to TRUE in the initialization parameter file.

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The LOG_ARCHIVE_START parameter in the initialization parameter file controls whether automatic archiving starts when the instance starts up. Setting it to TRUE enables this. Automatic archiving is not the default. LOG_ARCHIVE_MAX_PROCESSES controls the number of archiver processes, not whether archiving is enabled.