Use the clean_vardir.sh script to clean out the variable-data directory to restore it to an initial state.
Important! Contact Quest Technical Support before running clean_vardir.sh for the first time. Unless a procedure in the SharePlex documentation requires running clean_vardir.sh, this utility rarely is appropriate in a production environment. It deactivates the configuration, and using it improperly can result in replication problems and the need to resynchronize the data. Usually, there is another alternative.
The clean_vardir.sh script removes the following:
The clean_vardir.sh script preserves user-created files such as configuration files, conflict-resolution files, hint files, the paramdb, and the oramsglist file.
The clean_vardir.sh script deactivates configurations. To start replication after running clean_vardir.sh, you must activate a configuration.
Oracle on Unix and Linux
To use this utility, the Korn (ksh) shell must be installed on the system. The utility calls this shell during processing.
Run this script on Unix and Linux systems only.
Set the SP_SYS_VARDIR environment variable to point to the SharePlex variable-data directory. If SP_SYS_VARDIR is not set, clean_vardir.sh affects the directory listed in the proddir/data/defaults.yaml file, where the proddir is the bin sub-directory of the SharePlex product directory.
ksh shell:
export SP_SYS_VARDIR=/full_path_of_variable-data_directory
csh shell:
setenv SP_SYS_VARDIR=/full_path_of_variable-data_directory
Run clean_vardir.sh as a SharePlex Administrator. The script is in the bin sub-directory of the SharePlex product directory. Use the following syntax, where Oracle_version is one of the SharePlex-supported Oracle versions.
proddir/bin/clean_vardir.sh Oracle_version
When the script is finished running, you are returned to the command prompt.
Note: If the script generates an error message stating that it cannot remove the save_SharePlex_version directory, you can remove that directory manually.
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. 使用条款 隐私 Cookie Preference Center