Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Re: UTF-8, Oracle and Perl life

by Akira71 (Scribe)
on Oct 07, 2002 at 19:40 UTC ( [id://203467]=note: print w/replies, xml ) Need Help??


in reply to Re: UTF-8, Oracle and Perl life
in thread UTF-8, Oracle and Perl life

Actually the database in Oracle is setup and functioning correctly in UTF-8 through the ORA_NLS. The application we wrote using various web service technologies (except for anything .NET :-) ) works wonderfully. It is only the extract we have with problems with.

In answer to the other reply above, yes we are using Oraperl. I was told we could not upgrade anything on the box originally. However, I did identify the possibility that Oraperl is to blame and have found the right Unix admin to add DBD:Oracle to the system so we can use it. Unfortunately the box is on the other part of the world for us, so this takes time for us to implement. Admitedly this is one of my only foray's into Perl and I love what I see so far. I am a C++ / Java person and now this has my interest totally.

Thank you for support and helpful hints!

Akira

Replies are listed 'Best First'.
Re: Re: Re: UTF-8, Oracle and Perl life
by wardk (Deacon) on Oct 07, 2002 at 19:53 UTC
    Is your current extract script either setting the vars I mentioned or inheriting them from the calling environment? for instance, if the job is running from cron, you will absolutely need to set this in the perl script. This is independent from the database setup, and your perl won't inherit the settings from Oracle. They will need to be in the calling environment (set perhaps in a calling shell script) or setting them specifically in the perl.
      Actually they are inheriting them from the database so no, we are not setting them in the perl script. I can add the appropriate ones to the perl script.

      I will try that and see if it helps.

      Thank you,

      Akira

        Actually they are inheriting them from the database
        No they're not. NLS settings are not cascaded, they are set individually for each client and server. Use NLS_LANG="JAPANESE_JAPAN.UTF8" for each of your clients. Either on the command line (or in the script) for a *nix box or in the registry for MS clients.

        rdfield

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://203467]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-03-28 08:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found