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
-
All of the data files must be from a backup taken prior to the point in time to which you want to recover.
-
Only the data files belonging from the SYSTEM tablespace must be from a backup taken prior to the point in time to which you want to recover.
-
Only the data files that need recovery must be from a backup taken prior to the point in time which you want to recover.
-
Only the data files belonging to the SYSTEM tablespace and the data files that need recovery must be from a backup taken prior to the point in time to which you want to recover.
A
Correct answer
Explanation
For an incomplete database recovery, all restored data files must be from backups taken prior to the target point-in-time to allow the recovery process to roll forward to the desired state.
-
Set the LOG_ARCHIVE_START parameter to TRUE in the initialization parameter file.
-
Automatic archive 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 process) in the initialization parameter file.
-
Immediately after setting the database in ARCHIVELOG mode, in SQL*Plus select automatic archiving using the syntax : ALTER DATABASE SET LOG_ARCHIVE_START=TRUE
A
Correct answer
Explanation
The LOG_ARCHIVE_START parameter controls automatic archiving at instance startup. Setting it to TRUE in the initialization parameter file enables automatic archiving when the instance starts. Option B is incorrect because automatic archiving is not the default - you must explicitly enable it. Option C sets the number of archiver processes but doesn't enable automatic archiving. Option D is incorrect because LOG_ARCHIVE_START is an initialization parameter, not set dynamically with ALTER DATABASE.
-
A text copy of the control file.
-
A binary copy of the control file.
-
A file containing a SQL statement which will re-create the database.
-
A file containing a SQL statement which will re-create the control file.
D
Correct answer
Explanation
ALTER DATABASE BACKUP CONTROLFILE TO TRACE generates a trace file in the user_dump_dest directory containing SQL commands to recreate the control file. This is useful for recovery or documentation purposes. Option A is incorrect because it's not a direct text copy of the control file - it's SQL to recreate it. Option B is wrong because it's not a binary copy. Option C is incorrect because it recreates the control file, not the entire database.
-
Each target database requires its own recover catalog.
-
RMAN scripts can be stored in the recovery catalog or the targer control file.
-
A channel is a stream of data to a device type and corresponds to one server session.
-
The RMAN executable interprets server session commands and establishes connections to the target database.
C
Correct answer
Explanation
An RMAN channel represents a stream of data to a device type and corresponds to one server session on the target database instance. Other options are incorrect because target databases do not require individual catalogs, and scripts cannot be stored in the control file.
-
ABORT
-
NORMAL
-
IMMEDIATE
-
TRANSACTIONAL
B,C,D
Correct answer
Explanation
For a consistent closed database backup using OS commands, use NORMAL, IMMEDIATE, or TRANSACTIONAL shutdown options. These ensure all transactions are complete and the database is cleanly closed. NORMAL waits for all users to disconnect. IMMEDIATE rolls back active transactions and disconnects users. TRANSACTIONAL waits for active transactions to finish. ABORT is unsafe for backup as it doesn't cleanly close the database - it's equivalent to pulling the plug.
-
CREATE USER
-
CREATE SESSION
-
CREATE ANY TABLE
-
IMP_FULL_DATABASE
-
EXP_FULL_DATABASE
B,E
Correct answer
Explanation
To export tables owned by another user, you must have the CREATE SESSION privilege to connect to the database and the EXP_FULL_DATABASE role to export objects belonging to other schemas.
-
SYNC or ASYNC to identify the network transmission mode.
-
LGWR or ARCH to identify the primary database process responsible for sending redo information to the standby.
-
AFFIRM or NOAFFIRM to control whether log archiving disk write operations are to be performed synchronously or asynchronously.
-
PROTECTED or UNPROTECTED to control the degree of divergence and data loss at the standby database.
A,B,C
Correct answer
Explanation
The LOG_ARCHIVE_DEST_n parameters use SYNC/ASYNC for network transmission mode (synchronous or asynchronous), LGWR/ARCH to specify which primary process sends redo (LGWR for real-time, ARCH for archiver), and AFFIRM/NOAFFIRM to control whether disk writes are synchronous (AFFIRM) or asynchronous (NOAFFIRM). These three attributes directly control data availability and protection modes in Data Guard. Option D mentions PROTECTED/UNPROTECTED which are high-level availability modes, not individual parameters.
-
Perform I/O
-
Lock rows that are not data dictionary rows
-
Monitor other Oracle processes
-
Connect users to the Oracle instance
-
Execute SQL statments issued through an application
A,C
Correct answer
Explanation
Oracle background processes perform specialized I/O operations (like DBWn writing dirty buffers) and monitor other Oracle processes (like PMON cleaning up failed processes, SMON performing recovery). These functions are separated from user processes to improve efficiency.
-
Control file
-
Extent
-
Segment
-
Data file
-
Log file
-
Tablespace
A,D,E
Correct answer
Explanation
The Oracle database's physical storage structures are control files (containing metadata and database structure), data files (storing actual table/index data), and online redo log files (recording all changes for recovery). Tablespaces and segments are logical structures, not physical ones.
-
Oracle Managed Files used for this instance.
-
The USER_DATA tablespace in managed using FET$/UET$ tables.
-
The COMPATIBLE intialization paramter must be 9.0.0 or higer.
-
Space within segments is the USER_DATA tablespace is managed with freelists.
-
The control file can grow in size.
-
The control file can store RMAN scripts.
-
CONTROL_FILE_RECORD_KEEP_TIME determine retention time for RMAN records.
-
The RMAN catalog can exist solely in the control file of the target database.
C,D
Correct answer
Explanation
CONTROL_FILE_RECORD_KEEP_TIME (C) determines how long RMAN records are retained in the control file. The RMAN catalog can exist solely in the control file (D) for the target database, though a separate recovery catalog database is recommended for production environments.
-
Restore the data file and perform incomplete recovery.
-
Restore the data file and perform point-in-time recover.
-
Drop the tablespace and lose all data in the tablespace.
-
Restore the database and lose all data since the last backup.
C,D
Correct answer
Explanation
In NOARCHIVELOG mode, Oracle does not archive redo logs, so you cannot perform media recovery (incomplete or point-in-time) which requires archived logs. The only valid options are: (1) dropping the tablespace and losing only its data, or (2) restoring the entire database from the last backup and losing all changes since that backup. Options A and B are invalid because they require archived redo logs for recovery.
-
alert.ora
-
init.ora
-
tnsname.ora
-
redolog
A
Correct answer
Explanation
The alert log file (alert.ora or alert.log) is the primary location for Oracle instance status information, recording startup/shutdown events, errors, and significant operational messages. The init.ora file contains initialization parameters, tnsnames.ora handles network configuration, and redo logs store transaction changes - none provide instance status.
-
Content attributes (schema)
-
Workflow steps
-
Publishing Lifecycle
-
Display options
A,B,C,D
Correct answer
Explanation
In Oracle WebCenter Content / Stellent Information Manager, all content items within a specific channel share the same content attributes (schema), workflow steps, publishing lifecycle, and display options. Thus, all options are correct.
-
The DB2 application server in which the application's plan is bound is known as local DB2.
-
The DB2 application server in which the application's package is bound is known as local DB2.
-
The DB2 application server in which the application's load is bound is known as local DB2.
-
None of the Above
A
Correct answer
Explanation
In DB2 terminology, the local DB2 is the application server where the application's plan is bound. A plan contains the bound SQL statements and access paths that the application will use. Package binding is a different concept related to DB2.