oracle-xml-db-repository

Max column width in Oracle spool to file

眉间皱痕 提交于 2019-12-19 05:49:37
问题 I have a script like this: SET ECHO OFF SET FEEDBACK OFF SET VERIFY OFF SET HEADING OFF SET TERMOUT OFF SET TRIMOUT ON SET TRIMSPOOL ON SET WRAP OFF SET LINESIZE 32000 SET LONG 32000 SET LONGCHUNKSIZE 32000 SET SERVEROUT ON SPOOL C:\Export.txt SELECT XMLELEMENT("element1",xmlelement("element2",xmlattributes(.....))) FROM --TABLENAME-- WHERE --CONDITIONS-- The output should be a file containing a list of rows with the complex xml inside, but when the length of the XML generated is longer than

Max column width in Oracle spool to file

为君一笑 提交于 2019-12-19 05:49:08
问题 I have a script like this: SET ECHO OFF SET FEEDBACK OFF SET VERIFY OFF SET HEADING OFF SET TERMOUT OFF SET TRIMOUT ON SET TRIMSPOOL ON SET WRAP OFF SET LINESIZE 32000 SET LONG 32000 SET LONGCHUNKSIZE 32000 SET SERVEROUT ON SPOOL C:\Export.txt SELECT XMLELEMENT("element1",xmlelement("element2",xmlattributes(.....))) FROM --TABLENAME-- WHERE --CONDITIONS-- The output should be a file containing a list of rows with the complex xml inside, but when the length of the XML generated is longer than

Max column width in Oracle spool to file

痞子三分冷 提交于 2019-12-01 03:22:21
I have a script like this: SET ECHO OFF SET FEEDBACK OFF SET VERIFY OFF SET HEADING OFF SET TERMOUT OFF SET TRIMOUT ON SET TRIMSPOOL ON SET WRAP OFF SET LINESIZE 32000 SET LONG 32000 SET LONGCHUNKSIZE 32000 SET SERVEROUT ON SPOOL C:\Export.txt SELECT XMLELEMENT("element1",xmlelement("element2",xmlattributes(.....))) FROM --TABLENAME-- WHERE --CONDITIONS-- The output should be a file containing a list of rows with the complex xml inside, but when the length of the XML generated is longer than 2000, SQLPlus trims to 2000 and go to the next line. There is a way to force SQLPlus to write all the