Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

oracle sql developer is truncating my results

Tags:

sql

xml

oracle

I'm calling a stored function like this:

select XML_INVOICE.GENERATE_XML_DOC('84200006823') from dual;

The query results then show up in a table underneath, which I can right click and select "Export Data" -> XML

<?xml version='1.0'  encoding='UTF8' ?>
<RESULTS>
  <ROW>
    <COLUMN NAME="XML_INVOICE.GENERATE_XML_DOC('84200006823')" <![CDATA[<xml>yada yada</xml><morexml>...]]></COLUMN>
  </ROW>
</RESULTS>

The problem is the "..." - SQL Developer (2.1.0.63 on Linux) is not showing all the data - its truncating the result and appending the ellipsis. This is of no use to me. How do I get it to export ALL of my data?

like image 444
nont Avatar asked Apr 08 '10 19:04

nont


People also ask

How do I maximize my screen in SQL Developer?

Go to the Display Settings; Go to scaling and "reset it": change to another scale, for example, 100% and then to your preferred scale; This should force the SQL-Developer Window to your preferred scale, unfortunately you have to repeat this procedure after every new SQL-Developer launch.

How do I Uninstal SQL Developer?

To remove it from system do following: Delete base directory, where you unziped it (where you run it). Delete your user connection data - folder C:\Users\<username>\AppData\Roaming\SQL developer. If you don't have any other oracle software, delete your user configuration data - folder C:\Users\<username>\Oracle.

What is Oracle truncate?

When you truncate a table, Oracle Database automatically removes all data in the table's indexes and any materialized view direct-path INSERT information held in association with the table. This information is independent of any materialized view log.

What happens to sequence when table is truncated in Oracle?

Once You Truncate the Table. The Sequence has to be Reset to 1. The simplest way to do it it by dropping and re-creating it again.


1 Answers

I was having the same issue in SQL Developer 4. Here is what worked for me:

set long 100000;
set longchunksize 100000;

And then re-run the query. You should now be able to see the full cell in the grid view and export it to csv as well.

(The OP is no longer with the same job or using Oracle, but this question is one of the first results in google, so hopefully this will help people having the same problem.)

like image 144
Wolvendeer Avatar answered Nov 15 '22 08:11

Wolvendeer