🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: perl.dbi.oracle-oci
Article #1

Re: Help on Calling external Perl script from Oracle DB

#1
From: Assis Guerreiro
Date: Wed, 11 Feb 2009 20:25
119 lines
6028 bytes
--------------090303020500020909010107
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Hi,

It seems that the problem is solved. I was about the character code 
<http://ipv6.google.com/search?hl=en&ei=bDKTScbnNcyp-gbhgpmuCw&sa=X&oi=spell&resnum=0&ct=result&cd=1&q=character+Code&spell=1>of 
the ASM listener.

Thanks
Best Regards

-- 
Assis Guerreiro
WG-DNS
 
 
FCCN - Fundação para a Computação Científica Nacional | DNS.PT
Apartado 50366 | 1708-001 Lisboa | Portugal
Tel.: +351 218 440 140 | Fax.: +351 218 440 157
Email: assis.guerreiro@fccn.pt <mailto:assis.guerreiro@fccn.pt>
http://www.dns.pt


[ Antes de imprimir esta mensagem pense no ambiente. Before printing
this message, think about environment ]

NOTA DE CONFIDENCIALIDADE: Esta mensagem poderá conter informação
privilegiada e confidencial. Se não é o destinatário da presente
comunicação, agradecemos que nos informe e elimine a mensagem sem que a
mesma seja divulgada, distribuída ou copiada.
 
CONFIDENTIALITY NOTICE: This e-mail and any attachments are confidential
and may be privileged. If you are not a named recipient, please notify
the sender immediately and do not disclose the contents to another
person, use it for any purpose or store or copy the information in any
medium.


Assis Guerreiro said the following on 11-02-2009 10:35:
> Hi,
>
> I've got you email address from a presentation called "Perl for Oracle
> - Tools and Technologies, by Tim Bunce (Jan 2002)", and I really hope
> you can help me on a issue that I'm trying hard to solve, but with no
> positive result.
> The thing is:
>  I used to have the database on a single machine and everything was
> ok, until last week, when we changed to new machines.
>  now I have a Oracle 10.2.0.4 Standard Edition Database on a two nodes
> (RAC) Linux X86-64.
> And I'm trying to run a perl script (external procedure)  from the
> Database.
> Everything works fine but with a problem. My language is Portuguese
> and there are some Unicode characters, like "ç ã õ é è í ì" that we
> use here.
>
> So when I call the perl script from the database those Unicode
> characters don't work, instead they are replaced by the "?" character.
>
> I've installed the DBI module, the DBD Driver  and I'm using a
> libosint.so library and the osutil.RunOsCmd procedure to call external
> procedures, like it was before when everything was ok.
>
> Even if ask to run the linux command "echo mão" (in English is "echo
> hand") the output is wrong.
>
> declare
> cmdoutput varchar2(32767);
> cmd varchar2(32767);
> begin
> cmd := 'echo *mão*';
> osutil.RunOsCmd(cmd, cmdoutput);
> dbms_output.put_line (cmdoutput);
> end;
>
> the ouput is:
>
> 19:38:12  Start SQL Editor Execution ...
> 19:38:12  Processing ...
> *m?o*
> 19:38:12  *** SCRIPT END :  Session:WFCCN@FCCN(1)   10-02-2009
> 19:38:12 ***
> 19:38:12  End SQL Editor Execution
>
>
> Can you give any idea how to solve this problem?
>
> Thanks in advance from Portugal :)
>  
> Assis Guerreiro
> WG-DNS
>  
>  
> FCCN - Fundação para a Computação Científica Nacional | DNS.PT
> Apartado 50366 | 1708-001 Lisboa | Portugal
> Tel.: +351 218 440 140 | Fax.: +351 218 440 157
> Email: assis.guerreiro@fccn.pt <mailto:assis.guerreiro@fccn.pt>
> http://www.dns.pt
>
>
> [ Antes de imprimir esta mensagem pense no ambiente. Before printing
> this message, think about environment ]
>
> NOTA DE CONFIDENCIALIDADE: Esta mensagem poderá conter informação
> privilegiada e confidencial. Se não é o destinatário da presente
> comunicação, agradecemos que nos informe e elimine a mensagem sem que
> a mesma seja divulgada, distribuída ou copiada.
>  
> CONFIDENTIALITY NOTICE: This e-mail and any attachments are
> confidential and may be privileged. If you are not a named recipient,
> please notify the sender immediately and do not disclose the contents
> to another person, use it for any purpose or store or copy the
> information in any medium.
>


--------------090303020500020909010107--
Technical Details
Message-ID: <4993342B.8060707@fccn.pt>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf9.newsdeef.eu!nntp.perl.org
References: <4992A9F2.1040203@fccn.pt>

Show Full Headers
Complete Article Headers
Message-ID: <4993342B.8060707@fccn.pt>
Subject: Re: Help on Calling external Perl script from Oracle DB
Date: Wed, 11 Feb 2009 20:25:15 +0000
From: assis.guerreiro@fccn.pt (Assis Guerreiro)
References: <4992A9F2.1040203@fccn.pt>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf9.newsdeef.eu!nntp.perl.org
Newsgroups: perl.dbi.oracle-oci
Return-Path: <assis.guerreiro@fccn.pt>
Mailing-List: contact oracle-oci-help@perl.org; run by ezmlm
Delivered-To: mailing list oracle-oci@perl.org
Delivered-To: moderator for oracle-oci@perl.org
Received: (qmail 888 invoked from network); 11 Feb 2009 20:25:32 -0000
Received: from x1a.develooper.com (HELO x1.develooper.com) (216.52.237.111)
Received: (qmail 12431 invoked by uid 225); 11 Feb 2009 20:25:31 -0000
Delivered-To: oracle-oci@perl.org
Received: (qmail 12417 invoked by alias); 11 Feb 2009 20:25:31 -0000
X-Spam-Status: No, hits=0.0 required=8.0
 tests=HTML_MESSAGE
X-Spam-Check-By: la.mx.develooper.com
Received: from app02.fccn.pt (HELO app02.fccn.pt) (193.137.198.37)
Received: from mx.anubis.local (ste [10.1.2.2])
 by outbound.anubis.local (Postfix) with ESMTP id 1CCFBD2C24
Received: from [193.136.44.42] (erato.corp.fccn.pt [193.136.44.42])
 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: assis.guerreiro@fccn.pt)
 by mx.anubis.local (Postfix) with ESMTP id 0F75611A563
Reply-To: assis.guerreiro@fccn.pt
Organization: FCCN
User-Agent: Thunderbird 2.0.0.19 (Windows/20081209)
MIME-Version: 1.0
To: oracle-oci@perl.org
In-Reply-To: <4992A9F2.1040203@fccn.pt>
X-Enigmail-Version: 0.95.7
Content-Type: multipart/alternative;
 boundary="------------090303020500020909010107"
X-Virus-Checked: Checked
Approved: news@nntp.perl.org