Skip to Content

I make this post, because when I install a java stack, I wonder me how to schedule dba job on it. There is no DB13 or DBAcokpit transaction… so I found this solution.

1.  Prerequisite :

  • A Solman ( or ABAP instance with DBACOKPIT transaction) named PS5 in our case
  • A Java Instance known of solman named PJ1 in our case.

2.  Link DB JAVA instance to  ABAP STACK

a.  Solman CASE

The dbco is created when you do Manage system configuration

/wp-content/uploads/2013/07/image001_247813.png

The DBCO to DB of java instance is created in step 4 :

/wp-content/uploads/2013/07/image003_247856.png

Pay attention:

  • if you use user who is not the owner of the SAP schema, you will miss some functionality in DBAcokpit (like SQL editor).
  • Instance must be defined in tnsnames of sap user (by default /sapmnt/<SID>/profile/oracle/tnsnames.ora, or path is defined in env variable TNS_ADMIN)

b.  Other CASE

Transaction DBACOKPIT:

System Configuration,

/wp-content/uploads/2013/07/image006_247857.jpg

Add:

/wp-content/uploads/2013/07/image006_247857.jpg

/wp-content/uploads/2013/07/image008_247858.jpg

/wp-content/uploads/2013/07/image010_247866.jpg

Pay attention:

  • if you use user who is not the owner of the SAP schema, you will miss some functionality in DBAcokpit (like SQL editor).
  • Instance must be defined in tnsnames of sap user (by default /sapmnt/<SID>/profile/oracle/tnsnames.ora, or path is defined in env variable TNS_ADMIN)

3.  Maintain ssh connection with ssh key between ABAP server and Java server

In Solman server, at os level as <sid>adm generate key pair :

Sapps5:ps5adm 52> ssh-keygen  -t rsa

Generating public/private rsa key pair.

Enter file in which to save the key (/home/ps5adm/.ssh/id_rsa):

Enter passphrase (empty for no passphrase):

Enter same passphrase again:

Your identification has been saved in / home/ps5adm /.ssh/id_rsa.

Your public key has been saved in / home/ps5adm /.ssh/id_rsa.pub.

The key fingerprint is:

99:a6:d8:38:5b:c2:e4:05:27:a7:06:c6:33:d0:b9:1f psadm@sapps5

The key’s randomart image is:

+–[ RSA 2048]—-+

|.. .             |

| oo              |

|  *.o o          |

| ..+E*   o       |

|   .+.. S        |

|   =.= o         |

|    B +          |

|     =           |

|    . |

+—————–+

Copy content of /home/ps5adm /.ssh/id_rsa.pub in file $HOME/.ssh/authorized_keys of pj1adm in server of java instance.

4.  Create RFC CONNECTION

Transaction SM59 :

/wp-content/uploads/2013/07/image012_247867.jpg

/wp-content/uploads/2013/07/image014_247868.jpg

Create or modify RF connection (name is SAPXPG_DBDEST_<hostname of DB server>):

The important point is start type of external program : is must be Secure shell.

Test it :

/wp-content/uploads/2013/07/image016_247869.jpg

5.  Schedules jobs :

So now, you will be able to schedule DBA job on java instance from you solution manager with DBA cockpit :

Select you instance :

/wp-content/uploads/2013/07/image018_247870.jpg

In DBA Planning calendar schedule your job

/wp-content/uploads/2013/07/image020_247871.jpg

When your jobs are finished, you can have a look on log:

/wp-content/uploads/2013/07/image022_247872.jpg

/wp-content/uploads/2013/07/image024_247873.jpg/wp-content/uploads/2013/07/image026_247874.jpg

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply