database Ch1,2,3,4 ملخص
database Ch1,2,3,4 ملخص
logically coherent collection of data with some inherent meaning part of the real world about which data
is stored in a database
facts that can be recorded
and have an implicit meaning
Applications must keep up with changing user requirements Sharing of data and multi-user transaction processing
“Active” processing to take internal actions on data Concurrency control Recovery subsystem OLTP
Ensure that each transaction is ensures each completed transaction allows hundreds of
Presentation and Visualization of data correctly executed or aborted has its effect permanently recorded concurrent transactions to
execute per second
in the database
Maintenance of the database over the lifetime
Actors on the Scene Workers Behind the Scene
who actually use and control the database content, and
those who design, develop and maintain database applications Those who design and develop the DBMS software and related
Responsible for authorizing access
tools, and the computer systems operators
Database administrators Responsible for coordinating and monitoring System Designers and Implementors
acquiring software and hardware resources
controlling its use and monitoring ef ciency of operations Design and implement DBMS packages in
the form of modules and interfaces and
test and debug them
de ne the content
Database Designers في شكل وحدات وواجهاتDBMS تصميم وتنفيذ حزم
de ne the structure&constraints
.واختبارها وتصحيحها
de ne the functions or transactions Tool Developers
End-users
Design and implement software systems called tools for:
1- modeling and designing databases
They use the data for queries, reports and some of them update the database content
2- performance monitoring
3- prototyping
Naïve 4- test data generation
Sophisticated Stand-alone 5- user interface creation, simulation
Casual or Parametric
Who are familiar with Mostly maintain personal that facilitate building of applications and allow using
access they make up a large section of the the system capabilities databases using ready-to-use database effectively
database end-user population packaged applications
like business analysts,
occasionally : من أجلTool تصميم وتنفيذ أنظمة برمجية تسمى
standard types of queries and updates scientists, engineers
when needed نمذجة وتصميم قواعد البيانات-1
Many use tools that
work closely with the user that creates its own internal database مراقبة األداء-2
Users of Mobile Bank-tellers or stored database
user that maintains a database of personal
النماذج األولية-3
Apps mostly reservation clerks
photos and videos اختبار توليد البيانات-4
Social Media Users إنشاء ومحاكاة واجهة املستخدم-5
fi
System Analysts and Application Developers التي تسهل بناء التطبيقات وتسمح باستخدام قاعدة البيانات)داتابيز(بشكل فعال
fi
This category currently accounts for a very large proportion of the IT work force
تمثل هذه الفئة حاليًا نسبة كبيرة ج ًدا من قوة العمل في مجال تكنولوجيا املعلومات
fi
Operators and Maintenance Personnel
fi
They understand the user developed by analysts and test
requirements of naïve and and debug them before such people who can analyze vast يمكنهم تحليل كميات هائلة من بيانات
sophisticated users and design deployment amounts of business data and real- األعمال وبيانات الوقت الفعلي )"البيانات
time data (“Big Data”) for better
applications including canned تنفيذ املواصفات التي طورها املحللون الكبيرة"( التخاذ قرارات أفضل فيما يتعلق
transactions to meet those decision making related to planning,
واختبارها وتصحيحها قبل النشر
advertising, marketing etc. .ذلك بالتخطيط واإلعالن والتسويق وما إلى
requirements
Controlling
Data Model Categories Database Schema vs. Database State
Data Model Constraints Conceptual (high-level, semantic)
Provide concepts that are close to the
way many users perceive data
fi
يشمل العناصر )وأنواع بياناتها( باإلضافة إلى مجموعات العناصر above two
والعالقات بني هذه املجموعات، ( الجدول، الصفوف، )االنتتي
specify some restrictions on valid data; these
constraints must be enforced at all times Self-Describing
يحدد بعض القيود على البيانات الصحيحة ؛ يجب فرض هذه القيود Combine the description of data with the data
values
في جميع األوقات Database Schema Architecture
unchanged
Data Model Operations
basic model operations Logical Data Independence
The capacity to change the conceptual
user-de ned operations schema without having to change the
external schemas
These operations are used for specifying database retrievals and updates
by referring to the constructs of the data model
fi
Data Manipulation Language (DML)
Used to specify database retrievals and updates
fi
Low Level or Procedural Language
High Level or Non-procedural Language
rectangular box
Weak Entity An entity that does not have a key attribute and
that is identi cation-
dependent on another entity type
entity وتعتمد علىkey attribute ماعندهاentity ملا يكون فني
ثانيه في تمييزها
Double rectangular
composite attribute:
Diamond-shaped box
identifying Relationship
weak entity
partial key
Double diamond
- Name is the partial key
- DEPENDENT is a weak entity
- EMPLOYEE is owner OR identifying entity
- DEPENDENT_OF Is identifying Relationship
is the process of de ning a set of subclasses of a superclass is the reverse of the specialization process
Several classes with common features are generalized into
a superclass
at most one
fi
more than one