cancel
Showing results for 
Search instead for 
Did you mean: 

SAP System Is Not Coming Up

Former Member
0 Kudos

Hi All,

My SAP system is not coming up after system copy,

i have restored the database, then i have run the SAP STM tool, after this the sap system should start but all the work processes are showing "ended".

The DB i have restored is of unicode over the non unicode system.

I have also done kernal upgrade from 620 to 640.

The version of SAP i am using is 4.7 and DB is MS Sql 2000 on windows 2003 server.

when i have checked the Developer Trace the following is the error.

--> Failed to initialze provider SQLNCLI. See note # 734034 for more infornmation.

Using provider SQLOLEDB instead.

--> ERROR -- OpenProcess PID 3200 failed for checking semaphore 4

ERROR_INVALID_PARAMETER: The Parameter is incorrect. [semnt.c 1908]

--> ERROR Thcontrol : illegal sap_dext call !!!

I have looked into the note but failed to get a solution as its saying about Ms Sql 2005.

Please help me solving this issue asap.

Immediate response will be appreciated.

Thanks.

Regards,

Mudassir.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

This could be related to shared memory problems. Have you tried rebooting the server?

Cheers!

Former Member
0 Kudos

Hi Warren,

I have tried rebooting the server still the same issue.

Please go throught the Developer Trace and tell me what could be the possible reason.

-


trc file: "dev_w0", trc level: 1, release: "640"

-


*

  • ACTIVE TRACE LEVEL 1

  • ACTIVE TRACE COMPONENTS all, M

*

B

B Sat Nov 08 15:13:43 2008

B create_con (con_name=R/3)

B Loading DB library 'F:\usr\sap\HSQ\SYS\exe\run\dbmssslib.dll' ...

B Library 'F:\usr\sap\HSQ\SYS\exe\run\dbmssslib.dll' loaded

B Version of 'F:\usr\sap\HSQ\SYS\exe\run\dbmssslib.dll' is "640.00", patchlevel (0.26)

B New connection 0 created

M systemid 560 (PC with Windows NT)

M relno 6400

M patchlevel 0

M patchno 25

M intno 20020600

M make: multithreaded, ASCII

M pid 2620

M

M ***LOG Q0Q=> tskh_init, WPStart (Workproc 0 2620) [dpxxdisp.c 1160]

I

I Sat Nov 08 15:13:44 2008

I MtxInit: -2 0 0

M DpSysAdmExtCreate: ABAP is active

M DpSysAdmExtCreate: JAVA is not active

M DpShMCreate: sizeof(wp_adm) 12424 (828)

M DpShMCreate: sizeof(tm_adm) 2219848 (11044)

M DpShMCreate: sizeof(wp_ca_adm) 18000 (60)

M DpShMCreate: sizeof(appc_ca_adm) 6000 (60)

M DpShMCreate: sizeof(comm_adm) 192000 (384)

M DpShMCreate: sizeof(vmc_adm) 0 (320)

M DpShMCreate: sizeof(wall_adm) (22440/34344/56/100)

M DpShMCreate: SHM_DP_ADM_KEY (addr: 05B40040, size: 2511216)

M DpShMCreate: allocated sys_adm at 05B40040

M DpShMCreate: allocated wp_adm at 05B417A8

M DpShMCreate: allocated tm_adm_list at 05B44830

M DpShMCreate: allocated tm_adm at 05B44858

M DpShMCreate: allocated wp_ca_adm at 05D627A0

M DpShMCreate: allocated appc_ca_adm at 05D66DF0

M DpShMCreate: allocated comm_adm_list at 05D68560

M DpShMCreate: allocated comm_adm at 05D68578

M DpShMCreate: allocated vmc_adm_list at 05D97378

M DpShMCreate: system runs without vmc_adm

M DpShMCreate: allocated ca_info at 05D973A0

M DpShMCreate: allocated wall_adm at 05D973A8

X EmInit: MmSetImplementation( 2 ).

X <ES> client 0 initializing ....

X Using implementation std

M <EsNT> Memory Reset enabled as NT default

X ES initialized.

M

M Sat Nov 08 15:13:45 2008

M calling db_connect ...

C Thank You for using the SLOLEDB-interface

C Using dynamic link library 'F:\usr\sap\HSQ\SYS\exe\run\dbmssslib.dll'

C dbmssslib.dll patch info

C patchlevel 0

C patchno 26

C patchcomment MSSQL: GetNextMsst1 error (754819)

C np:(local) connection used on SAPHSE-QA

C Using Provider SQLNCLI

C Provider Release:9.00.1399.06

C Using Provider SQLNCLI

C

C Sat Nov 08 15:13:48 2008

C Cache sizes: header 52 bytes, 20000 names (26720000 bytes), 1000 dynamic statements (5432000 bytes), total 32152052 bytes

C Using shared procedure name cache SAPHSE-QA_HSQHSQ_HSQ_MEM initialized by another process.

C Connected to db server : [SAPHSE-QA] server_used : [np:(local)], dbname: HSQ, dbuser: hsq

C pn_id:SAPHSE-QA_HSQHSQ_HSQ

B Connection 0 opened

B Wp Hdl ConName ConId ConState TX PRM RCT MAX OPT Date Time DBHost

B 000 000 R/3 000000000 ACTIVE NO YES NO 255 255 20081108 151345 SAPHSE-QA

C The IRow interface is supported by this OLEDB provider

M db_connect o.k.

I

I Sat Nov 08 15:14:03 2008

I *** ERROR => OpenProcess PID 2736 failed for checking semaphore 4

ERROR_INVALID_PARAMETER: The parameter is incorrect. [semnt.c 1908]

I MtxInit: 0 0 0

M SHM_PRES_BUF (addr: 0A040040, size: 4400000)

M SHM_ROLL_AREA (addr: 78190040, size: 68812800)

M SHM_PAGING_AREA (addr: 0A480040, size: 35717120)

M SHM_ROLL_ADM (addr: 0C6A0040, size: 688570)

M SHM_PAGING_ADM (addr: 0C750040, size: 525344)

M ThCreateNoBuffer allocated 320144 bytes for 1000 entries at 0C7E0040

M ThCreateNoBuffer index size: 3000 elems

M ThCreateVBAdm allocated 7424 bytes (50 server) at 0C830040

X EmInit: MmSetImplementation( 2 ).

X <ES> client 0 initializing ....

X Using implementation std

X ES initialized.

C The IRow interface is supported by this OLEDB provider

B db_con_shm_ini: WP_ID = 0, WP_CNT = 15

C Using Provider SQLNCLI

B dbtbxbuf: Buffer TABL (addr: 115D00C8, size: 30000000, end: 1326C448)

B dbtbxbuf: Profile: max_objects = 5000, displace = 1, reorg = 1

B dbtbxbuf: request_unit = 2000, sync_reload = 5, inval_reload = 5

B dbtbxbuf: protect_shm = 0, force_checks = 0

B dbtbxbuf: tsize_retry = 14529984

B ***LOG BB0=> buffer TABL started with length 30000000 bytes [dbtbxbuf#6 @ 15692] [dbtbxbuf1569 2]

B dbtbxbuf: Buffer TABLP (addr: 0F4C00C8, size: 10240000, end: 0FE840C8)

B dbtbxbuf: Profile: max_objects = 500, displace = 1, reorg = 1

B dbtbxbuf: request_unit = 2000, sync_reload = 5, inval_reload = 5

B dbtbxbuf: protect_shm = 0, force_checks = 0

B dbtbxbuf: tsize_retry = 5068224

B ***LOG BB0=> buffer TABLP started with length 10240000 bytes [dbtbxbuf#6 @ 15692] [dbtbxbuf1569 2]

B dbtbxbuf: Reading TBX statistics:

B dbtbxbuf: Opening F:\usr\sap\HSQ\DVEBMGS00\data\tbxnew failed (No such file or directory).

B dbtbxbuf: Renaming F:\usr\sap\HSQ\DVEBMGS00\data\tbxnew to F:\usr\sap\HSQ\DVEBMGS00\data\tbxstat failed (No such file or directory).

B dbtbxbuf: 26 object entries precreated

B Layout of EIBUF buffer shared memory:

B 0: 1 * 4 = 4

B 1: 1 * 288 = 288

B 2: 15 * 20 = 300

B 3: 4001 * 40 = 160040

B 4: 2000 * 136 = 272000

B 5: 4001 * 4 = 16004

B 6: 1 * 200 = 200

B 7: 65 * 4 = 260

B 8: 29259 * 128 = 3745152

B Tracing = 0, Shm Protection = 0, Force checks = 0

B dbexpbuf: Buffer EIBUF (addr: 132700D0, size: 4194304, end: 136700D0)

B ***LOG BB0=> buffer EIBUF started with length 4096k bytes [dbexpbuf#5 @ 2322] [dbexpbuf2322 ]

B Layout of ESM buffer shared memory:

B 0: 1 * 4 = 4

B 1: 1 * 288 = 288

B 2: 15 * 20 = 300

B 3: 4001 * 40 = 160040

B 4: 2000 * 136 = 272000

B 5: 4001 * 4 = 16004

B 6: 1 * 200 = 200

B 7: 65 * 4 = 260

B 8: 29259 * 128 = 3745152

B Tracing = 0, Shm Protection = 0, Force checks = 0

B dbexpbuf: Buffer ESM (addr: 136800D0, size: 4194304, end: 13A800D0)

B ***LOG BB0=> buffer ESM started with length 4096k bytes [dbexpbuf#5 @ 2322] [dbexpbuf2322 ]

B Layout of CUA buffer shared memory:

B 0: 1 * 4 = 4

B 1: 1 * 288 = 288

B 2: 15 * 20 = 300

B 3: 3001 * 40 = 120040

B 4: 1500 * 136 = 204000

B 5: 3001 * 4 = 12004

B 6: 1 * 200 = 200

B 7: 193 * 4 = 772

B 8: 10681 * 256 = 2734336

B Tracing = 0, Shm Protection = 0, Force checks = 0

B dbexpbuf: Buffer CUA (addr: 13A900D0, size: 3072000, end: 13D7E0D0)

B ***LOG BB0=> buffer CUA started with length 3000k bytes [dbexpbuf#5 @ 2322] [dbexpbuf2322 ]

B Layout of OTR buffer shared memory:

B 0: 1 * 4 = 4

B 1: 1 * 288 = 288

B 2: 15 * 20 = 300

B 3: 4001 * 40 = 160040

B 4: 2000 * 136 = 272000

B 5: 4001 * 4 = 16004

B 6: 1 * 200 = 200

B 7: 81 * 4 = 324

B 8: 29258 * 128 = 3745024

B Tracing = 0, Shm Protection = 0, Force checks = 0

B dbexpbuf: Buffer OTR (addr: 13D800D0, size: 4194304, end: 141800D0)

B ***LOG BB0=> buffer OTR started with length 4096k bytes [dbexpbuf#5 @ 2322] [dbexpbuf2322 ]

B ***LOG BB0=> buffer CALE started with length 500000 bytes [dbcalbuf#1 @ 2206] [dbcalbuf2206 ]

B *** ERROR => missing return code handler

caller does not handle code 256 from dbntab#7[3124]

==> calling sap_dext to abort transaction

[dbeh.c 93]

M -


C-STACK -


SAP (R) - R/3(TM) Callstack, Version 1.0

Copyright (C) SAP AG. All rights reserved.

-


Callstack without Exception:

App : disp+work.EXE (pid=2620)

When : 11/8/2008 15:14:3.906

Threads : 2

-


Computer Name : SAPHSE-QA

User Name : SAPServiceHSQ

-


Number of Processors: 2

Processor Type: x86 Family 6 Model 15 Stepping 13

Windows Version : 5.2 Current Build: 3790

-


State Dump for Thread Id a40

eax=00000000 ebx=00000000 ecx=00000491 edx=00055d24 esi=0003606c edi=00036040

eip=7c8285ec esp=0300f570 ebp=0300f580 iopl=0 nv up ei pl nz ac po nc

cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00000216

function : KiFastSystemCallRet

7c8285ec c3 ret

7c8285ed 8da42400000000 lea esp,[esp] ss:0300f570=7c8285f4

7c8285f4 8d642400 lea esp,[esp] ss:0601e03f=00000000

--> Stack Back Trace <--

FramePtr ReturnAd Param#1 Param#2 Param#3 Param#4 Function Name

0300f580 00036040 00000000 00000001 0192d324 00000a40 ntdll!KiFastSystemCallRet

00000000 00000000 00000000 00000000 00000000 00000000 <nosymbols>

-


State Dump for Thread Id b04

eax=0000005e ebx=00000103 ecx=00000010 edx=000079d1 esi=00000000 edi=00000000

eip=7c8285ec esp=0532feb0 ebp=0532fef4 iopl=0 nv up ei pl zr na po nc

cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00000246

function : KiFastSystemCallRet

7c8285ec c3 ret

7c8285ed 8da42400000000 lea esp,[esp] ss:0532feb0=7c8270fb

7c8285f4 8d642400 lea esp,[esp] ss:0833e97f=00000000

--> Stack Back Trace <--

FramePtr ReturnAd Param#1 Param#2 Param#3 Param#4 Function Name

0532fef4 00fc37ec 0000068c 00000000 00000000 0003cd10 ntdll!KiFastSystemCallRet

0532ff84 7c349565 00000000 00000000 00000000 0003cc78 disp+work!SigIMsgFunc [signt.c (559)]

0532ffb8 77e64829 0003cc78 00000000 00000000 0003cc78 MSVCR71!endthreadex

0532ffec 00000000 7c3494f6 0003cc78 00000000 00000000 kernel32!GetModuleHandleA

-


M -


M ***LOG R1B=> ThControl, sap_dext-call (00 ) [thxxdynp.c 355]

M in_ThErrHandle: 1

M *** ERROR => ThControl: illegal sap_dext call !!! (step 1, th_errno 5, action 1, level 1) [thxxhead.c 9379]

M

M Info for wp 0

M

M stat = 4

M reqtype = 1

M act_reqtype = -1

M rq_info = 0

M tid = -1

M mode = 255

M len = -1

M rq_id = 65535

M rq_source = 255

M last_tid = 0

M last_mode = 0

M int_checked_resource(RFC) = 0

M ext_checked_resource(RFC) = 0

M int_checked_resource(HTTP) = 0

M ext_checked_resource(HTTP) = 0

M report = > <

M action = 0

M tab_name = > <

M

M *****************************************************************************

M *

M * LOCATION SAP-Server saphse-qa_HSQ_00 on host saphse-qa (wp 0)

M * ERROR ThControl: illegal sap_dext call !!!

M *

M * TIME Sat Nov 08 15:14:03 2008

M * RELEASE 640

M * COMPONENT Taskhandler

M * VERSION 1

M * RC 5

M * MODULE thxxhead.c

M * LINE 9555

M * COUNTER 1

M *

M *****************************************************************************

M

M Entering ThSetStatError

M Entering ThReadDetachMode

M ThISend: still inside critical section semaphore ?

Immediate response will be appreciated.

Thanks,

Regards,

Mudassir.

Former Member
0 Kudos

Hi,

Problem May be with your Database ....just give First aid as

run this as sidadm in command prompt and let us know

r3trans -d

Please provide output...

Regards,

Gagan Deep Kaushal

Former Member
0 Kudos

DB connect looks ok

> M db_connect o.k.

>I Sat Nov 08 15:14:03 2008

>I *** ERROR => OpenProcess PID 2736 failed for checking semaphore 4

> ERROR_INVALID_PARAMETER: The parameter is incorrect. http://semnt.c 1908

looks like something wrong with parameters

cheers,

-Sunil

markus_doehr2
Active Contributor
0 Kudos

> B Version of 'F:\usr\sap\HSQ\SYS\exe\run\dbmssslib.dll' is "640.00", patchlevel (0.26)

> B New connection 0 created

> M systemid 560 (PC with Windows NT)

> M relno 6400

> M patchlevel 0

> M patchno 25

You are using a very very old kernel.

I suggest you upgrade your kernel and dbmsslib.dll to the latest version for your kernel (6.40) and try the same again.

Markus