Neoview Script Guide (R2.2)

DescriptionLaunch Parameter
Launches a Neoview script session without connecting to
the Neoview platform (database).For more information,
see “Launching Neoview Script Without Connecting to
the Database” (page 53)
-noconnect
Displays the build version of Neoview Script and the
Neoview JDBC Type 4 Driver. Upon completion of the
display, the client exits. If any other parameters are
included with the -version parameter, they are ignored.
For more information, see “Running Neoview Script With
-version” (page 54).
-version
Logging In When Launching Neoview Script
To avoid entering a host name, user name, password, or data source when the Neoview Script
interface launches, use the -h (or -host), -u (or -user), -p (or -password), or -dsn
command-line parameters.
NOTE: You can include these parameters in a shortcut to the hpnvs.cmd file or in a launch
file for the hpnvs.sh file. For more information, see “Creating a Shortcut to hpnvs.cmd” (page 43)
or “Presetting the Optional Launch Parameters” (page 47), respectively.
On Windows, in the Command Prompt window, enter:
cd hpnvs-installation-directory\nvscript\bin
hpnvs.cmd -h neo0101.mylab.mycorp.net:18650 -u dba1 -p xxxxxx
-dsn DataSourceName
On Linux or UNIX, in the terminal window, enter:
cd hpnvs-installation-directory/nvscript/bin
./hpnvs.sh -h neo0101.mylab.mycorp.net:18650 -u dba1 -p xxxxxx
-dsn DataSourceName
The Neoview Script interface launches and prompts you to enter an SQL statement or a Neoview
Script interface command:
Welcome to the HP Neoview Script Interface 2.2
(c) Copyright 2006, 2007 Hewlett-Packard Development Company, LP.
Connected to DataSource: Admin_Load_DataSource
SQL>
Running a Command When Launching Neoview Script
To execute an SQL statement or a Neoview Script interface command when launching Neoview
Script, use the -q or -sql command-line parameter. This parameter enables you to run a single
command on the command line without having to enter commands in the Neoview Script
interface.
NOTE: You cannot specify this parameter at the same time as the -s or -script parameter.
When using -q or -sql, you must enclose the command in double quotes. The SQL terminator
is not required at the end of an SQL statement and is disallowed after a Neoview Script interface
command.
Although you can run any of the Neoview Script interface commands with -q or -sql, the @,
OBEY, and PRUN commands are the most useful. For a list of supported SQL statements, see
Appendix B (page 139).
Logging In to the Database Platform 51