Articles Comments

Oracle DBA & All IT » Developer, ORA-Error, Oracle Tips, Utilities » แก้ปัญหา buffer overflow ใน SQL*Plus ,PL/SQL และ PL/SQL developer tools

แก้ปัญหา buffer overflow ใน SQL*Plus ,PL/SQL และ PL/SQL developer tools

วันนี้จะมาพูดถึง buffer overflow ใน pl/sql และการรันจาก pl/sql developer tools ถ้าเจอปัญหาอย่างนี้เราสามารถที่จะแก้ไขได้อย่างไร
 

Error ที่เราต้องพบเจอกัน :
 

Exception Name Error Code Reason
ORA-20000 ORU-10027 Buffer overflow, limit of <buf_limit> bytes
ORA-20000 ORU-10028 Line length overflow, limit is 32767 bytes per line

 
Sulution for SQL*Plus :

set ค่าก่อนที่รันคำสั่งด้านล่างก่อน
SET SERVEROUTPUT ON SIZE 1000000 
or
SET SERVEROUTPUT ON

Solution for PL/SQL :

ใส่คำสั่งประกาศไว้ใต้ Begin ซึ่งก่อนที่จะเร่มต้นโปรแกรม
DECLARE
   ... declarations ...
BEGIN
  
DBMS_OUTPUT.ENABLE (1000000);
   ...
END;

Solution for PL/SQL Developer Tools :

1. ไปที่เมนู tools และเลือก Preference 

2. เลือก Tab Output และเพิ่มค่าของ Buffer size

ลองดูค่ะหวังว่าจะเป็นประโยชน์กับเพื่อนๆบ้างนะคะ

ดูรายละเอียดเพิ่มเติมการ Generating Output from PL/SQL Programs
ref: http://oreilly.com/catalog/oraclebip/chapter/ch06.html
 

.. Preview : 8940

Related Search:

  • buffer overflow
  • pl/sql developer

Written by

บอกเล่าสิ่งที่พบเจอมาในการทำงาน ประสบการณ์การทำงานด้าน DBA ถ่ายทอดกันด้วยภาษาง่ายๆ บ้านๆ " ทุกอย่างไม่อยาก แต่... แค่ตั้งใจไม่พอ ต้องลงมือทำ และทำ GoodLuck " Fanpage: www.facebook.com/DBAor .. "Oracle Database Consultant " ..

Filed under: Developer, ORA-Error, Oracle Tips, Utilities · Tags: , , , , , , , , ,

  • I would like to give thanks so much for the job you have made in writing this article. I am hoping the same effective job by you in the future too.

    • Geez, that’s uneblievable. Kudos and such.

  • Hell if I know.

  • Stay with this guys, you’re helping a lot of ppeole.

  • So true. Honesty and everything rceoginezd.