cancel
Showing results for 
Search instead for 
Did you mean: 

*R/3 Basis System: Initialization DB-Connect Failed, Return Code 000256*

Former Member
0 Kudos

Hi,

can anyone tell me the file, where these user environment variables stores.

actually my system faced a lil crashed and all my variablre (Except TEMP and TMP) are gone from the User Environment Variable menu under My document as well as from the registry but the SAP MMC is working well.

can any one tell me from where i can reget or pls do let me provide these description so that i can reset them again.

Tahnks in Advance

i solved the above problem by using the Ora Envirinment file. but now the big problem is

R/3 Basis System: Initialization DB-Connect Failed, Return Code 000256

E:\>saplicense -show

        • SAPLICENSE (Release 620) ERROR ****

ERROR: Connect to database failed

DETAILS: DbSlConnect failed with return code 29

how to cope up with thsis??

my dev_disp file is.............................

====================================================================

-


trc file: "dev_disp", trc level: 1, release: "620"

-


Mon Feb 23 01:04:36 2015

systemid 560 (PC with Windows NT)

relno 6200

patchlevel 0

patchno 251

intno 20020600

pid 932

***LOG Q00=> DpSapEnvInit, DPStart (00 932) [dpxxdisp.c 966]

shared lib "dw_xml.dll" version 252 successfully loaded

shared lib "dw_xtc.dll" version 252 successfully loaded

shared lib "dw_stl.dll" version 252 successfully loaded

Mon Feb 23 01:04:45 2015

      • WARNING => DpNetCheck: NiAddrToHost(1.0.0.0) took 9 seconds

***LOG GZZ=> 1 possible network problems detected - check tracefile and adjust the DNS settings [dpxxtool2.c 3140]

MtxInit: -2 0 0

MBUF state OFF

EmInit: MmSetImplementation( 2 ).

<ES> client 0 initializing ....

<ES> InitFreeList

<ES> block size is 1024 kByte.

Using implementation std

<EsNT> Memory Reset enabled as NT default

<EsNT> EsIUnamFileMapInit: Initialize the memory 1222 MB

<ES> 1221 blocks reserved for free list.

ES initialized.

***LOG Q0K=> DpMsAttach, mscon ( god) [dpxxdisp.c 8832]

CCMS: Initalizing shared memory of size 20000000 for monitoring segment.

CCMS: start to initalize 3.X shared alert area (first segment).

DpMsgAdmin: Set release to 6200, patchlevel 0

MBUF state PREPARED

MBUF component UP

DpMBufHwIdSet: set Hardware-ID

***LOG Q1C=> DpMBufHwIdSet [dpxxmbuf.c 940]

DpMsgAdmin: Set patchno for this platform to 251

Release check o.K.

Mon Feb 23 01:05:25 2015

      • ERROR => W0 (pid 2084) died [dpxxdisp.c 11210]

      • ERROR => W1 (pid 1992) died [dpxxdisp.c 11210]

      • ERROR => W2 (pid 2780) died [dpxxdisp.c 11210]

      • ERROR => W3 (pid 3096) died [dpxxdisp.c 11210]

      • ERROR => W4 (pid 2428) died [dpxxdisp.c 11210]

      • ERROR => W5 (pid 2396) died [dpxxdisp.c 11210]

      • ERROR => W6 (pid 1168) died [dpxxdisp.c 11210]

      • ERROR => W7 (pid 3032) died [dpxxdisp.c 11210]

      • ERROR => W8 (pid 2284) died [dpxxdisp.c 11210]

      • ERROR => W9 (pid 2316) died [dpxxdisp.c 11210]

      • ERROR => W10 (pid 2312) died [dpxxdisp.c 11210]

      • ERROR => W11 (pid 2736) died [dpxxdisp.c 11210]

      • ERROR => W12 (pid 2880) died [dpxxdisp.c 11210]

      • ERROR => W13 (pid 2348) died [dpxxdisp.c 11210]

      • ERROR => W14 (pid 2460) died [dpxxdisp.c 11210]

      • ERROR => W15 (pid 2748) died [dpxxdisp.c 11210]

      • ERROR => W16 (pid 2104) died [dpxxdisp.c 11210]

my types changed after wp death/restart 0xbf --> 0x80

      • DP_FATAL_ERROR => DpEnvCheck: no more work processes

      • DISPATCHER EMERGENCY SHUTDOWN ***

      • ERROR => DpMBufRead: state MBUF_PREPARED, opmode MBUF_USE [dpxxmbuf.c 503]

      • ERROR => DpModState: DpMBufRead failed (-1) [dpxxdisp.c 13129]

Mon Feb 23 01:05:35 2015

***LOG Q0M=> DpMsDetach, ms_detach () [dpxxdisp.c 9058]

MBUF state OFF

MBUF component DOWN

***LOG Q05=> DpHalt, DPStop ( 932) [dpxxdisp.c 7637]

==========================================================

Abhishek

Abhishek

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Abhishek,

Please go for the kernel upgrade,

Rohit

former_member204746
Active Contributor
0 Kudos

here are my environmeent variables for my TST system:

ALLUSERSPROFILE=C:\Documents and Settings\All Users

APPDATA=C:\Documents and Settings\tstadm\Application Data

ClusterLog=C:\WINDOWS\Cluster\cluster.log

CommonProgramFiles=C:\Program Files\Common Files

CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files

COMPUTERNAME=TSTSERVER

ComSpec=C:\WINDOWS\system32\cmd.exe

DBMS_TYPE=ORA

DBS_ORA_SCHEMA=SAPR3

dbs_ora_tnsname=TST

HOMEPATH=\Documents and Settings\tstadm

JAVA_HOME=C:\j2sdk1.4.2_14-x64

NLS_LANG=AMERICAN_AMERICA.WE8DEC

NUMBER_OF_PROCESSORS=4

ORACLE_HOME=d:\oracle\tst\102

ORACLE_SID=TST

OS=Windows_NT

Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\j2sdk1.4.2_14-x64\bi

n;D:\usr\sap\TST\SYS\exe\run;D:\oracle\TST\102\bin

PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.sh;.ksh;.csh;.sed;.awk

;.pl

PERL5LIB=D:\oracle\SR3\102\perl\5.8.3\lib\MSWin32-X64-multi-thread;D:\oracle\SR3

\102\perl\5.8.3\lib;D:\oracle\SR3\102\perl\5.8.3\lib\MSWin32-X64-multi-thread;D:

\oracle\SR3\102\perl\site\5.8.3;D:\oracle\SR3\102\perl\site\5.8.3\lib;D:\oracle\

SR3\102\sysman\admin\scripts

ProgramFiles=C:\Program Files

ProgramFiles(x86)=C:\Program Files (x86)

SAPDATA_HOME=d:\oracle\TST

SAPLOCALHOST=TSTSERVER

SESSIONNAME=RDP-Tcp#1

SystemDrive=C:

SystemRoot=C:\WINDOWS

TEMP=C:\WINDOWS\TEMP

TMP=C:\WINDOWS\TEMP

TMPDIR=C:/WINDOWS/TEMP

TNS_ADMIN=
TSTSERVER\sapmnt\TST\SYS\profile\oracle

USERNAME=tstadm

USERPROFILE=C:\Documents and Settings\tstadm

windir=C:\WINDOWS

Good luck.

Answers (3)

Answers (3)

former_member603052
Contributor
0 Kudos

Hey Abhishek,

Post the dev_w0 log.

Regards,

Kalyan

Former Member
0 Kudos

dev_w0 ...........

==========================================================

-


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

-


*

  • ACTIVE TRACE LEVEL 1

  • ACTIVE TRACE COMPONENTS all, M

*

B

B Mon Feb 23 05:20:45 2015

B create_con (con_name=R/3)

B Loading DB library 'H:\usr\sap\GOD\SYS\exe\run\dboraslib.dll' ...

B Library 'H:\usr\sap\GOD\SYS\exe\run\dboraslib.dll' loaded

B Version of 'H:\usr\sap\GOD\SYS\exe\run\dboraslib.dll' is "620.02", patchlevel (0.112)

B New connection 0 created

M systemid 560 (PC with Windows NT)

M relno 6200

M patchlevel 0

M patchno 251

M intno 20020600

M pid 2280

M

A RFC Destination> destination god_GOD_00 host god system GOD systnr 0 (god_GOD_00)

A RFC Options> H=god,S=00

A RFC rfc/signon_error_log = -1

A RFC rfc/dump_connection_info = 0

A RFC rfc/dump_client_info = 0

A RFC rfc/cp_convert/ignore_error = 1

A RFC rfc/cp_convert/conversion_char = 23

A RFC rfc/wan_compress/threshold = 251

A RFC rfc/recorder_pcs not set, use defaule value: 1

A RFC Method> initialize RemObjDriver for ABAP Objects

N SsfSapSecin: putenv(SECUDIR=H:\usr\sap\GOD\DVEBMGS00\sec): ok

N SsfSapSecin: PSE H:\usr\sap\GOD\DVEBMGS00\sec\SAPSYS.pse found!

N

N =================================================

N === SSF INITIALIZATION:

N ===...SSF Security Toolkit name SAPSECULIB .

N ===...SSF trace level is 0 .

N ===...SSF library is H:\usr\sap\GOD\SYS\exe\run\sapsecu.dll .

N ===...SSF hash algorithm is SHA1 .

N ===...SSF symmetric encryption algorithm is DES-CBC .

N ===...sucessfully completed.

N =================================================

N MskiInitLogonTicketCacheHandle: Logon Ticket cache pointer retrieved from shared memory.

N MskiInitLogonTicketCacheHandle: Workprocess runs with Logon Ticket cache.

M MBUF info for hooks: MS component UP

M ThSetEnqName: set enqname by profile

M ThISetEnqname: enq name = >god_GOD_00 <

E

E *************** EnqId_EN_ActionAtMsUpHook ***************

E Hook on upcoming Ms (with EnqSrv), get auth EnqId and check it locally

E Enqueue Info: enque/disable_replication = 2

E Enqueue Info: replication disabled

E

E *************** ObjShMem_CheckAuthoritativeEnqId ***************

E Checking authoritative EnqId from EnqSrv into ObjShMem

E ObjShMem_CheckAuthoritativeEnqId: ObjShMem ...

E EnqId.EnqTabCreaTime = -999

E EnqId.RandomNumber = -999

E ReqOrd.TimeInSecs = -999

E ReqOrd.ReqNumberThisSec = -999

E ObjShMem_CheckAuthoritativeEnqId: ObjShMem ...

E EnqId.EnqTabCreaTime = -999

E EnqId.RandomNumber = -999

E ReqOrd.TimeInSecs = -999

E ReqOrd.ReqNumberThisSec = -999

E ObjShMem_CheckAuthoritativeEnqId: EnqId is initial in ShMem

E ObjShMem_CheckAuthoritativeEnqId: Overwrite incoming auth EnqId, continue

E EnqId inscribed into initial ObjShMem: (ObjShMem_CheckAuthoritativeEnqId)

E -SHMEM--


E EnqId: EnqTabCreaTime/RandomNumber = 23.02.2015 05:20:51 1424649051 / 2280

E ReqOrd at Srv: TimeInSecs/ReqNumberThisSec = 23.02.2015 05:20:51 1424649051 / 2

E ReqOrd at Cli: TimeInSecs/ReqNumberThisSec = 23.02.2015 05:20:51 1424649051 / 1

E Status: STATUS_OK

E -


M ThActivateServer: state = STARTING

A TH VERBOSE LEVEL FULL

M ***LOG R68=> ThIRollBack, roll back () [thxxhead.c 10885]

A

A ** RABAX: level LEV_SN_C_STACK failed.

A Mon Feb 23 05:20:51 2015

A

A ABAP/4 Program ????????????????????????????????????????.

A Source Line 0.

A Error Code LOAD_PROGRAM_NOT_FOUND.

A Module $Id: //bas/620/src/krn/runt/abload1.c#2 $ SAP.

A Function newload Line 549.

A Program SAPMSSY2 not found..

A

M ***LOG R68=> ThIRollBack, roll back () [thxxhead.c 10885]

Y

Y Mon Feb 23 05:20:55 2015

Y *** ERROR => dynpro not found: SAPMHTTP 0010 [dynpabsv.c 4293]

A TH VERBOSE LEVEL SHORT

M ***LOG R68=> ThIRollBack, roll back () [thxxhead.c 10885]

A Mon Feb 23 05:20:55 2015

A

A ABAP/4 Program ????????????????????????????????????????.

A Source Line 0.

A Error Code DYNPRO_NOT_FOUND.

A Module $Id: //bas/620/src/krn/dynp/dybas.c#5 $ SAP.

A Function dyrdyp.c Line 563.

I MPI<4>1#5 Peak buffer usage: 3 (@ 64 KB)

Y

Y Mon Feb 23 05:20:59 2015

Y *** ERROR => dynpro not found: SAPMHTTP 0010 [dynpabsv.c 4293]

A TH VERBOSE LEVEL SHORT

M ***LOG R68=> ThIRollBack, roll back () [thxxhead.c 10885]

A Mon Feb 23 05:20:59 2015

A

A ABAP/4 Program ????????????????????????????????????????.

A Source Line 0.

A Error Code DYNPRO_NOT_FOUND.

A Module $Id: //bas/620/src/krn/dynp/dybas.c#5 $ SAP.

A Function dyrdyp.c Line 563.

A

A Mon Feb 23 05:21:02 2015

A TH VERBOSE LEVEL FULL

M ***LOG R68=> ThIRollBack, roll back () [thxxhead.c 10885]

A Mon Feb 23 05:21:02 2015

A

A ABAP/4 Program ????????????????????????????????????????.

A Source Line 0.

A Error Code LOAD_PROGRAM_NOT_FOUND.

A Module $Id: //bas/620/src/krn/runt/abload1.c#2 $ SAP.

A Function newload Line 549.

A Program SAPMSSY6 not found..

A

M ***LOG R68=> ThIRollBack, roll back () [thxxhead.c 10885]

A

A Mon Feb 23 05:21:04 2015

A TH VERBOSE LEVEL FULL

M ***LOG R68=> ThIRollBack, roll back () [thxxhead.c 10885]

A Mon Feb 23 05:21:04 2015

A

A ABAP/4 Program ????????????????????????????????????????.

A Source Line 0.

A Error Code LOAD_PROGRAM_NOT_FOUND.

A Module $Id: //bas/620/src/krn/runt/abload1.c#2 $ SAP.

A Function newload Line 549.

A Program SAPMSSY1 not found..

A

M ***LOG R68=> ThIRollBack, roll back () [thxxhead.c 10885]

Y

Y Mon Feb 23 05:21:16 2015

Y *** ERROR => dynpro not found: SAPMSYST 0020 [dynpabsv.c 4293]

A TH VERBOSE LEVEL FULL

M ***LOG R68=> ThIRollBack, roll back () [thxxhead.c 10885]

A Mon Feb 23 05:21:16 2015

A

A ABAP/4 Program ????????????????????????????????????????.

A Source Line 0.

A Error Code DYNPRO_NOT_FOUND.

A Module $Id: //bas/620/src/krn/dynp/dybas.c#5 $ SAP.

A Function dyrdyp.c Line 563.

A Screen does not exist.

A

A TH VERBOSE LEVEL FULL

M ***LOG R68=> ThIRollBack, roll back () [thxxhead.c 10885]

A

A ** RABAX: level LEV_SN_C_STACK failed.

A Mon Feb 23 05:21:16 2015

A

A ABAP/4 Program ????????????????????????????????????????.

A Source Line 0.

A Error Code LOAD_PROGRAM_NOT_FOUND.

A Module $Id: //bas/620/src/krn/runt/abload1.c#2 $ SAP.

A Function newload Line 549.

A Program SAPMS380 not found..

A

M ***LOG R68=> ThIRollBack, roll back () [thxxhead.c 10885]

A TH VERBOSE LEVEL FULL

M ***LOG R68=> ThIRollBack, roll back () [thxxhead.c 10885]

A

A ** RABAX: level LEV_SN_C_STACK failed.

A Mon Feb 23 05:21:16 2015

A

A ABAP/4 Program ????????????????????????????????????????.

A Source Line 0.

A Error Code LOAD_PROGRAM_NOT_FOUND.

A Module $Id: //bas/620/src/krn/runt/abload1.c#2 $ SAP.

A Function newload Line 549.

M *** ERROR => caught error LOAD_PROGRAM_NOT_FOUND: Program SAPLSMPI not found. [dynpabsv.c 253]

A

A Mon Feb 23 05:21:47 2015

A TH VERBOSE LEVEL FULL

M ***LOG R68=> ThIRollBack, roll back () [thxxhead.c 10885]

A Mon Feb 23 05:21:47 2015

A

A ABAP/4 Program ????????????????????????????????????????.

A Source Line 0.

A Error Code LOAD_PROGRAM_NOT_FOUND.

A Module $Id: //bas/620/src/krn/runt/abload1.c#2 $ SAP.

A Function newload Line 549.

A Program SAPMSSY1 not found..

A

M ***LOG R68=> ThIRollBack, roll back () [thxxhead.c 10885]

A

A Mon Feb 23 05:24:24 2015

A TH VERBOSE LEVEL FULL

M ***LOG R68=> ThIRollBack, roll back () [thxxhead.c 10885]

A Mon Feb 23 05:24:24 2015

A

A ABAP/4 Program ????????????????????????????????????????.

A Source Line 0.

A Error Code LOAD_PROGRAM_NOT_FOUND.

A Module $Id: //bas/620/src/krn/runt/abload1.c#2 $ SAP.

A Function newload Line 549.

A Program SAPMSSY1 not found..

A

M ***LOG R68=> ThIRollBack, roll back () [thxxhead.c 10885]

Y

Y Mon Feb 23 05:24:30 2015

Y *** ERROR => dynpro not found: SAPMSYST 0020 [dynpabsv.c 4293]

A TH VERBOSE LEVEL FULL

M ***LOG R68=> ThIRollBack, roll back () [thxxhead.c 10885]

A Mon Feb 23 05:24:30 2015

A

A ABAP/4 Program ????????????????????????????????????????.

A Source Line 0.

A Error Code DYNPRO_NOT_FOUND.

A Module $Id: //bas/620/src/krn/dynp/dybas.c#5 $ SAP.

A Function dyrdyp.c Line 563.

A Screen does not exist.

A

A TH VERBOSE LEVEL FULL

M ***LOG R68=> ThIRollBack, roll back () [thxxhead.c 10885]

A

A ** RABAX: level LEV_SN_C_STACK failed.

A Mon Feb 23 05:24:30 2015

A

A ABAP/4 Program ????????????????????????????????????????.

A Source Line 0.

A Error Code LOAD_PROGRAM_NOT_FOUND.

A Module $Id: //bas/620/src/krn/runt/abload1.c#2 $ SAP.

A Function newload Line 549.

A Program SAPMS380 not found..

A

M ***LOG R68=> ThIRollBack, roll back () [thxxhead.c 10885]

A TH VERBOSE LEVEL FULL

M ***LOG R68=> ThIRollBack, roll back () [thxxhead.c 10885]

A

A ** RABAX: level LEV_SN_C_STACK failed.

A Mon Feb 23 05:24:30 2015

A

A ABAP/4 Program ????????????????????????????????????????.

A Source Line 0.

A Error Code LOAD_PROGRAM_NOT_FOUND.

A Module $Id: //bas/620/src/krn/runt/abload1.c#2 $ SAP.

A Function newload Line 549.

M *** ERROR => caught error LOAD_PROGRAM_NOT_FOUND: Program SAPLSMPI not found. [dynpabsv.c 253]

M

M Mon Feb 23 05:25:27 2015

M in_ThErrHandle: 1

M ThIErrHandle: I'm during shutdown

M Entering ThSetStatError

M ThIErrHandle: don't try rollback again

M ThIErrHandle: normal shutdown

M Entering ThReadDetachMode

M call ThrShutDown (1)...

B Disconnecting from ALL connections:

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

B 000 000 R/3 000000000 INACTIVE NO YES NO 20150223 052049 GOD

C Disconnecting from connection 0 ...

C Closing user session (con_hdl=0,svchp=08819E84,usrhp=088236D4)

C Detaching from DB Server (con_hdl=0,svchp=08819E84,srvhp=0881AAD4)

C Now I'm disconnected from ORACLE

B Disconnected from connection 0

B statistics db_con_commit (com_total=61, com_tx=25)

B statistics db_con_rollback (roll_total=25, roll_tx=9)

M ***LOG Q02=> wp_halt, WPStop (Workproc 0 2280) [dpnttool.c 345]

=============================================================

anothet error is .....

R/3 Basis System: Transaction Canceled SY 002 ( SQL error 932 occurred when accessing program SAPMSSY1 (SPAM)......how to handle this???

between what these erors in Dev_W0 file..........

ABAP/4 Program ????????????????????????????????????????.

A Source Line 0.

A Error Code LOAD_PROGRAM_NOT_FOUND.

==========================================================

A ABAP/4 Program ????????????????????????????????????????.

A Source Line 0.

A Error Code DYNPRO_NOT_FOUND.

==============================================

Former Member
0 Kudos

Hello abhishek,

For the environmental variables in windows go as below

1) right click on my computer and then go in properties

2) click on advance

3) at the bottom you will find the enviormental variable tab

Here you can change all the env parameters of the SAP.

So please try to check all the ENV parameters as well as if you have any other system try to compare and add all requisite parameters.

Regards,

Ramkrishna

Former Member
0 Kudos

Hi Abhishek,

Execute R3trans -d, This will generate a log file trans.log

Check that log file for database connection errors and post

Also why dont u try installing temporary license from OS and then start SAP,if it is successful u can install permanent later.

Regards