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
-
BLOB
-
CLOB
-
NCLOB
-
BFILE
-
None of these
-
One-safe
-
Detection of failure
-
Proxy achived log backups
-
Media management application
-
Two-safe
E
Correct answer
Explanation
If only the primary is active, the transaction is allowed to commit as soon as its commit log record is written to stable storage at the primary site.
-
Growing phase
-
Shrinking phase
-
Granularity of locking
-
In-doubt transaction
-
Duplicate database
C
Correct answer
Explanation
This term relates to the size of objects that are locked with a single lock operation.
-
One-safe
-
Two-very-safe
-
Detection of failure
-
Proxy archived log backups
-
Media management application
B
Correct answer
Explanation
The problem with this classification of degree of durability is that transaction processing can not proceed if either the primary or the backup site is down.
-
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.