Sie sind auf Seite 1von 2

Data Dictionary and SQL

Data Dictionary Definition- A DBMS component that stores metadata. The data dictionary contains the data definition and its characteristics and entity relationships. This may include the names and descriptions of the various tables and fields within the database. Also included are things like data types and length of data items. The inclusion of primary and foreign key also adds to the consistency of the database being built. Overall having a well designed data dictionary will help make it easier to build and maintain your database.

To summarize a data dictionary is a centralized repository of information about data such as meaning, relationships to other data, origin, usage, and format. (wikipedia.org)

There are two other types of Data Dictionaries-

Active Data Dictionary- A data dictionary that is automatically updated by the DBMS every time the database is accessed.

Passive Data Dictionary- Similar to Active DD however it is not automatically updated and usually requires a batch process to be run.

There is a third style of data dictionaries known as a middleware data dictionary. Middleware is computer software that connects software components or applications. The software consists of a set of services that allows multiple processes running on one or more machines to interact. Traditional data dictionaries provide structure and basic function to the database. Middleware data dictionaries are located within the DBMS itself and operate on a higher level. Middleware data dictionaries can provide alternate entity relationship structures that can be tailored to fit different users that interact with the same database. Middleware data dictionaries can also assist in query optimization as well as distributed database.

Middleware also helps database designers by reducing the amount of time it takes to create forms, queries, reports, menus and many other database components. They do this by automatically

generating SQL code for common items such as forms and views. Some middleware data dictionaries can also help with data security as well as database optimization. It is a growing field with many new companies entering the market.

Example of a Data Dictionary and Oracle SQL

Below is a Simple data dictionary. Creating a data dictionary first makes creating tables in SQL easier. There are many variations to the data dictionary, however create one that will include everything you plan on coding later.

THREE LEVEL ARCHITECTURE

The three-level architecture is also known as three-schema architecture. The purpose of the threelevel architecture is to separate the user applications and the physical database. The reasons of this separation are: (i) Different users need different views of the same data. (ii) Users should not have to deal directly with the physical database storage details. (iii) The DBA should be able to change the database storage structure or storage device without affecting other user's views etc. The three-level architecture is divided into three view levels; External view level, Conceptual view level and Internal view level.

Das könnte Ihnen auch gefallen