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

ماذا تفعل هذه التعليمات في بيئة Sql Plus

Featured Replies

بتاريخ:

ماذا يؤثر تنفيذ التعليمات التالية على تنفيذ الاستعلامات:

SET ECHO OFF
SET VERIFY OFF
بتاريخ:

السلام عليكم ورحمة الله 

 

SET VERIFY OFF

 

يمكن تغيير خاصية ال Verify عن طريق الأمر

set verify on 

set verify off

وهذه الخاصيه تستخدم للطباعة على سبيل المثال لطباعة سطر يوجد به قيم المتغيرات عند إستخدام ال Substitution Variables

فإذا كنا نريد عرض قيم المتغيرات فإننا نستخدم الأمر

set verify on

و بالتال بعد تنفيذ أمر السيكول الموجود به ال Substitution Variables فسوف يتم كتابة قيمة المتغيرات القديمه و الجديده بعد التعويض.
على سبيل المثال سوف يتم كتابة:
old : employee_id = &employee_ num
new: employee_id = 101

 

من مشاركة سابقة بالمنتدى 

http://www.araboug.org/ib/index.php?showtopic=28675

 

اليك صورة المثال المرفق 

verify.JPG

بتاريخ:

السلام عليكم ورحمة الله 

 

SET ECHO OFF

 

فرضا لدينا ملف script يحتوي اوامر sql  والمطلوب تنفيذه من ال SQL PLUS 

 

الملف موجود في drive E 

وأسم الملف test_echo.sql

هذا الملف يحتوي الأمر التالي لإسترجاع بيانات من جدول على سبيل المثال 

select * from dept;

في حالة استخدام الأمر 

SQL> set echo on

وعند كتابة الأمر  

 

SQL> @e:\test_echo
 
سيظهر التالي  ( امر select للبيانات المكتوب في الملف script + البيانات المسترجعه من تنفيذ جملة الإسترجاع )
SQL> select * from dept;


   DEPTNO DNAME          LOC
--------- -------------- -------------
       10 ACCOUNTING     NEW YORK
       20 RESEARCH       DALLAS
       30 SALES          CHICAGO

وفي حالة استخدام الأمر 

 

SQL> set echo off
 
ثم تنقيذ أمر محتوى الملف 
SQL>  @e:\test_echo
 
سيظهر كالتالي ( البيانات مباشرة بدون اظهار أمر استرجاع البيانات  ) 
   DEPTNO DNAME          LOC
--------- -------------- -------------
       10 ACCOUNTING     NEW YORK
       20 RESEARCH       DALLAS
       30 SALES          CHICAGO

 

شرح أكثر 

 

Name

SET ECHO

Synopsis

The ECHO setting tells SQL*Plus whether you want the contents of script files to be echoed to the screen as they are executed.

Syntax

SET ECHO {OFF | ON}

Parameters

OFF

Keeps commands from being echoed to the screen while a script file is being executed. This is the default setting.

ON

Causes commands from a script file to be echoed to the screen as they are being executed.

Examples

SET ECHO is one of the few debugging tools SQL*Plus has. It often helps to turn on command echoing while you are developing and testing a new script file. The following example shows the same script file being executed, once with ECHO     on and once with it off  

SQL> @c:\a\echo_test
D
-
X

SQL> SET ECHO ON
SQL> @c:\a\echo_test
SQL> SELECT * FROM dual;
D
-
X

For the second execution of the script, ECHO had been turned on, so the SELECT statement was displayed on the screen when SQL*Plus executed it.

بتاريخ:
  • كاتب الموضوع

جزيت كل خير أخ أمجد فعلا اجابة وافية وقيمة

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

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

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

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

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

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.