Neoview Command Interface (NCI) Guide (R2.4)

hpnci.cmd -q "create schema persnl"
On Linux or UNIX, in the terminal window, enter:
cd hpnci-installation-directory/nci/bin
./hpnci.sh -q "create schema persnl"
NOTE:
Schema names that begin with HP_ are reserved for use by HP. For more information about
reserved schema names, see the Neoview SQL Reference Manual.
After you enter the SQL statement, NCI launches and prompts you to log in by default (if you
did not specify -h, -u, -p, and -dsn on the command line), runs the SQL statement, and then
returns to the command prompt:
Host Name/IP Address: neo0101.mylab.mycorp.net:18650
User Name: dba1
Password:
DataSource Name [Admin_Load_DataSource]:
--- SQL operation complete.
C:\install\Neoview Command Interface\bin>_
Example of Running an NCI Command With -q or -sql
Use -q or -sql with the PRUN command to run multiple script files simultaneously from the
command line:
On Windows, in the Command Prompt window, enter:
cd hpnci-installation-directory\Neoview Command Interface\bin
hpnci.cmd -q "prun"
On Linux or UNIX, in the terminal window, enter:
cd hpnci-installation-directory/nci/bin
./hpnci.sh -q "prun"
After you enter the NCI command, the Neoview Command Interface launches and prompts you
to log in by default (if you did not specify -h, -u, -p, and -dsn on the command line), and runs
the command. The parallel run (PRUN) operation prompts you to enter settings and then executes
the script files. At the end of the PRUN operation, NCI returns to the command prompt. For
more information about the PRUN operation, see “PRUN Command” (page 111).
Running a Script File When Launching NCI
To run a script file when launching NCI, use the -s or -script command-line parameter.
NOTE: You cannot specify this parameter at the same time as the -q or -sql parameter.
After you launch NCI with -s or -script, NCI executes the script file in interactive mode. NCI
remains open until you enter the EXIT, QUIT, or DISCONNECT command. To quit the interface
immediately after executing a script file, include the EXIT, QUIT, or DISCONNECT command
at the end of the script file.
Example of a Script File
You can create a script file that contains SET commands that customize a session when you
launch NCI:
56 Launching NCI