cancel
Showing results for 
Search instead for 
Did you mean: 

startsap r3 failed on distributed ERP2005 on DB6/AIX

Former Member
0 Kudos

I'm trying to install a distributed SAP ERP 2005 SR2 on DB6/AIX

and I have use HACMP for high availiable

now,I have NODE A (visual hostname is prdapp) and NODE B( visual name is prddb)

if i move resouce both prdapp and prddb to the same one host,they can work well both.

but,if i distributed two node on to two host,eg:DI on host prddb,CI on host prdapp

I run startdb as sidadm on prddb,It can start normally

then i run "startsap r3" on prdapp,It will return errors as:

"remote database must be started first"

and I use "R3trans -x"

there is some errors

translog below:


4 ETW000 R3trans version 6.14 (release 700 - 15.06.07 - 15:50:00).
4 ETW000 unicode enabled version
4 ETW000 ===============================================
4 ETW000 
4 ETW000 date&time   : 27.10.2007 - 02:48:31
4 ETW000 control file: <no ctrlfile>
4 ETW000 R3trans was called as follows: R3trans -x
4 ETW000  trace at level 2 opened for a given file pointer
4 ETW000  [dev trc     ,00000]  Sat Oct 27 02:48:31 2007                              70  0.000070
4 ETW000  [dev trc     ,00000]  db_con_init called                                    26  0.000096
4 ETW000  [dev trc     ,00000]  create_con (con_name=R/3)                             45  0.000141
4 ETW000  [dev trc     ,00000]  Loading DB library '/usr/sap/ERD/SYS/exe/run/dbdb6slib.o' ...
4 ETW000                                                                              62  0.000203
4 ETW000  [dev trc     ,00000]  load shared library (/usr/sap/ERD/SYS/exe/run/dbdb6slib.o), hdl 0
4 ETW000                                                                             872  0.001075
4 ETW000  [dev trc     ,00000]  Library '/usr/sap/ERD/SYS/exe/run/dbdb6slib.o' loaded
4 ETW000                                                                              40  0.001115
4 ETW000  [dev trc     ,00000]  function DbSlExpFuns loaded from library /usr/sap/ERD/SYS/exe/run/dbdb6slib.o
4 ETW000                                                                              48  0.001163
4 ETW000  [dev trc     ,00000]  Version of '/usr/sap/ERD/SYS/exe/run/dbdb6slib.o' is "700.08", patchlevel (0.110)
4 ETW000                                                                             289  0.001452
4 ETW000  [dev trc     ,00000]  function dsql_db_init loaded from library /usr/sap/ERD/SYS/exe/run/dbdb6slib.o
4 ETW000                                                                              44  0.001496
4 ETW000  [dev trc     ,00000]  function dbdd_exp_funs loaded from library /usr/sap/ERD/SYS/exe/run/dbdb6slib.o
4 ETW000                                                                              44  0.001540
4 ETW000  [dev trc     ,00000]  New connection 0 created                              30  0.001570
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                                                                              52  0.001622
4 ETW000  [dev trc     ,00000]  db_con_connect (con_name=R/3)                         44  0.001666
4 ETW000  [dev trc     ,00000]  find_con_by_name found the following connection for reuse:
4 ETW000                                                                              41  0.001707
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                                                                              48  0.001755
4 ETW000  [dev trc     ,00000]  DB2 library successfully loaded DB2 library '/db2/db2erd/sqllib/lib64/libdb2.a(shr_64.o)' successfully loaded
4 ETW000                                                                            8674  0.010429
4 ETW000  [dev trc     ,00000]  DB6 (DB2 UDB) UNICODE database interface 700.08 [opt]
4 ETW000                                                                              42  0.010471
4 ETW000  [dev trc     ,00000]  DB6 shared library (dbdb6slib) patchlevels            26  0.010497
4 ETW000  [dev trc     ,00000]    (0.8) DB6: V8.2.2 optguidelines in OPEN SQL (note 150037)
4 ETW000                                                                              43  0.010540
4 ETW000  [dev trc     ,00000]    (0.8) Support of SDBUPDEXCL (note 847616)           26  0.010566
4 ETW000  [dev trc     ,00000]    (0.9) DB6: use export file for dbdb6slib (note 835135)
4 ETW000                                                                              41  0.010607
4 ETW000  [dev trc     ,00000]    (0.9) DB6: Core in getAndBindSQLDA (note 833183)
4 ETW000                                                                              41  0.010648
4 ETW000  [dev trc     ,00000]    (0.10) DB6: link dbdb6slib.dll on windows with libdb6.obj (note 761159)
4 ETW000                                                                              52  0.010700
4 ETW000  [dev trc     ,00000]    (0.10) DB6: DUPLICATE_KEY on MERGE -> repeat (note 851474)
4 ETW000                                                                              41  0.010741
4 ETW000  [dev trc     ,00000]    (0.15) DB6: wrong CAST for short string ABAP type (note 861905)
4 ETW000                                                                              42  0.010783
4 ETW000  [dev trc     ,00000]    (0.17) DB6: special characters in sidadm passwd (note 865839)
4 ETW000                                                                              41  0.010824
4 ETW000  [dev trc     ,00000]    (0.21) DB6: no SAP_INFO comments (note 873889)
4 ETW000                                                                              41  0.010865
4 ETW000  [dev trc     ,00000]    (0.22) DB6: hints: get correlation names from view texts (note 868888)
4 ETW000                                                                              42  0.010907
4 ETW000  [dev trc     ,00000]    (0.23) DB6: hints: get correlation names from view texts (note 868888)
4 ETW000                                                                              42  0.010949
4 ETW000  [dev trc     ,00000]    (0.26) DB6: DB6_DBSL_CLP_COMMAND STRING_BAD_REF (note 883402)
4 ETW000                                                                              41  0.010990
4 ETW000  [dev trc     ,00000]    (0.27) DB6: activate value compression (note 886231)
4 ETW000                                                                              41  0.011031
4 ETW000  [dev trc     ,00000]    (0.28) DB6: optimization guidelines on views part 2 (note 868888)
4 ETW000                                                                              42  0.011073
4 ETW000  [dev trc     ,00000]    (0.30) DB6: no SQL trace for SQLCancel (note 892111)
4 ETW000                                                                              40  0.011113
4 ETW000  [dev trc     ,00000]    (0.33) DB6: append SAP_TA comment (note 873889)
4 ETW000                                                                              43  0.011156
4 ETW000  [dev trc     ,00000]    (0.34) DB6: activate value compression with quoted names (note 886231)
4 ETW000                                                                              42  0.011198
4 ETW000  [dev trc     ,00000]    (0.36) DB6: Repeat isolated DDL statements after SQL0911 (note 901338)
4 ETW000                                                                              43  0.011241
4 ETW000  [dev trc     ,00000]    (0.41) DB6: add V9 to list of supported DB2 releases (note 912386)
4 ETW000                                                                              42  0.011283
4 ETW000  [dev trc     ,00000]    (0.50) DB6: reread passwords for secondary connections (note 931742)
4 ETW000                                                                              42  0.011325
4 ETW000  [dev trc     ,00000]    (0.52) DB6: double quote table names in optguidelines (note 868888)
4 ETW000                                                                              42  0.011367
4 ETW000  [dev trc     ,00000]    (0.54) DB6: error handling in DBSL CLP (note 940260)
4 ETW000                                                                              40  0.011407
4 ETW000  [dev trc     ,00000]    (0.69) DB6: technical support of DB2 CLI driver (note 962892)
4 ETW000                                                                              42  0.011449
4 ETW000  [dev trc     ,00000]    (0.73) DB6: log table name on TRUNCATE failure (note 970743)
4 ETW000                                                                              41  0.011490
4 ETW000  [dev trc     ,00000]    (0.79) DB6: column type XML in index size calculation (note 982993)
4 ETW000                                                                              42  0.011532
4 ETW000  [dev trc     ,00000]    (0.82) DB6: CAST for SSTRING data types (note 989568)
4 ETW000                                                                              48  0.011580
4 ETW000  [dev trc     ,00000]    (0.86) DB6: long runtimes for R3szchk (note 1000847)
4 ETW000                                                                              40  0.011620
4 ETW000  [dev trc     ,00000]    (0.88) DB6: patch collection Dec 06 (note 1005574)
4 ETW000                                                                              41  0.011661
4 ETW000  [dev trc     ,00000]    (0.96) DB6: patch collection Jan 07 (note 1017852)
4 ETW000                                                                              41  0.011702
4 ETW000  [dev trc     ,00000]    (0.97) DB6: CLP commands with DB2 CLI Driver (note 1024102)
4 ETW000                                                                              41  0.011743
4 ETW000  [dev trc     ,00000]    (0.99) DB6: SUBSTITUTE VALUES with FAE statements (note 1028779)
4 ETW000                                                                              42  0.011785
4 ETW000  [dev trc     ,00000]    (0.107) DB6: patch collection Apr 07 (note 1047194)
4 ETW000                                                                              40  0.011825
4 ETW000  [dev trc     ,00000]    (0.110) DB6: SAP user names ending with non-ASCII char (note 1054555)
4 ETW000                                                                              42  0.011867
4 ETW000  [dev trc     ,00000]  Supported features:                                   25  0.011892
4 ETW000  [dev trc     ,00000]  ..retrieving configuration parameters                 25  0.011917
4 ETW000  [dev trc     ,00000]  ..done                                               122  0.012039
4 ETW000  [dev trc     ,00000]  Running with UTF-8 Unicode                            26  0.012065
4 ETW000  [dev trc     ,00000]  *** ERROR in DB6Connect[dbdb6.c, 1634] CON = 0 (BEGIN)
4 ETW000                                                                           23805  0.035782
4 ETW000  [dev trc     ,00000]  &+     DbSlConnectDB6( SQLConnect 😞 [IBM][CLI Driver] SQL1031N  The database directory
cannot be found on the indicated
4 ETW000                                                                              49  0.035831
4 ETW000  [dev trc     ,00000]  &+     file system.  SQLSTATE=58031

4 ETW000                                                                              46  0.035877
4 ETW000  [dev trc     ,00000]  &+

4 ETW000                                                                              47  0.035924
4 ETW000  [dev trc     ,00000]  &+

4 ETW000                                                                              47  0.035971
4 ETW000  [dev trc     ,00000]  &+

4 ETW000                                                                              47  0.036018
4 ETW000  [dev trc     ,00000]  *** ERROR in DB6Connect[dbdb6.c, 1634] (END)          26  0.036044
4 ETW000  [dbdb6.c     ,00000]  *** ERROR => DbSlConnect to 'ERD' as 'saperd' failed
4 ETW000                                                                              73  0.036117
2EETW169 no connect possible: "DBMS = DB6                              --- DB2DBDFT = 'ERD'"
#

does anyone could help me how to deal this error?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

yes

I have delete the database on prdapp server

and then catalog it again

so it works well

Former Member
0 Kudos

Hi,

in your case the relevant error message seems to be:

4 ETW000 [dev trc ,00000] &+ DbSlConnectDB6( SQLConnect 😞 [IBM][CLI Driver] SQL1031N The database directory

cannot be found on the indicated

4 ETW000 49 0.035831

4 ETW000 [dev trc ,00000] &+ file system. SQLSTATE=58031

If your app server is separate from db server, the app server requires a database instance with valid entries in the database directory, that the database can be found. In an SAP environment the app server uses the database instance that is installed as user db2<dbsid>. This is shared with the database server, if they are on the same host.

In your scenario, I would first check where the instance home directory /db2/db2<dbsid> resides, wenn app server and db server are separate. Then check on the app server, if you are able to issue db2 list db directory as <sapsid>adm. There need to be an entry for your database ERD.

With 7.00 and DB2 9, you can use a CLI driver setup to avoid these kind of problems. With DB2 Version 8 or < 7.00, it depends if you can share the /db2/db2<dbsid> directory on both hosts. If yes, you need do a recataloguing of your database as described in the SAP MSCS installation guide. If this is not possible, it get even more complex. Before we continue here, please check, if you run into the problem, I anticipated.

Regards, Jens