الانتقال إلى المحتوى
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.

سؤل حول طباعة متغير من نوع Clob

Featured Replies

بتاريخ:

جربت اطبع المتغير بهذه الطريقة ولكن لم تنفع

SET SERVEROUTPUT ON 
DECLARE 

C  CLOB;

BEGIN
C:=get_table_md;
DBMS_OUTPUT.PUT_LINE(C);
END;



وظهرت الرسالة التالية

DECLARE
*

ERROR at line 1:
ORA-20000: ORU-10028: line length overflow, limit of 255 chars per line
ارجو منكم المساعدة اخواني

تم تعديل بواسطة faisal_mushal

بتاريخ:

هذا يعني أن الدالة DBMS_OUTPUT.PUT_LINE لا تقبل أكثر من 255 حرف !!!


شكراً

  • بعد 2 أسابيع...
بتاريخ:

ده اللى ظهر عندى بالظبط :-

SQL> DECLARE
 2  C  CLOB;
 3  BEGIN
 4  C:=get_table_md;
 5  DBMS_OUTPUT.PUT_LINE(C);
 6  END;
 7  /
C:=get_table_md;
  *
ERROR at line 4:
ORA-06550: line 4, column 4:
PLS-00201: identifier 'GET_TABLE_MD' must be declared
ORA-06550: line 4, column 1:
PL/SQL: Statement ignored



لا يوجد وجود لرسالة الخطاء التى ذكرتها انت .
و انا اعتقد ان هذا هو الخطاء الطبيعى الذى من المفترض ان يظهر لأن ال get_table_md غير معرف فى ال declaration section

ال CLOB بتستخدم لتخزين البيانات ال char وال varchar2 بمساحات عالية تصل ل 4 جيحا ، و لذلك فهى تستخدم لتخزين القصص او الرويات او اى كتب بأحجام كبيرة .

و أعتقد ان هذا هو الكود الذى تبحث عنه :-

DECLARE
C  CLOB;
BEGIN
C:= ' The technique is almost exclusively applied for arpeggios, with a common shape being the one- or two-octave stacked triad; or in scalar terms the first (tonic), third (mediant) and fifth (dominant) of a scale, repeated twice with an additional tonic added to the highest point in the shape. For example, an A minor stacked triad would notate as A-C-E-A-C-E-A. When these series of notes are played quickly up and down as an arpeggio, they are notably classical-sounding as opposed to more blues-based progressions. The ability to move the shape of an arpeggio up and down the fretboard in order to, or because of, a change in key lends itself to being the primary choice of guitar players, helping ease the use of what is considered a difficult technique of guitar performance. ';
DBMS_OUTPUT.PUT_LINE(C);
END;
/



أريد أن أضيف ....... أن سبب ظهور الخطاء الذى لديك ORA-20000 هو ان ال Buffer لديك مساحته قليلة بالنسبة لل output الذى يفترض خروجه على البرنامج ( ال SQL*PLUS ) .

قم بتنفيذ الكود التالى قبل تنفيذك لأى كود أخر :-

set serveroutput on size 10000000



و أعتقد بذلك ، ان مشكلة رسالة ال ORA-20000 لن تظهر لك مرة أخرى .

و بالتوفيق

تم تعديل بواسطة hanyfreedom

بتاريخ:

مشكور اخي على هذا الرد المقنع ولكن
get_table_md; هو عبارة عن أجراء موجود عندي

وتم حل المشكلة

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

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

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

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

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

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.