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. a. Compression unit can span across multiple data blocks

  2. b. The value of particular column can span across multiple blocks

  3. c. If a column in a compression unit is updated, the database will take a lock only on the updated rows

  4. d. If a column in a compression unit is updated, the database will take a lock on the entire compression unit

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

Exadata Hybrid Columnar Compression uses Compression Units (CU) that can span multiple blocks. Individual column values can also cross block boundaries. By default, updates to a compressed row lock the entire CU, decreasing concurrency. Therefore, options a, b, and d are correct, while c is incorrect because row-level locking is not default.

Multiple choice technology databases
  1. a. For basic and online archival compression inserted and updated rows are uncompressed

  2. b. Higher compression levels of Exadata Hybrid Columnar Compression are achieved only with data that is direct-path inserted

  3. c. High CPU overhead in case Warehouse compression

  4. d. Conventional inserts and updates are supported in Exadata Hybrid Columnar Compression but the extent of compression is low

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

Exadata Hybrid Columnar Compression (EHCC) stores data in compression units, which are larger blocks that Oracle locks during DML operations, potentially reducing concurrency. Basic compression leaves inserted/updated rows uncompressed until they are moved during maintenance operations. Higher compression levels (Archive) require direct-path insert operations to achieve maximum compression ratios. Conventional DML is supported but results in lower compression efficiency, while warehouse compression can incur higher CPU overhead during compression and decompression operations.

Multiple choice technology databases
  1. a. COMPRESS FOR QUERY HIGH should be used where load performance is critical

  2. b. COMPRESS FOR QUERY LOW should be used where load performance is critical

  3. c. COMPRESS FOR ARCHIVE HIGH should be used for rarely accessed application

  4. d. COMPRESS FOR ARCHIVE HIGH should be used for heavily accessed application

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

COMPRESS FOR QUERY LOW is designed for load performance, using lower compression overhead for faster data loading while still providing query performance benefits. COMPRESS FOR QUERY HIGH provides better compression but slower load times. COMPRESS FOR ARCHIVE HIGH is for rarely accessed data requiring maximum compression, not for frequently accessed applications. Archive compression levels add significant overhead during data loading and modification, making them unsuitable for active workloads.

Multiple choice technology databases
  1. a. CELL_OFFLOAD_PLAN_DISPLAY

  2. OPT_PARAM

  3. c. CELL_OFFLOAD_PROCESSING

  4. d. CELL_PARTITION_LARGE_EXTENTS

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

The CELL_OFFLOAD_PROCESSING parameter controls whether predicate filtering and other operations are offloaded to Exadata storage cells. This parameter can be set at system or session level and overrides the default behavior of using cell offload capabilities. The other options (CELL_OFFLOAD_PLAN_DISPLAY, OPT_PARAM, CELL_PARTITION_LARGE_EXTENTS) are not the correct parameter names for controlling cell offload processing behavior.

Multiple choice technology databases
  1. True

  2. False

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

CELL_OFFLOAD_PROCESSING parameter controls whether predicate evaluation is offloaded to storage cells, not the overall performance comparison between Exadata and conventional storage. To compare Exadata Cell with conventional storage, you would disable cell offload features or use different testing methodologies. This parameter specifically targets offload processing behavior, not comprehensive storage subsystem performance.

Multiple choice technology databases
  1. True

  2. False

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

CELL_OFFLOAD_PLAN_DISPLAY determines whether Oracle's EXPLAIN PLAN displays Exadata storage filter predicates. Setting it to AUTO or ALWAYS enables this feature, allowing database administrators to verify if query predicates are offloaded to storage cells. The option False is incorrect because it disables showing these storage predicates.

Multiple choice technology databases
  1. a. CELL_PARTITION_LARGE_EXTENTS initialization parameter can be used to set the INITIAL storage parameter to a preferred value for all segments in a partitioned object

  2. b. This parameter is relevant only to LMT with AUTOALLOCATE option

  3. c. This parameter is relevant only to LMT with UNIFORM option

  4. d. This parameter does not impact non-partitioned object and has valid values as TRUE, ALWAYS and DEFAULT

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

The initialization parameter _CELL_PARTITION_LARGE_EXTENTS (often used in Exadata) changes default initial extents for partitioned tables/indexes to 8MB. It applies to Locally Managed Tablespaces (LMT) with AUTOALLOCATE, affects only partitions, and accepts TRUE, ALWAYS, and DEFAULT.

Multiple choice technology databases
  1. True

  2. False

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

For heavily partitioned tables, SQL*Loader may not be the most efficient loading mechanism. Using external tables with parallel INSERT direct load provides better performance by leveraging parallel processing and direct-path insert capabilities. External tables read from flat files and enable parallel direct-path inserts, which are optimized for partitioned table loading scenarios.

Multiple choice technology databases
  1. a. Specifies the repair time in hours for any failed disk

  2. b. The amount of time a disk can remain offline before it is dropped by Oracle ASM

  3. c. The amount of time a disk will remain on-line if there is any fault

  4. None of the above

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

The disk_repair_time parameter in Oracle ASM specifies how long a disk can remain offline before ASM drops it from the disk group. This is a protection mechanism that prevents permanent disk removal during transient failures. It is measured in hours and applies to disks that go offline, not to repair time specification or disk online behavior during faults.

Multiple choice technology databases
  1. a. The CELL_FLASH_CACHE storage clause attribute allows the override of the automatic caching policy, when the compatible parameter is greater than or equal to 11.2.0.0

  2. b. The CELL_FLASH_CACHE storage clause attribute can be used to specify how specific database objects are cached in Exadata Smart Flash Cache

  3. c. It can have values NONE, DEFAULT and KEEP

  4. None of the above

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

CELL_FLASH_CACHE is a storage clause attribute that controls how database objects are cached in Exadata Smart Flash Cache, overriding the automatic caching policy when compatible parameter is 11.2.0.0 or higher. The attribute accepts three values: NONE (no caching), DEFAULT (uses automatic policy), and KEEP (forces caching). This provides fine-grained control over flash cache usage for specific tables, partitions, or tablespaces.

Multiple choice technology databases
  1. The CELL_OFFLOAD_PROCESSING parameter is set to FALSE.

  2. The optimizer uses direct path read.

  3. A scan is performed on a clustered table.

  4. A scan is performed on an index-organized table.

  5. A fast full scan is performed on compressed indexes.

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

Predicate evaluation is not offloaded when CELL_OFFLOAD_PROCESSING is FALSE, or when scanning certain table types. Clustered tables and index-organized tables have storage structures that don't support predicate offloading. Fast full scans on compressed indexes also don't support offload. Direct path reads are a different optimization mechanism and don't prevent predicate offloading - they're often used together in Exadata.

Multiple choice technology databases
  1. A fast full scan is performed on reverse key indexes.

  2. The table has row dependencies enabled or the rowscn is being fetched.

  3. The optimizer wants the scan to return rows in ROWID order.

  4. The command is CREATE INDEX using nosort.

  5. A LOB or LONG column is being selected or queried.

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

All listed cases prevent predicate evaluation offload to Exadata Cell. Fast full scans on reverse key indexes cannot be offloaded due to index structure. Row dependencies or ROWID fetching require database-level processing. ROWID-ordered scans bypass cell offloading capabilities. CREATE INDEX with nosort requires database-side processing. LOB/LONG column queries need database-level handling due to size and complexity.

Multiple choice technology databases
  1. A scan is performed on a flashback table.

  2. A query that has more than 255 columns referenced

  3. A query that has more than 255 columns referenced and HCC compressed

  4. The tablespace is encrypted, and the CELL_OFFLOAD_DECRYPTION parameter is set to false

  5. The tablespace is encrypted, and the CELL_OFFLOAD_DECRYPTION parameter is set to true

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

Flashback table scans require database-level processing and cannot be offloaded. Queries over 255 columns exceed cell offload capabilities. When CELL_OFFLOAD_DECRYPTION is false on encrypted tablespaces, offload is disabled for security. Option C is redundant - HCC compression doesn't change the 255 column limit. Option E is incorrect - setting CELL_OFFLOAD_DECRYPTION to true enables offload for encrypted data.

Multiple choice technology databases
  1. A scan is performed on a flashback table.

  2. A query that has more than 255 columns referenced

  3. A query that has more than 255 columns referenced and HCC compressed

  4. The tablespace is encrypted, and the CELL_OFFLOAD_DECRYPTION parameter is set to false

  5. The tablespace is encrypted, and the CELL_OFFLOAD_DECRYPTION parameter is set to true

Reveal answer Fill a bubble to check yourself
A,B,D Correct answer
Multiple choice technology databases
  1. The predicate evaluation is on a virtual column.

  2. The tablespace is not completely stored on Exadata Cell.

  3. A scan is performed on a flashback table.

  4. The command is CREATE INDEX using nosort.

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

Virtual column predicates cannot be offloaded because they require computation. If the tablespace is not fully on Exadata Cell, offload is impossible. Flashback table scans require database-level processing. CREATE INDEX with nosort needs database-side sorting operations that cannot be pushed to storage cells.