473,407 Members | 2,598 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Perl DBI ... getting me started

39
Hi everyone,

I have a connection of Oracle SQL scripts which I currently run with Oracle SQL*Plus (the Oracle command-line tool).

Now I would like to make these scripts more 'dynamic' and would like to implement them with Perl DBI.

I am working with Windows (XP), have installed ActivePerl 5.8.8 and have found stacks of expamples in the internet explaining how to use DBI. That's great!

In the examples that I downloaded, they often mention 'activating DBI' and configuring it for particular databases (in my case this would be Oracle). This operation sounds simple but is normally explained for running DBI under Unix/Linux.

So my question here is whether anyone can point me towards a little HOWTO which explains the configuration for Windows (NB: I have ODBC and tnsnames.ora installed).

I am sure that once I get over these initial issues, then it will be plain sailing.

Regards,
Alan Searle
Dec 7 '06 #1
3 1564
asearle
39
Just another comment on my issue ...

I have been fishing around in the Perl documentation and found the following:

@driver_names = DBI->available_drivers;

So I commented out my connection calls to Oracle and ran a diagnostic to see which drivers were installed. I got the following ...

DBM
ExampleP
File
Proxy
SQLite
Sponge

This makes me think that in my installation the Oracle driver is currently not active. I imagine that I need to declare the path/location of the driver (or ODBC?) to DBI so that my program can use it.

So maybe someone can point me in the right direction? Or send a snippet of syntax showing how to set up DBI drivers in Perl.

Regards and thanks,
Alan Searle
Dec 7 '06 #2
asearle
39
I have been fishing some more and have found the following (very good) HOWTO explaining the installation of DBI ...

http://www.keller.com/curric/dbweb-setup.html#DBIDBDWIN32

However, these instructions demand that the user runs the program ppm.pl in order to get the PPM> prompt and then install database drivers.

However, I have scanned my perl directories (a simple, local install) and cannot find this program. Is this maybe because I am using Perl 5.8.8?

Any tips here would be a great help.

Regards,
Alan Searle.
Dec 7 '06 #3
GunnarH
83
Sounds to me as if you need DBD::Oracle.
Dec 7 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

31
by: surfunbear | last post by:
I've read some posts on Perl versus Python and studied a bit of my Python book. I'm a software engineer, familiar with C++ objected oriented development, but have been using Perl because it is...
23
by: John M. Gabriele | last post by:
I recently posted this sort of question to the c.l.p.m but didn't get much of a response. I know a little Perl and a little Python, but master neither at the moment. I see that Python is a...
7
by: Miguel Manso | last post by:
Hi, list. I'm into a psicological doubt that I would like to share with you (you'll know why later on this mail). I'm a programmer with 5 year of experience into Perl. I'm on that point where...
9
by: Adam Smith | last post by:
Hello, Could anyone advise on HOW TO set up and run Perl scripts on windows, and is it possible to run them as "standalones" without a server / browser Thanks -- Adam --
3
by: phal | last post by:
Hi all; I code Perl for CGI, I using regular expression to check the validation of user input, because the form is small and it run only from my own computer, anyways if many people using my...
0
by: Kirt Loki Dankmyer | last post by:
So, I download the latest "stable" tar for perl (5.8.7) and try to compile it on the Solaris 8 (SPARC) box that I administrate. I try all sorts of different switches, but I can't get it to compile....
6
by: www.gerardvignes.com | last post by:
Hi, Have you run into a situation where you had to switch from PHP 4.x.x to Perl 5.x.x in order to get better performance? I am using an OO approach to PHP for my website's server code. There...
4
by: ykhamitkar | last post by:
Hi there, I am new to Perl. I am working in a data parsing project and my manager has suggested me to use Perl for it. I am using XP operating system. I have some basic questions 1. How...
21
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Uploading files from a local computer to a remote web server has many useful purposes, the most...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.