Show TOC

 Using MS DOS Commands to Operate the SAP ODA Connector Locate this document in the navigation structure

Procedure

You can also use MS DOS commands to operate SAP ODA. You may want to do this, for example, for troubleshooting.

  1. Open MS DOS Prompt.

    To do so, choose   Start   Programs   Command Prompt   .

  2. Navigate to the folder in which SAP ODA is stored.

  3. Enter the relevant command.

Starting SAP ODA as Windows NT Service

  1. Register SAP ODA as a service.

    To do so, enter command sapoda -i -D<Destination> .

    Replace <Destination> by the destination that you have created as a new entry in the SAPRFC.INI file when you installed the SAP ODA Connector.

    Example: sapoda -i -DMYODA

  2. See also: Installing the SAP ODA Connector

  3. Proceed as follows to start the service:

  1. In the Windows menu bar, choose   Start   Settings   Control Panel   .

  2. In the Control Panel dialog box, double-click Services .

  3. Select SAP OPC Data Access Service .

  4. Choose Start.

Stopping SAP ODA as Windows NT Service

  1. Proceed as follows to stop the service:

  1. In the Windows menu bar, choose   Start   Settings   Control Panel   .

  2. In the Control Panel dialog box, double-click Services .

  3. Select SAP OPC Data Access Service .

  4. Choose Stop .

  1. Deregister SAP ODA as a service.

    To do so, enter the command sapoda –u in MS DOS Prompt.

Starting SAP ODA as a Program

You can also use MS DOS commands to start SAP ODA. You have the following options:

  • The SAPRFC.INI file is to be used when starting SAP ODA. This means that the parameters it contains are read when SAP ODA is started. In the MS DOS command, you specify the Destination that defines the configuration parameters in the SAPRFC.INI file.

Command

Meaning

sapoda -D<Destination>

Example: sapoda -DMYODA

Start SAP ODA with destination

  • The SAPRFC.INI file is not to be used. You must enter the following MS DOS commands:

Command

Meaning

sapoda -a<Programm-ID>

-g<SAP Gateway Host Name>

-x<SAP Gateway Service Name>

Program ID

Host name or IP address of the SAP gateway

Program name of the SAP gateway

Note Note

If SAP ODA is still registered as a service, you must first deregister it before you can start it as a program.

End of the note.

Troubleshooting

You can use the following commands for troubleshooting:

Command

Meaning

sapoda -?

Lists all available commands

sapoda -t

Generates a trace file that logs the RFC

sapoda -o < file name>

Generates a trace file that logs the screen output

sapoda -log <file name>

Generates a trace file that logs the log events

sapoda -tcb

Generates a trace file that logs the RFC callbacks