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. Loaded table or partition

  2. Discard file of rejected records

  3. Summary report of errors encountered

  4. Updated system catalog table stats

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

To answer this question, the user needs to be familiar with the LOAD utility in database systems.

The LOAD utility is used to load data from external files into database tables. It is commonly used for bulk inserts of large amounts of data.

Now, let's go through each option to determine which one is not an output of the LOAD utility:

A. Loaded table or partition: This is a valid output of the LOAD utility. When the LOAD utility is successful, it loads data from external files into database tables or partitions.

B. Discard file of rejected records: This is a valid output of the LOAD utility. When the LOAD utility encounters records that cannot be loaded into the target table or partition, it writes those records to a discard file.

C. Summary report of errors encountered: This is a valid output of the LOAD utility. When the LOAD utility encounters errors while loading data, it generates a summary report of those errors.

D. Updated system catalog table stats: This is not an output of the LOAD utility. The LOAD utility is used for inserting data into tables, not updating system catalog table stats. The job of updating system catalog statistics falls under the responsibility of the database management system.

Therefore, the answer is:

The Answer is: D

Multiple choice technology databases
  1. LOAD

  2. UNLOAD

  3. REORG

  4. RUNSTATS

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

RUNSTATS is the DB2 utility that updates statistical information about tablespaces and indexes in the system catalog tables. This information is crucial for the query optimizer to generate efficient execution plans. LOAD, UNLOAD, and REORG serve different purposes.

Multiple choice technology databases
  1. True

  2. False

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

A tablespace lock is the most restrictive type of lock in DB2. It prevents any other process from accessing any data in the tablespace. A page lock only prevents other processes from accessing the specific page that is locked.

Therefore, the statement "When acquiring Tablespace lock more data is restricted than page level Lock" is True.

A tablespace lock restricts access to all of the data in a tablespace, while a page lock only restricts access to a single page. This means that a tablespace lock is more restrictive than a page lock.

For example, if a tablespace contains 100 pages and a process acquires a tablespace lock on the tablespace, then no other process can access any of the data in the tablespace, even if the data is not on the page that is locked. However, if a process acquires a page lock on a single page in the tablespace, then other processes can still access the data on the other 99 pages in the tablespace.

In general, tablespace locks should only be used when it is absolutely necessary to prevent other processes from accessing any data in the tablespace. Page locks should be used whenever possible, as they provide a more granular level of locking and allow other processes to access more data.

Multiple choice technology databases
  1. True

  2. False

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

MERGECOPY is a DB2 utility that combines multiple incremental image copies into a single full image copy. This is useful for reducing recovery time by creating a consolidated full copy from a series of incremental copies taken over time. The statement accurately describes MERGECOPY's purpose.

Multiple choice technology databases
  1. Adding a new user to database.

  2. Adding a new tablespace to database.

  3. Dropping a table from the database.

  4. Dropping a user from the database.

  5. Dropping a datafile from a tablespace.

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

In NOARCHIVELOG mode, you cannot recover from backups after a structural change. Adding a tablespace changes the database structure permanently. Dropping a datafile from a tablespace is another structural change that cannot be recovered without a backup. Adding/dropping users or tables are data dictionary changes, not structural changes that require control file backup.

Multiple choice technology databases
  1. SGA

  2. Streams Pool

  3. PGA

  4. Shared Pool

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

PGA (Program Global Area) is a memory region created for each server process when it starts. It contains data and control information for that specific server process. SGA (System Global Area) is shared memory. Shared Pool and Streams Pool are components of the SGA, not per-process memory areas.

Multiple choice technology databases
  1. Flashback

  2. Data guard

  3. ASM

  4. Tivoli data protection

  5. Flash recovery.

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

Oracle 10g Release 2 enhanced Flashback technology, Data Guard for disaster recovery, ASM for storage management, and introduced Flash Recovery Area (now Fast Recovery Area). Tivoli Data Protection is an IBM product, not an Oracle component. These four native Oracle features were significantly improved in that release.

Multiple choice technology databases
  1. It specifies the directory containing the oracle managed files.

  2. It specifies the directory for database files, if not specified explicitly.

  3. It specifies the directory containing the oracle software

  4. It specifies the directory of Optimal Flexible Architecture.

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

ORACLE_HOME is an environment variable that points to the directory where Oracle software is installed. It contains binaries, libraries, and configuration files. It is not related to managed files location, database file storage, or OFA directory structure - those are separate concepts.

Multiple choice technology databases
  1. Online redo log files can be backed up.

  2. RMAN backup can be taken only if the database is configured in ARCHIEVELOG mode.

  3. Only used data blocks can be backed up as backup sets.

  4. Archived redo log files are backed up.

  5. Only consistent database backed up can be performed.

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

RMAN backup sets only include used data blocks, skipping unused blocks to save space. Additionally, archived redo log files can be backed up using RMAN, whereas online redo logs cannot be backed up directly.

Multiple choice technology databases
  1. Control file and password file

  2. Password file

  3. Control file

  4. Listener control file

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

To answer this question, the user needs to know about the authentication mechanism in Oracle databases and the files used to implement it.

In Oracle databases, SYSDBA privilege is required to perform administrative tasks on the database. The user APP_DBA has been granted this privilege to administer the database from a remote machine. To authenticate the user, Oracle uses a password file.

Therefore, the correct answer is:

The Answer is: B. Password file

Multiple choice technology databases
  1. Create the new text file as ALERT.log

  2. You have to recover the alert log file from the valid backup.

  3. No action required. The file will be created automatically by the instance.

  4. Change the value for the BACKGROUND_DUMP_DEST parameter.

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

Oracle automatically creates a new alert log file when it doesn't exist or has been deleted. You don't need to manually create it or restore from backup. The instance will regenerate it automatically when it needs to write alerts. Changing BACKGROUND_DUMP_DEST only affects location, not creation.

Multiple choice technology databases
  1. A role can contain both system and object privileges.

  2. A role cannot be assigned external authentication.

  3. A role can be granted to itself.

  4. Roles are owned by the SYS user.

  5. Roles can be granted to other roles

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

Oracle roles can contain both system and object privileges, making them flexible for privilege management. Roles can be granted to other roles, allowing hierarchical privilege structures. Roles are NOT owned by SYS (they're owned by their creator). Roles cannot be self-referential (granted to themselves), and can use external authentication.