Professional Documents
Culture Documents
Database Schema:
The description of a database. Includes descriptions of the database structure, data types, and the constraints on the database.
Schema Diagram:
Schema Construct:
Database State:
The actual data stored in a database at a particular moment in time. This includes the collection of all the data in the database. Also called database instance (or occurrence or snapshot).
The term instance is also applied to individual database components, e.g. record instance, table instance, entity instance
Database State:
Refers to the content of a database at a moment in time. Refers to the database state when it is initially loaded into the system.
A state that satisfies the structure and constraints of the database.
Valid State:
Distinction
The database schema changes very infrequently. The database state changes every time the database is updated.
Three-Schema Architecture
Not explicitly used in commercial DBMS products, but has been useful in explaining database system organization
Provide concepts that are close to the way many users perceive data.
Provide concepts that describe details of how data is stored in the computer. These are usually specified in an ad-hoc manner through DBMS design and administration manuals
Provide concepts that fall between the above two, used by many commercial DBMS implementations (e.g. relational data models used in many commercial systems).
Logical Data Model A logical data model describes the data in as much detail as possible, without regard to how they will be physical implemented in the database. Features of a logical data model include: Includes all entities and relationships among them. All attributes for each entity are specified. The primary key for each entity is specified. Foreign keys (keys identifying the relationship between different entities) are specified. Normalization occurs at this level.
The steps for designing the logical data model are as follows: Specify primary keys for all entities. Find the relationships between different entities. Find all attributes for each entity. Resolve many-to-many relationships. Normalization.
Conceptual Data Model A conceptual data model identifies the highestlevel relationships between the different entities. Features of conceptual data model include: Includes the important entities and the relationships among them. No attribute is specified. No primary key is specified.
we can see that the only information shown via the conceptual data model is the entities that describe the data and the relationships between those entities. No other information is shown through the conceptual data model.
The main differences between logical & conceptual model In a logical data model, primary keys are present, whereas in a conceptual data model, no primary key is present. In a logical data model, all attributes are specified within an entity. No attributes are specified in a conceptual data model. Relationships between entities are specified using primary keys and foreign keys in a logical data model. In a conceptual data model, the relationships are simply stated, not specified, so we simply know that two entities are related, but we do not specify what attributes are used for this relationship.
Physical Data Model Physical data model represents how the model will be built in the database. A physical database model shows all table structures, including column name, column data type, column constraints, primary key, foreign key, and relationships between tables. Features of a physical data model include: Specification all tables and columns. Foreign keys are used to identify relationships between tables. Physical data model will be different for different RDBMS. For example, data type for a column may be different between MySQL and SQL Server.
The steps for physical data model design are as follows: Convert entities into tables. Convert relationships into foreign keys. Convert attributes into columns. Modify the physical data model based on physical constraints / requirements.
Comparing the logical data model with the logical data model diagram, we see the main differences between the two: Entity names are now table names. Attributes are now column names. Data type for each column is specified. Data types can be different depending on the actual database being used.
DBMS ARCHITECTURE
DBMS ARCHITECTURE
DBMS ARCHITECTURE
Conceptual Level
This level of abstraction describes what data are actually stored in the database. It also describes the relationships existing among data. At this level, the database is described logically in terms of simple datastructures. The users of this level are not concerned with how these logical data structures will be implemented at the physical level, rather they just are concerned about what information is to be kept in the database.
Conceptual Level
continue
Data Independence
The ability to modify a scheme definition in one level
without affecting a scheme definition in the next higher level is called DATA INDEPENDENCE
database.
DBMS Languages
DBMS Languages
Used by the DBA and database designers to specify the conceptual schema of a database. In many DBMSs, the DDL is also used to define internal and external schemas (views). In some DBMSs, separate storage definition language (SDL) and view definition language (VDL) are used to define internal and external schemas.
SDL is typically realized via DBMS commands provided to the DBA and database designers
DBMS Languages
Used to specify database retrievals and updates DML commands (data sublanguage) can be embedded in a general-purpose programming language (host language), such as COBOL, C, C++, or Java.
A library of functions can also be provided to access the DBMS from a programming language
Alternatively, stand-alone DML commands can be applied directly (called a query language).
Other Tools
Used to store schema descriptions and other information such as design decisions, application program descriptions, user information, usage standards, etc. Active data dictionary is accessed by DBMS software and users/DBA. Passive data dictionary is accessed by users/DBA only.
Centralized DBMS:
Combines everything into single system including- DBMS software, hardware, application programs, and user interface processing software. User can still connect through a remote terminal however, all processing is done at centralized site.
Print server File server DBMS server Web server Email server
Classification of DBMSs
Traditional: Relational, Network, Hierarchical. Emerging: Object-oriented, Object-relational. Single-user (typically used with personal computers) vs. multi-user (most DBMSs). Centralized (uses a single computer with one database) vs. distributed (uses multiple computers, multiple databases)
Other classifications