As per my experience when working with PL/SQL code, DBMS_OUTPUT is one of the most frequently used package to display debugging information.
But frequently when using 10G R1 and earlier versions, we come across something like as follows:
ORA-20000: ORU-10028: line length overflow, limit of 255 bytes per line
Single line limit of 255 bytes exceeded.
ORA-20000: ORU-10027: buffer overflow, limit of bytes
Maximum amount of 1 million bytes per session exceeded.
10G R2 increases the single length line limit to 32,767 bytes and the overall session limit is removed altogether.
Note: Now myself and my team use our own procedure called LOGIT for debugging, I will […]
Entries Tagged as 'SQL*Plus'
SQL*PLUS DBMS_OUTPUT Now and Then
November 25th, 2007 · No Comments
Tags: Oracle Database · Oracle Administration · SQL*Plus
HTML output from SQL*Plus
December 28th, 2006 · No Comments
This information for the guys who are new to SQL*Plus.
One can generate static HTML pages from SQL*Plus (8.1.6 and above) by setting the MARKUP option to HTML ON.
This can be done following two ways:
1. From command line when opening sqlplus specifying -MARKUP “HTML ON” as parameters
Example:
C:\>SQLPLUS -MARKUP “HTML ON”
2. From SQL*Plus, through “SET MARKUP HTML ON” command.
Example:
SQL> SET MARKUP HTML ON
SQL>> SPOOL C:\dept.html
SQL>> SELECT * FROM dept;
SQL>> SPOOL OFF
Bookmark this post
[…]
Tags: SQL*Plus
Customizing SQL*Plus prompt
December 3rd, 2006 · No Comments
Today let me tell you about customization of SQL*Plus prompt. How we can use predefined variables to customize the SQL*Plus prompt so that we know where we are working. This information is important whether you are a DBA or a Developer.
Following are the two files which are available at $ORACLE_HOME/SQLPLUS/admin through which we can configure and change the SQL*Plus prompt:
1. GLOGIN.SQL
2. LOGIN.SQL
When SQL*Plus starts after completion of connection to database it first look for GLOGIN.SQL and then LOGIN.SQL to execute their content.
Prior to Oracle 10g, GLOGIN.SQL used to execute only once while opening the […]
Tags: SQL*Plus





