Quantcast
Channel: SCN : All Content - SAP NetWeaver Application Server
Viewing all articles
Browse latest Browse all 2997

Environment variable SECUDIR with multiple instances on a host LINUX

$
0
0

Hello,

 

I have an ERP 6 EHP6 (NW 7.31) system on Linux OS and need to configure SECUDIR environment variable for SNC.

 

On our installation we have multiple SAP instances on two hosts: host1 and host2. The SAP instances are placed as follows:

 

host1: DVEBMGS00, D01, D02

host2: D03, D04

 

To set the SECUDIR environment variable I've checked the SAP Note 1827566 - How to set environment variables for SAP system?and it says there are two ways of setting the environment variables.

 

1.- on operating system level

  • Set environment variable on operating system level for the <sid>adm user

 

I configure the SECUDIR variable on the .sapenv.(c)sh or .profile of the <sid>adm but the problem is that configuring the SECUDIR variable on the profile file of the operating system user <sid>adm, I can only configure 1 directory for "sec" directory, and I have more than 1 instances per host.

 

On host1:

     SECUDIR=/usr/sap/<SID>/DVEBMGS00/sec

     SECUDIR=/usr/sap/<SID>/D01/sec

     SECUDIR=/usr/sap/<SID>/D02/sec

 

and on host2:

     SECUDIR=/usr/sap/<SID>/D03/sec

     SECUDIR=/usr/sap/<SID>/D04/sec

 

I cannot configure the variable for the directory of each of the SAP instances (DVEBMGS00, D01, D02 (host1) / D03, D04 (host2)) at the same time.

 

I start the sap services (sapstartsrv) and if y run sapcontrol:

sapcontrol -nr 00 -function GetEnvironment

 

I get the same value for SECUDIR for all the instances. The one configured on the .profile file:

SECUDIR=/usr/sap/<SID>/DVEBMGS00/sec

 

But each instance has it's own "sec" directory.

 

 

2.- The second way of configuring environment variables mentioned in SAP Note 1827566

  • Set environment variable in startup profile

 

Add entries in start (up to 710) or instance profile (as of 710 no start profile exists)  in this form

SETENV_xx = SECUDIR=/usr/sap/BCS/D03/sec

 

After setting the variable in the START profile (I've also tried on instance profile) I stop the SAP services (sapstartsrv) processes and start them again, but the command sapontrol:

sapcontrol -nr 00 -function GetEnvironment

does not return the SECUDIR variable and thus the SAP Instances are not able to start as the SNC is configured and the system does not know where to find the .pse files.

 

 

I tried configuring the SECUDIR variable for a common "sec" directory of the <sid>adm user, ie. /home/<sid>adm/sec

and SECUDIR=/home/<sid>adm/sec but when I go to transaction STRUST the path of the .pse credentials are stored in /usr/sap/<SID>/<INSTANCE>/sec and I've configured SECUDIR=/home/<sid>adm/sec.

 

 

In my opinion the best approach is setting environment variable in startup profile instead of the .profile or .sapenv_<hostname>.(c)sh of the <sid>adm user. But it doesn't seam to work.

 

 

Any idea on how to configure SECUDIR environment variable for multiple SAP instances on a host, and maintaining the "sec" directory of each instance?

 

 

Thanks for the support.

Kind regards.


Viewing all articles
Browse latest Browse all 2997

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>