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 loss of an entire redo log file group, but no loss in any other group
-
The loss of one member of each redo log file group
-
The failure of the ARC0 background process
-
The failure of the LGWR background process
A
Correct answer
Explanation
Losing an entire redo log group means complete loss of that redo log data, which is the most serious failure. Losing one member from each group reduces redundancy but preserves data as long as at least one member per group remains.
-
The last redo log file switch
-
The last checkpoint position
-
The last commit
-
The last incremental backup using RMAN
C
Correct answer
Explanation
In ARCHIVELOG mode, archived redo logs enable point-in-time recovery to any committed transaction. You can recover the database up to and including the last commit before a failure.
-
ALTER SYSTEM ARCHIVELOG;
-
ALTER DATABASE ARCHIVELOG;
-
ALTER SYSTEM SET ARCHIVELOG=TRUE;
-
ALTER DATABASE ENABLE ARCHIVELOG MODE;
-
ALTER DATABASE ARCHIVELOG MODE;
B
Correct answer
Explanation
ALTER DATABASE ARCHIVELOG is the correct SQL command to enable ARCHIVELOG mode. This requires the database to be mounted but not open, and is typically followed by a backup.
-
MOUNT
-
NOMOUNT
-
OPEN
-
SHUTDOWN
-
Any of the above
A
Correct answer
Explanation
To switch an Oracle database to ARCHIVELOG mode, the database must be started and mounted, but not open. The command ALTER DATABASE ARCHIVELOG requires the instance to be in the MOUNT state.
-
ALTER DATABASE ADD LOGFILE ‘/logs/redo22.log’ TO GROUP 2;
-
ALTER DATABASE ADD LOGFILE MEMBER ‘/logs/redo22.log’ TO GROUP 2;
-
ALTER DATABASE ADD MEMBER ‘/logs/redo22.log’ TO GROUP 2;
-
ALTER DATABASE ADD LOGFILE ‘/logs/redo22.log’;
B
Correct answer
Explanation
The ADD LOGFILE MEMBER clause adds a redo log member to an existing group. The syntax requires both LOGFILE MEMBER keywords, not just MEMBER.
-
LOG_ARCHIVE_DEST
-
STANDBY_ARCHIVE_DEST
-
LOG_ARCHIVE_DUPLEX_DEST
-
DB_RECOVERY_FILE_DEST
-
USE_DB_RECOVERY_FILE_DEST
-
Archive log file
-
Redo log file
-
Control file
-
Alert log file
B
Correct answer
Explanation
Online redo log files record all database changes in real-time. They are essential for instance/crash recovery when an instance fails abnormally, allowing database rollback and rollforward operations.
-
V$INSTANCE
-
V$LOG
-
V$DATABASE
-
V$THREAD
C
Correct answer
Explanation
The V$DATABASE dynamic performance view contains database-wide information including the LOG_MODE column, which shows ARCHIVELOG or NOARCHIVELOG status.
-
Relational Database
-
Hierarchical Database
-
Network Database
-
OO Database
C
Correct answer
Explanation
IDMS (Integrated Database Management System) is a network database model that uses sets to represent many-to-many relationships between records. Unlike hierarchical databases (tree structure only) or relational databases (tabular with foreign keys), network databases allow records to have multiple parent and child connections through set relationships.
-
NEXT
-
FIRST
-
PRIOR
-
LAST
-
All of the above.
A,C
Correct answer
Explanation
Set linkage in IDMS determines how records in a set are connected: NEXT links each member to the following member (forward chain), and PRIOR links each member to the previous member (backward chain). FIRST and LAST are not valid linkage options; the linkage is about connection direction between members, not position.
-
No stream object defined for field
-
Communication link failure
-
Memory allocation failure
-
None of these
C
Correct answer
Explanation
SQL462 indicates a memory allocation failure within the database system, meaning the database could not allocate sufficient memory to complete the requested operation. This typically occurs during large operations or when system memory is constrained. Options A and B refer to different error categories (field definitions and network connectivity), while option D would only apply if none of the specific options matched.
-
ALREADY LOGGED IN
-
UNKNOWN COMMAND
-
SOCKET READ ERROR
-
INVALID AGENT SIGNATURE
B
Correct answer
Explanation
SQL3001 indicates that the database server received a command it does not recognize or cannot process. This is a protocol-level error suggesting the client sent an invalid or unsupported instruction to the database engine.
-
SOCKET WRITE ERROR
-
SESSION TIMEOUT
-
SOCKET READ ERROR
-
HEADER NOT FOUND
C
Correct answer
Explanation
In this network/database error code mapping, SQL3008 represents a socket read error, indicating that the system failed to read incoming data from the network socket.
-
HEADER TOO LONG
-
HEADER NOT FOUND
-
SOCKET READ ERROR
-
SOCKET WRITE ERROR
D
Correct answer
Explanation
In this network/database error code mapping, SQL3009 represents a socket write error, which occurs when the application fails to write data to the network socket during communication.
-
SESSION TIMEOUT
-
INVALID SESSION TICKET
-
SOCKET WRITE ERROR
-
FAILED TO EXECUTE GRANT COMMAND
A
Correct answer
Explanation
In this custom error code mapping, SQL3011 represents a session timeout. This indicates that the connection session has expired due to inactivity or reaching its maximum lifetime.