Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: How to connect to netezza database

by Anonymous Monk
on Aug 09, 2011 at 06:55 UTC ( [id://919396]=note: print w/replies, xml ) Need Help??


in reply to How to connect to netezza database

netezza database?

What is that?

Normally, you use DBI with a driver, like DBD::Oracle or DBD::mysql, but I never heard of no DBD::netezza -- I would ask the company for help, its probably in their FAQ

Replies are listed 'Best First'.
Re^2: How to connect to netezza database
by Anonymous Monk on Jan 06, 2014 at 18:02 UTC
    You use the generic ODBC DBI modules. Follow the ODBC drivers install guide from Netezza to install their drivers and an ODBC Manager if you're on Linux or Unix. Then setup DBI::ODBC on your system. Then connect and execute using the DBI interface just like you would any other vendor. Pass the user, password, database, and sql. I've gotten data back as single digit, a row, or an 2Darray depending on what you assign as the return value. If I'm going to dump data out to a file, I bypass the DBI output and instead use an external table to a file because that's much faster. nzload to load. You can also use system(nzsql) to use the nzsql interface if you're just looking for success/fail output or a running something long term that may exeed the odbc timeout limitations.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://919396]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2024-04-19 10:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found