Skip to Main Content

SQLcl: MCP Server & SQL Prompt

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Blank lines after each record

CAP NatividadeJun 22 2016 — edited Jun 30 2016

Hi, I am facing a problem with the export data by SPOOL command.

I have a table with millions of rows, each row represents a group of information in XML format.

I created a script to record this data in an XML file.

In SQL * Plus, the generated file is compatible with my need, however, in sqlcl is not.

The problem is that it is always placed a CR + LF at the beginning of the file and after each record (or perhaps before each record).

This is my script:

script_01.PNG

And, this is te output:

script_02.PNG

In SQL * Plus first CR+LF is not inserted, so that the XML is valid.

Comments
Post Details
Added on Jun 22 2016
8 comments
5,488 views