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
-
The LOG_ARCHIVE_DEST_n = 'SERVICE=PRODS DELAY 20' parameter should be included in the parameter file on the primary database
-
The LOG_ARCHIVE_DEST_n = 'SERVICE=PROD DELAY 20' parameter should be included in the parameter file on the standby database
-
The REOPEN option should be specified on the LOG_ARCHIVE_DEST_n parameter
-
At least one of the log archive destinations should be set to MANDATORY
A
Correct answer
Explanation
The DELAY attribute in LOG_ARCHIVE_DEST_n parameter on the PRIMARY database causes archived logs to be held for the specified minutes before being applied on the standby. Setting 'SERVICE=PRODS DELAY 20' on PROD ensures PRODS waits 20 minutes before applying shipped logs. This prevents corrupted or erroneous data from being immediately propagated to the standby, providing a recovery window.
-
Incremental backup stores all files that have changed since the last FULL, DIFFERENTIAL OR INCREMENTAL backup.
-
restore operation is lengthy
-
Takes time to complete
-
Both (1) and (2)
-
Set the target database to a consistent incarnation.
-
Synchronize the control file of the target database with the recovery catalog
-
Register the target database in the newly created catalog
-
Reset the target database to an incarnation that is synchronized with the recovery catalog
C
Correct answer
Explanation
After creating the recovery catalog tablespace, user, schema, and granting privileges, then creating the catalog with RMAN, the mandatory next step is registering the target database in the catalog. Option A (setting incarnation) happens later if needed. Option B (synchronizing) occurs during registration and subsequent updates. Option D (resetting incarnation) is only required for advanced recovery scenarios like flashback or point-in-time recovery to a different incarnation, not during initial setup.
-
Master site
-
Snapshot site
-
Either a snapshot or master site
B
Correct answer
Explanation
When a replication site pulls changes from another site, it's called snapshot replication. The snapshot site requests and pulls data refreshes from the master site. Master sites push changes, snapshot sites pull them.
-
Cluster table
-
Partitioned table
-
Unclustered table
-
Index-organized table
A
Correct answer
Explanation
Cluster tables allow rows from multiple tables to be stored in the same data block based on a cluster key. This improves join performance for frequently joined tables. Partitioned tables split a single table, unclustered is the default, and index-organized tables store data within the index structure.
-
taking up the backup of the database while it is still up and running
-
taking up the backup of the database after the user logs off
-
taking up the backup followed by taking cold backup
-
none of the above
A
Correct answer
Explanation
A hot backup is taken while the database is online and running, allowing users to continue working during backup. This contrasts with cold backup, which requires shutting down the database. The key characteristic is that the database remains operational.
-
In Oracle8i, I/O slaves are not available; only DBWn processes are available.
-
I/O slaves perform the write function only, while DBWn processes also perform date-gathering activity.
-
I/O slaves will work only with synchronous I/O, whereas DBWn processes are available only within asynchronous I/0.
-
I/O slaves will work only with asynchronous I/O, whereas DBWn processes are available only within synchronous I/0.
B
Correct answer
Explanation
I/O slaves are specialized processes that only perform write operations to data files. DBWn (Database Writer) processes perform both data gathering (identifying dirty buffers) and writing them to disk. The synchronous/asynchronous I/O distinction is incorrect - both can work with either type.
-
OSDBA
-
9iDBA
-
OSADM
-
OSOPER
-
None of the above
A
Correct answer
Explanation
OSDBA is the operating system group that grants SYSDBA privileges when connecting to an Oracle database. Members of this group can perform database administration tasks. The other options (9iDBA, OSADM, OSOPER) are not valid Oracle operating system groups for SYSDBA access.
-
Test the connection
-
Configure a listener
-
Specify a net service name
-
Specify the Oracle database version
A
Correct answer
Explanation
After configuring connection parameters (service name, protocol, host, port), the Oracle Net Configuration Assistant's logical next step is testing whether the connection works. This validates the configuration before completing. The listener and net service name would have been configured earlier in the process.
-
The direct-path feature allows a user to extract database objects faster than the conventional-path.
-
The Export Utility can be used to make a logical backup of a table, a tablespace, or a table's associated data files.
-
The FULL database export mode exports all database objects regardless of the schema.
-
Performing an export/import of a tablespace is quicker than using the transportable tablespace method to transfer a table and its data.
A
Correct answer
Explanation
Direct-path export bypasses the SQL statement processing layer, writing data directly to the export file, which is significantly faster than conventional path. Export cannot export tablespaces or data files directly (only schema objects). FULL export respects schema boundaries. Transportable tablespaces are faster than export/import for table transfer.
-
Immediately after setting the database in ARCHIVELOG mode, in SQL*Plus select automatic archiving using this syntax: ALTER DATABASE SET LOG_ARCHIVE_START=TRUE.
-
Automatic archiving is the default when ARCHIVELOG mode is set. No further actions are required.
-
Set the LOG_ARCHIVE_MAX_PROCESSES parameter to n (where n is the number of Archiver processes) in the initialization parameter file.
-
Set the LOG_ARCHIVE_START parameter to TRUE in the initialization parameter file.
D
Correct answer
Explanation
The LOG_ARCHIVE_START parameter in the initialization parameter file controls whether automatic archiving starts when the instance starts up. Setting it to TRUE enables this. Automatic archiving is not the default. LOG_ARCHIVE_MAX_PROCESSES controls the number of archiver processes, not whether archiving is enabled.
-
After the P1 partition is dropped, all global B-tree and function-based indexes are automatically rebuilt.
-
After the P1 partition is dropped, all global indexes that were marked UNUSABLE will be automatically rebuilt.
-
All global indexes on the ITEM table remain intact throughout the DDL operation.
-
Other DML statements can continue to use the any global B-tree indexes without interruption.
D
Correct answer
Explanation
The UPDATE GLOBAL INDEXES clause ensures that dropping a partition does not invalidate global indexes. Instead of marking indexes UNUSABLE, Oracle asynchronously maintains them during the DDL operation. This allows concurrent DML operations to continue accessing global indexes without interruption, improving availability during partition maintenance.
-
A package
-
A table space
-
A partition
-
Heap
B
Correct answer
Explanation
A tablespace is a logical storage container in Oracle databases that consists of one or more physical data files on disk. It provides a layer of abstraction between database objects (tables, indexes) and physical storage, allowing administrators to manage disk space efficiently. Tables, indexes, and other schema objects are stored within tablespaces.
-
A file containing a SQL statement which will re-create the database.
-
A text copy to the control file.
-
A binary copy of the control file.
-
A file containing a SQL statement which will re-create the control file.
C
Correct answer
Explanation
The BACKUP CONTROL FILE TO trace creates a binary copy of the control file at the specified location. This is different from the TO TRACE option which creates a text file with SQL commands. The binary backup preserves the exact state of the control file including data file info, checkpoint details, and recovery metadata - essential for disaster recovery scenarios.
-
DBMS_REPCAT_AUTH
-
DBMS_REPCAT_ADMIN
-
DBMS_RESOURCE_MANAGER
-
DBMS_RESOURCE_MANAGER_PRIVS
D
Correct answer
Explanation
DBMS_RESOURCE_MANAGER_PRIVS is the specific package used to grant resource group privileges and administer the Resource Manager. It provides procedures like GRANT_SYSTEM_PRIVILEGE and GRANT_SWITCH_CONSUMER_GROUP to authorize users for resource management tasks. The other packages listed serve different purposes - DBMS_REPCAT packages handle replication, while DBMS_RESOURCE_MANAGER creates and configures plans but doesn't handle privilege grants.