dbTalk Databases Forums  

Mac Sql*Plus export with UNIX linefeed

comp.database.oracle comp.database.oracle


Discuss Mac Sql*Plus export with UNIX linefeed in the comp.database.oracle forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jim Pistrang
 
Posts: n/a

Default Mac Sql*Plus export with UNIX linefeed - 05-30-2006 , 05:41 AM






Hi all,

I've got a set of scripts that I run in Sql*Plus, running in the Classic
environment on Mac OSX. The scripts use the spool feature to export
large volumes of data from an Oracle database table to a file, and the
data is subsequently being imported into OpenBase using the (very fast)
ImportFile stored procedure.

The only flaw is, the files created by Sql*Plus have a Mac line feed
(hex 0D) and the OpenBase stored procedure only works with a UNIX line
feed (hex 0A). I have tried a number of different SET parameters in
Sql*Plus, and I've also tried a number of different NLS_LANG options,
but I can't get Sql*Plus to export with UNIX line feeds.

I can change the line feed in BBEdit or TextWrangler, but this involves
opening the file, which doesn't work well when the file gets VERY big.

Any ideas on how to export with UNIX line feeds?

Any better way to change the line feeds on an existing document?

Thanks,

Jim

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.