Neoview Command Interface (NCI) Guide (R2.5)
5. After you finish logging in to the database platform, the SQL prompt appears:
Welcome to the HP Neoview Command Interface 2.5
(c) Copyright 2006-2010 Hewlett-Packard Development Company, LP.
Host Name/IP Address: neo0101.mylab.mycorp.net:18650
User Name: dba1
Password:
DataSource Name [Admin_Load_DataSource]:
Connected to DataSource: Admin_Load_DataSource
SQL>
At the prompt, you can enter an SQL statement or an NCI command. For more information,
see Chapter 4 (page 45).
NOTE: NCI allows you to reenter the login values, with a maximum of three retries, before it
closes the session. For more information, see “Retrying the Login” (page 37).
Using Login Parameters
To avoid entering a host name, user name, password, or data source each time you launch NCI,
use these login parameters:
• -h or -host
• -u or -user
• -p or -password
• -dsn
To ensure that a specific role is applied to the session, use the -r or -role parameter. If you
omit the -r or -role parameter, NCI applies your default role to the session and does not
prompt you for a role name.
NOTE: If you launch NCI from within HPDM, the NCI session inherits the connection attributes
of the HPDM session, including the role.
On Windows, in the Command Prompt window, enter:
cd hpnci-installation-directory\Neoview Command Interface\bin
hpnci.cmd -h neo0101.mylab.mycorp.net:18650 -u dba1 -r ROLE.DBA --p xxxxxx
-dsn DataSourceName
On Linux or UNIX, in the terminal window, enter:
cd hpnci-installation-directory/nci/bin
./hpnci.sh -h neo0101.mylab.mycorp.net:18650 -u dba1 -r ROLE.DBA -p xxxxxx
-dsn DataSourceName
NCI launches and prompts you to enter an SQL statement or an NCI command:
Welcome to the HP Neoview Command Interface 2.5
(c) Copyright 2006-2010 Hewlett-Packard Development Company, LP.
Connected to DataSource: Admin_Load_DataSource
SQL>
For more information about the login parameters, see Table 3-1 (page 38).
TIP: You can include these parameters in a shortcut to the hpnci.cmd file or in a launch file
for the hpnci.sh file. For more information, see “Creating a Shortcut to hpnci.cmd” (page 31)
or “Presetting the Optional Launch Parameters” (page 34), respectively.
36 Launching NCI