There was a requirement to do Quality System copy from Production.The SAP version was Netweaver 7.0 and it was installed with earlier tool SAPINST. During that time the SID provided was not coming under the reserve SID.But now the SAPINST tool is no more available, So SWPM is the only option for doing the system copy after database backup restore method.
I exported dump from the production system and uninstalled the quality system with SWPM and everything got removed. But during the installation in the Quality system with SWPM it gave error <SID> is reserved for SAP.
I checked the SAP note "1979280 - Reserved SAP System Identifiers (SAPSID) with Software Provisioning Manager 1.0" and found that the <SID> of Quality system is there.
The only option was to rename the Quality system <SID>. But its connected to lots of SAP and non-SAP third party system and after renaming to new SID, lots of work need to reconfigure. So thought if I do some changes in the SWPM and remove the <SID> which is now blocking during the installation.
So removed the <SID> in the following .xml file after extracting the SWPM.
1. Find the <SID> containing files with the below OS command.
find ../SWPM -type f -print -exec grep "<SID>" {} \;
(Where <SID> is the SID of the Quality system)
../SWPM/resourcepool.xml
../SWPM/PVIND/XML70X_SBC/resourcepool.xml
../SWPM/PVIND/XML70X_SBC/keydb.xml
../SWPM/PVIND/XML70X_SBC/control.xml
../SWPM/PVIND/XML70X_DSS/resourcepool.xml
../SWPM/PVIND/XML70X_DSS/keydb.xml
../SWPM/PVIND/XML70X_DSS/control.xml
../SWPM/PVIND/XML70X/keydb.xml
../SWPM/PVIND/XML70X/control.xml
../SWPM/ORA/NUC/dboraslib.so
../SWPM/ORA/UC/R3ta
../SWPM/ORA/UC/R3load
2. Remove the <SID> from the below .xml files.
../SWPM/resourcepool.xml
../SWPM/PVIND/XML70X_SBC/resourcepool.xml
../SWPM/PVIND/XML70X_SBC/keydb.xml
../SWPM/PVIND/XML70X_SBC/control.xml
../SWPM/PVIND/XML70X_DSS/resourcepool.xml
../SWPM/PVIND/XML70X_DSS/keydb.xml
../SWPM/PVIND/XML70X_DSS/control.xml
../SWPM/PVIND/XML70X/keydb.xml
../SWPM/PVIND/XML70X/control.xml
Then re-executed the SWPM in the Quality system with the same <SID> as it was earlier and it proceeded further.
Please reward if you find helpful.
Thanks