Download Topic 1- Database Systems Tutorial Questions 1. Compare and

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Microsoft SQL Server wikipedia , lookup

Microsoft Access wikipedia , lookup

Serializability wikipedia , lookup

Entity–attribute–value model wikipedia , lookup

Extensible Storage Engine wikipedia , lookup

Oracle Database wikipedia , lookup

IMDb wikipedia , lookup

Ingres (database) wikipedia , lookup

Open Database Connectivity wikipedia , lookup

Microsoft Jet Database Engine wikipedia , lookup

Functional Database Model wikipedia , lookup

Concurrency control wikipedia , lookup

Relational model wikipedia , lookup

Database wikipedia , lookup

Clusterpoint wikipedia , lookup

Database model wikipedia , lookup

ContactPoint wikipedia , lookup

Transcript
Topic 1-- Database Systems
Tutorial Questions
1. Compare and contrast between the main characteristics of the database and
File-based approach.
File- based approach includes: Collection of application programs that
Perform services for the end users (e.g. production of reports). Each program defines and
manages its own data. Early attempt to computerise the manual filing system.
Limitations of File-Based Approach: Separation and isolation of data. Each program
maintains its own set of data. Users of one program may be unaware of
Potentially useful data held by other programs. Duplication of data. Same data is held by
different programs. Wasted space and potentially different values
And/or different formats for the same item.
Database Management System
(DBMS):
A software system that enables users to define, create, maintain, and control access to the
database. (Database) application program: a computer program that Interacts with database
by issuing an appropriate request (SQL statement) to the DBMS.DBMS provides the
following facility: Data definition language (DDL).Permits specification of data types,
structures and any data constraints. All specifications are stored in the database.
Data manipulation language (DML).General enquiry facility (query language) of the data.
2. Describe four government sectors that would be expected to make use of
Database systems
NHS (including medical care, Benefits,), criminal justice and the law, driving and transport,
housing and local services.
Passport control, MI5.
3. What is meant by the terms?
a. Database
Shared collection of data.
A structured set of data held in a computer, especially one that is accessible in various ways.
b. Database Management System
A software system that enables users to define, create, maintain and control access to the
database.
c. Database Application Program
(Database) application program: a computer program that
Interacts with database by issuing an appropriate request
(SQL statement) to the DBMS.
Front: students backend: programmers/ IT ppl
Phone contact transfer because they all use the same transfer things..
d. Data Independence
Is when unless there is a relationship between data, other data does not change.
It includes logical and physical independence.
Physical independence describes the immunity of conceptual schema to change in internal,
Internal schema changes (e.g. using different file organizations, storage
structures/devices).Should not require changes to conceptual or internal schemas.
Logical independence Refers to immunity of external schemas to changes in conceptual
schema. Conceptual schema changes (e.g. addition/removal of entities).Should not require
changes to external schema or rewrites of application programs.
e. Security - Data Definition Language (DDL), allows the DBA or user to describe and name
Entities, attributes, and relationships required for the application plus any associated integrity
and security constraints. Security is set up so data (including sensitive / sort after data) is not
accessed by unauthorized people in the company, thieves, and hackers.
Deployment Failures, Broken databases, Data leaks, Stolen database backups, the abuse of
database features, A lack of segregation, Hopscotch, SQL injections, Sub-standard key
management, Database inconsistencies.
Password and access restrictions
f. Integrity
A DBMS must furnish a means to ensure that both the data in the database and changes to
the data follow certain rules.
The maintenance of the validity and the consistency of the database by the use of particular
constraints that are applied to data/
g. Views
Different user’s views, users see the database differently.
Allows each user to have his or her own view of the database.
A view is essentially some subset of the database.
Benefits:
Reduce complexity, Provide a level of security Provide a mechanism to customize the
Appearance of the database Present a consistent, unchanging picture of
The structure of the database, even if the underlying database is changed.
These present only a subset of the database.
4. Describe the role of database management systems (DBMS) in the database
Approach. Discuss why knowledge of DBMS is important for database
Administrators. – - (adobe pg 73)
Data and Database Administrators
The database and the DBMS are corporate resources that must be managed like any other
Resource. Data and database administration are the roles generally associated with the
Management and control of a DBMS and its data. The Data Administrator (DA) is
responsible for the management of the data resource including database planning,
development and maintenance of standards, policies and procedures, and
conceptual/logical data-base design. The DA consults with and advises senior managers,
ensuring that the direction of database development will ultimately support corporate
objectives.
The Database Administrator (DBA) is responsible for the physical realization of the
Database, including physical database design and implementation, security and integrity
Control, maintenance of the operational system, and ensuring satisfactory performance
Of the applications for users. The role of the DBA is more technically oriented than the
Role of the DA, requiring detailed knowledge of the target DBMS and the system
environment. In some organizations there is no distinction between these two roles; in
others, the importance of the corporate resources is reflected in the allocation of teams of
staff dedicated to each of these roles.
**query language
5. Describe the five components of the DBMS environment.
The DBMS environment consists of hardware (the computer), software (the DBMS,
operating system, and applications programs), data, procedures ( rules and instructions that
should be applied , and people. The people include data and database administrators, database
designers, application developers, and end-users.
6. What are the advantages of database management systems? –
Control of Data redundancy , data consistency, more info from same amount of data.
Dis adv : cost, size,cost of dbms, additional software., performance
7. Discuss the roles of the following personnel in the database environment:
a. Data Administrator
The management of the data resource, which includes database
Administration, planning, development, and maintenance of standards, policies
And procedures, and conceptual and logical database design
b. Database Administrator
The management of the physical realization of a database system,
Administration which includes physical database design and implementation, setting security and integrity
Controls, monitoring system performance, and reorganizing the database, as necessary.
c. Logical Database Designer
Database Designers
In large database design projects, we can distinguish between two types of designer:
Logical database designers and physical database designers. The logical database designer is concerned
with identifying the data (that is, the entities and attributes), the relationships between the data, and the
constraints on the data that is to be stored in the database. The logical database designer must have a
thorough and complete understanding of the organization’s data and any constraints on this data (the
constraints are sometimes called business rules). These constraints describe the main characteristics of the
data as viewed by the organization. Examples of constraints for
Dream Home
Are:
A member of staff cannot manage more than 100 properties for rent or sale at the same
Time;
A member of staff cannot handle the sale or rent of his or her own property;
A solicitor cannot act for both the buyer and seller of a property.
To be effective, the logical database designer must involve all prospective database users
In the development of the data model, and this involvement should begin as early in the
Process as possible. In this book, we split the work of the logical database designer into
Two stages:
Conceptual database design, which is independent of implementation details such as the
Target DBMS, application programs, programming languages, or any other physical
Considerations;
Logical database design, which targets a specific data model, such as relational, network,
Hierarchical, or object-oriented.
d. Physical Database Designer
The physical database designer decides how the logical database design is to be physically realized. This
involves:
Mapping the logical database design into a set of tables and integrity constraints;
Selecting specific storage structures and access methods for the data to achieve good
Performance;
Designing any security measures required on the data.
Many parts of physical database design are highly dependent on the target DBMS, and
There may be more than one way of implementing a mechanism. Consequently, the
Physical database designer must be fully aware of the functionality of the target DBMS
And must understand the advantages and disadvantages of each alternative for a particular
Implementation. The physical database designer must be capable of selecting a suitable
Storage strategy that takes account of usage. Whereas conceptual and logical database
Design are concerned with the what, physical database design is concerned with
How it requires different skills, which are often found in different people.
e. Application Developer
Once the database has been implemented, the application programs that provide the
Required functionality for the end-users must be implemented. This is the responsibility of
The application developers. Typically, the application developers work from a specification produced by
systems analysts. Each program contains statements that request the
DBMS to perform some operation on the database. This includes retrieving data, inserting,
Updating, and deleting data. The programs may be written in a third-generation programming language or
a fourth-generation language, as discussed in the previous section
f. End--Users
actual users of the system
8. Discuss the three generations of DBMSs.
CODASYL
IBM
…
9. Why are views an important aspect of database management systems?