<!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.2873" 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>
<DIV dir=ltr align=left><SPAN class=671045720-17052007><FONT face=vt100
color=#0000ff size=2>Thanks for your responses !!!</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=671045720-17052007><FONT face=vt100
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=671045720-17052007><FONT face=vt100
color=#0000ff size=2>Nathan, i ran the script you provided and here's the
output:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=671045720-17052007><FONT face=vt100
color=#0000ff size=2>hello<BR>Oracle<BR>DBD::Oracle::db selectrow_array failed:
ORA-00942: table or view does not exist (DBD ERROR: error possibly near
<*> indicator at char 17 in 'select name from <*>v$database') [for
Statement "select name from v$database"] at testOracle.pl line
20.<BR>10.02.0300<BR>name from v$database: </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=671045720-17052007><FONT face=vt100
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=671045720-17052007><FONT face=vt100
color=#0000ff size=2>It seems to be connecting to the DB just
fine.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=671045720-17052007><FONT face=vt100
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=671045720-17052007><FONT face=vt100
color=#0000ff size=2>I also went through this post:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=671045720-17052007><FONT face=vt100
color=#0000ff size=2><A
href="http://www.zorranlabs.com/articles/step-by-step-installation-dbd-oracle-1.16-on-solaris-9-and-oracle-9-client.htm">http://www.zorranlabs.com/articles/step-by-step-installation-dbd-oracle-1.16-on-solaris-9-and-oracle-9-client.htm</A></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=671045720-17052007><FONT face=vt100
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=671045720-17052007><FONT face=vt100
color=#0000ff size=2>And performed the modifications mentioned there. Rebuilt
the DBD::Oracle using only the 32 bit libraries.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=671045720-17052007><FONT face=vt100
color=#0000ff size=2>And ran the test script at the end of that article. It
worked fine. Here's the outpu:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=671045720-17052007><FONT face=vt100
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=671045720-17052007><FONT face=vt100
color=#0000ff size=2>Running testDBDOracle.pl...</FONT></SPAN></DIV>
<DIV><SPAN class=671045720-17052007><FONT face=vt100 color=#0000ff size=2>
(*) Attempting Oracle Login ...<BR>
OK</FONT></SPAN></DIV>
<DIV><SPAN class=671045720-17052007><FONT face=vt100 color=#0000ff size=2>
(*) Creating table TEST_DBI ...<BR>
OK</FONT></SPAN></DIV>
<DIV><SPAN class=671045720-17052007><FONT face=vt100 color=#0000ff size=2>
(*) Insert into TEST_DBI ...<BR> 1 rows
inserted.<BR> 1 rows
inserted.<BR> 1 rows
inserted.<BR> OK</FONT></SPAN></DIV>
<DIV><SPAN class=671045720-17052007><FONT face=vt100 color=#0000ff size=2>
(*) Select from TEST_DBI ...</FONT></SPAN></DIV>
<DIV><SPAN class=671045720-17052007><FONT face=vt100 color=#0000ff
size=2> --> TEST_DBI_INTR_NO
: 1000<BR> -->
TEST_DBI_NAME : Jeff Hunter</FONT></SPAN></DIV>
<DIV><SPAN class=671045720-17052007><FONT face=vt100 color=#0000ff
size=2> --> TEST_DBI_INTR_NO
: 1001<BR> -->
TEST_DBI_NAME : Melody Hunter</DIV>
<DIV> --> TEST_DBI_INTR_NO :
1002<BR> -->
TEST_DBI_NAME : Alex Hunter</DIV>
<DIV> OK</DIV>
<DIV> (*) Delete from TEST_DBI ...<BR> 3
rows deleted.<BR> OK</DIV>
<DIV> (*) Drop table TEST_DBI ...<BR>
OK</DIV>
<DIV> (*) Select USER and SYSTEM ...</DIV>
<DIV> -->
USER
: MWPOC<BR> -->
SYSDATE :
17-MAY-2007 16:45:59</DIV>
<DIV> OK</DIV>
<DIV> (*) Attempting Oracle Logoff ...<BR>
OK</DIV>
<DIV>Ending testDBDOracle.pl...</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><FONT face=vt100 color=#0000ff size=2><SPAN
class=671045720-17052007>Judging by that output i think my setup is working
fine. But the problem still persists: i'm still unable to run the 'make
initialize-database' part of the install.</SPAN></FONT></DIV>
<DIV><FONT face=vt100 color=#0000ff size=2><SPAN
class=671045720-17052007></SPAN></FONT> </DIV>
<DIV><FONT face=vt100 color=#0000ff size=2><SPAN class=671045720-17052007>Still
getting the same old error:</SPAN></FONT></DIV>
<DIV><FONT face=vt100 color=#0000ff size=2><SPAN class=671045720-17052007>DSN
component 'CLORAD1' is not in 'name=value' format at
/usr/perl5/site_perl/5.8.4/sun4-solaris-64int/DBI.pm line 627<BR>DBI
connect('CLORAD1;port=1521','mwpoc',...) failed: Can't connect using this syntax
without specifying a HOST and one of SID INSTANCE_NAME SERVER SERVICE_NAME at
//usr/local/rt3_ora/sbin/rt-setup-database line 103<BR>Failed to connect to
dbi:Oracle:CLORAD1;port=1521 as mwpoc: Can't connect using this syntax without
specifying a HOST and one of SID INSTANCE_NAME SERVER SERVICE_NAME at
//usr/local/rt3_ora/sbin/rt-setup-database line 103, <STDIN> line
1.<BR>make: *** [initialize-database] Error 255</SPAN></FONT></DIV>
<DIV><FONT face=vt100 color=#0000ff size=2><SPAN
class=671045720-17052007></SPAN></FONT> </DIV>
<DIV><FONT face=vt100 color=#0000ff size=2><SPAN
class=671045720-17052007></SPAN></FONT> </DIV>
<DIV><FONT face=vt100 color=#0000ff size=2><SPAN
class=671045720-17052007>Something tells me that it may be an issue with the
'rt-setup-database' script itself? Is that a possibility?</SPAN></FONT></DIV>
<DIV><FONT face=vt100 color=#0000ff size=2></FONT> </DIV>
<DIV><BR></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Vonnahme, Nathan
[mailto:nathan.vonnahme@bannerhealth.com] <BR><B>Sent:</B> Thursday, May 17,
2007 3:29 PM<BR><B>To:</B> Baytalskiy, Sal; Justin Brodley;
rt-users@lists.bestpractical.com<BR><B>Subject:</B> RE: [rt-users] Desperately
ned Oracle help<BR></FONT><BR></DIV>
<DIV></DIV><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></BLOCKQUOTE></BODY></HTML>