English 中文(简体)
How to tell SQLexec not to wrap characters?
原标题:

I m using Oracle 11g. Also using the spool command to get the output of a query to a file. The problem is that sqlexec is wrapping the characters and making my life miserable. Now under normal circumstances this might be fine however the spool file is on average a 100,000 lines and more so because sqlexec keeps giving me line breaks .... which I don t want. Is there a way to tell sqlexec and/or the spool command to have no line wraps?

问题回答

I ve found the answer for anyone coming upon this ... Within the spool file or at the command prompt for sqlplus type this

set linesize 256;

where 256 is the number of characters you want it to display. In my case I m dealing with 256 varchar s.





相关问题
ORACLE 11g case insensitive by default

I found in this article, that since ORACLE 10g, there is a way to make a particular connection-session compare strings case-insensitive, without needing any crazy SQL functions, using an ALTER SESSION....

Normalize columns names in ORACLE 11g

I need remove the quotes from the names of the columns in many tables in my schema. there is any way to automate this process?, any function in oracle or some tool that allows me to change the names ...

How to resolve Oracle error ORA-01790?

I have two select statements joined by "union". While executing that statement I ve got: Error report: SQL Error: ORA-01790: expression must have same datatype as corresponding expression 01790. ...

Connection Pooling on Oracle 11g w/ asp.net

What is the best way to handle connection pooling with Oracle 11g and asp.net, I m having issues where Oracle refuses to open up any new connections for the web app after a while. This causes the ...

How to tell SQLexec not to wrap characters?

I m using Oracle 11g. Also using the spool command to get the output of a query to a file. The problem is that sqlexec is wrapping the characters and making my life miserable. Now under normal ...

PL/SQL to Select a Partition Window of Data

Working with Oracle 11g here. I m trying to figure out how to write a specific query against a sample table below: ID TYPE PRIORITY STATUS DATE ----------------------------------------------...

热门标签