Follow the instructions below to remove the Endeca application that supports Commerce Reference Store.
To run the --remove-app
command:
Open a UNIX shell or command prompt.
Change directories to the CRS Endeca application’s
control
directory, for example:cd /usr/local/endeca/Apps/CRS/control
or
cd C:\endeca\Apps\CRS\control
Enter one of the following commands.
UNIX:
./runcommand.sh --remove-app
Windows:
runcommand.bat –-remove-app
The next part of the procedure involves removing the record stores in CAS. Removing these record stores requires creating a drop_records.sh|bat
script and running it. The easiest way to create the drop_records.sh|bat
script is to create a copy of the existing initialize_rs_feeds.sh|bat
script and modify it to include only the record dropping functionality.
To remove the record stores in CAS:
Make a copy of the
initialize_rs_feeds.sh|bat
script found in thecontrol
directory.Delete everything in the script from this line down:
echo Creating fresh record stores:
This leaves you with a script that looks similar to this:
CONTROL_DIR=`dirname ${0} 2>/dev/null` . "${CONTROL_DIR}/../config/script/set_environment.sh" RS_PREFIX=$ENDECA_PROJECT_NAME RS_LANG=$LANGUAGE_ID echo These record stores exist: $CAS_ROOT/bin/component-manager-cmd.sh list-components echo ================================================== echo "Dropping old record stores (errors will occur on non-existent rs):" $CAS_ROOT/bin/component-manager-cmd.sh delete-component -n ${RS_PREFIX}_${RS_LANG}_schema $CAS_ROOT/bin/component-manager-cmd.sh delete-component -n ${RS_PREFIX}_${RS_LANG}_dimvals $CAS_ROOT/bin/component-manager-cmd.sh delete-component -n ${RS_PREFIX}_${RS_LANG}_prules $CAS_ROOT/bin/component-manager-cmd.sh delete-component -n ${RS_PREFIX}_${RS_LANG}_data echo ==================================================
Save the script. On UNIX, modify the file permissions of the
drop_records.sh
script so that it is executable, for example:chmod 777 drop_records.sh
Execute the
drop_records.sh
script. For example, on UNIX, enter:./drop_records.sh
On Windows, enter:
drop_records.bat
Delete the Endeca applications directory (for example,
/usr/local/endeca/Apps
orC:\endeca\Apps
) from the file system.
At this point, you are ready for a clean Commerce Reference Store installation. To do a clean install, begin with the Installing the Oracle ATG Web Commerce Software section in this guide.