Create wcs instance
Create WCS instance
· Log in to WCS server as wcsadmin.
· Open the following file /opt/IBM/WebSphere/CommmerceServer80/schema/oracle/wcs.data.sql
· Replace
INSERT INTO dmelementnvp (dmelement_id, name, value) select i,n,v from (SELECT dmelement_id, 'socialActivityType', '*' FROM dmelement WHERE dmeletemplate_id IN (160, 215) UNION ALL SELECT dmelement_id, 'comparison', 'any' FROM dmelement WHERE dmeletemplate_id IN (160, 215)) s (i,n,v) where not exists (select 1 from dmelementnvp where dmelement_id = i and name = n and value = v);
With:
INSERT INTO dmelementnvp (dmelement_id, name, value)
select i,n,v from (SELECT dmelement_id i, 'socialActivityType' n, '*' v FROM dmelement WHERE dmeletemplate_id IN (160, 215)
UNION ALL
SELECT dmelement_id i , 'comparison' n, 'any' v FROM dmelement WHERE dmeletemplate_id IN (160, 215)
) s
where not exists (select 1 from dmelementnvp where dmelement_id = i and name = n and value = v);
· Save and exit.
· Create a directory /opt/IBM/WebSphere/CommerceServer80/instances/DEMO/properties
· Run the following command
cp /opt/wcsfiles/RESOURCES/WCS_INSTANCES/LIVE/TEMPLATE-LIVEver01_createInstance.properties /opt/IBM/WebSphere/CommerceServer80/instances/DEMO/properties/createInstance.properties
· Edit createInstance.properties and update it with environment specific information such as database user, password, dba user, password, db connection url etc. A sample file is attached here.
· Create WCS Instance. You can tail /opt/IBM/CommerceServer80/instances/DEMO/logs/createInstanceANT.log
cd /opt/IBM/WebSphere/CommerceServer80/bin
./config_ant.sh -DinstanceName=DEMO -verbose
· After instance creation, check the wcs_instances file to make sure instance exist
Comments
Post a Comment