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
-
SqlSessionFactoryBuilder
-
SqlBuilder
-
SqlFactoryBuilder
-
SqlSessionBuilder
A
Correct answer
Explanation
SqlSessionFactory is created using SqlSessionFactoryBuilder in iBATIS/MyBatis. This builder pattern reads configuration and builds the factory. Other options like SqlBuilder or SqlSessionBuilder are incorrect or don't exist.
B
Correct answer
Explanation
The statement claims iBATIS discourages SQL use, but this is false - iBATIS is designed to leverage SQL's power. It allows developers to write raw SQL queries while simplifying database access, preserving all SQL benefits. Therefore the correct answer is False.
-
you will not be able to connect locally ,but you can be able to connect to DB from remote
-
you cannot be able to connect to DB either from remote or from local
-
you cane to connect to DB either from remote or from local
-
you will not be able to connect remotely ,but you can be able to connect to DB locally
D
Correct answer
Explanation
In Oracle, when the listener is down but the instance is up, local connections using IPC/bequeath protocol still work. Remote connections require the listener to establish the initial connection.
B
Correct answer
Explanation
The physical nature of an IMS database is defined by the DBD (Database Description). The DBD describes the physical structure of the database including segment layout, field definitions, and indexing information. IO-PCB and IO-AREA are runtime structures used during program execution, while SSA is a navigation parameter.
-
ADDM
-
AWR
-
Data dictionary views
-
Dynamic performance views
B
Correct answer
Explanation
The Automatic Workload Repository (AWR) is the Oracle component that stores statistics collected by the MMON (Manageability Monitor) process. AWR serves as the foundation for performance diagnostics and contains detailed performance statistics. ADDM uses AWR data for its analysis but is the diagnostic tool itself, not the storage mechanism. Data dictionary views and dynamic performance views are different database structures.
-
SQL Tuning Advisor
-
SQL Access Advisor
-
Both A and B
-
Neither A or B
C
Correct answer
Explanation
When a SQL statement causes I/O issues, both SQL Tuning Advisor and SQL Access Advisor are relevant. SQL Tuning Advisor optimizes the SQL statement itself (indexes, statistics, SQL structure), while SQL Access Advisor focuses on access paths and materialized views. Using both provides comprehensive troubleshooting for I/O problems caused by SQL statements.
-
Limited
-
Restricted
-
Comprehensive
-
Thorough
A
Correct answer
Explanation
When submitting advisor analysis jobs, the 'Limited' scope adds the least overhead because it performs minimal analysis. 'Restricted' is not a valid job scope option in this context. 'Comprehensive' and 'Thorough' (though 'Thorough' is not standard Oracle terminology) would involve deeper analysis with more system overhead. Limited scope is the lightweight option for minimal system impact.
-
DBA_ADVISOR_FINDINGS
-
DBA_ADVISOR_OBJECTS
-
DBA_ADVISOR_RECOMMENDATIONS
-
DBA_ADVISOR_RATIONALE
D
Correct answer
Explanation
DBA_ADVISOR_RATIONALE is the view that contains the reasoning and justification behind ADDM recommendations. It explains WHY specific recommendations were made. DBA_ADVISOR_FINDINGS shows what problems were discovered, DBA_ADVISOR_OBJECTS lists affected objects, and DBA_ADVISOR_RECOMMENDATIONS contains the suggested solutions - but RATIONALE provides the explanatory reasoning.
-
SQL Tuning Advisor
-
SGA Tuning Advisor
-
Memory Advisor
-
Pool Advisor
C
Correct answer
Explanation
The Memory Advisor in Oracle determines if allocated memory for Shared Pool, Large Pool, and Buffer Cache is adequate. It analyzes memory usage patterns and provides recommendations for SGA component sizing. SQL Tuning Advisor focuses on SQL optimization, not memory allocation. SGA Tuning Advisor and Pool Advisor are not standard Oracle advisor names.
-
Undo Management Advisor
-
SQL Access Advisor
-
SQL Tuning Advisor
-
MTTR Advisor
D
Correct answer
Explanation
The MTTR (Mean Time To Recover) Advisor evaluates if the estimated instance recovery duration meets service-level agreement requirements. It analyzes Redo log file sizing and configuration to optimize recovery time. Undo Management Advisor focuses on undo tablespace management, while SQL Access and Tuning Advisors deal with SQL optimization - not recovery time estimation.
-
Run the SQL Tuning Advisor.
-
Run the SQL Access Advisor.
-
Check the EM Database Control main screen for alerts.
-
Click the Alert Log Content link in the EM Database Control main screen.
A
Correct answer
Explanation
The SQL Tuning Advisor is the appropriate first tool for analyzing and improving performance of a specific SQL statement showing high disk I/O. The SQL Access Advisor is for overall schema design (indexes/materialized views), not individual statement tuning. The main screen and alert log are for monitoring, not targeted SQL optimization.
-
Main screen
-
Performance screen
-
Administration screen
-
Maintenance screen
B
Correct answer
Explanation
The Performance screen in EM Database Control is the primary location to investigate sudden performance degradation, as it provides detailed metrics on wait events, throughput, and resource utilization. The Administration and Maintenance screens are for configuration and maintenance tasks, not performance diagnostics. The main screen only shows high-level alerts.
-
7 days
-
30 days
-
7 hours
-
Indefinitely
A
Correct answer
Explanation
By default, AWR (Automatic Workload Repository) retains database statistics for 7 days. This is the standard retention period for automatic workload repository snapshots. 30 days is not the default, and 7 hours is too short. Statistics are not retained indefinitely by default.
-
Host
-
Session
-
Instance
-
Network
D
Correct answer
Explanation
The three primary sources of performance metrics in the EM Performance screen are Host (operating system metrics), Session (user session activity), and Instance (database instance statistics). Network metrics are not one of the three primary sources - they may be available but are not fundamental to the Performance screen's three-tier view.
-
The PFILE/SPFILE parameter GATHER_STATS=FALSE.
-
Only databases created using Database Configuration Assistant have automatic statistics
-
The SYSMAN user who owns the AWR is not logged in.
-
The operating system does not support automatic statistics collection.
B
Correct answer
Explanation
Only databases created using the Database Configuration Assistant (DBCA) automatically have the statistics collection job configured. When you create databases manually with scripts, the automatic statistics collection procedure is not set up by default. This is a documented behavior, not a parameter or login issue.