The updatedb script fails during the application of the fix pack
If the updatedb script fails, you can try to perform a manual update of the database.
Problem
The updatedb process fails during the WebSphere Commerce fix pack
update.
Note: If the updatedb process fails during the WebSphere Commerce Developer fix pack update,
see the following WebSphere Commerce Developer fix pack
troubleshooting topic.
Solution
Complete these steps:
- Go to the following directory:


WC_installdir/logs/updatedb
WC_installdir\logs\updatedb
WCDE_installdir\logs



updatedb-instance_name.log
updatedb.log- trace.txt
- messages.txt
Note: You can also encounter errors when you are
running a process or utility if the input parameters that are used
to establish a database connection are incorrect. To validate that
a database connection can be established with the configured input
parameters, use the database connection validation utility. For more
information about running this utility, see Running the database connection validation utility. - Manually update the database:
- Ensure that you have a backup of the database. This backup ensures that the database is reverted to the state it was in before the unsuccessful attempt to run the updatedb command.
- Complete one of the following actions:


Log on as the non-root user.
Log on as a user with Administrator privileges
- From a command prompt, run the following command:


WC_installdir/bin/updatedb.sh
instance_name [currentPropFile]
WC_installdir/bin/updatedb.bat
instance_name [currentPropFile]


WC_installdir/bin/updatedb.sh instance_name
[currentPropFile]
The currentPropFile is the full path and
name of the database properties file. The currentPropFile is used when a
database, other than the one specified in the instance.xmlfile, is to be updated. For example, two databases might be configured; one for operational purposes and the other for content purposes. The currentPropFile takes the same format as thecreateInstance.propertiesfound under directory WC_installdir/instances/instance_name/properties. The database section in the currentPropFile is used to acquire the parameters that are required for the updatedb command. - When the update is complete, review the output that is displayed in the console window and
ensure that you successfully update the database to the correct fix pack level. For example:
Where X is the number of the fix pack installed.UpdateSiteTable: [EchoNL] Updating database fixpack level ... [eCDatabaseVersionInfo] UPDATE SITE SET EDITION='ENT', VERSION=7, 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=7 [eCDatabaseVersionInfo] RELEASE=0 [eCDatabaseVersionInfo] MOD=0 [eCDatabaseVersionInfo] FIXPACK=X [eCDatabaseVersionInfo] Updated SITE table successfully. [EchoNL] Completed database fixpack update. BUILD SUCCESSFUL