I have two type problems related to Oracle Procedure. First My Procedure
return to decimal value for example
"2.20" but out pb program taking the that value "220.00" .Second Procedure
has a Number Parameter I am filling decimal value like "2.20" then i am
getting the error message from oracle [ORA-06502: PL/SQL: numeric or value
error: character to number conversion error]
My Decimal seperator is "," in windows registry.
Also i am using that methods in my application,
SQLCA.DBPARM= " DecimalSeparator=','" //Decimal separator filling from
windows registry
and my program execute the bellow oracle statement
"ALTER SESSION SET NLS_NUMERIC_CHARACTERS = '",."'" ////Decimal and Thousand
separator filling from windows registry
Developing Enviroment:
Windows VISTA
PB 9.0.3 8614
Oracle 10g client
Do you have any idea ?
Yasin
In your program you are specifically setting the decimal character to a
comma, but you pass in a period in your procedure argument. You're
contradicting yourself here.
--
Terry Dykstra (TeamSybase)
http://powerbuilder.codeXchange.sybase.com/
http://casexpress.sybase.com/cx/cx.stm
product enhancement requests:
http://my.isug.com/cgi-bin/1/c/submit_enhancement
"Yasin KENÇ" <ya...@verisoft.com> wrote in message
news:48061e9d$1@forums-1-dub...
Also Our example values seems not correct but that just example, i am using
"," seperator in my machine
Thanks a lot for your advice
I am waiting new advices
Yasin
"Terry Dykstra" <tddy...@forestoil.ca> wrote in message
news:48062aa8$1@forums-1-dub...
"Yasin KENÇ" <ya...@verisoft.com> escribió en el mensaje
news:48063e36@forums-1-dub...
I have encountered the same problem recently and I found out that the
NLS_LANG parameter in the registry maps to the NLS_LANGUAGE and
NLS_TERRITORY parameters in view v$nls_parameters.
You can alter these parameter for your db session with following
statements:
ls_sql = "ALTER SESSION SET NLS_LANGUAGE = 'AMERICAN'"
ls_sql = "ALTER SESSION SET NLS_TERRITORY= 'AMERICA'"
This way, the NLS_LANG registery setting stays unaltered (for other
apps using it), but your pb applications will always use the same
parameters.
Greetz,
Michèle