cancel
Showing results for 
Search instead for 
Did you mean: 

DB-Connect Failed, Return Code 008192

stephan_zehm
Explorer
0 Kudos

Hello,

I changed the hostname of our SAP System (not productiv). When I'm trying to start SAP the following message appears in the syslog:

SAP Basis System: Initialization DB-Connect Failed, Return Code 008192

SAP Basis System: Initialization DB-Connect Failed, Return Code 008192

The database is on the same host and running. Before I tried to start SAP I changed all the three profiles (start, default, etc.).

I "reregistered" the SAP Services and I also read SAPNote 8307.

Here is also a part of the dev_trace.

Mon Oct 19 13:51:48 2009

rdisp/http_min_wait_dia_wp : 1 -> 1

***LOG Q0K=> DpMsAttach, mscon ( moritz47) [dpxxdisp.c 10467]

DpStartStopMsg: send start message (myname is >moritz47_T11_00 <)

DpStartStopMsg: start msg sent

CCMS: AlInitGlobals : alert/use_sema_lock = TRUE.

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

CCMS: Checking Downtime Configuration of Monitoring Segment.

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

DpMsgAdmin: Set release to 6400, patchlevel 0

MBUF state PREPARED

MBUF component UP

DpMBufHwIdSet: set Hardware-ID

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

DpMsgAdmin: Set patchno for this platform to 247

Release check o.K.

Mon Oct 19 13:52:28 2009

      • ERROR => W0 (pid 1804) died [dpxxdisp.c 13050]

      • ERROR => W1 (pid 704) died [dpxxdisp.c 13050]

      • ERROR => W2 (pid 1752) died [dpxxdisp.c 13050]

      • ERROR => W3 (pid 492) died [dpxxdisp.c 13050]

      • ERROR => W4 (pid 624) died [dpxxdisp.c 13050]

      • ERROR => W5 (pid 1800) died [dpxxdisp.c 13050]

      • ERROR => W6 (pid 3472) died [dpxxdisp.c 13050]

      • ERROR => W7 (pid 4052) died [dpxxdisp.c 13050]

      • ERROR => W8 (pid 1860) died [dpxxdisp.c 13050]

      • ERROR => W9 (pid 3620) died [dpxxdisp.c 13050]

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

      • ERROR => W10 (pid 3240) died [dpxxdisp.c 13050]

      • ERROR => W11 (pid 1912) died [dpxxdisp.c 13050]

my types changed after wp death/restart 0xbe --> 0xbc

      • ERROR => W12 (pid 1904) died [dpxxdisp.c 13050]

my types changed after wp death/restart 0xbc --> 0xb8

      • ERROR => W13 (pid 1592) died [dpxxdisp.c 13050]

      • ERROR => W14 (pid 2692) died [dpxxdisp.c 13050]

      • ERROR => W15 (pid 1208) died [dpxxdisp.c 13050]

      • ERROR => W16 (pid 1588) died [dpxxdisp.c 13050]

my types changed after wp death/restart 0xb8 --> 0xb0

      • ERROR => W17 (pid 2352) died [dpxxdisp.c 13050]

my types changed after wp death/restart 0xb0 --> 0xa0

      • ERROR => W18 (pid 1664) died [dpxxdisp.c 13050]

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

      • DP_FATAL_ERROR => DpWPCheck: no more work processes

      • DISPATCHER EMERGENCY SHUTDOWN ***

increase tracelevel of WPs

killing W0-1804 (SIGUSR2)

      • ERROR => DpWpKill(1804, SIGUSR2) failed [dpxxtool.c 2508]

killing W1-704 (SIGUSR2)

      • ERROR => DpWpKill(704, SIGUSR2) failed [dpxxtool.c 2508]

killing W2-1752 (SIGUSR2)

      • ERROR => DpWpKill(1752, SIGUSR2) failed [dpxxtool.c 2508]

killing W3-492 (SIGUSR2)

      • ERROR => DpWpKill(492, SIGUSR2) failed [dpxxtool.c 2508]

killing W4-624 (SIGUSR2)

      • ERROR => DpWpKill(624, SIGUSR2) failed [dpxxtool.c 2508]

killing W5-1800 (SIGUSR2)

      • ERROR => DpWpKill(1800, SIGUSR2) failed [dpxxtool.c 2508]

killing W6-3472 (SIGUSR2)

      • ERROR => DpWpKill(3472, SIGUSR2) failed [dpxxtool.c 2508]

killing W7-4052 (SIGUSR2)

      • ERROR => DpWpKill(4052, SIGUSR2) failed [dpxxtool.c 2508]

killing W8-1860 (SIGUSR2)

      • ERROR => DpWpKill(1860, SIGUSR2) failed [dpxxtool.c 2508]

killing W9-3620 (SIGUSR2)

      • ERROR => DpWpKill(3620, SIGUSR2) failed [dpxxtool.c 2508]

killing W10-3240 (SIGUSR2)

      • ERROR => DpWpKill(3240, SIGUSR2) failed [dpxxtool.c 2508]

killing W11-1912 (SIGUSR2)

      • ERROR => DpWpKill(1912, SIGUSR2) failed [dpxxtool.c 2508]

killing W12-1904 (SIGUSR2)

      • ERROR => DpWpKill(1904, SIGUSR2) failed [dpxxtool.c 2508]

killing W13-1592 (SIGUSR2)

      • ERROR => DpWpKill(1592, SIGUSR2) failed [dpxxtool.c 2508]

killing W14-2692 (SIGUSR2)

      • ERROR => DpWpKill(2692, SIGUSR2) failed [dpxxtool.c 2508]

killing W15-1208 (SIGUSR2)

      • ERROR => DpWpKill(1208, SIGUSR2) failed [dpxxtool.c 2508]

killing W16-1588 (SIGUSR2)

      • ERROR => DpWpKill(1588, SIGUSR2) failed [dpxxtool.c 2508]

killing W17-2352 (SIGUSR2)

      • ERROR => DpWpKill(2352, SIGUSR2) failed [dpxxtool.c 2508]

killing W18-1664 (SIGUSR2)

      • ERROR => DpWpKill(1664, SIGUSR2) failed [dpxxtool.c 2508]

NiWait: sleep (10000 msecs) ...

NiISelect: timeout 10000 ms

NiISelect: maximum fd=1549

NiISelect: read-mask is NULL

NiISelect: write-mask is NULL

Mon Oct 19 13:52:38 2009

NiISelect: TIMEOUT occured (10000 ms)

dump system status

Thank you.

Regards

Stephan

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello,

I only changed the hostname. The SID is the same.

Yes, I adapted the profiles. I changed the old hostname into the new hostname.

Stephan

markus_doehr2
Active Contributor
0 Kudos

And you also adapted the users if this is local installation?

The user SAPservice<SID> has missing environment variables.

Markus

stephan_zehm
Explorer
0 Kudos

This is not a local installation.

Missing environment variables?

Stephan

markus_doehr2
Active Contributor
0 Kudos

Yes. The system can't be started because the user SAPService<SID> doesn't know which database library to load because the environment variable dbms_type is not set --> your system doesn't start.

Changing the hostname is a non-supported task and should only be done by doing a homogeneous system copy. This is especially true on Windows where not only classical filesystem permissions are used but real ACLs on the shares, files and registry keys which get invalidated if you change the hostname.

Check the environment of the user by using regedit and

HKU\S-1<youruserID>\Environment

Markus

stephan_zehm
Explorer
0 Kudos

Hi,

I checked the environment of the user and there were no entries.

I made the entries and now I think the database library could be loaded.

But now there's the next problem. Here you can look at the new dev_w0.

-


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

-


*

  • ACTIVE TRACE LEVEL 1

  • ACTIVE TRACE COMPONENTS all, M

*

B

B Tue Oct 20 15:52:10 2009

B create_con (con_name=R/3)

B Loading DB library 'D:\usr\sap\T11\SYS\exe\run\dbadaslib.dll' ...

B Library 'D:\usr\sap\T11\SYS\exe\run\dbadaslib.dll' loaded

B Version of 'D:\usr\sap\T11\SYS\exe\run\dbadaslib.dll' is "640.00", patchlevel (0.242)

B New connection 0 created

M sysno 00

M sid T11

M systemid 560 (PC with Windows NT)

M relno 6400

M patchlevel 0

M patchno 247

M intno 20020600

M make: multithreaded, ASCII

M pid 3860

M

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

I MtxInit: -2 0 0

M DpSysAdmExtCreate: ABAP is active

M

M Tue Oct 20 15:52:11 2009

M DpShMCreate: sizeof(wp_adm) 18320 (964)

M DpShMCreate: sizeof(tm_adm) 2379840 (11840)

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 (364)

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

M DpShMCreate: SHM_DP_ADM_KEY (addr: 056B0040, size: 2677152)

M DpShMCreate: allocated sys_adm at 056B0040

M DpShMCreate: allocated wp_adm at 056B17D8

M DpShMCreate: allocated tm_adm_list at 056B5F68

M DpShMCreate: allocated tm_adm at 056B5F90

M DpShMCreate: allocated wp_ca_adm at 058FAFD0

M DpShMCreate: allocated appc_ca_adm at 058FF620

M DpShMCreate: allocated comm_adm_list at 05900D90

M DpShMCreate: allocated comm_adm at 05900DA8

M DpShMCreate: allocated vmc_adm_list at 0592FBA8

M DpShMCreate: system runs without vmc_adm

M DpShMCreate: allocated ca_info at 0592FBD0

M DpShMCreate: allocated wall_adm at 0592FBD8

M ThTaskStatus: rdisp/reset_online_during_debug 0

X EmInit: MmSetImplementation( 2 ).

X <ES> client 0 initializing ....

X Using implementation flat

M <EsNT> Memory Reset disabled as NT default

X ES initialized.

M

M Tue Oct 20 15:52:12 2009

M calling db_connect ...

C

C DBSDBSLIB : version 640.00, patch 0.242 (Make PL 0.247)

C MAXDB shared library (dbsdbslib) patchlevels (last 10)

C (0.242) Support DB-Type 'SAP DB' by UPDSTAT (note 1225668)

C (0.235) 640 EXT-2 MaxDB DBSL for SCM (note 1168961)

C (0.231) Do not trace password of SQLOPT into dev trace (note 1097930)

C (0.231) Performance optimization for UPDSTAT PREPARE (note 1096387)

C (0.231) No truncation warnings with tracelevel 1 (note 1164122)

C (0.226) Crash in DbUpdateStatistics (note 1154924)

C (0.212) Return DS_SQLERR instead of DS_CONNECTERR (note 1121076)

C (0.205) Support of MaxDB 7.6 (note 1100615)

C (0.202) Protocol performance after update statistic (note 1095575)

C (0.120) SAPDB precompiler 7.4.3 b42 (note 850826)

C

C

C Loading SQLDBC client runtime ...

C SQLDBC SDK Version : SQLDBC.H 7.6.0 BUILD 002-121-083-965

C SQLDBC Library Version : libSQLDBC 7.6.5 BUILD 015-123-202-938

C SQLDBC client runtime is MaxDB 7.6.5.015 CL 202938

C SQLDBC supports new DECIMAL interface : 0

C SQLDBC supports VARIABLE INPUT data : 1

C SQLDBC supports keepAlive indicator : 0

C INFO : SQLOPT= -I 0 -t 0 -S SAPR3

C Try to connect (DEFAULT) on connection 0 ...

C *** ERROR => Connect to database failed, rc = -10757 (XUSER error (the USERKEY is unknown))

[dbsdbsql.cpp 113]

C Try to connect (SQLOPT) on connection 0 ...

C *** ERROR => Connect to database failed, rc = -10709 (Connection failed (RTE:Database name is missing))

[dbsdbsql.cpp 137]

B ***LOG BV3=> severe db error -10709 ; work process is stopped [dbsh#3 @ 1199] [dbsh 1199 ]

B ***LOG BY2=> sql error -10709 performing CON [dblink#3 @ 428] [dblink 0428 ]

B ***LOG BY0=> Connection failed (RTE:Database name is missing) [dblink#3 @ 428] [dblink 0428 ]

M ***LOG R19=> tskh_init, db_connect ( DB-Connect 000256) [thxxhead.c 1283]

M in_ThErrHandle: 1

M *** ERROR => tskh_init: db_connect (step 1, th_errno 13, action 3, level 1) [thxxhead.c 9708]

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 moritz47_T11_00 on host moritz47 (wp 0)

M * ERROR tskh_init: db_connect

M *

M * TIME Tue Oct 20 15:52:12 2009

M * RELEASE 640

M * COMPONENT Taskhandler

M * VERSION 1

M * RC 13

M * MODULE thxxhead.c

M * LINE 9893

M * COUNTER 1

M *

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

M

M PfStatDisconnect: disconnect statistics

M Entering TH_CALLHOOKS

M ThCallHooks: call hook >ThrSaveSPAFields< for event BEFORE_DUMP

M *** ERROR => ThrSaveSPAFields: no valid thr_wpadm [thxxrun1.c 730]

M *** ERROR => ThCallHooks: event handler ThrSaveSPAFields for event BEFORE_DUMP failed [thxxtool3.c 255]

M Entering ThSetStatError

M Entering ThReadDetachMode

M call ThrShutDown (1)...

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

Stephan

markus_doehr2
Active Contributor
0 Kudos

> C Try to connect (DEFAULT) on connection 0 ...

> C *** ERROR => Connect to database failed, rc = -10757 (XUSER error (the USERKEY is unknown))

> [dbsdbsql.cpp 113]

As I said before, all the user environment is missing. The .XUSER62 entries, that are used to connect to the database are also not there since basically this is a copy of just the database files and the kernel.

You can get this to run but it's pretty tedious, all the stuff that sapinst does when you do a system copy must be done now manually, they are not documented.

You would now need to

- enable SAPService<SID> to logon interactively

- logon as user SAPService<SID>

- create the xuser entries (xuser -U DEFAULT -u .... -d .... -n .... set and also for the key "c" and "w")

- give the user the permissions to "logon as batch job", "lock pages in memory", "act as part of operating system"

- set the environment variables (SAPSYSTEMNAME etc.)

- do the same for user <SID>adm

- adapt permissions on the filesystem and the registry keys

Markus

stephan_zehm
Explorer
0 Kudos

Hey,

now I tried it with installing a new SAP System with sapinst and after that installing a new database instance and backup recovery. Everything on the new host.

Now the SAP System is running!!!

Thank you for your help!

Stephan

stephan_zehm
Explorer
0 Kudos

Hello,

here is dv_w0.

-


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

-


*

  • ACTIVE TRACE LEVEL 1

  • ACTIVE TRACE COMPONENTS all, M

*

B

B Mon Oct 19 13:51:48 2009

B create_con (con_name=R/3)

B *** ERROR => Invalid profile parameter dbms/type (or environment variable dbms_type) = <undef>, cannot load DB library

[dbcon.c 4489]

M sysno 00

M sid T11

M systemid 560 (PC with Windows NT)

M relno 6400

M patchlevel 0

M patchno 247

M intno 20020600

M make: multithreaded, ASCII

M pid 1804

M

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

I MtxInit: -2 0 0

M DpSysAdmExtCreate: ABAP is active

M DpShMCreate: sizeof(wp_adm) 18320 (964)

M DpShMCreate: sizeof(tm_adm) 2379840 (11840)

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 (364)

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

M DpShMCreate: SHM_DP_ADM_KEY (addr: 06980040, size: 2677152)

M DpShMCreate: allocated sys_adm at 06980040

M DpShMCreate: allocated wp_adm at 069817D8

M DpShMCreate: allocated tm_adm_list at 06985F68

M DpShMCreate: allocated tm_adm at 06985F90

M DpShMCreate: allocated wp_ca_adm at 06BCAFD0

M DpShMCreate: allocated appc_ca_adm at 06BCF620

M DpShMCreate: allocated comm_adm_list at 06BD0D90

M DpShMCreate: allocated comm_adm at 06BD0DA8

M DpShMCreate: allocated vmc_adm_list at 06BFFBA8

M DpShMCreate: system runs without vmc_adm

M DpShMCreate: allocated ca_info at 06BFFBD0

M DpShMCreate: allocated wall_adm at 06BFFBD8

M ThTaskStatus: rdisp/reset_online_during_debug 0

X EmInit: MmSetImplementation( 2 ).

X <ES> client 0 initializing ....

X Using implementation flat

M <EsNT> Memory Reset disabled as NT default

X ES initialized.

M

M Mon Oct 19 13:51:50 2009

M calling db_connect ...

B create_con (con_name=R/3)

B *** ERROR => Invalid profile parameter dbms/type (or environment variable dbms_type) = <undef>, cannot load DB library

[dbcon.c 4489]

M ***LOG R19=> tskh_init, db_connect ( DB-Connect 008192) [thxxhead.c 1283]

M in_ThErrHandle: 1

M *** ERROR => tskh_init: db_connect (step 1, th_errno 13, action 3, level 1) [thxxhead.c 9708]

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 moritz47_T11_00 on host moritz47 (wp 0)

M * ERROR tskh_init: db_connect

M *

M * TIME Mon Oct 19 13:51:50 2009

M * RELEASE 640

M * COMPONENT Taskhandler

M * VERSION 1

M * RC 13

M * MODULE thxxhead.c

M * LINE 9893

M * COUNTER 1

M *

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

M

M PfStatDisconnect: disconnect statistics

M Entering TH_CALLHOOKS

M ThCallHooks: call hook >ThrSaveSPAFields< for event BEFORE_DUMP

M *** ERROR => ThrSaveSPAFields: no valid thr_wpadm [thxxrun1.c 730]

M *** ERROR => ThCallHooks: event handler ThrSaveSPAFields for event BEFORE_DUMP failed [thxxtool3.c 255]

M Entering ThSetStatError

M Entering ThReadDetachMode

M call ThrShutDown (1)...

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

Thanks

markus_doehr2
Active Contributor
0 Kudos

> B *** ERROR => Invalid profile parameter dbms/type (or environment variable dbms_type) = <undef>, cannot load DB library

Did you just change the hostname or also the SID? Did you adapt the profiles?

Markus

markus_doehr2
Active Contributor
0 Kudos

> SAP Basis System: Initialization DB-Connect Failed, Return Code 008192

> SAP Basis System: Initialization DB-Connect Failed, Return Code 008192

Please post dev_w0

Markus