OracleClient stored procedure parameter - can it handle 8 bit VarChars?
From: Brad Bennett (bfbenn_at_earthlink.net)
Date: 06/01/04
- Next message: Cor Ligthert: "Re: DataTable.New() and Rows.Add() not working right"
- Previous message: Kevin Hodgson: "Re: Now: @Original_parameters not set."
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 1 Jun 2004 13:05:07 -0500
I'm trying to execute a pair of Oracle stored procedures that
encrypt/decrypt a character string using Oracle's obfuscation package. Each
stored procedure has an input and an output parameter. One procedure
encrypts a string, the other decrypts a string.
The problem is that when I encrypt a value the procedure executes without
incident, but the return string is losing it's high-order bits. What I get
back is a value that looks encrypted, but when I feed the string to the
decryption procedure I don't get my original value back. When we compare
the string returned by my .Net function to the string returned when
executing the sp under SQL*Plus we see that several characters are 80h
"smaller" in the .Net functional return than they are when the sp is
executed under SQL*Plus.
The database is Oracle 9i, running with an eight bit character set, but I
don't see any property in the .Net OracleClient that allows me to specify
that I expect 8 bit characters back from Oracle.
Can anyone shed any light on this for me?
How can I get .Net to understand that Oracle is returning 8 bit characters?
Thanks much,
Brad
- Next message: Cor Ligthert: "Re: DataTable.New() and Rows.Add() not working right"
- Previous message: Kevin Hodgson: "Re: Now: @Original_parameters not set."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|