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
-
ZLIB compression gives better compression ratio in comparison to BZIP2 compression
-
BZIP2 compression gives better compression ratio in comparison to ZLIB compression
-
ZLIB compression consumes much lesser CPU in comparison to BZIP2 compression
-
BZIP2 compression consumes much lesser CPU in comparison to ZLIB compression
-
ZLIB compression comes with additional licensing cost. BZIP2 compression comes with no additional cost
-
BZIP2 compression comes with additional licensing cost. ZLIB compression comes with no additional cost
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.
-
Scenario 1: Backup 2 datafiles each of 20 GB datafile using 4 RMAN channels. Use the default setting for all RMAN channels
-
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”
-
Scenario 3: Backup 2 datafiles each of 20 GB size using 4 RMAN channels. Each channel backs up data with “section size=5GB"
-
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”
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.
-
If the datafile resides on only one disk, there is no advantage of using parallel backups
-
The size of all the sections of a datafile involved in “Parallel backup” are always same
-
The size of all the sections of a datafile involved in “Parallel backup” are always same except the size of the last section
-
All the sections of one datafile are backed up by the same channel
-
All the sections of one datafile are backed up by different channels
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.
-
COMMITTED UNDO data is NEVER backed up
-
COMMITTED UNDO data is backed up depending on the status of the transaction
-
COMMITTED UNDO data is backed up always
-
UNCOMMITTED UNDO data is never backed up
-
UNCOMMITTED UNDO data is backed up depending on the status of the transaction
-
UNCOMMITTED UNDO data is backed up always
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.
-
Create one catalog database per Database Administrator to share the maintenance workload
-
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
-
Maintain only one database for the RMAN repository catalog yet establish secure boundaries for individual database owners to manage their own virtual repositories
-
Make Oracle 11g database compliant with global Backup and Recovery standards
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.
-
It is used to consolidate multiple catalog database repositories into a single catalog database
-
Once the import is successful, it unregisters the database from the destination catalog database i.e. the database where the metadata is imported
-
Once the import is successful, it unregisters the database from the source catalog database i.e. the database which holds the original metadata
-
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
-
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
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.
-
Duplicating the database from its backup has been available since Oracle8i Database
-
Duplicating the database from its backup has been available since Oracle9i Database
-
Duplicating the database from its backup has been available since Oracle10g Database
-
Duplicating the database from its backup has been available since Oracle11g Database
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.
-
from target database
-
from live database
-
from source database
-
from active database
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.
-
Structure
-
Design Issue
-
Data Source
-
Storage Issue
-
Operational Process
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.
-
Data about Data
-
Describes a data dictionary
-
Self-describing
-
Includes user data
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.
-
for relatively permanent collections of data
-
for the size of the structure and the data in the structure are constantly changing
-
for both of above situation
-
for none of above situation
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.
-
a) INDEXED
-
b) NUMBERED
-
c) LINEAR
-
d) NONINDEXED
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.
-
a) Desirable for sensitive data
-
b) Removes catalog entries
-
c) All the above
-
d) None
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.
-
elementary items
-
atoms
-
scalars
-
all of above
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.
-
An array is suitable for homogeneous data but hte data items in a record may have different data type
-
In a record, there may not be a natural ordering in opposed to linear array.
-
A record form a hierarchical structure but a lienear array does not
-
All of above
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.