HP NEOVIEW 544530-001 manual Launching Neoview Script From a Perl or Python Program

Models: NEOVIEW 544530-001

1 142
Download 142 pages 61.21 Kb
Page 76
Image 76

For example:

>cd /usr/local/hp/nvscript/bin

>perl hpnvs.pl "POPULATE INDEX neo.persnl.xempname >ON neo.persnl.employee"

On the Python command line, enter:

cd hpnvs-installation-directory/nvscript/bin python hpnvs.py "sql-statement-string"

For example:

>cd /usr/local/hp/nvscript/bin

>python hpnvs.py "SELECT * FROM neo.persnl.employee"

The command returns this output:

EMPNUM

FIRST_NAME

LAST_NAME

DEPTNUM

JOBCODE

SALARY

------

---------------

-------------- -------

-------

--------

1

ROGER

GREEN

9000

100

175500.00

23

JERRY

HOWARD

1000

100

137000.10

29

JANE

RAYMOND

3000

100

136000.00

32

THOMAS

RUDLOFF

2000

100

138000.40

...

 

 

 

 

 

--- 61

row(s) selected.

 

 

 

 

Launching Neoview Script From a Perl or Python Program

You can execute an SQL statement by invoking the Neoview Script Perl or Python wrapper script in a Perl or Python program. You can pass only one SQL statement at a time in a perl or python command. To execute an SQL statement in a Perl or Python program, follow these instructions:

“Setting the Login Environment Variables” (page 76)

“Using SQL Statements in a Perl or Python Program” (page 76)

“Running the Perl or Python Program” (page 77)

Setting the Login Environment Variables

To invoke the Perl or Python wrapper script in a Perl or Python program, you must set the login environment variables. For more information, see “Setting the Login Environment Variables” (page 71).

Using SQL Statements in a Perl or Python Program

In a Perl or Python program, each SQL statement that you invoke with the Perl or Python wrapper script must:

Be enclosed in double quotes (") without the SQL terminator (;)

Contain fully qualified database object names (for example, neo.schema-name.obj-name)

Contain the syntax of one of the supported SQL statements. See Appendix B (page 133).

For examples, see “Example of a Perl Program (example.pl)” (page 76) and “Example of a Python Program (example.py)” (page 77).

Example of a Perl Program (example.pl)

#########################################################################

# Example Perl program that maintains a database using hpnvs.pl #

#########################################################################

#----------------------------------------------------------------------------

$reorgtable="REORG TABLE neo.persnl.employee";

$updatestats="UPDATE STATISTICS FOR TABLE neo.persnl.employee ".

"ON EVERY COLUMN"; $selecttable="SELECT COUNT(*) FROM neo.persnl.employee"; print "\n";

76 Running Neoview Script From Perl or Python

Page 76
Image 76
HP NEOVIEW 544530-001 Launching Neoview Script From a Perl or Python Program, Setting the Login Environment Variables

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.