الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

ميزة في 9i وغير موجودة في الإصدارات السابقة

Featured Replies

بتاريخ:

ميزة جديدة في 9i وغير موجودة في الإصدارات السابقة

Oracle9i Release 2 يسمح لك بإعادة تسمية أسماء قيود الجداول وهذه ميزة تفتقر لها الإصدارات السابقة.
وهنا التوضيح :

الخطوة الأولى:

SQL> create table b_test (col1 number, col2 number, 
	   constraint pk_b_test primary key (col1))


الخطوة الثانية:

SQL>select constraint_name from dba_constraints 
where table_name = 'B_TEST';  

CONSTRAINT_NAME 
------------------------------ 
PK_B_TEST 



الخطوة الثالثة :

SQL> select index_name from dba_indexes 
	  where table_name = 'B_TEST';

INDEX_NAME 
------------------------------ 
PK_B_TEST 



الخطوة الرابعة:

SQL> alter index PK_B_TEST rename to B_TEST_PK;



الخطوة الخامسة :

SQL> select constraint_name from dba_constraints 
	  where table_name = 'B_TEST'; 
 
CONSTRAINT_NAME 
------------------------------ 
PK_B_TEST 



الخطوة السادسة :

SQL> alter table b_test rename constraint PK_B_TEST to B_TEST_PK;



الخطوة السابعة :

SQL> select constraint_name from dba_constraints 
	  where table_name = 'B_TEST'; 
 
CONSTRAINT_NAME 
------------------------------ 
B_TEST_PK 



ماذا سيحدث لو جربنا الخطوات السابقة في Oracle8i database ؟؟

كل الخطوات ستكون سليمة لاكن إذا وصلت للخطوة

SQL> alter table b_test rename constraint PK_B_TEST to B_TEST_PK;



سوف تواجه الخطأ التالي :
ERROR at line 1:
ORA-14155: missing PARTITION or SUBPARTITION keyword

هذه ميزة في 9i و إن شاء بعد كم يوم سوف أقدم مميزات في 10g

تحياتي..................................

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

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

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

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

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

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.