Beruflich Dokumente
Kultur Dokumente
Version: 1.0
Date: 07/11/2017
R18A_Hybris_Migration_Guide
Revision History
Release/ Description Author
Date Version
AM
Copyright © 2016 Accenture. All Rights Reserved. Accenture Confidential and Proprietary. Disclosure subject to the consent of Accenture 1
R18A_Hybris_Migration_Guide
Index
1 Executive summary ...............................................................................................................................................3
2 Context .................................................................................................................................................................. 4
2.1 Purpose of the Document .............................................................................................................................4
2.2 Intended Audience ........................................................................................................................................4
2.3 Definitions .....................................................................................................................................................4
3 Prerequisites ..........................................................................................................................................................5
3.1 Check properties ...........................................................................................................................................5
4 Migration guide ......................................................................................................................................................6
4.1 Server deploy ................................................................................................................................................6
4.2 Update Running System ...............................................................................................................................7
4.3 Run the procedures .sql to clean the DB ....................................................................................................11
4.4 Start the server ...........................................................................................................................................11
4.5 Full system update (90 min) .......................................................................................................................11
4.6 Post update sys procedures .......................................................................................................................12
4.7 Deploy other modules .................................................................................................................................14
4.8 Run SQL script............................................................................................................................................14
4.9 Remove cache ............................................................................................................................................15
4.10 Check synchronization job configuration ....................................................................................................15
4.11 Run Solr index ............................................................................................. Error! Bookmark not defined.
4.12 Run Apptus export ......................................................................................................................................16
4.13 Server deploy (Phase 2) .............................................................................................................................17
4.14 Check availability ........................................................................................................................................17
5 Remove Solr and unused Jobs ............................................................................... Error! Bookmark not defined.
4.15 Solr jobs ....................................................................................................... Error! Bookmark not defined.
4.16 Unusued Jobs .............................................................................................. Error! Bookmark not defined.
5 Notes ...................................................................................................................................................................17
5.1 Dependency of the steps ............................................................................................................................17
5.1.1 SQL Developer connection .....................................................................................................................17
5.1.2 Rolling cluster instructions ....................................................................... Error! Bookmark not defined.
Copyright © 2016 Accenture. All Rights Reserved. Accenture Confidential and Proprietary. Disclosure subject to the consent of Accenture 2
R18A_Hybris_Migration_Guide
1 Executive summary
Copyright © 2016 Accenture. All Rights Reserved. Accenture Confidential and Proprietary. Disclosure subject to the consent of Accenture 3
R18A_Hybris_Migration_Guide
2 Context
2.1 Purpose of the Document
The goal of this document is to show all the steps needed to migrate R17D Hybris Installation to the R18A one based
on the Hybris platform 6.2.0.11.
All the steps listed below are mandatory to enable instantiation functionality.
2.3 Definitions
All the abbreviations used in the document are listed in the below table:
Term Definition
Copyright © 2016 Accenture. All Rights Reserved. Accenture Confidential and Proprietary. Disclosure subject to the consent of Accenture 4
R18A_Hybris_Migration_Guide
3 Prerequisites
dump_db.sql
Example of above:
example R9DatabaseCopy.txt
Copyright © 2016 Accenture. All Rights Reserved. Accenture Confidential and Proprietary. Disclosure subject to the consent of Accenture 5
R18A_Hybris_Migration_Guide
4 Migration guide
PAY ATTENTION:
1. All cybersource, paypal, gift card, p24 and ACI merchant properties have to be copied on proper
instance (TA activity) -
2. Check solr config is properly loaded (TA activity) -
3. Check Apache rules are properly updated (TA activity) -
4. Check hybris patch (TA activity) -
Copyright © 2016 Accenture. All Rights Reserved. Accenture Confidential and Proprietary. Disclosure subject to the consent of Accenture 6
R18A_Hybris_Migration_Guide
4.4.1.1 Check the ydeployments table for all the tenants (master included)
Copyright © 2016 Accenture. All Rights Reserved. Accenture Confidential and Proprietary. Disclosure subject to the consent of Accenture 7
R18A_Hybris_Migration_Guide
HJMPTS NUMBER(20)
TYPE1 NUMBER(20)
VALUESTRING1 VARCHAR2(4000)
VALUE1 BLOB
Create a new props table with the columns in the correct order
SELECT * FROM typesystemprops WHERE ITEMPK IN (SELECT ITEMPK FROM PROPS WHERE
itemtypePK IN (SELECT PK FROM composedtypes WHERE itemJNDIName IN
('de.hybris.platform.persistence.type.ComposedType', 'de.hybris.platform.persistence.type.AtomicType',
'de.hybris.platform.persistence.type.CollectionType', 'de.hybris.platform.persistence.type.MapType',
'de.hybris.platform.persistence.type.AttributeDescriptor',
'de.hybris.platform.persistence.enumeration.EnumerationValue')));
Copyright © 2016 Accenture. All Rights Reserved. Accenture Confidential and Proprietary. Disclosure subject to the consent of Accenture 8
R18A_Hybris_Migration_Guide
Delete from typesystemprops where ITEMPK in (select ITEMPK from PROPS where itemtypePK IN (
select PK from composedtypes where itemJNDIName IN
('de.hybris.platform.persistence.type.ComposedType', 'de.hybris.platform.persistence.type.AtomicType',
'de.hybris.platform.persistence.type.CollectionType', 'de.hybris.platform.persistence.type.MapType',
'de.hybris.platform.persistence.type.AttributeDescriptor',
'de.hybris.platform.persistence.enumeration.EnumerationValue')));
Copyright © 2016 Accenture. All Rights Reserved. Accenture Confidential and Proprietary. Disclosure subject to the consent of Accenture 9
R18A_Hybris_Migration_Guide
COMMIT;
Once the deployment will be complete go to HYBADM<ENV><INSTANCE>01 node and run the below instructions
as appuser: -
cd /app/hybris/bin/platform
. ./setantenv.sh
ant updatesystem –DtypeSystemOnly Dtenant=$tenant_name =true
Copyright © 2016 Accenture. All Rights Reserved. Accenture Confidential and Proprietary. Disclosure subject to the consent of Accenture 10
R18A_Hybris_Migration_Guide
You can start the server by redeploying with the below parameters:
*Please note: all the options that are not specified below must keep their default values.
1. RESTART_SERVER to “START_ONLY_ADMIN”
2. DEPLOY_CODE to “FALSE”
3. DEPLOY_CONFIG to “TRUE”
4. ENABLE_UPDATE_RUNNING_SYSTEM to FALSE
Copyright © 2016 Accenture. All Rights Reserved. Accenture Confidential and Proprietary. Disclosure subject to the consent of Accenture 11
R18A_Hybris_Migration_Guide
aii18n
alipaydirect
multicountry
hmcore
hmbackoffice
backoffice
commercesearchbackoffice
hmxmlimpex
hminterfaces
hmwebservices
cockpit
cmscockpit
cscockpit
productcockpit
goeptaskengine
Hmcockpits
hmdashboard
addressdoctor
daum
hmfacades
hmsapoaainterfaces
appcore
Content Catalog [YES]
Sync Product [NO]
Activate Solr Cronjob [NO]
Import Geo Data [YES]
Import Color and Size Filter Order [NO]
Update On Mongo [NO]
appfacades
appcockpits
appaddressdoctor
appbackoffice
Copyright © 2016 Accenture. All Rights Reserved. Accenture Confidential and Proprietary. Disclosure subject to the consent of Accenture 12
R18A_Hybris_Migration_Guide
StaffCard_set_Expiry_procedure: creates the procedure called in I046 for staff card import
Execute the following index creation to improve task SELECT in order to improve BP search
CREATE INDEX HM01_TASKS_001 ON
TASKS("P_FAILED","P_NODEGROUP","P_RUNNINGONCLUSTERNODE","TYPEPKSTRING","P_CONDITIO
NSDUE");
Copyright © 2016 Accenture. All Rights Reserved. Accenture Confidential and Proprietary. Disclosure subject to the consent of Accenture 13
R18A_Hybris_Migration_Guide
1- Run select {code},{catalogVersion} from {product} group by {code},{catalogVersion} having count(*) > 1
2- Remove all duplicates
3- Run follow script to create the unique index
Task engine.pdf
ATP module has to be installed as well (GOEP-ATP-Deploy related to specific instance). (5min) -
Apptus module has to be installed as well (GOEP-ApptusGW-Deploy related to specific instance) (5min)
CIS module has to be installed as well (GOEP-CIS-Deploy related to specific instance) (5min)
DPS module has to be installed as well (GOEP-DPS-Deploy related to specific instance) (5min)
Review module has to be installed as well (GOEP-ReviewsGW-Deploy related to specific instance) (5min) Commented [SA1]: How can we know which of them
should be executed or updated on which environment ?
Store Locator module has to be installed as well (GOEP-SIS-Deploy related to specific instance) (5min)
Try to connect to hmc, if you look follow exception in the console log, you must execute follow steps to fix.
Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.List
at de.hybris.platform.jalo.c2l.Language.getFallbackLanguages(Language.java:142)
at de.hybris.platform.jalo.c2l.GeneratedLanguage.getFallbackLanguages(GeneratedLanguage.java:62)
at de.hybris.platform.util.Utilities.getLocalePath(Utilities.java:1619)
at de.hybris.platform.util.Utilities.getResourceBundle(Utilities.java:1785)
Copyright © 2016 Accenture. All Rights Reserved. Accenture Confidential and Proprietary. Disclosure subject to the consent of Accenture 14
R18A_Hybris_Migration_Guide
at de.hybris.platform.util.Utilities.getLocalePath(Utilities.java:1619)
at de.hybris.platform.util.Utilities.getResourceBundle(Utilities.java:1785)
You must remove the name column and reimport the impex from hac, and after import the complete
languages.impex file to restore translated names.
In case of some synchronization jobs have different configuration, change it as described above.
Copyright © 2016 Accenture. All Rights Reserved. Accenture Confidential and Proprietary. Disclosure subject to the consent of Accenture 15
R18A_Hybris_Migration_Guide
Select attribute categoryHeroDefinitions and check Don’t copy flag in advanced properties.
Copyright © 2016 Accenture. All Rights Reserved. Accenture Confidential and Proprietary. Disclosure subject to the consent of Accenture 16
R18A_Hybris_Migration_Guide
5 Notes
5.1 Dependency of the steps
5.1.1 SQL Developer connection
Connect remotely to the windows desktop using the suitable jumphost IP.
1. Open SQLDeveloper found on path D:\Installers\sqldeveloper.
2. If you need username and password for SQL, follow these steps (Note that Sudo rights are needed for
these steps):
a. Use putty to connect to HYBADM<ENV><GEO>01.
b. Navigate to /app/hybris/config/ and open local.properties.. Commented [RS2]: Sudo rights needed to change to
3. Enter the connection info to the database. It should look like appuser
Copyright © 2016 Accenture. All Rights Reserved. Accenture Confidential and Proprietary. Disclosure subject to the consent of Accenture 17
R18A_Hybris_Migration_Guide
Copyright © 2016 Accenture. All Rights Reserved. Accenture Confidential and Proprietary. Disclosure subject to the consent of Accenture 18