Completing the WebSphere Commerce Version 7 staging database migration
After you successfully migrate the staging database, complete the final staging database migration tasks.
Procedure
- Update your SITE table by running the following two commands.
delete from site table where COMPNAME not IN ('BASE', 'management-center');
update SITE set VERSION = 9, MOD=0, FIXPACK=0 where COMPNAME IN ('BASE', 'management-center');
- Update your SRCHCONF to contain the new WebSphere Commerce Version 9 preprocess directory by running the following command:
update SRCHCONF set CONFIG = replace(CONFIG, 'old_PreProcessdir', 'new_PreProcessdir');Where:
- old_PreProcessdir
- The preprocess directory of the WebSphere Commerce Version 7 search server.
- new_PreProcessdir
- The preprocess directory of the WebSphere Commerce Version 9 search server.
- Update your SRCHCONFEXT tables to contain the new search web server host name.
update SRCHCONFEXT set CONFIG = replace(CONFIG, 'old_hostname', 'new_hostname');Where:
- old_hostname
- The fully qualified host name of the WebSphere Commerce Version 7 search web server.
- new_hostname
- The fully qualified host name of the WebSphere Commerce Version 9 search web server.
- If you customized any searchable attributes in WebSphere Commerce Version 7 and plan to use them in WebSphere Commerce Version 9, we must update KEYS table for the SRCHATTR table.
- Connect to the database.
- Run the following SQL command:
update keys set counter = case when (select max(srchattr_id) from srchattr) > counter then (select max(srchattr_id) from srchattr) else counter end where tablename = 'srchattr'
- Restart the WebSphere Commerce Version 9 server.
- When you set up the WebSphere Commerce Version 9 environment, you specified an SPIUSER password. Now that the database is migrated from a previous version, your SPIUSER password might be inconsistent. By using the Organization Administration Console, update your SPIUSER password to the same value that you set when creatingd the environment.
- Log on to the Organization Administration Console.
- Click Access Management > Find Users.
- In the Logon ID field, enter spiuser, then click Find.
- Select the SPIUSER from the search results, then click Change.
- Update the SPIUSER password to the same value that we used when you set up the environment.
- Click OK.
- Deploy a web server container to serve traffic to and from your migrated store.
- Download the following .json file.
- Open the file editing.
- Update the following parameters with values specific to the environment.
- groupPath
- The path in your configuration center to your envtype. In this case, use /<tenant>/<environment>/<envtype>
- image
- The name of the image. In this case, use ts-web docker.
- vaultUrl
- Your vault URL. For example, http://<ip>:<port>:8200/v1
- environment
- The name of the environment.
- vaultToken
- The security token for our vault.
- tenant
- The name of your group.
- envtype
- Your environment type. For example, auth or live.
- Save and close the file.
- By following your contain technology documentation, add this updated .json file to our CI/CD pipeline Typically this can be completed through a user interface or API.
- updatedb utility updates the WebSphere Commerce database to the latest release level that is installed on your system.">Run the updatedb command from your utility docker.
What to do next
- Perform all necessary testing of your migrated custom assets with the migrated database.