how to increase sqlplus column output length?

后端 未结 10 2079
萌比男神i
萌比男神i 2021-01-30 12:45

I have some queries to find out the ddl of some objects from a schema. The result columns I am getting are truncated in the middle of the queries.

How can I increase the

10条回答
  •  野的像风
    2021-01-30 13:15

    Actually, even that didn't work for me. When I executed "select dbms_metadata.get_ddl('TABLESPACE','TABLESPACE_NAME') from dual;" I again got only the first three lines, but this time each line was padded out to 15,000 characters. I was able to work around this with:

    select substr(dbms_metadata.get_ddl('TABLESPACE','LM_THIN_DATA'),80) from dual;
    select substr(dbms_metadata.get_ddl('TABLESPACE','LM_THIN_DATA'),160) from dual;
    select substr(dbms_metadata.get_ddl('TABLESPACE','LM_THIN_DATA'),240) from dual;
    

    It sure seemed like there ought to be an easier way, but I couldn't seem to find it.

提交回复
热议问题