Oracle Database and Character Set Missmatch

Hi everyone,

this week i set up a BDC connection to an Oracle Server - 8.7.1 to be precise. I also had to install the oracle client software - also 8.7.1. Everything worked fine - i was able to see all the rows of the table inside of MOSS. Then i came across one problem: i tried to add a FilterDescriptor mapped to an "in"-Parameter with type string. In the database the column i would like to filter for is of type Varchar.

There my problem began. I wasn't able to query anything anymore. A look into the Moss log-File revealed a Oracle Exception saying:ORA-12704: character set mismatch. A direct select statement via SQLPlus did complete correctly. So my guess is that the statement that is generated via BDC has to be flagged somehow so the server accepts the character set.

Is there anybody out there being able to help me ? Is it possible to rewrite the SQL-Statement so that the parameter is passed to the server in the correct way ?

The Servers Character Set is the following :

WE8ISO8859P19

So it is not unicode.

TIA,

Oliver

[1130 byte] By [Vansen] at [2008-2-28]
# 1

If the problem really is with the character set, try wrapping the variable in your where clause with the CSCONVERT() function.

CSCONVERT (
string-expression,
'target-charset'
[ , 'source-charset' ] )

You can provide a source/destination character set and it will convert.

Just an idea, let me know how it goes Smile

KeirGordon at 2007-9-12 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Business Data Catalog...
# 2

Hi,

i didn't forget to answer this post. It's just that i couldn't have a try on your suggestion so far... If i do I'll let you know - of course.

Thanks,

Oliver

Vansen at 2007-9-12 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Business Data Catalog...
# 3

Hi Oliver,

I have this same error, but only connecting to a Oracle 8i database; did you find a solution?

Cheers

Brett

Brett_NZ at 2007-9-12 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Business Data Catalog...
# 4

Hi Brett,

sorry, i wasn't able to get into that problem. The Customer i had this upgraded its databases - now it works fine... Sorry for that, did you try the above solution? I considered this one as a serious workaround...

Vansen at 2007-9-12 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Business Data Catalog...
# 5

Hi Vansen,

No problem. I needed to demo BDC pulling the data from a 8i database, so in the end I created a database link from a 9i database and created a materialised view to "clean up" the data to make it compatible (a view of the 8i data gets the same error).

Not the best solution, but it meant I could demo BDC for that 8i database.

Cheers

Brett

Brett_NZ at 2007-9-12 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Business Data Catalog...

SharePoint Products and Technologies

Site Classified