#-----Reorganize the table --------------------------------------------------

$status=`perl /usr/local/hp/nvscript/bin/hpnvs.pl "$reorgtable"`; print "Reorg status :".$status;

print "\n";

#----------Update the statistics of the table--------------------------------

$status=`perl /usr/local/hp/nvscript/bin/hpnvs.pl "$updatestats"`; print "Update statistics status :".$status;

print "\n";

#

--------------Fetch results-------------------------------------------------

@resultrows=`perl /usr/local/hp/nvscript/bin/hpnvs.pl "$selecttable"`;

#

-------------Display the results--------------------------------------------

foreach $rowvalue (@resultrows)

{

 

 

print $rowvalue;

}

 

Example of a Python Program (example.py)

import os import sys import string

if __name__ == '__main__':

#Define SQL statements

reorgtable="REORG TABLE neo.persnl.employee"; updatestats="UPDATE STATISTICS FOR TABLE neo.persnl.employee " updatestats=updatestats + "ON EVERY COLUMN"; selecttable="SELECT COUNT(*) FROM neo.persnl.employee";

#Contruct a list of SQL statements to be executed stmnt = [reorgtable,updatestats,selecttable] print "\n";

for stmntstr in stmnt:

cin, cout ,cerr = os.popen3('python /usr/local/hp/nvscript/bin/hpnvs.py "'+stmntstr+'"')

while 1:

text = cout.read() if text:

print text else:

break

while 1:

text = cerr.read() if text:

print text else:

break

cin.close()

cout.close()

Running the Perl or Python Program

Before running the Perl or Python program, make sure that you included the absolute path of the Perl or Python wrapper script (hpnvs.pl or hpnvs.py) in the program file:

On Windows: hpnvs-installation-directory\nvscript\bin\hpnvs.plor hpnvs-installation-directory\nvscript\bin\hpnvs.py

hpnvs-installation-directoryis the directory where you installed the Neoview Script software files. For more information, see Table 2-1 (page 34).

On Linux or UNIX: hpnvs-installation-directory/nvscript/bin/hpnvs.plor hpnvs-installation-directory/nvscript/bin/hpnvs.py

Launching Neoview Script From a Perl or Python Program 77

Page 77
Image 77
HP NEOVIEW 544530-001 manual Running the Perl or Python Program, Example of a Python Program example.py

NEOVIEW 544530-001 specifications

The HP Neoview 544530-001 is a sophisticated data warehousing solution that was designed to address the complex demands of modern businesses. Known for its robust architecture, it enables organizations to efficiently manage, store, and process vast amounts of data. This appliance offers a cohesive combination of hardware and software, configured to deliver high performance and reliability for business intelligence applications.

One of the standout features of the HP Neoview 544530-001 is its ability to support large-scale data analytics. The system utilizes a massively parallel processing architecture, which allows it to handle multiple data queries simultaneously, thereby enhancing the overall performance and response time. This characteristic is vital for businesses that rely on real-time data analysis to make informed decisions.

Another significant technology embedded in the Neoview 544530-001 is its advanced data storage capabilities. With generous storage capacity, it can accommodate extensive datasets, ensuring that organizations have the flexibility to grow their data without compromising system performance. The appliance also integrates advanced compression techniques, which optimize storage efficiency, reducing the physical space required and associated costs.

The HP Neoview is engineered with various data management features, including data quality tools that help ensure the integrity and accuracy of information. These tools can cleanse and normalize data, making it more reliable for analysis. Moreover, the system supports a wide array of data formats, facilitating easy integration with existing databases and applications.

Security is also a critical consideration for the HP Neoview 544530-001. The appliance incorporates robust security measures to protect sensitive data from unauthorized access. This includes encrypted connections and user authentication protocols, which are essential for compliance with industry standards.

In terms of scalability, the Neoview 544530-001 allows businesses to expand their data environment as their needs evolve. The system's modular architecture means that organizations can easily add hardware components, ensuring they can keep pace with increasing data volumes.

Overall, the HP Neoview 544530-001 provides organizations with a complete solution for data warehousing that combines powerful performance, extensive storage, advanced data management tools, and scalable architecture, making it an ideal choice for enterprises looking to leverage data for strategic advantage.