cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Services started twice

Former Member
0 Kudos

I have made copy from:

EHP3 SCM 7.0 (MSSQL/MAXDB/WIN64) to EHP3 SCM 7.0 (ORACLE/MAXDB/AIX7.1)

When we configured profiles we faced with next troubles:

Initial our instance profile names <SID>_APO_DVEBMGS00_lpar2. But when we copied system, we create profile <SID>_DVEBMGS00_LPAR2.

For AIX ..lpar2 and ..LPAR2 is the different files. And if we delete on of this files system cannot start.

And when it starts sap, we can see, that all services are "twiced".

Any body knows how to:

1. Configure only one profile.

2. Delete twiced services.

Accepted Solutions (1)

Accepted Solutions (1)

isaias_freitas
Advisor
Advisor
0 Kudos

Hello,

Check the contents of the "/usr/sap/sapservices" file, and remove any duplicate entries.

Then:

  1. Stop all running sapstartsrv processes (sapcontrol -nr $$ -function StopService);
  2. Remove all files from "/usr/sap/<SID>/SYS/global/sapcontrol";
  3. Ensure that both profiles ("lpar2" and "LPAR2" have the same parameters / values;
  4. Collect the output of "hostname" (e.g., either "lpar2" or "LPAR2");
  5. Remove the profile that is NOT equal to the output of step 4;
  6. Start the sapstartsrv processes again (sapcontrol -nr $$ -function StartService <SID>).

Cheers,

Isaías

Former Member
0 Kudos

When i'm trying to execute step 6 i got next error:

Even if i try to start this service under user apoadm.

isaias_freitas
Advisor
Advisor
0 Kudos

Were you logged on as "apoadm"?

Former Member
0 Kudos

APO it is a SID, so apoadm is a instance user.

isaias_freitas
Advisor
Advisor
0 Kudos

"apoadm" is an operating system level user

you need to be logged on as "apoadm" to have access to all sapcontrol functions

Former Member
0 Kudos

yes, i logged on as apoadm and got the same arrer message.

Former Member
0 Kudos

I manually executed:

./sapstartsrv pf=... /APO_ASCS01_lpar2 -D -u apoadm

and

./sapstartsrv pf=... /APO_DVEBMGS00_lpar2 -D -u apoadm

Its started OK.

So, instance 01 started with no problems:

But instance 00 cannot start:

What do u think about it?

isaias_freitas
Advisor
Advisor
0 Kudos

Please share the dev_disp, dev_w0, dev_rd and dev_icm trace files.

Former Member
0 Kudos

dev_disp renamed to dev_disp.txt

dev_disp.new renamed to dev_disp.new.txt

dev_icm renamed to dev_icm.txt

Former Member
0 Kudos

dev_rd renamed to dev_rd.txt

dev_w0 renamed to dev_w0.txt

I manually set environment varyable $LIBPATH and manually start IGS. Its OK, but disp+work is still down.

Former Member
0 Kudos

When i try to start sapinit, i got previous error with apoadm user:

Answers (2)

Answers (2)

Former Member
0 Kudos

Problem solved.

1. There was incorrect sybols in sapservices file (edited by vi redactor).

2. There was incorrect instance profile (recover from backup).

isaias_freitas
Advisor
Advisor
0 Kudos

Nice! Please mark the thread as "answered" .

Former Member
0 Kudos

Hi Andrew,

Your system should be running under just one instance profile. What appears in dev_disp when you delete one of the profile files?

Thanks!

Joe