1-1Neoview Script Within a Neoview Platform Network.................................................................21
11
12
List of Tables
2-1Locations of Neoview Script Software Files..................................................................................34
13
14
About This Document
This manual describes how to use the Neoview Script command-line interface on a client
workstation to manage a database on a Neoview data warehousing platform. Neoview Script
enables you to perform daily administrative tasks by running SQL statements interactively or
from script files.
Intended Audience
This manual is intended for database administrators and support personnel who are maintaining
and monitoring a Neoview database.
New and Changed Information in This Edition
New or Changed InformationChapter or Appendix
“Setting the Look and Feel of the
Neoview Script Interface” (page 35)
“Launching the Neoview Script
Interface” (page 41)
Appendix A: Neoview Script
Interface Commands
There is a new look and feel property value, BTEQ (to support Teradata). This
property affects the formatting of status messages. The look and feel property
value Oracle is no longer available, butis supported for backwardcompatibility.
For more information, see “Setting the Look and Feel of the Neoview Script
Interface” (page 35).
There is a new optional launch parameter -noconnect. For more information,
see“Launching Neoview Script Without Connecting to the Database” (page 49).
This appendix describes these new interface commands:
• CONNECT
• RECONNECT
• SET MARKUP
• SET COLSEP
• SET HISTOPT
• SHOW COLSEP
• SHOW HISTOPT
• SHOW MARKUP
• SHOW PREPARED
This appendix also includes changes these existing interface commands:
• DISCONNECT
• ENV
• PRUN
• SESSION
• SET TIME
• SHOW TABLE
• SHOW SESSION
Document Organization
Neoview Script
Script
Chapter 3:Launching theNeoview
Script Interface
Interactively inthe Neoview Script
Interface
Neoview Script Interface
Introduces Neoview Script and describes its capabilities.Chapter 1: Introduction to
Describes how to install Neoview Script on the client workstation.Chapter 2: Installing Neoview
Describes how to launch, log in to, and exit the Neoview Script interface on a
client workstation.
Describes how to run commands interactively in the Neoview Script interface.Chapter 4: Running Commands
Describes how to run script files in the Neoview Script interface.Chapter 5: Running Scripts in the
Intended Audience15
Script From Perl or Python
Appendix A: Neoview Script
Interface Commands
Statements
Commands
Notation Conventions
General Syntax Notation
This list summarizes the notation conventions for syntax presentation in this manual.
UPPERCASE LETTERSUppercase letters indicate keywords and reserved words. Type these
Describes how to run Neoview Script from Perl or Python.Chapter 6: Running Neoview
Provides syntax, considerations, and examples for Neoview Script interface
commands.
Lists the SQL statements that Neoview Script supports.Appendix B: Supported SQL
Provides syntax,considerations, and examples for connectivity service commands.Appendix C: Connectivity Service
items exactly as shown. Items not enclosed in brackets are required.
For example:
SELECT
Italic Letters
Italic letters, regardless of font, indicate variable items that you
supply. Items not enclosed in brackets are required. For example:
file-name
Computer Type
Computer type letters within text indicate case-sensitive keywords
and reserved words. Type these items exactly as shown. Items not
enclosed in brackets are required. For example:
myfile.sh
[ ] BracketsBrackets enclose optional syntax items. For example:
DATETIME [start-field TO] end-field
A group of items enclosed in brackets is a list from which you can
choose one item or none. The items in the list can be arranged either
vertically, with aligned brackets on each side of the list, or
horizontally, enclosed in a pair of brackets and separated by vertical
lines. For example:
DROP SCHEMA schema [CASCADE]
[RESTRICT]
DROP SCHEMA schema [ CASCADE | RESTRICT ]
{ } BracesBraces enclose required syntax items. For example:
16About This Document
FROM { grantee[, grantee]...}
A group of items enclosed in braces is a list from which you are
required to choose one item. The items in the list can be arranged
either vertically, with aligned braces on each side of the list, or
horizontally, enclosed in a pair of braces and separated by vertical
lines. For example:
INTERVAL { start-field TO end-field }
{ single-field }
INTERVAL { start-field TO end-field | single-field }
| Vertical LineA vertical line separates alternatives in a horizontal list that is enclosed
in brackets or braces. For example:
{expression | NULL}
… EllipsisAn ellipsis immediately following a pair of brackets or braces indicates
that you can repeat the enclosed sequenceof syntax items anynumber
of times. For example:
ATTRIBUTE[S] attribute [, attribute]...
{, sql-expression}...
An ellipsis immediately following a single syntax item indicates that
you can repeat that syntax item any number of times. For example:
expression-n…
PunctuationParentheses, commas, semicolons, and other symbols not previously
described must be typed as shown. For example:
DAY (datetime-expression)
@script-file
Quotation marks around a symbol such as a bracket or brace indicate
the symbol is a required character that you must type as shown. For
example:
"{" module-name [, module-name]... "}"
Item SpacingSpaces shown between items are required unless one of the items is
a punctuation symbol such as a parenthesis or a comma. For example:
DAY (datetime-expression)
DAY(datetime-expression)
If there is no space between two items, spaces are not permitted. In
this example, no spaces are permitted between the period and any
other items:
myfile.sh
Line SpacingIf the syntax of a command is too long to fit on a single line, each
continuation line is indented three spaces and is separated from the
preceding line by a blank line. This spacing distinguishes items in a
continuation line from items in a vertical list of selections. For
example:
match-value [NOT] LIKE pattern
[ESCAPE esc-char-expression]
Related Documentation
The HP Neoview Library consists of:
•“Neoview Customer Library”
•“Neoview Support Library” (page 18)
Related Documentation17
Neoview Customer Library
This manual is part of the Neoview customer library:
•Administration
Neoview Database Administrator’s Guide
Neoview DB Admin Online Help
Neoview Management Dashboard Client
Guide for Database Administrators
Neoview Script Guide
Neoview Script Online Help
•Reference
Neoview SQL Reference Manual
Information about how to load and manage the Neoview database
by using the Neoview DB Admin and other tools.
Context-sensitive help topics that describe how to use the HP
Neoview DB Admin management interface.
Information on using the Dashboard Client, includinghow to install
the Client, start and configure the Client Server Gateway (CSG), use
the Client windows and property sheets, interpret entity screen
information, anduse Commandand Control to manage queries from
the Client.
Site-planning information and basic hardware information.Neoview Owner’s Manual
Information about using the HP Neoview Script command-line
interface to run SQL statements interactively or from script files.
Command-line helpthat describesthe interfacecommands supported
in the current operating mode of Neoview Script.
Reference information about the syntax of SQL statements,
functions, and other SQL language elements supported by the
Neoview database software.
Cause, effect, and recovery information for error messages.Neoview Messages Manual
Release 2.1
•Connectivity
Neoview JDBC Type 4 Driver API Reference
Neoview JDBC Type 4 Driver Programmer’s
Reference
Neoview ODBC Drivers Manual
ODBC Client Administrator Online Help
README files
Neoview Support Library
Information about known problems that are visible to customers.README for Neoview Platform for
Reference information about the HP Neoview JDBC Type 4 Driver
API.
Information about using the HP Neoview JDBC Type 4 driver,
which provides Java applications on client workstations access a
Neoview database.
Information about using HP Neoview ODBC drivers on a client
workstation to access a Neoview database.
Context-sensitive help topics that describe how to use the ODBC
client interface.
— README for HP JDBC Type 4 Driver
— README for HP ODBC Driver for Windows
— README for HP ODBC Driver for Linux and HP-UX
— README for HP Neoview Script
Neoview Database Support Guide
18About This Document
Reference information for using the boot software.Boot Application Online Help
Procedures and reference information that are unique to the Neoview
database software or not documented in other HP manuals.
Guide
Installation and replacement procedures.Neoview Hardware Installation and Support
Neoview Management Dashboard Support Guide
Neoview Migration and Upgrade Guide
Neoview ODBC and JDBC Troubleshooting
Guide
Neoview SQL Metadata Quick Reference
Neoview System Console Installer Guide
Neoview Query Support Guide
Neoview Virtual TapeServer Installation and
Support Guide
Neoview Workload Management Services Guide
Publishing History
Information on managing and configuring Dashboard from the
Dashboard Server and Client, including starting and running
Dashboard, usingDiscrete Object Thresholds (DOTs), using Dashboard
Command Interpretercommands, usingthe EntityDefinition Language
(EDL), and using Dashboard data definitions and record declarations.
Procedures for adding hardware, installing RVUs and updating other
software and firmware.
Guidelines for troubleshooting ODBC and JDBC connectivity to an
HP Neoview data warehousing platform.
Quick guide to schemas, tables, columns, and data types for Version
2000 Neoview SQL metadata.
Information about installing and configuring applications on the
Neoview system console
Information related to query execution plans and how to affect the
query performance of Neoview databases
Information about installing and maintaining the Neoview Virtual
TapeServer (VTS).
Information about using Neoview Workload Management Services
(NWMS) to manage workload and resources on a Neoview data
warehousing platform.
HP Encourages Your Comments
HP encourages your comments concerning this document. We are committed to providing
documentation that meets your needs. Send any errors found, suggestions for improvement, or
compliments to:
pubs.comments@hp.com
Include the document title, part number, and any comment, error found, or suggestion for
improvement you have concerning this document.
Publication DateProduct VersionPart Number
August 2006HP Neoview Release 1.0542714-003
October 2006HP Neoview Release 1.1543708-001
November 2006HP Neoview Release 1.2543707-001
March 2007HP Neoview Release 2.0544356-001
May 2007HP Neoview Release 2.1544530-001
Publishing History19
20
1 Introduction to Neoview Script
Neoview Script is a command-line interface that you download and install on a client workstation
that has the Neoview JDBC Type 4 Driver installed. Operating systems that support the JDBC
driver include Windows, Linux, and UNIX. The JDBC driver connects Neoview Script on a client
workstation to a Neoview database on a Neoview data warehousing platform.
Figure 1-1 Neoview Script Within a Neoview Platform Network
Neoview Script enables you to perform daily administrative and database management tasks
by running SQL statements interactively or from script files. You can also run Neoview Script
from a Perl or Python command line or from Perl or Python programs. Neoview Script supports
many SQL statements. For a list of these statements, see Appendix B (page 133).
Neoview Script does not support:
•Adding, modifying, and deleting users
•Changing user passwords
•Job scheduling
21
22
2 Installing Neoview Script
NOTE:If you are manuallyinstalling Neoview Script on a Linux platformthat has the Neoview
data loader installed, use the services or sysadmin ID instead of root, which has been frozen for
the loader. The best way to install NeoviewScript on the loader platform is by using the Neoview
Loader Supplemental executive (Installsuppkt). For more information, see the Neoview Migrationand Upgrade Guide.
To install Neoview Script, follow these procedures:
1.Preinstallation procedures:
•“Installing and Verifying the Java Runtime Environment (JRE)” (page 23)
•“Installing and Verifying the Neoview JDBC Type 4 Driver” (page 26)
•“Installing Perl or Python” (page 27)
2.Installation procedures:
•“Downloading the Installer” (page 27)
•“Verifying the Version of the Installer File” (page 28)
•“Running the Installer” (page 28)
3.Postinstallation procedures:
•“Verifying the Installed Software Files” (page 34)
•“Verifying the Installed Version of Neoview Script” (page 35)
•“Setting the Look and Feel of the Neoview Script Interface” (page 35)
•“Testing the Launch of Neoview Script” (page 39)
Preinstallation Procedures
•“Installing and Verifying the Java Runtime Environment (JRE)” (page 23)
•“Installing and Verifying the Neoview JDBC Type 4 Driver” (page 26)
•“Installing Perl or Python” (page 27)
Installing and Verifying the Java Runtime Environment (JRE)
Neoview Script and the Neoview JDBC Type 4 Driver require a compatible Java version to be
installed on the client workstation. The supported Java versions are:
If you are using U.S. Daylight Savings Time (DST), be aware that the start and stop dates for
DST will change from the first Sunday in April to the second Sunday in March and from the last
Sunday in October to the first Sunday in November, starting in 2007. To avoid using incorrect
times, make sure that your Java Runtime Environment uses the correct DST rules. JRE 1.4.2_11
and later versions support the new DST rules.
Installing a Supported Java Version
To install one of the supported Java versions on the client workstation, follow the instructions
on the Sun Microsystems Web site:
After installing the Java version, proceed with “Verifying the Java Version” (page 24).
Verifying the Java Version
To display the Java version of the client workstation on the screen, enter:
java -version
For example:
C:\>java -version
java version "1.4.2_10"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-b03)
Java HotSpot(TM) Client VM (build 1.4.2_10-b03, mixed mode)
C:\>
If the returned version is not supported or is unavailable, see:
•“Setting the PATH to a Supported Java Version on Windows” (page 24)
•“Setting the PATH to a Supported Java Version on Linux or UNIX” (page 26)
Setting the PATH to a Supported Java Version on Windows
1.Right-click the My Computer icon on your desktop, and then select Properties:
2.In the System Properties dialog box, click the Advanced tab.
3.Click the Environment Variables button:
24Installing Neoview Script
4.Under System variables, select the variable named Path, and then click Edit:
Preinstallation Procedures25
5.Place the cursor at the beginning of the Variable Value field and type the path of the Java
bin directory, ending with a semicolon (;):
For example:
"C:\Program Files\Java\j2re1.4.2_10\bin";
NOTE:Check that no space is after the semicolon (;) in the path. If there are spaces in the
directory name, delimit the entire directory path in double quotes (") before the semicolon.
6.Click OK.
7.Verify that the updated Path appears under System variables, and click OK.
8.In the System Properties dialog box, click OK to accept the changes.
Setting the PATH to a Supported Java Version on Linux or UNIX
1.Open the user profile (.profile or .bash_profile for the Bash shell) in the /home
directory. For example:
vi .profile
2.In the user profile, set the PATH environment variable to include the path of the Java bin
directory. For example:
export PATH=/opt/java1.4/jre/bin:$PATH
NOTE:Place the path of the Java bin directory before $PATH, and check that no space is
after the colon (:) in the path. In the C shell, use the setenv command instead of export.
3.To activate the changes, either log out and log in again or execute the user profile. For
example:
. .profile
Installing and Verifying the Neoview JDBC Type 4 Driver
Neoview Script requires a compatible JDBC driver to be installed on the client workstation. For
Neoview Release 2.1, Neoview Script requires the JDBC Type 4 Driver for Neoview Release 2.1.
Installing the JDBC Driver
To install the JDBC driver:
1.Download and extract the product distribution file.
2.Set the CLASSPATH to the product JAR file.
For information about how to install, verify, and use the JDBC driver, see the Neoview JDBC Type4 Driver Programmer’s Reference or the product README.
Verifying the JDBC Driver
To display the version of the JDBC driver that is already installed on the client workstation:
26Installing Neoview Script
1.Change the directory to the lib directory, which contains the JDBC driver JAR file:
•On Windows, enter this command:
cd jdbc-installation-directory\lib
jdbc-installation-directory is the directory where you installed the JDBC
driver.
•On Linux or UNIX, enter this command:
cd jdbc-installation-directory/lib
jdbc-installation-directory is the directory where you installed the JDBC
driver.
2.Enter this command to return version information:
If the JAR file is inaccessible or the returned version is not supported, see “Installing the JDBC
Driver” (page 26).
Installing Perl or Python
If you plan to use Perl or Python scripts with Neoview Script, verify that you have Perl or Python
installed on the client workstation. Neoview Script supports these versions of Perl and Python:
•Perl version 5.6.1
•Python version 2.3.4
If you do not have Perl or Python, download it from any open source software provider. You
can perform this installation procedure anytime before or after installing Neoview Script.
NOTE:Neoview Script provides a beta version of enhanced support for Perl and Python
programs. This beta version requires Jython (for Python programs) and a different version of
Perl to be installed on the client workstation. For more information, see the README in the
Neoview Script samples directory.
Installation Procedures
NOTE:Before following the installation procedures, you must install the Neoview JDBC Type
4 Driver on the client workstation. For more information, see “Preinstallation Procedures”
(page 23).
•“Downloading the Installer” (page 27)
•“Verifying the Version of the Installer File” (page 28)
•“Running the Installer” (page 28)
Downloading the Installer
The NeoviewScript softwareis available as a downloadable installer file, hpnvsInstaller.jar,
on the Software Depot site.
Installation Procedures27
1.Locate or create a directory or folder for the installer file anywhere on the client workstation.
2.On the client workstation, start a Web browser and navigate to the download site:
http://www.software.hp.com
3.Enter “Neoview Script” in the search box in the upper right corner of the Software Depot
home page.
4.Click the HP Neoview Script link that appears in the search results.
5.Follow instructions to download HP Neoview Script, which includes the
hpnvsInstaller.jar file, to the directory or folder in Step 1.
NOTE:In the File Download dialog box, make sure to select the Save or Save this file to
disk option.
Verifying the Version of the Installer File
To display the version of the downloaded installer file:
1.Change to the directory where you downloaded the Neoview Script installer file:
cd installer-directory
installer-directory is the directory where you downloaded the installer.
2.Enter this command to return version information:
java -jar hpnvsInstaller.jar v
For example:
C:\>cd download
C:\download>java -jar hpnvsInstaller.jar v
T0774_N24_AAC(R2.1)_11MAY07_HP_hpnvs_2007_04_12
C:\download>
Running the Installer
NOTE:Before running the installer, you must install the Neoview JDBC Type 4 Driver on the
client workstation. For more information, see “Preinstallation Procedures” (page 23).
You have a choice of running the installer from the Installer Wizard Graphical User Interface
(GUI) or from the command line:
•“Installer Wizard Steps” (page 28)
•“Command-Line Installation Steps” (page 33)
Installer Wizard Steps
NOTE:On Linux or UNIX, to run the Installer Wizard, you must have the X Window system
installed on the client workstation. If the client workstation does not have the X Window system,
see the “Command-Line Installation Steps” (page 33).
Launching the Installer Wizard
1.Locate the hpnvsInstaller.jar file in the folder where you downloaded the installer.
2.Verify that the hpnvsInstaller.jar file appears as an Executable JAR File.
If not, skip the next two steps and go to Step 5.
3.Double-click the hpnvsInstaller.jar file icon to launch the Installer Wizard.
4.Proceed to “Using the Installer Wizard” (page 29).
28Installing Neoview Script
5.At a command prompt, change to the directory where you downloaded the installer:
cd installer-directory
installer-directory is the directory where you downloaded the installer file,
hpnvsInstaller.jar.
6.Launch the Installer Wizard by entering:
java -jar hpnvsInstaller.jar
7.Proceed to “Using the Installer Wizard” (page 29).
Using the Installer Wizard
When you execute hpnvsInstaller.jar, the Installer Wizard appears:
1.To locate the JDBC driver JAR file, click Browse next to HP Neoview JDBC Type 4 Driver
JAR file:
2.Select the lib folder of the JDBC driver, and then click Open:
Installation Procedures29
3.Select hpt4jdbc.jar so that it appears in the File Name box, and then click Select:
The Installer Wizard now displays the path of the JDBC driver JAR file:
30Installing Neoview Script
Loading...
+ 112 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.