Updating the database
Use the updatedb utility to update the WebSphere Commerce database
to the latest maintenance level.
Before you begin
About this task
If the updatedb utility fails, you can rerun the utility without the need to restore the database, hence avoiding downtime. The utility skips the SQL changes that were committed and continues from the point of failure.
Procedure
- Run the updatedb utility on the machine where WebSphere Commerce is installed.
- Optional:
If the updatedb utility fails, review the updatedb log
file:
-
When the update is complete, review the output that is displayed in the console window and
ensure that you successfully updated the database to the correct maintenance level.
For example, after you install a fix pack, you might see output that resembles the following message:
Where X is the number of the fix pack that was installed.UpdateSiteTable: [EchoNL] Updating database fixpack level ... [eCDatabaseVersionInfo] UPDATE SITE SET EDITION='ENT', VERSION=8, RELEASE=0, MOD=0, FIXPACK=X WHERE COMPNAME='BASE' [eCDatabaseVersionInfo] SELECT COUNT(*) FROM SITE [eCDatabaseVersionInfo] SELECT * FROM SITE [eCDatabaseVersionInfo] Columns in SITE table: [eCDatabaseVersionInfo] COMPNAME=BASE [eCDatabaseVersionInfo] EDITION=ENT [eCDatabaseVersionInfo] VERSION=8 [eCDatabaseVersionInfo] RELEASE=0 [eCDatabaseVersionInfo] MOD=0 [eCDatabaseVersionInfo] FIXPACK=X [eCDatabaseVersionInfo] Updated SITE table successfully. [EchoNL] Completed database fixpack update. BUILD SUCCESSFUL
What to do next
If you do not have an existing WebSphere Commerce instance, then the installation is complete. Refer to Installing maintenance: Final steps.
If you plan to create an instance and you recently upgraded your WebSphere
Application Server fix pack level, complete the following steps before you create the WebSphere Commerce instance:
- Sign in as the
root
user. - Run the command: WC_installdir/bin/wcnonroot.sh