cancel
Showing results for 
Search instead for 
Did you mean: 

Error planning Oracle jobs with DB13 in a distributed installation

Former Member
0 Kudos

Hello, dear experts.

Jobs, scheduling with DB13 not working.

Help me please understand how to configure job scheduling for the Oracle database in DB13 with SSH.

I have distributed installation SAP NW 7.40 SPS11:

sapdbscs - DB + ASCS

sapapp1 - PAS

sapapp2 - DI

Log of job in DB13:

Job started

Step 001 started (program RSDBAJOB, variant & 0000000000002, user ID ADMIN)

No application server found on database host - rsh / gateway will be used

Execution of the logical command BRCONNECT on host sapdbscs

SXPG_STEP_XPG_START: is_local_host: rc = 403

SXPG_STEP_XPG_START: host = sapdbscs

SXPG_STEP_XPG_START: is_local_r3_host: rc = 802

SXPG_STEP_XPG_START: RFC_TCPIP_CONNECTION_OPEN: rc = 1003

SXPG_STEP_COMMAND_START: SXPG_STEP_XPG_START returned: 1.003

SXPG_COMMAND_EXECUTE (LONG)

<timestamp> = 20151207170311

COMMANDNAME = BRCONNECT

ADDITIONAL_PARAMETERS = -jid CHECK20151207170230 -u / -c -f check

LONG_PARAMS

OPERATINGSYSTEM = ANYOS

TARGETSYSTEM = sapdbscs

DESTINATION

SY-SUBRC = 1003

SXPG_COMMAND_EXECUTE failed for BRCONNECT - Reason: program_start_error: see SYSLOG for additional information

Job cancelled after system exception ERROR_MESSAGE

I read the note:

446172 - SXPG_COMMAND_EXECUTE (program_start_error) in DB13

980266 - RFC destination SAPXPG_DBDEST_ <DB-HOST> does not work

1974030 - How to configure DB13 to work with a standalone Oracle database in Unix Linux

I configured SSH with authorization keys for user <sid>adm:

from sapapp1 to sapdbscs

from sapapp2 to sapdbscs

command ssh sapdbscs -l <sid>adm sapxpg is executed without error

I added in instances profiles the following parameters:

gw/acl_mode      0

gw/remsh          /usr/bin/ssh

gw/netstat_once 0

gw/rem_start      SSH_SHELL

Settings in RFC SAPXPG_DBDEST_SAPDBSCS:

Program: sapxpg

Target Host: sapdbscs

Start Type of External Program: Secure Shell

Gateway Options is clear

Test connection for RFC SAPXPG_DBDEST_SAPDBSCS error occurs:

LOCATION SAP-Gateway on host sapapp2 / sapgw02

ERROR timeout during allocate

TIME Tue Dec 8 11:44:59 2015

RELEASE 742

COMPONENT SAP-Gateway

VERSION 2

RC 242

MODULE /bas/742_REL/src/krn/si/gw/gwr3cpic.c

LINE 2181

DETAIL no connect of TP sapxpg from host sapdbscs after 20 sec

COUNTER 140

RFC 1710 CONVID 73,460,107

* CMRC = 27 DATA = 0 STATUS = 0 SAPRC = 242 ThSAPOCMINIT

RFC> ABAP Programm: RSRFCPIN (Transaction: SM59)

RFC> User: ADMIN (Client: 001)

RFC> Destination: SAPXPG_DBDEST_SAPDBSCS (handle: 2, DtConId: 5665D80EAE9320E5E10000000ACB81C5, DtConCnt: 0, ConvId:,)

TH VERBOSE LEVEL FULL

** RABAX: end RX_GET_MESSAGE

I don't understand why it used Gateway, because the note 1974030 said:

Make sure there are no gateway options set for that destination.

... If no settings for that, remote shell will be used

Help me please to configure planning in DB13 through SSH and without using Gateway.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dear colleagues!

Problem was solved without installing a standalone gateway on DB host.

I was guided by note 1025707 - DBA Cockpit Planning Calendar and remote Oracle databases

I have error in log of local gateway (dev_rd):

Host key verification failed

My problem was short FQDN name of DB host in RFC connection SAPXPG_DBDEST_<DBHOST_NAME>

After specify the full DB hostname and change parameter Start Type of External Program to Secure Shell (Gateway Optinons must be empty), all tasks in DB13 run successfully.

Actually, I realized that you can connect in DB13 any Oracle DB without having to install SAP gateway on DB host.

I hope this information will help someone.

Thanks to all.

Answers (3)

Answers (3)

Former Member
0 Kudos
0 Kudos

Hi Dmitriy,

If you configured the SAPXPG_DBDEST_SAPDBSCS for ssh, then ssh should be used and no standalone gateway is needed for sure (standalone gateway would be an alternative method).

Could you restart the gateway (sapapp2 / sapgw02) or the whole instance to make sure gateway knows of the of the correct parameter values and then retest the RFC ?

Regards, Péter Mihálffy

0 Kudos

Hello Dmitry,

I have realized that the gateway configuration is wrong.

gw/ssh defines the call path of the secure shell and

gw/remsh defines the call path of the remote shell.


You told that ssh is working, then I think you should set

gw/ssh = /usr/bin/ssh for the gateway.

According to the documentation this parameter is not dynamically switchable, so I am afraid you

really have to do a restart after that.

Best Regards, Péter Mihálffy

Former Member
0 Kudos

Have you checked SYSLOG for relevant messages?

former_member227283
Active Contributor
0 Kudos

Hi,

As you are running DB and ASCS on same node. Then in this case in RFC, put the details of ASCS server i.e hostname of ASCS and port number as 33<nn> (here nn should be replaced by instance no of ASCS.

Save the RFC and test the connection.

Settings in RFC SAPXPG_DBDEST_SAPDBSCS:

Program: sapxpg

Target Host: sapdbscs

Start Type of External Program: Secure Shell

Gateway Options is clear

Regards,

Anil

Former Member
0 Kudos

Hi Anil,

thanks for the answer.

I set parameters:

Gateway Host: sapdbscs

Gateway Service: 3300

But test connection was in error:

Connection Error

Error when opening an RFC connection (CPIC-CALL: 'ThSAPOCMINIT', communication r

ERROR: SAP gateway connection failed. Is SAP gateway started?

LOCATION: SAP-Server sapapp2_SID_02 on host sapapp2 (wp 4)

COMPONENT: CPIC

COUNTER: 27

MODULE:

LINE:

RETURN CODE: 236

SUBRC: 0

RELEASE: 742

TIME: Tue Dec  8 14:31:30 2015

VERSION:

I think that on the host sapdbscs is not running gateway.

There's only Message Server and ERS. And Oracle

former_member227283
Active Contributor
0 Kudos

Hello,

Oh.. then in that case you have to install standalone gatewey service on database server, to perform the remote database backup scheduling through DB13

Regards,

Anil

Message was edited by: Anil Bhandary