Home » Other » Client Tools » SQL spool file, line gets cutoff at 80 characters (Database 11g : 11.2.0.3.0)
SQL spool file, line gets cutoff at 80 characters [message #664297] |
Tue, 11 July 2017 09:45  |
 |
OracleGuy123
Messages: 10 Registered: September 2016
|
Junior Member |
|
|
Hi,
I have a SQL script to extract data to a spool file. The following initialization parameters and the SQL to extract the data:
---------------------------------------
set feedback off
set trims on
set linesize 5000
set pagesize 0
set TERMOUT OFF
set AUTOTRACE OFF
set VERIFY off
set ECHO off
set SERVEROUTPUT off
set term off
set colsep '|'
set escape /
set heading on
set trimspool on
set headsep on
spool C:\temp\FP_Menu_Entries.txt
select
MENU_ID || '|' ||
ENTRY_SEQUENCE || '|' ||
SUB_MENU_ID || '|' ||
FUNCTION_ID || '|' ||
GRANT_FLAG || '|' ||
replace(PROMPT,chr(10)) || '|' ||
replace(DESCRIPTION, chr(10)) || '|'
from APPS.fnd_menu_entries_vl;
spool C:\temp\FP_Functions.txt
select
FUNCTION_ID || '|' ||
FUNCTION_NAME || '|' ||
APPLICATION_ID || '|' ||
FORM_ID || '|' ||
replace(PARAMETERS, chr(10)) || '|' ||
TYPE || '|' ||
replace(USER_FUNCTION_NAME, chr(10)) || '|' ||
replace(DESCRIPTION, chr(10)) || '|'
from APPS.fnd_form_functions_vl;
----------------------------------------------------------------
When the spool file is created, each line gets truncated after 80 characters. I have set the linesize to 5000 as shown above, but the truncation issue persists.
Appreciate any insight and a solution to this issue.
Thanks
|
|
|
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Fri May 02 03:02:07 CDT 2025
|