cancel
Showing results for 
Search instead for 
Did you mean: 

WaitForSingleObject failedwith %d - SXPG_COMMAND_EXECUTE DB13

former_member287614
Participant
0 Kudos

Hello guys.

I have one production server with Central Instance (example XAPHOST) and DB Instance (example XDBHOST) on Windows 2008 Server R2 / Oracle 11g.

The scheduled for DB13 not working for any task of database.

When i tried run task for example Check Database the log show error:

Job started Step 001 started (program RSDBAJOB, variant &0000000000105, user ID SAPUSER)

Execute logical command BRCONNECT On host XDBHOST Parameters: -jid CHECK20170703132155 -u / -c -f check

Can't exec external program (No such file or directory)

WaitForSingleObject failedwith %d (No such deviceor address)

SXPG_COMMAND_EXECUTE failed for BRCONNECT - Reason: unknown

Job cancelled after system exception ERROR_MESSAGE

I read the notes 1914589, 980266, 583759, 446172.

- The RFC is working fine SAPXPG_DBDEST_<XDBHOST>

- The DB13 - Goto - backend configuration - Oracle Settings : XDBHOST

- The SAP Gateway is running where Database is running and configured - XDBHOST

- The sapxpg.exe file exists on XDBHOST in the kernel directory for SAP Gateway Instance

I do not know what else to check.

Thanks for any suggestions or help.

Desirée.

Accepted Solutions (0)

Answers (3)

Answers (3)

prithvirajr
Contributor
0 Kudos

Hi

Please go through below thread...

https://archive.sap.com/discussions/thread/3303408

Regards,

Prithviraj

raquel_gomez
Employee
Employee
0 Kudos

Hi Desirée,

Check on SM37 Job cancellation, and which is involved work process/application server (SM37, select Job, Job details).
Afterwards, on dev_w* trace file, check if more information is provided. Attach trace file to this thread if necesary.
SystemLog (transaction SM21) may provide further information about this error.

Regards,
Raquel

former_member287614
Participant
0 Kudos

Hi Raquel.

Sorry for delay. In the SM37 transaction the error is the same:

In the tarce directory on database Host: X:\usr\sap\<SIDGW>\G00\work\dev_cp

Trace file of control program (trace level 3)
< Function: BtcTrcInit> Function: main SAPXPG 700
2017-07-10--15-14-02 : Before BtcXpgDetach
> Function: BtcXpgDetach < Function: BtcXpgDetach Accept RFC connection from R/3 system
2017-07-10--15-14-02 : Before RfcAccept
2017-07-10--15-14-02 : RfcAccept returned OK
security check switched OFF
Install RFC call SAPXPG_START_XPG
Install RFC call SAPXPG_START_XPG_LONG
Install RFC call SAPXPG_END_XPG
Wait for RFC call SAPXPG_START_XPG or SAPXPG_START_XPG_LONG
2017-07-10--15-14-02 : Before first call of RFCDispatch
> Function: BtcXpgStartXpgLong
2017-07-10--15-14-02 : Beginning of BtcXpgStartXpgLong
> Function: BtcXpgStartXpgImportLong > Function: BtcXpgParam < Function: BtcXpgParam > Function: BtcXpgParam < Function: BtcXpgParam > Function: BtcXpgParam < Function: BtcXpgParam > Function: BtcXpgParam < Function: BtcXpgParam > Function: BtcXpgParam < Function: BtcXpgParam > Function: BtcXpgParam < Function: BtcXpgParam > Function: BtcXpgParam < Function: BtcXpgParam > Function: BtcXpgParam < Function: BtcXpgParam > Function: BtcXpgTable < Function: BtcXpgTable < Function: BtcXpgStartXpgImportLong
BtcXpgStartXpgLong: special_trace_flag = <6>
> Function: BtcXpgStartXpgInt > Function: BtcXpgItTransfer Content of source log table:
Line Text
<No StdOut/StdErr output reported>
Target log table is not identical to source
ItGetLine terminated with NULL
< Function: BtcXpgItTransfer > Function: BtcTrcReset < Function: BtcTrcReset Call mode: VIA RFC
Input arguments of BtcXpgStartXpg:
External program: brconnect
tracecntl = : 6
Display of Parameter string switched off !!
Contents of control flags:
StdIn control flag: redirect StdIn
StdOut control flag: store StdOut output in memory
StdErr control flag: store StdErr output in memory
Trace control flag: unknown contents
Termination control flag: control program will wait for termination
> Function: BtcXpgCheck > Function: BtcXpgArgv

parameter number 1:
parameter number 2:
parameter number 3:
parameter number 4:
parameter number 5:
parameter number 6:
parameter number 7:
Total number of arguments scanned: 7
Argument argv[0]: brconnect
< Function: BtcXpgArgv < Function: BtcXpgCheck > Function: BtcXpgSigInst < Function: BtcXpgSigInst > Function: BtcXpgStart Rearrange stderr to be collected in memory
Rearrange stdout to be collected in memory
Redirect stdin, read from NUL:
----------------------------------------
> Function: BtcTrcInit > Function: BtcXpgPanic > Function: BtcXpgLog
Output of external command not written to log !!
< Function: BtcXpgLog
< Function: BtcXpgPanic< Function: BtcXpgStartStart status of external program: start of external program failed
StdOut/StdErr collected in memory
Line Text
1 Can't exec external program (No such file or directory)
< Function: BtcXpgStartXpgInt> Function: BtcXpgStartXpgExport > Function: BtcXpgParam < Function: BtcXpgParam > Function: BtcXpgParam < Function: BtcXpgParam > Function: BtcXpgParam < Function: BtcXpgParam< Function: BtcXpgStartXpgExport
2017-07-10--15-14-02 : End of BtcXpgStartXpgLong
< Function: BtcXpgStartXpgLong
2017-07-10--15-14-02 : After first call of RFCDispatch
Wait for RFC call SAPXPG_END_XPG

2017-07-10--15-14-02 : Before second call of RFCDispatch
> Function: BtcXpgEndXpg
2017-07-10--15-14-02 : Beginning of BtcXpgEndXpg
> Function: BtcXpgStartXpgExport > Function: BtcXpgTable < Function: BtcXpgTable < Function: BtcXpgEndXpgImport > Function: BtcXpgEndXpgInt > Function: BtcXpgItTransfer Content of source log table:
Line Text
<No StdOut/StdErr output reported>
Target log table is not identical to source
ItGetLine terminated with NULL
< Function: BtcXpgItTransfer > Function: BtcXpgReadChild Process executing external program has terminated
< Function: BtcXpgReadChild > Function: BtcXpgEnd > Function: BtcXpgPanic > Function: BtcXpgLog
< Function: BtcXpgLog
< Function: BtcXpgPanic < Function: BtcXpgEnd Termination status of external program: program termination status is unknown
StdOut/StdErr collected in memory
< Function: BtcXpgEndXpgInt > Function: BtcXpgEndXpgExport > Function: BtcXpgParam < Function: BtcXpgParam > Function: BtcXpgParam < Function: BtcXpgParam < Function: BtcXpgEndXpgExport
2017-07-10--15-14-02 : End of BtcXpgEndXpg
< Function: BtcXpgEndXpg
2017-07-10--15-14-02 : After second call of RFCDispatch

2017-07-10--15-14-02 : After call of RfcClose (wait)
< Function: main
2017-07-10--15-14-02 : End of SAPXPG: main


Regards.

Desirée

raquel_gomez
Employee
Employee
0 Kudos

Hi,

Did you check work process trace file and SM21 entries?
Which error is shown there?

Is 'sapxpg' available and corerctly working?
You could also try to write complete path of 'sapxpg' on RFC settings.

Regards,
Raquel

JamesZ
Advisor
Advisor
0 Kudos

Hi Desiree,

Are you using windows cluster? If so, please take a look at SAP note 657999.

Best regards,
James

former_member287614
Participant
0 Kudos

Hello James.

Thanks for replay, but i don´t use windows cluster.

Desirée