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

2

29

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?

Manion answered 23/9, 2008 at 18:21 Comment(0)
M
50
SQL> set long 30000
SQL> show long
long 30000
Manion answered 23/9, 2008 at 18:21 Comment(3)
This with Kevin's answer is what I actually needed.Countermove
@KapilVyas You can add the command to your login.sql if you want it to be executed automatically. On Unix systems, that file should be placed in your home directory.Manion
I haven't used this in about 15 years so I forgive myself for forgetting it.Malcolmmalcom
P
20

You may also need:

SQL> set longchunksize 30000

Otherwise the LOB/CLOB will wrap.

Pearcy answered 1/9, 2011 at 15:32 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.