SQL parameters: sqldirect

Startup parameters change the behavior of the HPE Service Manager server. You can always set a startup parameter from the server's operating system command prompt.

Parameter

sqldirect

Description

This parameter determines where the HPE Service Manager server sends a direct SQL command to an RDBMS by using the SQLexecute RAD command panel. The database type you specify here must match the RDBMS database type that is set up as a section in your sm.ini file.

The HPE Service Manager server uses shared libraries to interface with any supported RDBMS client. For example, the SQORACLE.OCI.10.dll shared library on Windows enables communication with Oracle 11 and 12 clients, and the sqdb2.cli.so shared library on Solaris enables communication with a DB2 9.1 and higher clients. When HPE Service Manager opens a file that is mapped to an RDBMS, the HPE Service Manager SQL layer automatically loads the appropriate shared library into memory.

The SQL Query tool also allows you to query tables that are not HPE Service Manager files. To do this, add the sqldirect:<dbtype> parameter to the sm.ini file. Set the dbtype to the name of an existing SQL section in your sm.ini file. For example for an Oracle system, add the line sqldirect:oracle to the sm.ini file. This loads the appropriate .DLL file for the backend RDBMS and enables direct SQL queries at any time.

Valid if set from

Server's operating system command prompt

Initialization file (sm.ini)

Requires restart of the Service Manager server?

No

Default value

If this parameter is not set, but a RAD panel tries to execute a SQL Statement through SQLexecute, the statement will be sent to the RDBMS that was used last by the RAD (for a query, or an update, and so on.) Therefore if the whole file system is mapped to one and only one RDBMS, that is the RDBMS sqldirect will use.

Possible values

sqldirect:oracle11
[oracle]
sqldb:SomeOraDB
sqllogin:sm/sm

Example usage

Command line: sm -httpPort:13080 -sqldb:<dbserver> -sqldirect:<oracle>

Initialization file:

sqldirect:oracle11
[oracle]
sqldb:SomeOraDB
sqllogin:sm/sm

[oracle11]
sqldb:SomeOtherOracleDB
sqllogin:sm/sm