Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

How to connect to netezza database

by gauz
on Aug 09, 2011 at 06:28 UTC ( #919392=perlquestion: print w/replies, xml ) Need Help??
gauz has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I'm new to perl. I have a requirement where I have to connect to netezza database. Can someone please let me know what modules do I need to install explicity to connect to netezza database? Thanks & Regards, Gauz.

Replies are listed 'Best First'.
Re: How to connect to netezza database
by cjb (Friar) on Aug 09, 2011 at 07:26 UTC
Re: How to connect to netezza database
by Anonymous Monk on Aug 09, 2011 at 06:55 UTC

    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

      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.
      netezza is a database used in my project. If you get any further information on my query please let me know.

        netezza is a database used in my project. If you get any further information on my query please let me know.

        That much was obvious from your question.

        Each database comes with documentation, where they answer Frequently Asked Questions, like how to interface to said database, etc, etc,

        You already have more information than I do. You just need DBI and some DBD, like DBD::ODBC, or something

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://919392]
Approved by Corion
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2017-06-29 10:55 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (659 votes). Check out past polls.