Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Transmission Problem?

Status
Not open for further replies.

prycemat

Programmer
Jul 15, 2004
3
CA
Hi,
Using Oracle SQL worksheet, I could up with an interesting problem. When I run my script remotely from my PC to the Database Server, my query creates an output file, in this case a TXT file. The file size when I run remotely is always half the size, as compared to when I run directly off the server.

Any thoughts?
 
Well, the linesize is set for 300... here's the PL/SQL of the script

SET PAGES 0;
SET LINESIZE 300;
SET HEADING OFF;
SET FEEDBACK OFF;
SET TERMOUT OFF;



 
The content and layout appear to be the same, however instead of all of one month of data, it appears to vary from (end)date and not complete the one month
 
Just an assumption: your NLS settings are different. In most cases it looks like you pass 01.02.2004 as DATE parameter and according to NLS_DATE_FORMAT it may be evaluated to either January 2 or Februaru 1. This error is not easy to pinpoint because an error is raised only for day (month!) numbers exceeding 12. The same issue (less frequently) may be with numbers (NLS_NUMERIC_CHARACTERS), as in some countries comma is used as fractional delimiter while in others - as triad separator.

Regards, Dima
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top