cancel
Showing results for 
Search instead for 
Did you mean: 

sap is not connecting after database restore

Former Member
0 Kudos

Hello

I have restored offline backup on different SID machine, database is opened, but the SAP is not connecting to database,

database is oracle with windows 2003 server

regards

Baikerikar

Accepted Solutions (0)

Answers (7)

Answers (7)

JPReyes
Active Contributor
0 Kudos

I have restored offline backup on different SID machine, database is opened, but the SAP is not connecting to database

No surprises here.

Regards

Juan

Former Member
0 Kudos

Hi,

As per your message you have restored the database of one SID in another SID right? If thats the case then you need to the post-activity like creating the new control file as per my knowledge for the SAP to start. ( The process you followed is like a system copy and do the post-activities as per the system copy guide which you can find at https://websmp204.sap-ag.de/instguides).

Regards,

Sharath

Former Member
0 Kudos

Hi,

Have u completed the post restore activities like creating control file, recreating the OPS$ user and all ? If not please complete those activities and then try to start SAP.

I guess this [SAP Note|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=400241] will be helpful for you.

Executing R3trans -d will also help u to identify where the problem is. Execute R3trans -x and then post the trans.log here.

Regards,

Varadharajan M

Former Member
0 Kudos

4 ETW000 r3trans version 6.09 (release 640 - 26.10.04 - 15:45:42).

4 ETW000 ===============================================

4 ETW000

4 ETW000 date&time : 07.10.2010 - 09:38:16

4 ETW000 control file: <no ctrlfile>

4 ETW000 R3trans was called as follows: r3trans -d

4 ETW000 trace at level 2 opened for a given file pointer

4 ETW000 [dev trc ,00000] Thu Oct 07 09:38:18 2010 12333 0.012333

4 ETW000 [dev trc ,00000] db_con_init called 28 0.012361

4 ETW000 [dev trc ,00000] create_con (con_name=R/3) 47 0.012408

4 ETW000 [dev trc ,00000] Loading DB library 'dboraslib.dll' ... 33 0.012441

4 ETW000 [dev trc ,00000] load shared library (dboraslib.dll), hdl 0 55786 0.068227

4 ETW000 [dev trc ,00000] using "D:\usr\sap\GSB\SYS\exe\run\dboraslib.dll"

4 ETW000 38 0.068265

4 ETW000 [dev trc ,00000] Library 'dboraslib.dll' loaded 21 0.068286

4 ETW000 [dev trc ,00000] function DbSlExpFuns loaded from library dboraslib.dll

4 ETW000 21 0.068307

4 ETW000 [dev trc ,00000] Version of 'dboraslib.dll' is "640.00", patchlevel (0.39)

4 ETW000 21304 0.089611

4 ETW000 [dev trc ,00000] function dsql_db_init loaded from library dboraslib.dll

4 ETW000 28 0.089639

4 ETW000 [dev trc ,00000] function dbdd_exp_funs loaded from library dboraslib.dll

4 ETW000 41 0.089680

4 ETW000 [dev trc ,00000] New connection 0 created 24 0.089704

4 ETW000 [dev trc ,00000] 0: name = R/3, con_id = -000000001 state = DISCONNECTED, perm = YES, reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO

4 ETW000 27 0.089731

4 ETW000 [dev trc ,00000] db_con_connect (con_name=R/3) 24 0.089755

4 ETW000 [dev trc ,00000] find_con_by_name found the following connection for reuse:

4 ETW000 21 0.089776

4 ETW000 [dev trc ,00000] 0: name = R/3, con_id = 000000000 state = DISCONNECTED, perm = YES, reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO

4 ETW000 24 0.089800

4 ETW000 [dev trc ,00000] Got ORACLE_HOME=D:\oracle\ora92 from environment

4 ETW000 5942 0.095742

4 ETW000 [dev trc ,00000] -->oci_initialize 6299 0.102041

4 ETW000 [dev trc ,00000] Client NLS settings: AMERICAN_AMERICA.WE8DEC 47823 0.149864

4 ETW000 [dev trc ,00000] Logon as OPS$-user to get SAPSOL's password 52 0.149916

4 ETW000 [dev trc ,00000] Connecting as /@SOL on connection 0 ... 16 0.149932

4 ETW000 [dev trc ,00000] Allocating service context handle 11429 0.161361

4 ETW000 [dev trc ,00000] Allocating server context handle 23 0.161384

4 ETW000 [dev trc ,00000] Attaching to DB Server SOL (con_hdl=0,svchp=02232E6C,svrhp=0037BBE4)

4 ETW000 60 0.161444

4 ETW000 [dev trc ,00000] Thu Oct 07 09:38:23 2010 4573181 4.734625

4 ETW000 [dboci.c ,00000] *** ERROR => OCI-call 'OCIServerAttach' failed: rc = 12154

4 ETW000 33 4.734658

4 ETW000 [dbsloci. ,00000] *** ERROR => CONNECT failed with sql error '12154'

4 ETW000 91 4.734749

4 ETW000 [dev trc ,00000] Try to connect with default password 22 4.734771

4 ETW000 [dev trc ,00000] Connecting as SAPSOL/<pwd>@SOL on connection 0 ...

4 ETW000 21 4.734792

4 ETW000 [dev trc ,00000] server_detach(con_hdl=0,stale=0,svrhp=0037BBE4) 21 4.734813

4 ETW000 [dev trc ,00000] Detaching from DB Server (con_hdl=0,svchp=02232E6C,srvhp=0037BBE4)

4 ETW000 22 4.734835

4 ETW000 [dev trc ,00000] Deallocating server context handle 0037BBE4 19 4.734854

4 ETW000 [dev trc ,00000] Allocating server context handle 22 4.734876

4 ETW000 [dev trc ,00000] Attaching to DB Server SOL (con_hdl=0,svchp=02232E6C,svrhp=0037BBE4)

4 ETW000 39 4.734915

4 ETW000 [dev trc ,00000] Thu Oct 07 09:38:27 2010 4502546 9.237461

4 ETW000 [dboci.c ,00000] *** ERROR => OCI-call 'OCIServerAttach' failed: rc = 12154

4 ETW000 34 9.237495

4 ETW000 [dbsloci. ,00000] *** ERROR => CONNECT failed with sql error '12154'

4 ETW000 24 9.237519

4 ETW000 [dblink ,00419] ***LOG BY2=>sql error 12154 performing CON [dblink#1 @ 419]

4 ETW000 20375 9.257894

4 ETW000 [dblink ,00419] ***LOG BY0=>ORA-12154: TNS:could not resolve service name [dblink#1 @ 419]

4 ETW000 30 9.257924

2EETW169 no connect possible: "DBMS = ORACLE --- dbs_ora_tnsname = 'SOL'"

Former Member
0 Kudos

Follow Note 443867 - ORA-12154 Collective SAP note

Former Member
0 Kudos

hi

i want to know which SID should be use

restored form SID "SOL", on system which having SID is "GSB"

in database control file is created and now database is in opened stage,

Former Member
0 Kudos

Hi,

We would suggest you to read system copy guide or refer some good links for performing system copy using DB backup/restore method

http://www.saptechies.com/system-copy-guides/

Regards,

Former Member
0 Kudos

Hi,

As mentioned by Gagan, going through the system copy guides and specifially the database dependent part would help solving the issues.

Please go through the guides and complete the post processing and then try to start ur SAP.

Regards,

Varadharajan M

paul_power
Active Contributor
0 Kudos

Hi,

Check if any issues starting the db on its own. If not, run R3trans -d and check the contents of the trans.log that gets generated. Also checkthe latest files to be updated in your work directory.

Regards,

Paul

Former Member
0 Kudos

Hi,

What an error message are you getting after startup the server in MMC?

Regards,

Sagar

Former Member
0 Kudos

Check the connectivity with R3trans -dx and find the root cause in tran.log and dev_w0 trc file.

Paste the ERROR lines from above logs, Only if you couldn't understand.

Regards,

Nick Loy

Former Member
0 Kudos

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

-


Wed Oct 06 13:57:56 2010

kernel runs with dp version 128(ext=102) (@(#) DPLIB-INT-VERSION-128)

length of sys_adm_ext is 312 bytes

systemid 560 (PC with Windows NT)

relno 6400

patchlevel 0

patchno 43

intno 20020600

make: multithreaded, ASCII

pid 2772

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

shared lib "dw_xml.dll" version 43 successfully loaded

shared lib "dw_xtc.dll" version 43 successfully loaded

shared lib "dw_stl.dll" version 43 successfully loaded

shared lib "dw_gui.dll" version 43 successfully loaded

Wed Oct 06 13:58:01 2010

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

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

MtxInit: -2 0 0

DpSysAdmExtInit: ABAP is active

DpSysAdmExtInit: JAVA is not active

DpShMCreate: sizeof(wp_adm) 6624 (828)

DpShMCreate: sizeof(tm_adm) 2219848 (11044)

DpShMCreate: sizeof(wp_ca_adm) 18000 (60)

DpShMCreate: sizeof(appc_ca_adm) 6000 (60)

DpShMCreate: sizeof(comm_adm) 192000 (384)

DpShMCreate: sizeof(vmc_adm) 0 (320)

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

DpShMCreate: SHM_DP_ADM_KEY (addr: 043B0040, size: 2505416)

DpShMCreate: allocated sys_adm at 043B0040

DpShMCreate: allocated wp_adm at 043B17A8

DpShMCreate: allocated tm_adm_list at 043B3188

DpShMCreate: allocated tm_adm at 043B31B0

DpShMCreate: allocated wp_ca_adm at 045D10F8

DpShMCreate: allocated appc_ca_adm at 045D5748

DpShMCreate: allocated comm_adm_list at 045D6EB8

DpShMCreate: allocated comm_adm at 045D6ED0

DpShMCreate: allocated vmc_adm_list at 04605CD0

DpShMCreate: system runs without vmc_adm

DpShMCreate: allocated ca_info at 04605CF8

DpShMCreate: allocated wall_adm at 04605D00

MBUF state OFF

EmInit: MmSetImplementation( 2 ).

<ES> client 0 initializing ....

<ES> InitFreeList

<ES> block size is 1024 kByte.

Using implementation flat

<EsNT> Memory Reset disabled as NT default

<ES> 762 blocks reserved for free list.

ES initialized.

rdisp/http_min_wait_dia_wp : 1 -> 1

***LOG Q0K=> DpMsAttach, mscon ( test_solman) [dpxxdisp.c 9736]

Wed Oct 06 13:58:02 2010

CCMS: Initalizing shared memory of size 40000000 for 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 43

Release check o.K.

Wed Oct 06 13:58:41 2010

      • ERROR => W0 (pid 3080) died [dpxxdisp.c 12187]

      • ERROR => W1 (pid 3156) died [dpxxdisp.c 12187]

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

      • ERROR => W2 (pid 3152) died [dpxxdisp.c 12187]

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

      • ERROR => W3 (pid 3168) died [dpxxdisp.c 12187]

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

      • ERROR => W4 (pid 3112) died [dpxxdisp.c 12187]

      • ERROR => W5 (pid 3120) died [dpxxdisp.c 12187]

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

      • ERROR => W6 (pid 3128) died [dpxxdisp.c 12187]

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

      • ERROR => W7 (pid 3136) died [dpxxdisp.c 12187]

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-3080 (SIGUSR2)

      • ERROR => DpWpKill(3080, SIGUSR2) failed [dpxxtool.c 2468]

killing W1-3156 (SIGUSR2)

      • ERROR => DpWpKill(3156, SIGUSR2) failed [dpxxtool.c 2468]

killing W2-3152 (SIGUSR2)

      • ERROR => DpWpKill(3152, SIGUSR2) failed [dpxxtool.c 2468]

killing W3-3168 (SIGUSR2)

      • ERROR => DpWpKill(3168, SIGUSR2) failed [dpxxtool.c 2468]

killing W4-3112 (SIGUSR2)

      • ERROR => DpWpKill(3112, SIGUSR2) failed [dpxxtool.c 2468]

killing W5-3120 (SIGUSR2)

      • ERROR => DpWpKill(3120, SIGUSR2) failed [dpxxtool.c 2468]

killing W6-3128 (SIGUSR2)

      • ERROR => DpWpKill(3128, SIGUSR2) failed [dpxxtool.c 2468]

killing W7-3136 (SIGUSR2)

      • ERROR => DpWpKill(3136, SIGUSR2) failed [dpxxtool.c 2468]

NiWait: sleep (10000 msecs) ...

NiISelect: timeout 10000 ms

NiISelect: maximum fd=1593

NiISelect: read-mask is NULL

NiISelect: write-mask is NULL

Wed Oct 06 13:58:51 2010

NiISelect: TIMEOUT occured (10000 ms)

dump system status

Workprocess Table (long) Wed Oct 06 08:28:51 2010

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

No Ty. Pid Status Cause Start Err Sem CPU Time Program Cl User Action Table

-


0 DIA 3080 Ended no 1 0 0

1 DIA 3156 Ended no 1 0 0

2 UPD 3152 Ended no 1 0 0

3 ENQ 3168 Ended no 1 0 0

4 BTC 3112 Ended no 1 0 0

5 BTC 3120 Ended no 1 0 0

6 SPO 3128 Ended no 1 0 0

7 UP2 3136 Ended no 1 0 0

Dispatcher Queue Statistics Wed Oct 06 08:28:51 2010

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

--------


+
+

+

+
--


+

Typ

now

high

max

writes

reads

--------


+
+

+

+
--


+

NOWP

0

3

2000

10

10

--------


+
+

+

+
--


+

DIA

5

5

2000

5

0

--------


+
+

+

+
--


+

UPD

0

0

2000

0

0

--------


+
+

+

+
--


+

ENQ

0

0

2000

0

0

--------


+
+

+

+
--


+

BTC

0

0

2000

0

0

--------


+
+

+

+
--


+

SPO

0

0

2000

0

0

--------


+
+

+

+
--


+

UP2

0

0

2000

0

0

--------


+
+

+

+
--


+

max_rq_id 13

wake_evt_udp_now 0

wake events total 9, udp 8 ( 88%), shm 1 ( 11%)

since last update total 9, udp 8 ( 88%), shm 1 ( 11%)

Dump of tm_adm structure: Wed Oct 06 08:28:51 2010

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

Term uid man user term lastop mod wp ta a/i (modes)

Workprocess Comm. Area Blocks Wed Oct 06 08:28:51 2010

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

Slots: 300, Used: 1, Max: 0

--------


+
+
--


+

id

owner

pid

eyecatcher

--------


+
+
--


+

0

DISPATCHER

-1

WPCAAD000

NiWait: sleep (5000 msecs) ...

NiISelect: timeout 5000 ms

NiISelect: maximum fd=1593

NiISelect: read-mask is NULL

NiISelect: write-mask is NULL

Wed Oct 06 13:58:56 2010

NiISelect: TIMEOUT occured (5000 ms)

Shutdown server ...

DpJ2eeDisableRestart

DpModState: buffer in state MBUF_PREPARED

NiBufSend starting

NiIWrite: write 110, 1 packs, MESG_IO, hdl 3, data complete

MsINiWrite: sent 110 bytes

MsIModState: change state to SHUTDOWN

DpModState: change server state from STARTING to SHUTDOWN

Switch off Shared memory profiling

ShmProtect( 57, 3 )

ShmProtect(SHM_PROFILE, SHM_PROT_RW

ShmProtect( 57, 1 )

ShmProtect(SHM_PROFILE, SHM_PROT_RD

DpWakeUpWps: wake up all wp's

Stop work processes...

Stop gateway

killing process (3064) (SOFT_KILL)

Stop icman

killing process (3072) (SOFT_KILL)

Terminate gui connections

[DpProcDied] Process lives (PID:3064 HANDLE:1564)

waiting for termination of gateway

NiWait: sleep (1000 msecs) ...

NiISelect: timeout 1000 ms

NiISelect: maximum fd=1593

NiISelect: read-mask is NULL

NiISelect: write-mask is NULL

Wed Oct 06 13:58:57 2010

NiISelect: TIMEOUT occured (1000 ms)

[DpProcDied] Process died (PID:3064 HANDLE:1564)

[DpProcDied] Process died (PID:3072 HANDLE:1556)

DpHalt: cancel all lcom connections

MPI CancelAll 2 -> 0

MPI DeleteAll 2 -> 0

NiIMyHostName: hostname = 'test_solman'

AdGetSelfIdentRecord: > <

AdCvtRecToExt: opcode 60 (AD_SELFIDENT), ser 0, ex 0, errno 0

AdCvtRecToExt: opcode 4 (AD_STARTSTOP), ser 0, ex 0, errno 0

DpConvertRequest: net size = 163 bytes

NiBufSend starting

NiIWrite: write 562, 1 packs, MESG_IO, hdl 3, data complete

MsINiWrite: sent 562 bytes

send msg (len 110+452) to name -, type 4, key -

detach from message server

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

NiBufSend starting

NiIWrite: write 110, 1 packs, MESG_IO, hdl 3, data complete

MsINiWrite: sent 110 bytes

MsIDetach: send logout to msg_server

MsIDetach: call exit function

DpMsShutdownHook called

NiSelClear: removed hdl 3 from selectset

MBUF state OFF

AdGetSelfIdentRecord: > <

AdCvtRecToExt: opcode 60 (AD_SELFIDENT), ser 0, ex 0, errno 0

AdCvtRecToExt: opcode 40 (AD_MSBUF), ser 0, ex 0, errno 0

AdCvtRecToExt: opcode 40 (AD_MSBUF), ser 0, ex 0, errno 0

blks_in_queue/wp_ca_blk_no/wp_max_no = 1/300/8

LOCK WP ca_blk 1

make DISP owner of wp_ca_blk 1

DpRqPutIntoQueue: put request into queue (reqtype 1, prio LOW, rq_id 19)

MBUF component DOWN

NiBufClose: clear extensions for hdl 3

NiBufSetStat: bufstat of hdl 3 changed from OK to OFF

NiICloseHandle: shutdown and close hdl 3 / socket 1572

MsIDetach: detach MS-system

EsCleanup ....

Wed Oct 06 13:58:58 2010

***LOG Q05=> DpHalt, DPStop ( 2772) [dpxxdisp.c 8495]

Good Bye .....

Former Member
0 Kudos

Hi Baikerikar,

Make sure the listener is up and running. Post the contents of dev_disp.

Regards

Sourabh Majumdar