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
-
DBA
-
SYSDBA
-
SYSOPER
-
RESOURCE
B
Correct answer
Explanation
Creating an Oracle database requires SYSDBA privilege, which is the highest administrative privilege. DBA is a role that grants database administration permissions but does NOT include database creation authority. SYSOPER provides startup/shutdown and basic operations but cannot create databases. RESOURCE is a schema-level role for object creation with no database creation rights.
-
Control
-
Alert
-
Registry
-
Parameter
A
Correct answer
Explanation
The control file contains the database's physical structure metadata including all data file names and locations. When you execute ALTER DATABASE RENAME FILE, Oracle automatically updates the control file to reflect the new path. Alert log entries are chronological records, parameter files are manual configs, and Registry stores Oracle software metadata - none auto-update from rename operations.
-
The Oracle server maintains the server parameter file.
-
The server parameter file is created automatically when the instance is started.
-
Changes can be made in memory and/or in the SPFILE with the ALTER SYSTEM command.
-
The use of SPFILE provides the ability to make changes persistent across shut down and start up.
-
The Oracle server keeps the server parameter file and the text initialization parameter file synchronized.
A
Correct answer
Explanation
The server parameter file (SPFILE) is a binary file maintained by the Oracle server, providing persistent storage and automatic synchronization of initialization parameters. While ALTER SYSTEM can update both memory and SPFILE, and changes persist across restarts, option A captures the core advantage - Oracle actively manages the SPFILE, preventing human edit errors and ensuring consistency.
-
Index
-
Table
-
Temporary
-
Boot strap
A
Correct answer
Explanation
Index segments store sorted copies of indexed columns, allowing Oracle to locate rows without scanning entire tables. This dramatically improves query performance, especially for large tables with selective WHERE clauses. Tables store actual data, temporary segments hold intermediate query results, and bootstrap segments contain internal metadata - none exist primarily for query performance enhancement.
-
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.