Skip to main content

Posts

Showing posts from 2011

Netezza Interview Questions and Answers

Question and Answer What the utilities available in nz/bin? Driver: libnzodbc.so , Utilities  : nzconvert, nzds, nzevent, nzhw, nzload, nzodbcsql, nzpassword, nzreclaim, nzrev, nzsession, nzsql, nzstate, nzstats, nzsystem Where is the Configuration file available? Config file odbc.ini is available in nz/lib and it contains the Database Source properties and Connection parameters. What is NZSQL utility? This utility can be run from any machine on which it is installed i.e. it does not have be from netezza box itself. This utility can be used to run any sql statement like select or insert statement on the netezza database. In the below usage you see data extracted from the table into a output file and in the second mzsql command the data is also gzipped. nzsql -host <netezz_db_servername> -d <database> -u <username> -pw <password> -c -c "select * from tablename" -o /root/home/outputfilename.txt; What is NZLOAD utility? This utility can be us

Creating Netezza User Defined Functions in C++

STEPS TO CREATE NETEZZA UDF For creating UDF in netezza we should have knowledge of C++ programming. The post explains how to create netezza UDF which finds greater value out of two values passed. STEP 1 : Write C++ code for the function. The code refers the the below header files. #include "udxinc.h" #include "udxhelpers.h"   And namespace list is mentioned below using namespace nz :: udx :: dthelpers; using namespace nz :: udx; The sample code for the greater of two numbers is mentioned below. #include "udxinc.h" #include "udxhelpers.h" #include <ctype.h> using namespace nz::udx; class greaterOfTwo : public Udf {   public :     static Udf* instantiate();     virtual ReturnValue evaluate()     {       int64 first = int64Arg(0);       int64 second = int64Arg(1);       int64 returnValue = 0;       if (first > second) returnValue = first; else returnValue = second;       NZ_UDX_RETURN_INT64(returnValue);     } }; Udf*

NETEZZA SYLLABUS

NETEZZA PERFORMANCE SERVER INTRODUCTION NPS ARCHITECTURE INTRODUCTIONS TO TOOLS PERFORMANCE SERVER ADMINISTRATOR (INTRODUCTION) INTRODUCTION TO NPS ENVIRONMENT DATABASE , TABLES , SYNONYMS, VIEWS UDX (UDF AND UDA) ZONE MAPS and EXTENTS DATA DISTRIBUTION  DATA TYPES SEQUENCES TRANSACTIONS LOADING AND UNLOADING TABLES (NZLOAD , EXTERNAL TABLES) GENERATE STATISTICS OPTIMIZER AND QUERY PLAN MATERIALIZED VIEW NZRECLAIM - GROOMING BACKUP AND RESTORE LOADING DATA USING SSIS PACKAGES