The $SPECROOT/bin/RpmgrInitializeLandscape.bat
utility can be used to reinitialize (remove all data) for one or more or all landscapes from the reporting database. But the large size of SRMdb may limit the hard disk free space, so running this utility may fail or take a long time. The solution shows how to accelerate the process by replacing SRMdb data files with 0 size files.
DX NetOps Spectrum all Releases
Normally, data files that are large or the largest in the SRM db are the event.MYI
and event.MYD
files. In this case, to accelerate the SRMdb reinitializing process, you can replace the data files with 0 size files and repair the database.
To accelerate the SRMdb reinitializing process
$SPECROOT/tomcat/bin/stopTomcat.sh
$SPECROOT/bin/cmdC
command on bash shell: ./cmdC <HOSTNAME> 2 MYSQL
event.MYI
and event.MYD
files and replace them with 0 size files with the same names and extension. Be sure to use exactly the same filenames. $SPECROOT/bin/launchinstdbapp
command on bash shell. ./launchinstdbapp <hostname> MYSQL y MYSQL.OUT
cd $SPECROOT/mysql/bin
./mysql -uroot -proot reporting
repair table event USE_FRM
; $SPECROOT/bin/RpmgrInitializeLandscape.bat
to reinitialize SRMdb. For example:cd $SPECROOT/bin/
./RpmgrInitializeLandscape.bat root root -initHist 45 -all