Restore the CA Performance Center database from a backup archive after a software upgrade that fails to complete. If an error occurs during an upgrade of the CA Performance Center software, you must restore the database and then update the schema.
Note: Database restoration is not required after an upgrade unless a failure occurs. Take the cleanup steps that are described in Clean Up After a Failed Installation before you attempt the upgrade again. Then take the steps in this procedure.
Follow these steps:
/etc/init.d/caperfcenter_eventmanager stop /etc/init.d/caperfcenter_devicemanager stop /etc/init.d/caperfcenter_sso stop /etc/init.d/caperfcenter_console stop
The services are stopped.
cd /$backupDir
tar zxvf netqosportal.tgz tar zxvf em.tgz
mysql netqosportal -e ‘source $backupDir/netqosportal.sql’
mysql em -e ‘source $backupDir/em.sql'
cd /opt/CA/PerformanceCenter/Tools/bin
mysql -P3306 -D netqosportal -u root
mysql> select InstallDate, version, dbschemaversion from revision_info order by InstallDate asc;
The output lists installation dates and versions of the software and database schema.
If the database version does not match the current product version, take the next set of upgrade steps.
./npcshell.sh upgradedb
/opt/CA/jre/bin/java -jar /opt/CA/PerformanceCenter/SQL/seedlu/bin/seedlu.jar -resfile "/opt/CA/PerformanceCenter/SQL/messages_en_US.properties" -ctrlfile "/opt/CA/PerformanceCenter/SQL/control.sdlctrl" -connection "jdbc:mysql://localhost:3306/netqosportal?useUnicode=true&characterEncoding=UTF-8" -user netqos -pwd netqos -lang en-US
/opt/CA/jre/bin/java -jar /opt/CA/PerformanceCenter/SQL/seedlu/bin/seedlu.jar -resfile "/opt/CA/PerformanceCenter/SQL/messages_zh_CN.properties" -ctrlfile "/opt/CA/PerformanceCenter/SQL/control.sdlctrl" -connection "jdbc:mysql://localhost:3306/netqosportal?useUnicode=true&characterEncoding=UTF-8" -user netqos -pwd netqos -lang zh-CN
/opt/CA/jre/bin/java -jar /opt/CA/PerformanceCenter/SQL/seedlu/bin/seedlu.jar -resfile "/opt/CA/PerformanceCenter/SQL/messages_zh_TW.properties" -ctrlfile "/opt/CA/PerformanceCenter/SQL/control.sdlctrl" -connection "jdbc:mysql://localhost:3306/netqosportal?useUnicode=true&characterEncoding=UTF-8" -user netqos -pwd netqos -lang zh-TW
/opt/CA/jre/bin/java -jar /opt/CA/PerformanceCenter/SQL/seedlu/bin/seedlu.jar -resfile "/opt/CA/PerformanceCenter/SQL/messages_fr_FR.properties" -ctrlfile "/opt/CA/PerformanceCenter/SQL/control.sdlctrl" -connection "jdbc:mysql://localhost:3306/netqosportal?useUnicode=true&characterEncoding=UTF-8" -user netqos -pwd netqos -lang fr-FR
/opt/CA/jre/bin/java -jar /opt/CA/PerformanceCenter/SQL/seedlu/bin/seedlu.jar -resfile "/opt/CA/PerformanceCenter/SQL/messages_ja_JP.properties" -ctrlfile "/opt/CA/PerformanceCenter/SQL/control.sdlctrl" -connection "jdbc:mysql://localhost:3306/netqosportal?useUnicode=true&characterEncoding=UTF-8" -user netqos -pwd netqos -lang ja-JP
CA Infrastructure Management Administration Pages:
./npcshell.sh dbmigrate -package com.ca.im.plugin.pc -path ../../SQL/plugins/pc/
Event-Related Views:
./npcshell.sh dbmigrate -package com.ca.im.plugin.em -path ../../SQL/plugins/eventmanager/
Data Aggregator Administration Pages and Views:
./npcshell.sh dbmigrate -package com.ca.im.plugin.da -path ../../SQL/plugins/polaris/
mysql -P3306 -D netqosportal -u root
mysql> select InstallDate, version, dbschemaversion from revision_info order by InstallDate asc;
/etc/init.d/caperfcenter_eventmanager start /etc/init.d/caperfcenter_devicemanager start /etc/init.d/caperfcenter_sso start /etc/init.d/caperfcenter_console start
rm netqosportal.sql
rm em.sql
|
Copyright © 2014 CA.
All rights reserved.
|
|