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

Multiple choice technology databases
  1. RMAN prompt

  2. SQLPLUS prompt

  3. Oracle Enterprise Manager 11g (OEM)

  4. DRA prompt

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

Data Recovery Advisor (DRA) in Oracle can be accessed from RMAN prompt and Oracle Enterprise Manager. RMAN provides direct command-line access to DRA functionality. OEM 11g offers a graphical interface to DRA. SQLPLUS and DRA prompt are not valid access points for DRA.

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 databases
  1. 10.2.0.1

  2. 10.2.0.3

  3. 10.2.0.2

  4. 10.2.0.4

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

CEMS (specifically corresponding to historical environments) utilizes Oracle version 10.2.0.4 as its certified patchset. Other minor releases like 10.2.0.1 or 10.2.0.2 are older and not the target platform standard.

Multiple choice technology databases
  1. Physical files

  2. Memory buffers

  3. Background processes

  4. Database

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

An Oracle Instance consists of memory structures (SGA and PGA) and background processes. The System Global Area (SGA) is a shared memory region containing data and control information for one Oracle instance. Background processes are processes that handle various tasks like database writing, log writing, and process monitoring. Physical files and the database itself are storage components, not instance components.

Multiple choice technology databases
  1. True

  2. False

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

PGA (Program Global Area) is a memory region that contains data and control information for a server process. It is allocated when a server process is created and is exclusive to that process. The PGA is non-shared memory, unlike the SGA which is shared across all processes. Each user session gets its own PGA allocation.

Multiple choice technology databases
  1. True

  2. False

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

A database session must be established before you can access any data in Oracle. The session authenticates the user and allocates the necessary server process and PGA memory. Without establishing a connection and session, there is no context through which SQL statements can be executed and data can be retrieved.