Path: news.easynews.com!easynews!dfw-peer.news.verio.net!iad-peer.news.verio.net!news.verio.net!fu-berlin.de!uni-berlin.de!dialup-63.210.219.215.dial1.newyork1.level3.NET!not-for-mail
From: Benjamin Goldberg <goldbb2@earthlink.net>
Newsgroups: comp.lang.perl.modules,comp.databases.oracle.misc,comp.lang.perl.misc
Subject: Re: [HELP]  How to set up DBI for Oracle?
Date: Sat, 02 Feb 2002 19:23:29 -0500
Lines: 34
Message-ID: <3C5C8301.CA8FD7A@earthlink.net>
References: <F221xBwIFUb6hiVldEf0001d1f4@hotmail.com>
NNTP-Posting-Host: dialup-63.210.219.215.dial1.newyork1.level3.net (63.210.219.215)
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: fu-berlin.de 1012695288 42557619 63.210.219.215 (16 [87109])
X-Mailer: Mozilla 4.04 [en] (Win95; I)
Xref: easynews comp.lang.perl.modules:37001 comp.databases.oracle.misc:76036 comp.lang.perl.misc:303981
X-Received-Date: Sat, 02 Feb 2002 17:13:33 MST (news.easynews.com)

John Doe wrote:
> 
> I downloaded DBI from CPAN, and DBD for Oracle (DBD-Oracle-1.12).  The
> DBI README said Tk is needed, so I downloaded that (could not get it
> to build, but found a binary at sunfreeware.com).
> 
> I just want to query Oracle tables from Perl scripts!  Why do I need
> Tk (which is for X Windows)?

You need Tk if you want to have a graphical interface to your database.

And Tk is not just for X Windows... there are versions of it for unix/X,
for Windows, for Mac, and there might even be one for plan9/8½.

(X is unix's windowing system, 8½ is plan9's windowing system)

> What do I need to just query textual data?  I
> am using Solaris and HP-UX.

You probably don't need it.

> I have set up all kinds of stuff Unix (servers, compilers & apps), but
> this has me *stumped*!  I've read the README's.  What did I miss?  The
> guy I spoke to at Oracle sales (1-800-ORACLE1) said to download ODBC
> from otn.oracle.com, but the O'Reilly book says DBI is easier than
> ODBC.  (That book is about using DBI but not setting it up.)

The folks at Oracle want to chain you to their product.  If you use DBI,
it's easy to switch to another database backend.  If you use ODBC, then
it's difficult to switch to another database backend.  They're not
stupid, they just want your money.

-- 
A child of 5 could understand this!  Fetch me a child of 5
