- Definite by the WWW Consortium (W3C)
- Initially intended as a document markup language not a database language
- The ability to denote new tags and to produce nested tag structures made XML a immense way to switch data, not just documents
- XML has grown to be the basis for all innovative generation data interchange formats.
- A wide diversity of tools is existing for parsing, browsing and querying XML documents/data
Database System, Centralized Database System, Client Server Architecture, Database Testing, Data Levels, External, Conceptual, Internal, DBMS Advantage and Disadvantage, Distributed Database System, Environment of DBMS, Internal Structure of a Database, OBJECT ORIENTED MODEL, RELATIONAL MODEL, SGML-XML Relationships, Structure of Database, Three Level Architecture, Extensible Markup Language, Database Administrator, DBMS Book, Notes, Database Architecture, Data Manipulation, DBMS Guide
Search More:-
Sunday, 20 November 2011
XML (Extensible Markup Language)
Database Administrator
Synchronize all the actions of the database system; the database administrator has a superior considerate of the enterprise’s information resources and requirements.
Database administrator's responsibilities include:-
- Schema definition
- Storage structure and admittance method explanation
- Schema and physical organization alteration
- Yielding user authority to admittance the database
- Denote integrity constraints
- Acting as liaison with users
- Watch out performance and responding to alter in requirements
Labels:
Database Administrator,
Database schema,
Denote integrity constraints,
responsibilities,
Schema definition,
Yielding user
Database Users
Users are distinguished by the way they expect to interrelate with the system.
- Application programmers – interrelate with system all the way through DML calls
- Sophisticated users – form requests in a database query language
- Specialized users – write dedicated database applications that do not fit into the traditional data processing framework
- Naive users – appeal to one of the permanent application programs that have been written formerly
Examples, people accessing database in excess of the web, bank tellers, clerical staff
Labels:
Application programmers,
Database Users,
Naive users,
Sophisticated users,
Specialized users
Transaction Management
A Transaction is a compilation of operations that carry out a single logical function in a database application.
Transaction management part ensures that the database remains in a consistent (correct) state even with system failure (e.g., power failures and operating system crashes) and transaction failures.
Concurrency control manager controls the interface between the concurrent transactions, to make certain the consistency of the database.
Database Design
The process of designing the general structure of the database:-
Logical Design – decide on the database schema. Database design necessitates that we find a “good” assortment of relation schemas.
Business decision – What attributes should we evidence in the database?
Computer Science decision – What relation schemas should we have and how should the attributes be disseminated between the various relation schemas?
Physical Design – Deciding on the physical layout of the database
Structured Query Language (SQL)
SQL: Extensively used nonprocedural language
Example: Find the name of the customer with customerid 192837465
Select customer.customer_name
from customer
where customer.customer_id = ‘192837465’
Example: Find the balances of all accounts detained by the customer with
customerid 192837465
Select account.balance
From depositor, account
where depositor.customer_id = ‘192837465’ and
depositor.account_number = account.account_number
Application programs commonly access databases through one of:-
- Language extension to consent to embedded SQL
- Application program interface (e.g., ODBC/JDBC) which permit SQL
- Queries to be sent to a database
Labels:
embedded SQL,
JDBC,
ODBC,
SQL,
Structured Query Language
Data Definition Language (DDL)
- Specification notation for significant the database schema
Example: create table account (
Account number char (10),
Balance integer)
DDL compiler produces a set of tables stored in a data dictionary.
- Data dictionary contains metadata (i.e., data about data)
- Database schema
- Data storage and definition language
- Specifies the storage structure and admittance methods used
Integrity constraints
Domain constraints
Referential integrity (references constraint in SQL)
Assertions
Authorization
Labels:
Assertions,
Data Definition Language,
Data dictionary,
Data storage and definition language,
Database schema,
DDL,
Domain constraints,
Integrity constraints,
metadata,
Referential integrity
Data Manipulation Language (DML)
- Data Manipulation Language is a language for accessing and manipulate the data organized by the apposite data model.
- DML also known as query language.
Two classes of languages:-
- Procedural – user specify what data is required and how to get those data
- Declarative (nonprocedural) – user specifies what data is required without specify how to get those data
SQL is the most broadly used query languages
Labels:
Data Manipulation Language,
Declarative,
DML,
nonprocedural,
Procedural,
query language,
SQL
Data Models?
Data Model is a collection of tools for describing:-
- Data
- Data relationships
- Data semantics
- Data constraints
- Relational model
- Entity Relationship data model (generally for database design)
- Object based data models (Object-oriented and Object relational)
- Semi structured data model (XML)
Other older models:-
- Network model
- Hierarchical model
Instance and Schema:-
Similar to types and variables in programming languages:-
Schema:– The logical structure of the database
Example: The database consists of information about a set of clientele and accounts and the connection between them)
Analogous to type information of a variable in a program.
Physical schema: Database design at the physical level
Logical schema: Database design at the logical level
Instance:- The actual content of the database at a particular point in time
Analogous to the value of a variable.
Physical Data Independence: – the ability to modify the physical schema without Changing the logical schema
Applications depend on the logical schema
In general, the interfaces between the various levels and components should be well defined so that changes in some part do not seriously influence others.
Levels of Abstraction:-
Physical level: Describes how a record (e.g., customer) is stored.
Logical level: describes data stored in database, and the relations among the data.
type customer = record
customer_id : string;
customer_name : string;
customer_street : string;
customer_city : integer;
end;
View level: application programs hide details of data types. Views can also hide information (such as an employee’s salary) for security Purposes
Purpose of Database Systems:-
Drawbacks of using file systems (cont.)
1) Atomicity of updates
- Failures may leave database in an inconsistent state with part
- Updates carried out
Example: Transfer of funds from one account to another should
either complete or not happen at all
2) Concurrent access by multiple users
- Concurrent accessed required for presentation
- Uncontrolled concurrent accesses can lead to inconsistency
Example: Two people reading a balance and updating it at the Similar time
3) Security problems
Hard to provide user access to some, but not all, data
Database systems offer solutions to the entire above problem
Saturday, 19 November 2011
What is DBMS?
- DBMS contains information about a particular enterprise
- Collection of interrelated data
- Set of programs to access the data
- An environment that is both convenient and efficient to use
Database Applications:-
- Banking: all transactions
- Airlines: reservations, schedules
- Universities: registration, grade
- Sales: customers, products, purchases
- Online retailers: order tracking, customized recommendation
- Manufacturing: production, inventory, orders, supply chain
- Human resources: employee records, salaries, tax deductions
- Databases touch all aspects of our live
Subscribe to:
Posts (Atom)