Migrating the WebSphere Commerce database using the Migration wizard
The Migration wizard server runs on the system where WebSphere Commerce Version 7.0 is installed. For systems without graphic support, launch the Migration wizard client from another system that does have graphic support.
Before you begin
- If you are migrating the WebSphere Commerce database from one system (source) to another system (target), ensure you create a database user on your target system that has the same name as the database user on your source system.
- The schema name that you specify when migrating the database must
be same as the user name. If the user name is different than the schema
name, you must transfer the schema to a schema that has same name
as user. For information on how to transfer the schema name to another
name:
- Refer to the documentation on the admin_copy_schema command. Depending on the version of DB2 you are using, see one of the following DB2 topics:
- For instructions on how to change the schema name, consult the database vendor documentation.
Alternately, you can create a new database user that has the same name as the current schema, then use this user to migrate the database.
- Ensure that the X11 graphic library is installed.
- Ensure that the following directory is executable
by the non-root user. Only the top-level directory must be executable;
not any subdirectories.
- /root
Note: Any permissions modification can be reversed following the upgrade. - Ensure that the following files are readable
by the non-root user:
- /root/vpd.properties
- WC_installdir/instances/instance_name/xml/instance_name.xml
- If you are running the Migration wizard on a system that is different
from the one that has your WebSphere Commerce Version 5.6.1 or 6.0,
copy the file:
- WC_installdir/instances/instance_name/xml/instance_name.xml
- Perform the following steps to update your schemas
before running the Migration wizard:
- Backup the WebSphere Commerce Version 6 schema by running the
following commands:
CRTSAVF FILE(mylib/WC6TO7) TEXT('WC v6 to v7') SAVLIB LIB(myinstance) DEV(*SAVF) SAVF(mylib/WC6TO7) ACCPTH(*YES)
- Open the following files:
- QIBM/ProdData/CommerceServer70/properties/Toolbox_EXTWCSDTA_Customizer.properties
- QIBM/ProdData/CommerceServer70/wc.ear/properties/Toolbox_EXTWCSDTA_Customizer.properties
- QIBM/ProdData/CommerceServer70/properties/Toolbox_LODWCSDTA_Customizer.properties
- QIBM/ProdData/CommerceServer70/wc.ear/properties/Toolbox_LODWCSDTA_Customizer.properties
- QIBM/ProdData/CommerceServer70/properties/Toolbox_RESWCSID_Customizer.properties
- QIBM/ProdData/CommerceServer70/wc.ear/properties/Toolbox_RESWCSID_Customizer.properties
- Add the following lines to the bottom of each file to add the
IASPUrl variable:
Where WCDEV is your relational database name and instance_name is the name of your WebSphere Commerce instance.### Added for database migration per IBM when using remote database or redirected RSTLIB IASPUrl = WCDEV/instance_name;database name=WCDEV;cursor hold=false
Note: This line fails when using the full hostname. For example,IASPUrl = wcdev.yourcompany.com/WCDEV7;database name=WCDEV;cursor hold=false
. - Open a terminal session emulator and perform the following steps:
- Login with your WebSphere Commerce Version 7 instance user:
profile account (WCDEV7)
- Start an SQL command line:
strsql
- Create the WebSphere Commerce Version 7 schema (WCDEV7):
Then press F3 and 2 to close.CREATE SCHEMA WCDEV7
- Change the instance user profile's current library to the instance
schema name (WCDEV7):
CHGUSRPRF USRPRF(WCDEV7) CURLIB(WCDEV7)
- Create the data area for the WebSphere Commerce Version 7 schema
(WCDEV7) so that the journals under the WebSphere Commerce Version
6 schema register with the new owner:
CRTDTAARA DTAARA(WCDEV7/QDFTJRN) TYPE(*CHAR) LEN(40) VALUE('WCDEV7 QSQJRN *ALL *RSTOVRJRN')
- Confirm that the data area is correct:
Ensure the data area appears correctDSPDTAARA WCDEV7/QDFTJRN
'WCDEV7 QSQJRN *ALL *RSTOVRJRN'
before restoring the library, then press F3 to close. - Restore the WebSphere Commerce Version 6 schema as the WebSphere
Commerce Version 7 schema name.
RSTLIB SAVLIB(WCDEV6) DEV(*SAVF) SAVF(mylib/WC6TO7) OPTION(*NEW) MBROPT(*ALL) ALWOBJDIF(*ALL) RSTLIB(WCDEV7)
- Save this restored schema before running the migration wizard:
CRTSAVF FILE(mylib/WC7DEVA) SAVLIB LIB(WCDEV7) DEV(*SAVF) SAVF(TRACYTEST/WC7DEVA)
- Delete the data area to bypass an issue with automatic journaling
when the migration wizard runs:
DLTDTAARA WCDEV7/QDFTJRN
- Login with your WebSphere Commerce Version 7 instance user:
- Backup the WebSphere Commerce Version 6 schema by running the
following commands:
- Ensure that you increase the file
handle limit. As the WebSphere Commerce root user, issue the following
command:
ulimit -n 8192
Procedure
The Migration wizard server must be launched from the
WebSphere Commerce Version 7.0 system. The Migration wizard client
can be run any system with graphic support.