Install > Installing WebSphere Commerce feature packs > Enable features


Enable content versioning for Management Center

To be able to create versions in the Management Center, first enable the Content Versioning feature. This feature enables you to manage versions of business objects (sales catalog, category, and catalog entry) in the WebSphere Commerce environments. In the runtime environments, only the staging (authoring) environment is supported.

When you enable content versioning the following tables are created in the base schema: CMACTVERSN, CMVERSNCHGLOG, CMVERSNCOLL, CMVERSNCOLLREL, CMVERSNINFO. These tables are also added to the workspace schemas if you have workspaces enabled.


Before you begin

Verify the following WebSphere Commerce Feature Packs are installed:

When you enable Content Versioning, the Management Center and Foundation features are also enabled.


Procedure

  1. Complete one of the following tasks:

    • AIXLinuxSolaris Log on as a WebSphere Commerce non-root user (for example, wasuser).

    • Windows Log on with a user ID that is a member of the Windows Administration group.

  2. Navigate to the following directory:

  3. AIXLinux As the WebSphere Commerce non-root user, increase the file handle limit...

    ulimit -n 8192
    

    You must run the enablement script in the same command window that you ran the ulimit command in. The ulimit setting is lost (and you will need to re-run this step) if you close this command window.

  4. Run the enablement script:

    Running the Content Versioning feature enablement script also enables the Management Center feature. That is, if the Management Center feature is currently disabled, it is enabled after running the Content Versioning feature enablement script.

    • Windows config_ant.bat -buildfile WC_INSTALL/components/common/xml/enableFeature.xml -DinstanceName=instance -DfeatureName=content-version -DdbUserPassword=db_password -DdbaPassword=dba_password [-DversionSchemaName=custom_versionschema_name] [-DdebugMode=true]

    • AIXLinuxSolaris
      ./config_ant.sh -buildfile WC_INSTALL/components/common/xml/enableFeature.xml \
                      -DinstanceName=instance  \
                      -DfeatureName=content-version \
                      -DdbUserPassword=db_password \
                      -DdbaPassword=dba_password \
                     [-DversionSchemaName=custom_versionschemaname] \
                     [-DdebugMode=true]  \
                     [-DgenerateSQLStatementsOnly=true]  \
                     [-DgenerateVersionSQLStatementsOutputFile=SQLlog_fullpathname]
      

    • WebSphere Commerce DeveloperDB2Oracle enableFeature.bat -DfeatureName=content-version -DdbUserPassword=db_password -DdbaPassword=dba_password [-DversionSchemaName=custom_versionschemaname] [-DdebugMode=true] [-DgenerateSQLStatementsOnly=true] [-DgenerateVersionSQLStatementsOutputFile=SQLlog_fullpathname]

    • WebSphere Commerce DeveloperApache Derby enableFeature.bat -DfeatureName=content-version [-DversionSchemaName=custom_versionschemaname] [-DdebugMode=true] [-DgenerateSQLStatementsOnly=true] [-DgenerateVersionSQLStatementsOutputFile=SQLlog_fullpathname]

    • The dba_password is required when enabling this feature.

    • The -DversionSchemaName parameter is used to specify a name for the version schema. If you do not specify this parameter, the default version schema name (VCW_instance) is used.

    • Set the -DdebugMode parameter to true generates a trace file...

    • Set the -DgenerateSQLStatementsOnly parameter to true generates SQL statements in the log file but does not run the SQL statements. The database administrator can manually run the generated SQL statements.

    • If you set the -DgenerateSQLStatementsOnly to true, you can specify the SQL log file location using the -DgenerateVersionSQLStatementsOutputFile parameter.

    After the enablement script run is complete, the following log file is generated:

    • WC_INSTALL/instances/instance/logs/Create_version_db_<instance>.sql.log

    • WebSphere Commerce Developer WCDE_INSTALL\logs\Create_version_db_demo.sql.log

    The database administrator can review the SQL statements generated in the log file.

  5. If the script runs successfully in the runtime environment, a BUILD SUCCESSFUL message appears in the command window where you ran the script and in...

    WC_INSTALL/instances/instance/logs/enablecontent-version_timestamp.log

    WebSphere Commerce Developer If the script runs successfully in the development toolkit, you see an enableFeature.bat completed message in the command window where you ran the script. For enablement details refer to log file:

    If you specified the -debug parameter in the previous step, an additional log file is generated:

    • WC_INSTALL/instances/instance/logs/Application.version.enablement.messages_timestamp.log

    • WebSphere Commerce Developer WCDE_INSTALL\logs\Application.version.enablement.messages_timestamp.log


Results

Once you enable Content Versioning, you can begin using the Management Center to manage versions of business objects.


What to do next

After running the enablement script, you can perform one of the following tasks:


+

Search Tips   |   Advanced Search