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 technology databases
  1. ZLIB compression gives better compression ratio in comparison to BZIP2 compression

  2. BZIP2 compression gives better compression ratio in comparison to ZLIB compression

  3. ZLIB compression consumes much lesser CPU in comparison to BZIP2 compression

  4. BZIP2 compression consumes much lesser CPU in comparison to ZLIB compression

  5. ZLIB compression comes with additional licensing cost. BZIP2 compression comes with no additional cost

  6. BZIP2 compression comes with additional licensing cost. ZLIB compression comes with no additional cost

Reveal answer Fill a bubble to check yourself
B,C,E Correct answer
Explanation

Oracle 11g offers ZLIB and BZIP2 compression for RMAN backups. BZIP2 provides better compression ratio but consumes more CPU. ZLIB is faster but compresses less. ZLIB is included in base licensing, while BZIP2 requires additional licensing cost for the Advanced Compression Option.

Multiple choice technology databases
  1. Scenario 1: Backup 2 datafiles each of 20 GB datafile using 4 RMAN channels. Use the default setting for all RMAN channels

  2. Scenario 2: Backup 2 datafiles each of 20 GB datafile using 4 RMAN channels. Each channel backs up 2 datafiles at the same time with “parallel=2”

  3. Scenario 3: Backup 2 datafiles each of 20 GB size using 4 RMAN channels. Each channel backs up data with “section size=5GB"

  4. Scenario 4: Backup 2 datafiles each of 20 GB datafile using 4 RMAN channels. Each channel backs up 2 datafiles at the same time with “parallel backups=2”

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

True parallel backup in RMAN occurs when multiple channels work on different sections of the same datafile simultaneously. Section size parameter divides datafiles into chunks that channels can backup in parallel. Options with parallel=2 or parallel backups=2 refer to channel parallelism, not section-based backup parallelism.

Multiple choice technology databases
  1. If the datafile resides on only one disk, there is no advantage of using parallel backups

  2. The size of all the sections of a datafile involved in “Parallel backup” are always same

  3. The size of all the sections of a datafile involved in “Parallel backup” are always same except the size of the last section

  4. All the sections of one datafile are backed up by the same channel

  5. All the sections of one datafile are backed up by different channels

Reveal answer Fill a bubble to check yourself
A,C,E Correct answer
Explanation

Parallel backups in RMAN divide datafiles into sections backed up by multiple channels simultaneously. Option A is correct because single-disk systems see no performance benefit from parallelism. Option C is correct because RMAN creates equal-sized sections except the last one. Option E is correct because each channel handles different sections. Options B and D are incorrect because sections aren't always same size and aren't backed up by same channel.

Multiple choice technology databases
  1. COMMITTED UNDO data is NEVER backed up

  2. COMMITTED UNDO data is backed up depending on the status of the transaction

  3. COMMITTED UNDO data is backed up always

  4. UNCOMMITTED UNDO data is never backed up

  5. UNCOMMITTED UNDO data is backed up depending on the status of the transaction

  6. UNCOMMITTED UNDO data is backed up always

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

RMAN's backup behavior for undo data follows specific rules. COMMITTED UNDO data is never backed up because it's no longer needed for recovery (option A is correct). UNCOMMITTED UNDO data is always backed up to enable transaction rollback after restore (option F is correct). Options B, C, D, and E are incorrect because they misstate when undo data is included in backups. This distinction ensures proper recovery capabilities.

Multiple choice technology databases
  1. Create one catalog database per Database Administrator to share the maintenance workload

  2. Restrict SYSDBA and SYSOPER access from Database Administrators and yet allow them to perform database backup and recovery related tasks i.e. Virtualization of the SYSDBA and SYSOPER access

  3. Maintain only one database for the RMAN repository catalog yet establish secure boundaries for individual database owners to manage their own virtual repositories

  4. Make Oracle 11g database compliant with global Backup and Recovery standards

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

The Virtual Private Catalog feature allows a single RMAN catalog database to serve multiple database owners while maintaining security boundaries. Each administrator gets a virtual view of only their databases (option C is correct). This avoids the overhead of separate catalog databases. Options A, B, and D are incorrect because VPC doesn't create separate catalogs, restrict SYSDBA access, or relate to compliance standards.

Multiple choice technology databases
  1. It is used to consolidate multiple catalog database repositories into a single catalog database

  2. Once the import is successful, it unregisters the database from the destination catalog database i.e. the database where the metadata is imported

  3. Once the import is successful, it unregisters the database from the source catalog database i.e. the database which holds the original metadata

  4. If NO UNREGISTER clause is used, it will not unregister the database from the destination catalog database i.e. the database where the metadata is imported

  5. If NO UNREGISTER clause is used, it will not unregister the database from the source catalog database i.e. the database which holds the original metadata

Reveal answer Fill a bubble to check yourself
A,C,E Correct answer
Explanation

RMAN's IMPORT CATALOG command consolidates recovery catalogs. By default, it unregisters the database from the source catalog to prevent duplicate registration, unless the NO UNREGISTER clause is specified. The destination catalog is where metadata is imported, so it is never unregistered. Thus, options supporting source unregistration and the NO UNREGISTER behavior are correct.

Multiple choice technology databases
  1. Duplicating the database from its backup has been available since Oracle8i Database

  2. Duplicating the database from its backup has been available since Oracle9i Database

  3. Duplicating the database from its backup has been available since Oracle10g Database

  4. Duplicating the database from its backup has been available since Oracle11g Database

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

Database duplication using RMAN was introduced in Oracle9i Database, allowing direct duplication from backups (option B is correct). This feature was not available in Oracle8i (option A is incorrect). Oracle10g and Oracle11g came later with enhanced features, but the core functionality existed since 9i. This is an important feature for creating test databases or disaster recovery.

Multiple choice technology databases
  1. from target database

  2. from live database

  3. from source database

  4. from active database

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

The DUPLICATE DATABASE command with FROM ACTIVE DATABASE clause tells RMAN to duplicate the target database over the network instead of using pre-existing backups. This is used for active database duplication where RMAN connects to the target database and copies data files directly. The other options (from target database, from live database, from source database) are not valid RMAN clause syntax for this purpose.

Multiple choice technology databases
  1. Structure

  2. Design Issue

  3. Data Source

  4. Storage Issue

  5. Operational Process

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

The Design Issue phase of data modeling includes reviewing security requirements, access controls, and data privacy policies. This is where security considerations are integrated into the design before implementation. Structure phase focuses on schema design, Data Source on identifying data sources, Storage Issue on physical storage, and Operational Process on maintenance procedures.

Multiple choice technology databases
  1. Data about Data

  2. Describes a data dictionary

  3. Self-describing

  4. Includes user data

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

Metadata is 'data about data' that describes the structure, attributes, and relationships of data elements. It is self-describing and populates data dictionaries. However, metadata does NOT include the actual user data - it only describes the data's characteristics. For example, metadata might specify that a field is 'integer, max 10 digits' but not contain the actual values stored.

Multiple choice technology architecture
  1. for relatively permanent collections of data

  2. for the size of the structure and the data in the structure are constantly changing

  3. for both of above situation

  4. for none of above situation

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

Linked lists use dynamic memory allocation where each node contains data and a pointer to the next node, making them ideal for collections with frequent size changes. Adding or removing elements only requires updating pointers, making these operations O(1) at known positions.

Multiple choice technology mainframe
  1. a) INDEXED

  2. b) NUMBERED

  3. c) LINEAR

  4. d) NONINDEXED

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

KSDS (Key Sequenced Data Set) organizes data using an INDEXED structure. Records are stored and accessed based on their key values, which are maintained in a separate index component. This indexed organization enables efficient direct access by key. Option A is correct.

Multiple choice technology mainframe
  1. a) Desirable for sensitive data

  2. b) Removes catalog entries

  3. c) All the above

  4. d) None

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

NOERASE specifies that data is not physically overwritten with binary zeros when the VSAM dataset is deleted, leaving raw data on disk. Heat-sensitive or confidential data requires the ERASE parameter to ensure complete destruction. Thus, NOERASE is not desirable for sensitive data, which makes statement a not true.

Multiple choice technology architecture
  1. elementary items

  2. atoms

  3. scalars

  4. all of above

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

Indecomposable items in a record that cannot be broken down further are called elementary items, atoms, or scalars - all three terms refer to the same concept of primitive data types that contain a single value. Therefore 'all of the above' is correct.

Multiple choice technology architecture
  1. An array is suitable for homogeneous data but hte data items in a record may have different data type

  2. In a record, there may not be a natural ordering in opposed to linear array.

  3. A record form a hierarchical structure but a lienear array does not

  4. All of above

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

Arrays store homogeneous elements (same type) with natural ordering by index. Records can store heterogeneous elements (different types) without requiring a natural ordering among fields. Records can form hierarchical structures through nested records, unlike simple linear arrays. All three statements correctly distinguish arrays from records.