cancel
Showing results for 
Search instead for 
Did you mean: 

There are error " READ_SWITCHSTATES_FAILED"

Former Member
0 Kudos

hi, all.

How can i do well?When i look over the function with SE37 the error will apper."The import of the current switch configuration from the database into an internal switch status buffer has failed."

"Error analysis

The error when importing the current switch configuration into an

internal switch status buffer can occur if the read enqueue lock, which

is requested from the datatabase for consistent reading, is rejected due

to a parallel change operation on this database.

Furthermore, it could also be an internal problem preventing the request

of the required enqueue lock.

Specifically, the error situation in this case is described under 2 in

the following:

(1) A lock collision occurred when requesting the enqueue lock

"E_ABAP_SWTSTATE".

This enqueue lock is currently helb by user " " with enqueue owner

ID " ".

(2) The enqueue server rejects the enqueue request for the enqueue lock

"E_ABAP_SWTSTATE" with the internal error code 8.

Check any existing enqueue server entries in the developer trace."

How to correct the error

Enqueue lock............: "E_ABAP_SWTSTATE"

Enqueue error code......: 8

Enqueue user............: " "

Enqueue owner ID........: " "

Enqueue object..........: " "

System environment

SAP-Release 700

Application server... "www-590304593e6"

Network address...... "192.168.0.2"

Operating system..... "Windows NT"

Release.............. "5.2"

Hardware type........ "2x Intel 80686"

Character length.... 8 Bits

Pointer length....... 32 Bits

Work process number.. 0

Shortdump setting.... "full"

Database server... "www-590304593e6"

Database type..... "ADABAS D"

Database name..... "NSP"

Database user ID.. "SAPNSP"

Char.set.... "English_United State"

SAP kernel....... 700

created (date)... "Jan 29 2007 00:33:09"

create on........ "NT 5.0 2195 Service Pack 4

Database version. "SQLDBC 7.6.2.014 CL 152175

Patch level. 95

Patch text.. " "

Database............. "MaxDB 7.6, MaxDB 7.7"

SAP database version. 700

Operating system..... "Windows NT 5.0, Windows

Memory consumption

Roll.... 8112

EM...... 8362368

Heap.... 0

Page.... 393216

MM Used. 4134112

User and Transaction

Client.............. 000

User................ "BCUSER"

Language key........ "E"

Transaction......... "SE37 "

Transactions ID..... " "

Program............. "CL_ABAP_SWITCH================CP"

Screen.............. "SAPLWB_MANAGER 0200"

Screen line......... 5

Information on where terminated

Termination occurred in the ABAP program "CL_ABAP_SWITCH================CP" -

in "GET_SWITCH_STATE".

The main program was "RSFUNCTIONBUILDER ".

In the source code you have the termination point in line 2

of the (Include) program "CL_ABAP_SWITCH================CM001".

I cannt greate the program in SE38.! can anybody help me?

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member220077
Participant
0 Kudos

Actually it's your shared pools, i would check IPC10 and 40 to make sure they are correct, run the sappfpar pf=profile check to make sure they are large enough or do it through rz10.

Late post incase somebody else has this issue

Former Member
0 Kudos

Hi David,

Thanks for the insight. Yesterday, I changed ipc/... values using a sappfpar check. Today, it seems that I underestimate the ipc10 size and I redirect also other keys to 10. I double the ipc/shm_psize_10 parameter.

For information :

Dump : READ_SWITCHSTATES_FAILED

Job : SAP_PERIODIC_ORACLE_SNAPSHOT

related OSS Note : 1392449

On my system, the Note is not applicable as I run a NW04s system 7.0 SP18.

Detailed log from dev_wp19 (enqueue process) :

A RFC Method> initialize RemObjDriver for ABAP Objects

I *** ERROR => Shared Pool disturbed. Pool=10 Key=30 [shmux.c 2434]

M *** ERROR => ThrCreateShObjects: ShmCreate failed (1) [thxxrun1.c 341]

M *** ERROR => ThrInitRunTime: ThrCreateShObjects failed (1) [thxxrun1.c 202]

M *** ERROR => ThrInitRunTime failed (1) [thxxext.c 885]

M ***LOG R19=> ThInit, ThStartUp2 ( RUNT 000001) [thxxhead.c 1857]

M in_ThErrHandle: 1

M *** ERROR => ThInit: ThStartUp2 (step 1, th_errno 5, action 3, level 1) [thxxhead.c 10524]

M

-


Edited by: bcappez on Nov 20, 2009 2:32 PM :

Tests done : it was the ipc/shm_psize_10 too small and some keys redirection too (30, 5* and 62).

Hope it helps someone else.

Former Member
0 Kudos

Error:

1) A lock collision occurred when requesting the enqueue lock "E_ABAP_SWTSTATE". This enqueue lock is currently helb by user " " with enqueue owner ID " ".

(2) The enqueue server rejects the enqueue request for the enqueue lock "E_ABAP_SWTSTATE" with the internal error code 8. Check any existing enqueue server entries in the developer trace."

I would check SM12 to see if there are any stale locks.