الانتقال إلى المحتوى

مصطلحين لم أفهمهما ، أرجوكم الشرح وشكراً


omar-alreyati

Recommended Posts

ارجو منكم التكرم بشرح الموضوعين الآتين لاني لم افهمهما واليكم نص الموضوعين :

الموضوع الاول : Read Consistency

Database users access the database in two ways:
• Read operations (SELECT statement)
• Write operations (INSERT, UPDATE, DELETE statements)
You need read consistency so that the following occur:
• The database reader and writer are ensured a consistent view of the data.
• Readers do not view data that is in the process of being changed.
• Writers are ensured that the changes to the database are done in a consistent way.
• Changes made by one writer do not disrupt or conflict with changes another writer is making.
The purpose of read consistency is to ensure that each user sees data as it existed at the last commit,
before a DML operation started.

الموضوع الثاني : Locking

In an Oracle database, locks:
• Prevent destructive interaction between
concurrent transactions
• Require no user action
• Automatically use the lowest level of
restrictiveness
• Are held for the duration of the transaction
• Are of two types: explicit locking and implicit
locking

What Are Locks?
Locks are mechanisms that prevent destructive interaction between transactions accessing the same
resource, either a user object (such as tables or rows) or a system object not visible to users (such as
shared data structures and data dictionary rows).
How the Oracle Database Locks Data
Oracle locking is performed automatically and requires no user action. Implicit locking occurs for
SQL statements as necessary, depending on the action requested. Implicit locking occurs for all SQL
statements except SELECT.
The users can also lock data manually, which is called explicit locking.

وشكراً جزيلاً لكم

تم تعديل بواسطة omar-alreyati
رابط هذا التعليق
شارك

السلام عليكم

الموضوع الاول : (مبدا القراءه)

مستخدمي قاعدة البيانات لهم طريقتين للاستخدام

1-عن طريق عرض المعلومات بما معناه (( select كمثال select * from emp_tbl
2- عن طريق ادخال المعلومات او تعديلها او حدفها

وتحتاج الى مبدا القراءه للنقاط الاتيه

1-للتاكد من المحافظه على (مبدا القراءه) لل القارئ و مدخل البيانات

2-القارئ لا يرى أي معلومات تكن حاليا تحت التعديل بل يرى المعلومات قبل التعديل الى في حالت ان تعديل
البيانات تم حفظه

3-مدخل البيانات يتاكد من ان ادخال المعلومات تم لوجود مبدا القراءه

4-اي تعديلات عن طريق مستخدم لا تتعارض مع التعديلات لمستخدم اخر
اي مستحد يستطيع قراءة الي بيانات قد حفظت قبل اخر عملية تعديل للبيانات
---------------------------------------------------------------------------------------------
الموضوع الثاني : الاقفال

1-بمنع التعارض بين عمليات ادخال البيانات.

2-لا يحتاج اي تدخل من قبل المستخدم

3-يستخدم طريقة المستخدم الاضعف وا الاقل بمرحله لفك القفل

4-المسؤول عن الوقت الخاص للعمليه

5-نوعان من الاقفال

*- التوماتيكي ليس للمستخدم دخل به يحدت عند اي عمليه ( (insert , update ,delete ,drop,….ect
ما عدا ال select لا تعمل اي اقفال

*-اليدوي عن طريق المستخدم كمثال LOCK TABLE hr.emp IN share MODE;




Alaa ali
OCP DBA 9i

رابط هذا التعليق
شارك

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   تمت استعادة المحتوى السابق الخاص بك.   مسح المحرر

×   You cannot paste images directly. Upload or insert images from URL.

جاري التحميل
×
×
  • أضف...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية