Professional Documents
Culture Documents
الدرس الاول
الدرس الاول
الدرس الاول
In this first lesson, we will cover سنتعرف في هذا المحور على أهم
the most important terms and basic المصطلحات والمفاهيم اﻷساسية في قواعد
concepts in databases, starting with
بداية بمفهوم البيانات بحد ذاتها ثم،البيانات
the concept of data, then getting to
know databases and the التعرف إلى قواعد البيانات والصفات التي تتصف
characteristics that characterize their ، كذا أنواعها ومختلف النماذج التي يعمل بها،بها
types and the various models in
أخيرا التعرف على أنظمة إدارة قواعد البيانات
ً
which they operate, and finally
getting to know Database .وذكر وظائفها
Management Systems (DBMS) and
mentioning their functions.
Introduction :مقدمة
ﻻتخاذ قرار
نقوم بتسليمها للمستخدم النهائي معين
Example: let the following be a set of مثال :لتكن مجموعة من البيانات التالية التي ﻻ معن
meaningless data. لها.
If we assume that it is a weather ل ل اف ض ا أنها lقاع ة ب انات حالة ال ق :ي ت
database: this data is converted into فة أف ل ت ض ها ه ه ال انات إلى معل مات و
information and is better explained to the
إضافة :ال ي ة ،درجة ال ارة ،س عة م وذل لل
user by adding: city, temperature, wind
ال اح ون ة اﻻم ار.
speed, and rainfall percentage.
3. Storing a huge amount of data that exceeds ه ـ ـ ــائ ـ ـ ــل م ال ـ ـ ــان ـ ـ ــات ال ي ت ـ ـ ــاوز ت.3
human capabilities to remember its details
and performing some operations and تفاص ـ ـ ـ ـ ـ ـ ـ لها وج اء اﻻم ـان ـات ال ـ ـ ـ ـ ـ ـ ـ ة في ت
manipulations that are impossible to ل ت ف ها ـــــــ الع ل ات وال عال ات ال ي ع
perform manually.
4. It helps to achieve complete .ي و ا
confidentiality of the data stored in it, so
نة ال ـ ـ ة ال املة لل انات ال ت ــاع على ت ق.4
that no information is made available to
anyone who does not have the right to له ل ﻻ ت اح أ ة معل مة ﻷ ش ـ ـ ـ بها
view it.
.في اﻻ ﻼع عل ها ال
Example:
:مثال
When you use an ATM, you use a gold
card with an electronic chip that carries a تقوم باستخدام,عند استخدامك للجهاز الصراف اﻵلي
unique number for you. Once you insert البطاقة الذهبية ذات شريحة إلكترونية تحمل رقما مميزا
the card into the ATM, it asks you to enter
خاص بك و بمجرد إدخال البطاقة في الجهاز الصراف
the password. Then you can view your
account balance when you verify the عندها يمكنك,فإنه يطلب منك إدخال الرقم السري
validity of the entered password. If اﻻطﻼع على رصيد حسابك عند التحقيق من صحة الرقم
someone wants to use your card that he فإذا بشخص ما يريد استعمال بطاقتك.السري المدخل
found, for example, he will not be able to
view your account balance because he التي وجدها مثﻼ فإنه ﻻ يستطيع اﻻطﻼع على رصيدك
does not have the password. .الحسابي ﻷنه ﻻ يمتلك الرقم السري
Providing security for data from damage. . توفير اﻷمن للبيانات من التلف
Example: See the following figure for a انظر الشكل التالي لنموذج قاعدة البيانات:مثال
hierarchical database model for a library
الهرمي لنظام مكتبة
For this hierarchical model, moving from the اﻻنتقال من،بالنسبة لهذا النموذج الهرمي
book to extracting the author of the book is easy,
but moving from the author to the number of الكتاب إلى استخراج مؤلف الكتاب سهل أما
books written by him is difficult, so you must اﻻنتقال من المؤلف إلى عدد الكتب التي ألفها
return to the first record.
.صعب فيجب الرجوع إلى السجل اﻷول
Network database model: : نموذج قاعدة البيانات الشبكية
This model appeared in the same period ظهر هذا النموذج في نفس فترة النموذج
as the hierarchical model. The database of
تعرض قاعدة بيانات هذا النموذج بشكل.الهرمي
this model is presented in a network and
based on a group of nodes. Each node كل عقدة,شبكة و على أساس مجموعة من العقد
represents a record, so that each record can تمثل سجل بحيث يمكن لكل سجل الحصول على
have many parent and child records, and it
سجﻼت أصلية و فرعية كثيرة و يمكن أن يكون لها
can have more than one parent, unlike the
hierarchical model. .أكثر من أب عكس النموذج الهرمي
من عيوبه انه غير مرن ومعقد من الناحية
Its disadvantages are that it is inflexible
and complex in terms of programming and .البرمجية والصيانة
maintenance.
كتاب المؤلف
عنوان الكتاب الرمز اسم المؤلف الرمز
كتاب المؤلف
عنوان الكتاب الرمز اسم المؤلف الرمز
كتاب المؤلف
عنوان الكتاب الرمز اسم المؤلف الرمز
Example: مثال:
The network database of the author and ليكن لدينا قاعدة البيانات الشبكية للمؤلف
the books he wrote as illustrated in the
والكتب التي ألفها في الشكل أعﻼه.
figure above.
programming languages.
This model appeared in the seventies of the أساس النموذج.ظهر هذا النموذج في السبعينات
last century. The basis of the relational model
is a mathematical concept known as تسمى أيضا,العﻼئقي هو مفهوم رياضي يعرف بالعﻼقة
relationships, also called tables, consist of
rows and columns. The columns are attributes تكون اﻷعمدة,بالجداول تتكون من صفوف و أعمدة
and each row is called a record. Relational
databases have become the most widely used
أصبحت قواعد.هي الصفات وكل صف يسمى بالسجل
and widespread due to their ease of design and
البيانات العﻼئقية اﻷكثر إستخداما و إنتشارا نظرا
programming.
.لسهولة تصميمها و برمجتها
Example:
:مثال
The following figure represents the الشكل التالي يمثل قاعدة البيانات العﻼئقية
relational database consisting of the
جدول الكتاب و جدول:المكونة من الجدولين التاليين
following two tables: the book table and
the author table. .المؤلف
The previous figure shows the الشكل السابق يبين العﻼقة بين جدول الكتاب
relationship between the book table and
the author table through the author code وجدول المؤلف من خﻼل عمود رمزالمؤلف المشترك
column shared between the two tables.
.بين الجدولين
Database manager: He is the one who هوالذي يقوم:م دير قواع د البي ان ات
manages databases, controls work بإدارة قواعد البيانات والتحكم في ص ﻼحيات
permissions, and monitors system and
العمل ومراقبة النظام وتحس ين أداء قواعد
database performance improvement.
.البيانات