Entering content frame

Background documentation USE USER Command Locate the document in its SAP Library structure

You can use this Loader command for creating a database session to create a connection with the specified information.

Syntax

<use_user_command> ::= USE USER <valUSERNAME> <valPASSWORD> [<database_name_statement>] [<isolation_level_spec>]

<database_name_statement> ::= SERVERDB <valDBNAME> [ON <valDBNODE>]
<isolation_level_spec> ::= ISOLATION LEVEL <valISOLATION_LEVEL>

valUSERNAME

Name of the database user

The name of the database user is automatically converted by the database system into uppercase letters. If you want to suppress the conversion, you must place the name in quotation marks.

valPASSWORD

User password

The password for the database user is automatically converted by the database system into uppercase letters. If you want to suppress the conversion, you must place the name in quotation marks.

valDBNAME

Name of the database instance

Applies to the entire database session with this database instance

If the name of the database instance is identical to a keyword or if the upper- and lowercase notation is relevant, the name must be placed in quotation marks.

valDBNODE

Name of the server on which the database instance that you want to open for a database session is installed.

If you do not specify this information, the Loader assumes that the specified database instance has been created on the host where the user is logged on to the Loader.

valISOALTION_LEVEL

Value of the isolation level to be set
The default value of the Loader is 3.

Explanation

This command terminates the current connection of the Loader to the database instance and creates a new connection with the specified parameters.

<database_name_statement>

If you do not specify a database instance name in the USE USER command, the new connection is created to the database instance that was used prior to the USE USER command.

See also:

User Data: -u

Example

USE USER mona red SERVERDB hoteldb ON genua

<isolation_level_spec>

You can use the USE USER command to set the isolation level for a user and override the value set by the SET ISOLATION LEVEL command and the option –I. If you do not specify an isolation level, the value set for the database session is used.

Example

USE USER mona red SERVERDB hoteldb ON genua ISOLATION LEVEL 0

The current isolation level value can also be changed in individual DATAEXTRACT commands by specifying the appropriate LOCK option in the SELECT statement.

 

Leaving content frame