Skip to Content
0
Former Member
Apr 12, 2010 at 03:35 PM

SAP Gateway- environmental variables not loaded when running brconnect

96 Views

Hello

i have installed the Sap gateway on MSCS

and the RFC check in sm59 is successful,

However when i run a job in db13 it fails with "brconnect is not recognized as ......... "

<sid>adm has all environmental variables set correctly

SAPService<SID> has them too

when i run brconnect on OS level it works fine with <sid>adm and SAPService<SID>

however if create a brconnect.cmd file where i specify the command as

SET ORACLE_SID= ....

SET SAPDATA_HOME=....

C:\windows\sapcluster\brconnect.exe ...........

and run it in sm69 it works fine

Any ideas how to solve this, seems the variables are not taken when running sapxpg

, i don't want to edit the SDBAC for every command

P.S

set from sm69 returns only the system wide variables, however i have the two systems on this host, and can not make the environmental variables for ORACLE_SID and SAPDATA_HOME system wide as this will cause problem with the other sap system

Edited by: Yavor Markov on Apr 12, 2010 6:07 PM