Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I display the full content of LOB column in Oracle SQL*Plus?

When I try to display the contents of a LOB (large object) column in SQL*Plus, it is truncated. How do I display the whole thing?

like image 733
Anonymoose Avatar asked Sep 23 '08 18:09

Anonymoose


People also ask

How do I view CLOB data in Oracle SQL Developer?

select dbms_lob. substr(clob_filed, 1000000, 1) from exportlog; I run this sql in sql developer and sqlplus in command prompt. both always return NULL.

How do I display output in SQL Plus?

To do this we use a procedure called dbms_output. put_line to place the results in a buffer that SQL*Plus will retrieve and display. SQL*Plus must be told to retrieve data from this buffer in order to display the results. The SQL*Plus command 'set serveroutput on' causes SQL*Plus to retrieve and display the buffer.

What is LOB column Oracle?

Large Objects (LOBs) are a set of datatypes that are designed to hold large amounts of data. A LOB can hold up to a maximum size ranging from 8 terabytes to 128 terabytes depending on how your database is configured. Storing data in LOBs enables you to access and manipulate the data efficiently in your application.


2 Answers

SQL> set long 30000
SQL> show long
long 30000
like image 111
Anonymoose Avatar answered Oct 17 '22 09:10

Anonymoose


You may also need:

SQL> set longchunksize 30000

Otherwise the LOB/CLOB will wrap.

like image 35
Kevin O'Donnell Avatar answered Oct 17 '22 11:10

Kevin O'Donnell