Numeric seperators in delimited output [message #639643] |
Mon, 13 July 2015 08:53 |
leeweb
Messages: 14 Registered: March 2007 Location: Cardiff, UK
|
Junior Member |
|
|
Hi there,
I have a problem that I'm hoping someone has experienced, and can therefore help me with. We are currently in the process of migrating from Forms and Reports 6i to 11g. In the most part, this has been a successful process, and everything seems to be working well. Everything, that is, except for delimited output via the reports server. Here, we are getting the wrong numeric seperators. For example, a value we would expect to be displayed as 123.45 is actually being displayed as 123,45 in the file that is output.
I have checked the NLS settings, and have even run SQL*Plus and SQL Developer queries to produce the output in hope of recreating the issue, but each time the seperators are correct. It is only when I invoke a report from web deployed forms, which is then processed and distributed by the reports server, that I am getting the separator issue. I have now spent a couple of days reading up on possible causes, but don't appear to be any nearer getting it working.
Can anybody help? If I have not provided enough information, then please let me know what is needed to help me resolve this. Your help, as previously, is much appreciated,
Lee
|
|
|
|
|
Re: Numeric seperators in delimited output [message #640113 is a reply to message #639672] |
Wed, 22 July 2015 09:16 |
leeweb
Messages: 14 Registered: March 2007 Location: Cardiff, UK
|
Junior Member |
|
|
Hi guys,
Sorry for the delay in getting back to everyone. It's been crazy
Just in case anyone else gets a similar issue, here is what I did.
I modified the rwserver.conf file (located at <Drive Letter>:\Oracle\Middleware\asinst_1\config\ReportsServerComponent\<report server name>), changing the engine declaration to add the "defaultEnvId" parameter, as below:
<engine class="oracle.reports.engine.EngineImpl" defaultEnvId="GB" engLife="50" id="rwEng" maxEngine="4" maxIdle="30" minEngine="1"/>
I then added the following sections for each location where the application will be deployed:
<environment id="GB">
<envVariable name="NLS_LANG" value="ENGLISH_UNITED KINGDOM.WE8MSWIN1252"/>
<envVariable name="NLS_CURRENCY" value="£"/>
<envVariable name="NLS_NUMERIC_CHARACTERS" value=".,"/>
</environment>
<environment id="IT">
<envVariable name="NLS_LANG" value="ITALIAN_ITALY.WE8MSWIN1252"/>
<envVariable name="NLS_CURRENCY" value="EUR"/>
<envVariable name="NLS_NUMERIC_CHARACTERS" value=",."/>
</environment>
<environment id="ESP">
<envVariable name="NLS_LANG" value="SPANISH_SPAIN.WE8MSWIN1252"/>
<envVariable name="NLS_CURRENCY" value="EUR"/>
<envVariable name="NLS_NUMERIC_CHARACTERS" value=",."/>
</environment>
In theory, this will allow me to simply change the default environment in the file based on its deployment location, but keep everything else identical. Hopefully, someone will stumble across this if they are having the same pain as me. For the record, we are using Windows servers, and the change didn't take effect until I restarted Windows. Possibly a config issue our end, but worth bearing in mind if the changes don't seem to be taking effect,
Thanks for reading,
Lee
|
|
|
|