cancel
Showing results for 
Search instead for 
Did you mean: 

Java Secure Store error after system copy

Former Member
0 Kudos

Hi,

We recently done system copy from Production to Sandbox. The system is a dual stack ABAP+Java, after system copy ABAP is working file. But having issues with Java stack, can't start, when try to start configtool, it's throwing an error

"com.sap.security.core.server.secstorefs.WrongKeyException: The encryption key (usually in the key file) is not the key that is required to decrypt the data in the secure store file or the system name (SID) is wrong"

We used restore/backup method for system copy on oracle.

Can anybody advice the resolution?

Thanks,

Kris

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Markus,

Thanks. I see following information in the system copy doc. So it means, we can restore the database manually to the target system, but we must use SAPinst to install CI system, that way it would connect to database & recreate secure store credentials right?

1. On the Welcome screen, choose the required installation service:SAP NetWeaver 7.0 Support Release 2Software Life-Cycle

OptionsSystem CopyOracleTarget System<Central System | Distributed System | High-Availability System>.

2. When SAPinst prompts for the installation type, choose Homogeneous System Copy (Backup/Restore).

3. Proceed until SAPinst stops to restore the database files on the target system.

The following message is displayed:SAPinst now stops the installation. Please proceed as follows:...

Let us say we have NW 7.0 SR2 base, on top of this we have applied couple of patches. In this case, can we just use the NW 7.0 SR2 master DVD for CI installation?

Thanks,

Kris

markus_doehr2
Active Contributor
0 Kudos

You start sapinst, select "backup/restore", continue until sapinst asks you to restore the database, then continue.

You need to have, of course, done an export of Java (using the same method) on the source system.

Markus

Former Member
0 Kudos

Kris,

The entire procedure to perform a HSC on ABAP+JAVA or JAVA is:

on SOURCE SYSTEM:

1) Start SAPINST

2) Addtional life-time procedures

3) System Copy

4) Source System

5) Export

6) If is an HOMOGENEOUS, use 'database-specific method

This procedure will generate an export of your JAVA STACK (the files from filesystem mentioned by our colleage), so you have to copy this files to target instance when sapinst finish

so you go to the TARGET INSTANCE and:

1) Start SAPINST

2) Addtional life-time procedures

3) System Copy

4) Target System

5) Install

6) During parameters set, you will asked for a MIGRATION EXPORT DVD, so in that step you select the files generated by sapinst during source system export

7) During SAPINST execution, you`ll asked to perform the backup/restore of your db

Hope that it helps

Kind regards

Marcelo Macedo

markus_doehr2
Active Contributor
0 Kudos

> We used restore/backup method for system copy on oracle.

This works for ABAP but not for Java because the J2EE engine stores lots of its configuration locally on the filesystem. There will be some dozen .properties files around with the old hostname and SID.

Because of that you need to always do Java system copies by starting sapinst and exporting the Java content. You can use backup/restore for the database part but you have to use sapinst to re-import the Java part into the target system. A Java migration kit (part of sapinst) will do all the necessary changes so the Java instance will be running.

Check the system copy guides.

Markus

sunny_pahuja2
Active Contributor
0 Kudos

Hi,

For Dual stack (ABAP+Java) system, backup restore method is not supported. You need to use export/import method.

Thanks

Sunny