I have some queries to find out the ddl of some objects from a schema. I am getting the result columns are truncated in middle of the queries.
How can I increase the with of the column?
I tried with
SET SERVEROUTPUT ON SIZE 1000000;
SET LINESIZE 50000;
set pagesize 50000;
set long 50000;
But, still getting the same result.
Any help indeed.
Thanks
Try this
where 24 is you width.
This configuration is working for me:
The
column
format definition with thelinesize
option helped to avoid the truncation at 80 chars.Additionally to setting the LINESIZE, as LordScree suggested, you could also specify to output to a file, to overcome the problem with the console width. Here's how I do it:
None of these suggestions were working for me. I finally found something else I could do -
dbms_output.put_line
. For example:Boom. It printed out everything I wanted - no truncating or anything like that. And that works straight in
sqlplus
- no need to put it in a separate file or anything.On Windows you may try this:
What I use:
Or am I missing something?