Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Get full sql text from v$sql

user455466Sep 23 2016 — edited Sep 23 2016

Hi,

I have executed this statement:

alter table TE_TAVA_CDRS modify CONCEPTO_FACTURA nvarchar2(3);

But when I try to get the sql text from the dictionary view "v$sql", it is cut:

SQL> set long 2000000000

SQL> set lines 99999

SP2-0267: opcion linesize 99999 fuera de rango (1 hasta 32767)

SQL> set lines 9999

SQL> select DBMS_LOB.substr(sql_fulltext, 3000) from v$sql where sql_id = 'far2a444tyzy3';

DBMS_LOB.SUBSTR(SQL_FULLTEXT,3000)

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

alter table TE_TAVA_

SQL> define

DEFINE _DATE           = "23/09/16" (CHAR)

DEFINE _CONNECT_IDENTIFIER = "PAING0" (CHAR)

DEFINE _USER           = "UMDAINGU" (CHAR)

DEFINE _PRIVILEGE      = "" (CHAR)

DEFINE _SQLPLUS_RELEASE = "1102000200" (CHAR)

DEFINE _EDITOR         = "ed" (CHAR)

DEFINE _O_VERSION      = "Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

With the Partitioning, Automatic Storage Management, OLAP, Data Mining

and Real Application Testing options" (CHAR)

DEFINE _O_RELEASE      = "1102000400" (CHAR)

How can I get the full text?

Thanks in advance,

Jose Luis

This post has been answered by Randolf Geist on Sep 23 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 21 2016
Added on Sep 23 2016
4 comments
24,567 views