Chap 2
Chap 2
1. Database Schema: Describes the database structure, data types, and constraints.
2. Schema Diagram: A visual representation of the schema.
3. Schema Construct: A component of the schema, like STUDENT or COURSE.
4. Database State: The actual data in the database at a specific time, also called an
instance or snapshot
Q. DBMS architecture
Client/server architecture connects multiple PCs, web servers, and database servers over a
network.
Types:
3. 3-tier architecture:
3-Tier architecture adds a middle layer between client and server.
The client interacts with an application server, which then communicates with the database.
Commonly used for large web applications.
Q: Three schema architecture.
1. Internal Schema: Defines physical storage and access paths (e.g., indexes) using a
physical data model.
2. Conceptual Schema: Describes the overall database structure and constraints using a
conceptual or implementation data model.
3. External Schemas: Represents different user views, usually following the conceptual
schema's data model.
Q: Data independence.
Logical Data Independence: Allows changes to the conceptual schema without affecting
external schemas or application programs.
Physical Data Independence: Enables changes to the internal schema (e.g., file structures,
indexes) without altering the conceptual schema.
Q: DBMS language.
DDL(data duplication): Used by DBAs and designers to define the database structure,
including internal and external schemas.
DML(Data Manipulation Language): Used to retrieve and update data, often embedded in
languages like COBOL, C, C++, or Java.
DBMS Library: Provides functions for database access from programming languages.
Types of dbms:
High-Level (Non-Procedural) Languages: Includes SQL, used standalone or embedded in
programs.
Low-Level (Procedural) Languages: Must be embedded in a programming language for
execution.
Q:dbms interface
Stand-alone Query Interfaces: Directly enter SQL commands (e.g., SQL in Oracle).
Programmer Interfaces: Embed DML in programming languages.
User-Friendly Interfaces: Menu-based, forms-based, and graphical interfaces.
Mobile Interfaces: Allow transactions via mobile apps.
Embedded Approach: Uses embedded SQL (e.g., SQLJ for Java, SQL for C, C++).
Procedure Call Approach: Uses APIs like JDBC (Java) and ODBC (other languages)
for database access.
Database Programming Languages: Examples include PL/SQL in Oracle, which
extends SQL.
Scripting Languages: PHP (client-side) and Python (server-side) for database
programming.
Q: other tools
Data Dictionary/Repository: Stores schema details, design decisions, user info, and
standards.
Active Data Dictionary: Used by both DBMS software and users/DBAs.
Passive Data Dictionary: Only accessed by users/DBAs.
Application Development Tools: Help in database application creation.
Examples:
o PowerBuilder (Sybase)
o JBuilder (Borland)
o JDeveloper 10G (Oracle)
Q: Classification of dbms