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
-
Proxy archived log backups
-
Recovery through resetlogs
-
SQL work area
-
Flash recovery area
-
Duplicate database
D
Correct answer
Explanation
It includes multiplexed copies of the control file and online redo logs.
-
Automatically data file creation
-
Proxy archived log backups
-
Recovery through resetlogs
-
Disk topology
-
Media management application
D
Correct answer
Explanation
RMAN is able to tune its parameters automatically according to disk topology information.
-
Recovery through resetlogs
-
Proxy archived log backups
-
Oracle flashback database
-
Duplicate database
-
Registration
C
Correct answer
Explanation
When you enable the flashback database feature, the database automatically creates, deletes and manages flashback logs inside the flash recovery area.
-
Execution phase
-
Compilation phase
-
One-safe
-
Shrinking phase
-
Recovery through resetlogs
B
Correct answer
Explanation
RMAN constructs a sequence of RPCs that instruct the server sessions on the target database to perform the desired operation.
-
RAID level 4
-
RAID level 2
-
RAID level 3
-
Proxy archived log backups
-
Target database
A
Correct answer
Explanation
This RAID level refers block-interleaved parity organization and uses block-level striping.
-
Proxy archived log backups
-
Recovery catalog schema
-
Recovery through resetlogs
-
Incrementally updated backups
-
Duplicate database
E
Correct answer
Explanation
A replica of the primary database that you can use for testing purposes.
-
MS Access
-
MS Excel
-
MS Outlook
-
None of the above
A
Correct answer
Explanation
MS Access is a relational database management system designed specifically for creating and managing databases. MS Excel is a spreadsheet application, MS Outlook is an email client, and neither are database management systems.
-
It automatically collects statistics if they are missing
-
It only makes recommendations to collect statistics
-
It ignores optimizer statistics completely
-
It uses only the available statistics
A
Correct answer
Explanation
The SQL Tuning Advisor is an Oracle tool that analyzes SQL statements and provides recommendations for performance improvement, including automatically collecting missing optimizer statistics when needed. While it can recommend statistics collection (option B), it can also proactively collect them. Option C is incorrect because the advisor heavily relies on optimizer statistics for analysis. Option D is incomplete because the advisor will collect missing statistics rather than work with incomplete data.
-
rman> RUN
2> CHECK LOGICAL
3> ALLOCATE CHANNEL c1 TYPE DISK;
4> DATAFILE 1 TO '/backup/f1.dbf',
5> DATAFILE 2 TO '/backup/f2.dbf';
-
rman> RUN
2> ALLOCATE CHANNEL c1 TYPE DISK;
3> COPY LEVEL 0
4> DATAFILE 1 TO '/backup/f1.dbf',
5> DATAFILE 2 TO '/backup/f2.dbf';
-
rman> RUN
2> ALLOCATE CHANNEL c1 TYPE DISK;
3> DATAFILE 1 TO '/backup/f1.dbf',
4> DATAFILE 2 TO '/backup/f2.dbf';
-
rman> RUN
2> ALLOCATE CHANNEL c1 TYPE sbt_tape;
3> DATAFILE 1 TO '/backup/f1.dbf',
4> DATAFILE 2 TO '/backup/f2.dbf';
B
Correct answer
Explanation
Option B is correct because it specifies COPY LEVEL 0 to create a level 0 image copy suitable for incremental backups, allocates a DISK channel (c1), and omits CHECK LOGICAL as requested. Option A includes CHECK LOGICAL, which performs logical block corruption detection - exactly what Mary wants to avoid. Option C is missing the LEVEL 0 specification required for incremental backup compatibility. Option D allocates an sbt_tape channel instead of the required DISK channel.
-
SYSDBA
-
SYSOPER
-
No system privileges are required for the RMAN user
-
Only SYS user can connect and execute RMAN commands on a target database
A
Correct answer
Explanation
RMAN (Recovery Manager) requires the SYSDBA privilege to connect to a target database and perform backup and recovery operations. This is because RMAN needs to read and write critical database files, including data files, control files, and redo logs - operations that demand database administrator level privileges. SYSOPER (option B) provides more limited privileges. Option C is incorrect - privileges are mandatory. Option D is false because users other than SYS can connect if granted SYSDBA.
-
Control file
-
Datafile
-
OnLine ReDo file
-
Offline ReDo file
B
Correct answer
Explanation
Datafiles are the Oracle files that contain actual user data and system data stored in tables, indexes, and other database segments. Control files (option A) contain metadata about the database structure but not the actual data. Online and offline redo log files (options C and D) contain transaction records for recovery purposes, not user or system data themselves. When users insert, update, or query data, they are interacting with data stored in datafiles.
-
RMAN keeps a list of archived logs in a text file
-
The DBA must manually tell RMAN which archive logs to backup
-
RMAN has access to target control file and/or catalog information
-
RMAN looks at the ARCHIVE_LOG_DEST parameter of the target database and backs up all archive logs found
C
Correct answer
Explanation
RMAN determines which archived redo logs to back up by querying the target database's control file, which contains a complete record of all archived logs. When a recovery catalog is used, RMAN can also access that repository for this information. RMAN doesn't use text files (option A), require manual specification (option B), or simply backup everything in ARCHIVE_LOG_DEST without checking (option D) - it intelligently tracks which logs are needed based on the control file's repository.
-
Up to five rollback processes may be activated simultaneously
-
The parameter will be ignored because the maximum number of rollback processes is four
-
The parameter will be ignored because it is set to an invalid value
-
This parameter will be ignored unless the RECOVERY_PARALLELISM parameter is used
C
Correct answer
Explanation
The FAST_START_PARALLEL_ROLLBACK parameter in Oracle can only be set to FALSE, LOW, or HIGH - not a numeric value. Setting it to 5 is invalid syntax, so Oracle ignores this setting and uses the default behavior. The numeric options A and B are incorrect because numeric values are not valid for this parameter. Option D is incorrect because RECOVERY_PARALLELISM is a separate parameter unrelated to rollback behavior.
-
DBMS_REPCAT_AUTH
-
DBMS_REPCAT_ADMIN
-
DBMS_RESOURCE_MANAGER
-
DBMS_RESOURCE_MANAGER_PRIVS
D
Correct answer
Explanation
DBMS_RESOURCE_MANAGER_PRIVS is the Oracle package specifically designed for granting and revoking resource manager privileges to users and roles. It contains procedures like GRANT_SYSTEM_PRIVILEGE and REVOKE_SYSTEM_PRIVILEGE for managing resource group access. DBMS_REPCAT_AUTH and DBMS_REPCAT_ADMIN are for replication management. DBMS_RESOURCE_MANAGER is the main package for creating and managing resource plans and consumer groups, not for granting privileges.
-
A transaction completes.
-
The instance is started.
-
The current online redo log group is filled.
-
The ALTER SYSTEM SWITCH LOGFILE command is issued.
C
Correct answer
Explanation
The current online redo log group is filled.