<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content=Word.Document name=ProgId>
<META content="MSHTML 6.00.3790.2541" name=GENERATOR>
<META content="Microsoft Word 10" name=Originator><LINK
href="cid:filelist.xml@01C5EC29.0DFBB0A0" rel=File-List><!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:DoNotRelyOnCSS/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:SpellingState>Clean</w:SpellingState>
<w:GrammarState>Clean</w:GrammarState>
<w:DocumentKind>DocumentEmail</w:DocumentKind>
<w:HyphenationZone>21</w:HyphenationZone>
<w:EnvelopeVis/>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]-->
<STYLE>@page Section1 {size: 612.0pt 792.0pt; margin: 70.85pt 3.0cm 70.85pt 3.0cm; mso-header-margin: 35.4pt; mso-footer-margin: 35.4pt; mso-paper-source: 0; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
SPAN.EstiloDeEmail17 {
        COLOR: windowtext; FONT-FAMILY: Arial; mso-bidi-font-size: 10.0pt; mso-style-type: personal; mso-style-noshow: yes; mso-ansi-font-size: 10.0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial
}
SPAN.EstiloDeEmail18 {
        COLOR: navy; FONT-FAMILY: Arial; mso-bidi-font-size: 10.0pt; mso-style-type: personal; mso-style-noshow: yes; mso-ansi-font-size: 10.0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial
}
SPAN.EstiloDeEmail19 {
        COLOR: navy; FONT-FAMILY: Arial; mso-bidi-font-size: 10.0pt; mso-style-type: personal-reply; mso-style-noshow: yes; mso-ansi-font-size: 10.0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial
}
SPAN.SpellE {
        mso-style-name: ""; mso-spl-e: yes
}
SPAN.GramE {
        mso-style-name: ""; mso-gram-e: yes
}
DIV.Section1 {
        page: Section1
}
</STYLE>
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
        {mso-style-name:"Tabela normal";
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-parent:"";
        mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
        mso-para-margin:0cm;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";}
</style>
<![endif]--></HEAD>
<BODY lang=PT-BR style="tab-interval: 35.4pt" vLink=purple link=blue
bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Marcio,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Se o seu banco de dado esta numa maquina
remota,</FONT></DIV>
<DIV><FONT face=Arial size=2>voce teria que instalar os drivers do Oracle,
primeiro, para</FONT></DIV>
<DIV><FONT face=Arial size=2>poder acessar-la.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>
<DIV><FONT face=Arial size=2><A
href="http://www.easysoft.com/products/data_access/odbc_oracle_driver/#platforms">http://www.easysoft.com/products/data_access/odbc_oracle_driver/#platforms</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></DIV>
<DIV><FONT face=Arial size=2>Tambem vc tem que instalar o unixODBC:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><A
href="http://www.unixodbc.org/">http://www.unixodbc.org/</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Quando isto for feito, vc tem a opcao de usar de um
script AGI (perl ou outro)</FONT></DIV>
<DIV><FONT face=Arial size=2>par mandar os queries a partir do seu
extensions.conf. Assim vc pode acessar</FONT></DIV>
<DIV><FONT face=Arial size=2>o seu Oracle sem problema.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Eu ja fiz a experiencia com SQL Server para
armanezar os CDRs e funcionou</FONT></DIV>
<DIV><FONT face=Arial size=2>muito bem; ate a solucao ODBC para Linux e viavel
porque se a conexao</FONT></DIV>
<DIV><FONT face=Arial size=2>for relachada, ele vai ser reconectada sem
intervencao manual. Caso</FONT></DIV>
<DIV><FONT face=Arial size=2>acessar os drivers diretamente, vc nao vai ter esta
funcionalidade.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Boa sorte !</FONT></DIV>
<DIV><FONT face=Arial size=2>Frederic Jean</FONT></DIV>
<DIV><FONT face=Arial size=2><A
href="http://www.sunnetgroup.net/br">www.sunnetgroup.net/br</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=marciootuca@uol.com.br href="mailto:marciootuca@uol.com.br">Marcio
Oliveira</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=AsteriskBrasil@listas.asteriskbrasil.org
href="mailto:AsteriskBrasil@listas.asteriskbrasil.org">'A Comunidade
Brasileira do PBX OpenSource'</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, November 18, 2005
10:15</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [AsteriskBrasil] Asterisk
INTEGRAÇAO com o Oracle</DIV>
<DIV><BR></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face="Times New Roman" color=navy size=3><SPAN
style="FONT-SIZE: 12pt; COLOR: navy; mso-bidi-font-size: 10.0pt">Oi
pessoal,<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Gostaria de saber
como <SPAN class=GramE>integrar o banco <SPAN class=SpellE>Oracle</SPAN> no
<SPAN class=SpellE>asterisk</SPAN> , estou precisando</SPAN> em fazer umas
consultas na base de dados mas não <o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Tenho q mínima idéia
de como fazer tal coisa ...<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Alguém poderia me
ajudar ...<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Grato
<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Márcio<o:p></o:p></SPAN></FONT></P></DIV><BR>--
<BR>Esta mensagem foi verificada pelo <BR>Email-Seguro-Megaweb CONTRA VÍRUS
acredita-se estar livre de perigo <BR><A
href="http://www.emailseguro.megabr.com.br">http://www.emailseguro.megabr.com.br</A>
<P>
<HR>
<P></P>_______________________________________________<BR>LIsta de discussões
AsteriskBrasil.org<BR>AsteriskBrasil@listas.asteriskbrasil.org<BR>http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil<BR><BR>_______________________________________________<BR>Acesse
o wiki
AsteriskBrasil.org:<BR>http://www.asteriskbrasil.org</BLOCKQUOTE></BODY></HTML>