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
D
Correct answer
Explanation
4K (4096 bytes) is the ideal pool size for transaction log cache in this system. 2K is too small for efficient batching, while 8K and 16K are unnecessarily large for typical transaction log entries.
C
Correct answer
Explanation
Trace 302 in Sybase ASE displays detailed information about the optimizer's index selection process, including which indexes were considered and why they were chosen or rejected. This helps DBAs understand query performance and tune indexing strategies.
D
Correct answer
Explanation
DBTABLE is the metadata cache descriptor in Sybase ASE that holds information about database table structures. This cache improves performance by storing table metadata in memory rather than repeatedly reading from disk.
-
dbcc checkdb
-
dbcc checkverify
-
dbcc checkstorage
-
dbcc checkalloc
C
Correct answer
Explanation
dbcc checkstorage is the command that logs diagnostic information to the dbccdb database. It performs comprehensive storage analysis including space usage, fragmentation, and integrity checks, storing results for trend analysis.
-
ASEENGINE
-
ANYENGINE
-
LASTENGINE
-
LASTONLINE
D
Correct answer
Explanation
LASTONLINE is a predefined engine group in Sybase ASE that routes tasks to the most recently online engine. Engine groups enable workload distribution across multiple engines for parallel processing and improved performance.
-
sp_help
-
sp_helpdevice
-
sp_helpsegment
-
sp_helpdbdev
B
Correct answer
Explanation
sp_helpdevice is the system stored procedure that provides detailed information about database devices in Sybase ASE. It shows device names, sizes, status, and usage information, unlike sp_help which covers general object information.
-
sybmgmtdb
-
sybsystemprocs
-
model
-
master
C
Correct answer
Explanation
The model database serves as the template for all new databases, including tempdb which is recreated each time the server restarts. Adding user-defined datatypes to model ensures they persist in tempdb across restarts.
-
Schema synonym
-
Public synonym
-
Private synonym
-
Database synonym
B,C
Correct answer
Explanation
Oracle supports two main types of synonyms: public synonyms (accessible to all users) and private synonyms (schema-specific). Public synonyms are created with CREATE PUBLIC SYNONYM and can be referenced by any user with appropriate privileges on the underlying object. Private synonyms are created in a specific schema and are only available to users who can access that schema. 'Schema synonym' and 'Database synonym' are not standard Oracle synonym categories.
-
Table
-
View
-
Procedure
-
Package
-
Another Synonym
-
Sequence
A,B,C,D,E,F
Correct answer
Explanation
Oracle allows creating synonyms for most database objects including tables, views, procedures, packages, sequences, and even other synonyms. This provides a flexible naming mechanism that can simplify references to objects with long names or complex schema paths. Synonyms cannot be created for all object types like indexes or triggers, but the listed options are all valid synonym targets. This capability is particularly useful for creating cleaner, more maintainable SQL code.
-
Table
-
View
-
Procedure
-
Package
-
Another Synonym
-
Sequence
A,B,C,D,E,F
Correct answer
A
Correct answer
Explanation
SQL is Oracle's standard query language for data manipulation and retrieval, while PL/SQL is Oracle's procedural extension to SQL that adds programming constructs like variables, conditions, and loops. Both are fundamental languages for working with Oracle databases - SQL for declarative data operations and PL/SQL for complex procedural logic. This statement accurately describes the two core languages used in Oracle database environments.
-
Cant protect the code
-
Third party utilities
-
Binary wrapper utility
-
Only DBA's are allowed to protect
C
Correct answer
Explanation
Oracle provides the wrap utility, which is a binary wrapper utility that obfuscates PL/SQL source code. This protects intellectual property by preventing users from reading the code while still allowing the database to compile and execute it normally.
A
Correct answer
Explanation
SQL*Loader can handle EBCDIC data through character set conversion specifications in the control file. EBCDIC (Extended Binary Coded Decimal Interchange Code) is commonly used on IBM mainframes, and SQL*Loader includes built-in support for converting EBCDIC to ASCII during the load process.
A
Correct answer
Explanation
SQL*Loader can load binary data including images, sound clips, and documents using LOB (Large Object) datatypes like BLOB, BFILE, and CLOB. The control file can specify LOBFILE directives to load LOB data from separate files, making it capable of handling multimedia content.