cancel
Showing results for 
Search instead for 
Did you mean: 

SAP GW Problem

Former Member
0 Kudos

Dear all,

I'm having problem running some db13 schedules, it gives me following message in the log:

SXPG_COMMAND_EXECUTE failed for SAPDBA - reason: program_start_error: See SYSLOG for more details

In the syslog, i see:

-


NiConnect unsuccessful, rc: -0010

> Host: localhost

> Service: sapgw00

Operating system call SO_ERROR failed (error no. 239 )

Operating system call SO_ERROR failed (error no. 239 )

NiConnect unsuccessful, rc: -0010

> Host: localhost

> Service: sapgw00

NiConnect unsuccessful, rc: -0010

> Host: localhost

> Service: sapgw00

-


I have tried to see SM59:

Connection error partner not reached (host localhost, service sapgw00) / CPIC-CALL: 'ThSAPCMINIT'

Error partner not reached (host localhost, service sa

LOCATION SAP-Server petsap04_PMP_00 on host petsap04 (wp

DETAIL NiPConnect2

CALL SO_ERROR

COMPONENT NI (network interface)

COUNTER 10

ERROR TEXT Connection refused

ERROR NUMBER 239

MODULE niuxi.c

LINE 889

RETURN CODE -10

SUBRC 0

RELEASE 45B

TIME Thu Jun 28 11:29:24 2007

VERSION 33

-


I'm running SAP R/3 4.5B / Oracle 8.1.7.4 / HP-UX 11i

Can anybody help me?

Regards,

Arshad

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

The problem is solved. I have just "rebooted" the machine and it solved the problem.

Regards,

Arshad

former_member204746
Active Contributor
0 Kudos

if you played around HOSTS and SERVICES files, they need a SAP restart so that SAP reads them again... This is probably why the reboot did the trick as it obviously restarted SAP as well.

Former Member
0 Kudos

please provide following information:

1. hostname

2. SAPSYSTEM (see instance profile)

3. sapgwXX entries in /etc/services (unix), %windir%\system32\drivers\etc\services (windows)

from the machine where the standalone Gateway is configured

from the machine where the ABAP Server is configured.

Last question. Is it a high available configuration (e.g. will the gateway and ABAP-Server run on the same box under special circumstances?)

Peter

Former Member
0 Kudos

Hi Peter,

1. hostname is petsap04

2.SAPSYSTEM = 00

SAPSYSTEMNAME = PMP

3. services file (unix):

sapgw00 3300/tcp

sapgw00s 4800/tcp

sapgw01 3301/tcp

sapgw02 3302/tcp

Yes, the gateway and abap-server run on the same box.

Regards,

Arshad

Former Member
0 Kudos

Hi all,

Can anybody help me?

Regards,

markus_doehr2
Active Contributor
0 Kudos

Do you have an entry for "localhost" in your /etc/hosts file?

--

Markus

Former Member
0 Kudos

Yes, i have the following:

127.0.0.1 localhost loopback

markus_doehr2
Active Contributor
0 Kudos

Can you do

niping -H petsap04 -S 3300

--

Markus

Message was edited by:

Markus Döhr

markus_doehr2
Active Contributor
0 Kudos

And what you can try also is to check, if your gateway is really listening on 3300:

# netstat -an | grep LISTEN | grep 33

--

Markus

Former Member
0 Kudos

Hi,

  1. niping -c -H petsap04 -S 3600

Mon Jul 2 13:00:05 2007

***LOG Q0I=> NiPConnect2: SO_ERROR (239: Connection refused) [niuxi.c 729]

      • ERROR => NiTClientLoop: NiConnect (rc=-10) [nixxtst. 1290]

*****************************************************************************

*

  • ERROR partner not reached (host petsap04, service 3300)

*

  • TIME Mon Jul 2 13:00:05 2007

  • RELEASE 45B

  • COMPONENT NI (network interface)

  • VERSION 32

  • RC -10

  • MODULE niuxi.c

  • LINE 729

  • DETAIL NiPConnect2

  • SYSTEM CALL SO_ERROR

  • ERRNO 239

  • ERRNO TEXT Connection refused

  • COUNTER 1

*

*****************************************************************************

petsap04[421] / #netstat -an | grep LISTEN | grep 33

petsap04[422] / #

Regards,

markus_doehr2
Active Contributor
0 Kudos

> petsap04[421] / #netstat -an | grep LISTEN | grep 33

> petsap04[422] / #

Oh... that doesn't look good...

# netstat -an | grep LISTEN | grep 33
tcp        0      0 0.0.0.0:3300            0.0.0.0:*               LISTEN      

That's a running gateway...

What do you see in the tracefile of the gateway (dev_rd)?

--

Markus

Former Member
0 Kudos

or, if the gateway could not be started in dev_rd.

Peter

Former Member
0 Kudos

Bind service sapgw00 to datagramm port 3300

Bind service sapgw00 (normal) to port 3300

***LOG S41=> GwInitShTbl, ShmCreate ( 04) [gwxxtool 2147]

      • ERROR => shmat(5655,0x00000000,SHM_RND) (13: Permission denied) [shmux.c 17

70]

      • ERROR => shmctl(5655,IPC_RMID,0) 0x7f7f0ff0) (1: Not owner) [shmux.c 1780]

      • ERROR => shmat(792,0x00000000,SHM_RND) (13: Permission denied) [shmux.c 177

0]

      • ERROR => shmctl(792,IPC_RMID,0) 0x7f7f0ff0) (1: Not owner) [shmux.c 1780]

GwInitReader: try to attach to shared memory

      • ERROR => shmat(5655,0x00000000,SHM_RND) (13: Permission denied) [shmux.c 17

70]

      • ERROR => shmctl(5655,IPC_RMID,0) 0x7f7f0e70) (1: Not owner) [shmux.c 1780]

***LOG S41=> GwInitShTbl, ShmCreate ( 01) [gwxxtool 2147]

      • ERROR => shmat(5655,0x00000000,SHM_RND) (13: Permission denied) [shmux.c 17

70]

      • ERROR => shmctl(5655,IPC_RMID,0) 0x7f7f0ff0) (1: Not owner) [shmux.c 1780]

      • ERROR => shmat(792,0x00000000,SHM_RND) (13: Permission denied) [shmux.c 177

0]

      • ERROR => shmctl(792,IPC_RMID,0) 0x7f7f0ff0) (1: Not owner) [shmux.c 1780]

***LOG S07=> GwInitReader, GwInitShTbl () [gwxxrd.c 1303]

markus_doehr2
Active Contributor
0 Kudos

***LOG S41=> GwInitShTbl, ShmCreate ( 04) [gwxxtool

2147]

      • ERROR => shmat(5655,0x00000000,SHM_RND) (13:

Permission denied) [shmux.c 17

There we go, that´s your problem.

Check Note 172747 - HP-UX Operating system parameters for 64-bit R/3

Configure them, relink your OS kernel and reboot. The errors should go away.

--

Markus

Former Member
0 Kudos

Hi,

Unfortunately i have checked all kernel parameters according to Note 172747 but all of them are correct. Some parameters are higher than requested. I've also compared with an other "twin" machine and the parameters are same. In the other machine SAP GW is running, so i don't think that the problem is here.

Regards,

markus_doehr2
Active Contributor
0 Kudos

Can you check on that "twin" machine if you have profile parameters (in the instance profile) like

ipc/permission 4755

--

Markus

Former Member
0 Kudos

Hi,

There is no ipc/permission 4755 parameter in the instance profile of the other machine.

Arshad

andreas_herzog
Active Contributor
0 Kudos

-> you're sure about system number 00?

-> is the service part of the /etc/services file?

-> the ports are free (eg. not used by another application)?

-> how about niping on you system id?

-> ip and hostname are correct in /etc/hosts?

GreetZ, AH

Former Member
0 Kudos

Hi,

-->The system number is correct (00).

-->Yes, i've checked the services file in /etc/services and all suposed services are there (i've compared with another server).

-->I am not sure, how can i check? With netstat? What options do i have to select?

My /etc/services file is:

...

sapdp00 3200/tcp

sapdp00s 4700/tcp

sapgw00 3300/tcp

sapgw00s 4800/tcp

sapmsPMP 3600/tcp

sapgw01 3301/tcp

sapgw02 3302/tcp

-->the niping -t returned following:

Thu Jun 28 12:19:08 2007

function name parameters return code

-


NiMyHostName (..) rc = 0

NiMyAddrVerify (petsap04, NULL) rc = 0

NiServToNo ("0", ..) rc = 0

NiListen (0, ..) rc = 0

NiCloseHandle (1) rc = 0

NiBuf2Listen (NI_FINDSERV, ..) rc = 0

NiRouteToTable (/H/host1/H/host/S/serv, ...) rc = 0

NiHostToAddr (localhost, ..) rc = 0

NiAddrToHost (127.0.0.1) rc = localhost

NiConnect (petsap04, 65000, 100, ..) rc = 0

NiAccept (1, 100, .., ..) rc = 0

NiWrite (2, EYECATCHER, 11, 100, ..) rc = 0

Ni2Select ([3], [2], 100) rc = 0

NiRead (3, .., .., 100, ..) rc = 0

NiCheck1 (2, 100) rc = 0

NiCheck (2, 100) rc = 0

NiSelect ([2, 3], 100) rc = 0

NiRead (2, .., .., 300000, ..) rc = -11 (-11 ok)

NiHdlToSock (..) rc = 0

NiSockToHdl (..) rc = 0

NiDgBind (0, ..) rc = 0

NiDgSend (EYECATCHER, 11, petsap04, 55481, 0) rc = 0

NiDgGetHdl (..) rc = 0

NiSelect ([1], 100) rc = 0

NiDgReceive (.., .., 100) rc = 0

NiDgFreeResrc () rc = 0

NiBufAlloc (&buf, 1234, "NI-TEST") rc = 0

NiBufDup (&buf1, buf) rc = 0

NiBufFree (&buf)

NiBufWrap (&buf, data_buf, data_len, data_len, NiT rc = 0

NiBufFree (&buf)

NiBufFree (&buf1)

-


      • SELFTEST O.K. ***

-


niping -c -S sapgw00

Thu Jun 28 12:48:03 2007

***LOG Q0I=> NiPConnect2: SO_ERROR (239: Connection refused) [niuxi.c 729]

      • ERROR => NiTClientLoop: NiConnect (rc=-10) [nixxtst. 1290]

*****************************************************************************

*

  • ERROR partner not reached (host localhost, service sapgw00)

*

  • TIME Thu Jun 28 12:48:03 2007

  • RELEASE 45B

  • COMPONENT NI (network interface)

  • VERSION 32

  • RC -10

  • MODULE niuxi.c

  • LINE 729

  • DETAIL NiPConnect2

  • SYSTEM CALL SO_ERROR

  • ERRNO 239

  • ERRNO TEXT Connection refused

  • COUNTER 1

*

*****************************************************************************

-> IP and hostname are correct in /etc/hosts

Regards,

Arshad

Message was edited by:

Arshad Amade