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

كيف أضمن ان لا يتم أنتهاك قيد المفاتيح الأساسية ل


BEKO

Recommended Posts

يا شباب أقوم بعمل برنامج كبير يقوم فيه اكثر من خمسين موظف بالدخول الى قاعدة البيانات في نفس الوقت وتسجيل البيانات فكيف أضمن ان لا يتم أنتهاك قيد المفاتيح الأساسية للجداول هل يقوم أوركل بذلك بشكل تلقائي او يجب إتخاذ إجراءات معينة
يمكن تشبيه المشكلة بمكتب سفريات حيث لا يمكن ان يحجز المقعد على الطائرة أكثر من مسافر.

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

MR.beko
u can give DML privilage in dfferant table only for 5 or 6 user to make the dml commend i think this good soluation
but if u don't make this the oracle server make lock on the table who execute on it the DML commend without make commit

ex:
if u have the employee table the structure of the employee table as following:
ssn number PK
f_name varchar2
l_name varchar2
email varchar2 uk

if the user1 make the insert statment (or any DML statment) in the table employee but without make commint
the recrd who inserted :-- (1,'mohammed','mohammed','[email protected]')
and the user2 wont make insert (or any DML statment) in the table employee the oracle server will make lock in the table employee untill the user1 make commint

if u don't increase anything in the life been incresed in the life

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

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

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

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

×   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.

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

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

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