<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v =
"urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word" xmlns:m =
"http://schemas.microsoft.com/office/2004/12/omml"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR><!--[if !mso]>
<STYLE>v\:* {
BEHAVIOR: url(#default#VML)
}
o\:* {
BEHAVIOR: url(#default#VML)
}
w\:* {
BEHAVIOR: url(#default#VML)
}
.shape {
BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
font-family: Cambria Math;
}
@font-face {
font-family: Calibri;
}
@font-face {
font-family: Tahoma;
}
@font-face {
font-family: vt100;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.0in 1.0in 1.0in; }
P.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman","serif"
}
LI.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman","serif"
}
DIV.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman","serif"
}
A:link {
COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.EmailStyle17 {
COLOR: #1f497d; FONT-FAMILY: "Calibri","sans-serif"; mso-style-type: personal
}
SPAN.EmailStyle18 {
COLOR: #1f497d; FONT-FAMILY: "Calibri","sans-serif"; mso-style-type: personal-reply
}
.MsoChpDefault {
FONT-SIZE: 10pt; mso-style-type: export-only
}
DIV.Section1 {
page: Section1
}
</STYLE>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=EN-US vLink=purple link=blue><SPAN class=849222219-17052007><FONT
face=Arial size=2>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] <B>On Behalf Of
</B>Baytalskiy, Sal<BR><B>Sent:</B> Thursday, May 17, 2007 9:47
AM<BR><B>To:</B> Justin Brodley;
rt-users@lists.bestpractical.com<BR><B>Subject:</B> RE: [rt-users] Desperately
ned Oracle help<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=671384117-17052007><FONT face=vt100
size=2>The Oracle readme said that the DB needs to be
prepared.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=671384117-17052007><FONT face=vt100
size=2>So i ran the schema.Oracle file via the SQLPlus and it inserted all the
tables and indexes.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=671384117-17052007><FONT face=vt100
size=2>So i now have the database setup, just empty. No
data.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=671384117-17052007><FONT face=vt100
size=2>Then, while running the 'make initialize-database' there's a step in
that script to insert the schema. Since i already did that - i commented it
out, just like the Wiki suggests.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=671384117-17052007><FONT face=vt100
size=2>So that step should be skipped and it should just try to insert the
required data into the DB.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=671384117-17052007><FONT face=vt100
size=2>And that's where i'm stuck at this point.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=671384117-17052007><FONT face=vt100
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=671384117-17052007><FONT face=vt100
size=2>After some googling i found that i might have a problem with the
DBD::Oracle. Apparently it tried installing that module as a
64-bit.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=671384117-17052007><FONT face=vt100
size=2>But my Perl is 32-bit. This seems to be a common
occurence.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'vt100','serif'"></SPAN><o:p></o:p> </DIV></BLOCKQUOTE>
<DIV><FONT color=#0000ff></FONT> </DIV>
<DIV><FONT color=#0000ff></FONT> </DIV>
<DIV dir=ltr align=left>It may help to narrow the problem by testing DBD::Oracle
first. Try using the 'dbish' utility installed with DBI, or with a test
script like this (copied and pasted from one I used a while back-- I had to mess
with manually setting $ORACLE_HOME and $LIBPATH in some
cases):</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=849222219-17052007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=849222219-17052007><FONT face=Courier
size=2>#!/usr/local/bin/perl -w</FONT></SPAN></DIV>
<DIV><FONT face=Courier size=2></FONT> </DIV>
<DIV dir=ltr align=left><SPAN class=849222219-17052007><FONT face=Courier
size=2>print "hello\n";</FONT></SPAN></DIV>
<DIV><FONT face=Courier size=2></FONT> </DIV>
<DIV dir=ltr align=left><SPAN class=849222219-17052007><FONT face=Courier
size=2>use DBI;<BR>#use DBD::Oracle;</FONT></SPAN></DIV>
<DIV><FONT face=Courier size=2></FONT> </DIV>
<DIV dir=ltr align=left><SPAN class=849222219-17052007><FONT face=Courier
size=2>#print "ENV:\n", map {" $_: $ENV{$_}\n"} sort keys
%ENV;</FONT></SPAN></DIV>
<DIV><FONT face=Courier size=2></FONT> </DIV>
<DIV dir=ltr align=left><SPAN class=849222219-17052007><FONT face=Courier
size=2>if ($^O =~ m/aix/i) {<BR>
$ENV{ORACLE_HOME} =
'/usr/local/oracle/instantclient';<BR>
$ENV{LIBPATH} = $ENV{ORACLE_HOME};<BR>}</FONT></SPAN></DIV>
<DIV><FONT face=Courier size=2></FONT> </DIV>
<DIV dir=ltr align=left><SPAN class=849222219-17052007><FONT face=Courier
size=2>my $dbh = DBI->connect('dbi:Oracle:host=<FONT
face="Times New Roman"><EM>clorad1.aig.com</EM></FONT>;sid=<EM>clorad1</EM>',
<EM>'user'</EM>, <EM>'password'</EM>);</FONT></SPAN></DIV>
<DIV><FONT face=Courier size=2></FONT> </DIV>
<DIV dir=ltr align=left><SPAN class=849222219-17052007><FONT face=Courier
size=2>print join "\n",
$dbh->get_info(17),<BR>
$dbh->get_info(18);</FONT></SPAN></DIV>
<DIV><FONT face=Courier size=2></FONT> </DIV>
<DIV dir=ltr align=left><SPAN class=849222219-17052007><FONT face=Courier
size=2>print "\nname from v\$database: ", $dbh->selectrow_array("select
name from v\$database");</FONT></SPAN></DIV>
<DIV><FONT face=Courier size=2></FONT> </DIV>
<DIV dir=ltr align=left><SPAN class=849222219-17052007><FONT face=Arial
size=2><FONT face=Courier>print "\n\n";</FONT><BR></FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=849222219-17052007>I had trouble in the
past with 64 / 32 bit perl and Oracle client libs, so if you do this and still
think that may be the issue I can send you my notes on that, or you can probably
google them up somewhere.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=849222219-17052007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=849222219-17052007>-n</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><o:p><FONT face=Arial size=2></FONT></o:p> </DIV></BODY></HTML>