![]() | Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition | ||
|
|
![]() |
||||||||||||||||||
Solution Type Problem Resolution Sure Solution 2312508.1 : PMAC Upgrade Failed from 6.0.3 to PMAC 6.4 with ERROR 1067 (42000) in MySQL Phase
In this Document
Created from <SR 3-14945283491> Applies to:Oracle Communications Diameter Signaling Router (DSR) - Version DSR 7.2.0 to DSR 8.1.1 [Release DSR 7.0 to DSR 8.0]Information in this document applies to any platform. SymptomsDuring PMAC Upgrade failed from Rel 6.0.3.0.2-60.28.0 to PM&C 6.4.0.0.0-64.8.0, this is caused in the Post Script which is running Post Upgrade. If you Check Upgrade Log /var/TKLC/log/upgrade/upgrade.log , Following is the Sequence of Error should be Displayed, Where it complains about Invalid Default for "Last_Password_Change" 1505976159::Version in the dbschema table updated.
1505976159:: 1505976159::Current schema version is 6200 1505976160:: 1505976160::DB Upgrade from 6200 to 6201 1505976160:: 1505976160::mysql: [Warning] Using a password on the command line interface can be insecure. 1505976160::ERROR 1067 (42000) at line 866: Invalid default value for 'last_password_change' 1505976160::ERROR: Could not run system. cmd=[/usr/bin/mysql -p$(/usr/TKLC/smac/sbin/gcs) < /usr/TKLC/smac/html/sql/db_upgrade_6200_6201.sql] 1505976160:: 1505976160::Stopping MySQL... [OK] 1505976164:: 1505976164::ERROR: db_upgrade_schema failed! rc = 1 1505976164::ERROR: postTransactions() code failed for Upgrade::Policy::PMAC Changes
CauseThis is caused by the fact that 1970-01-01 00:00:00 is epoch 1. If the site has been configured for UTC + 5.5 hours. In this scenario mysql saves data, it is written as UTC into the database. During data retrieval it is converted back to the current timezone. When the script tries to create the table "userNew" it attempts to write it as epoch - 5.5 hours to convert it to UTC. This causes the epoch number to be negative which is invalid. Hence the Error is seen in the Upgrade Logs. SolutionAll you have to do get on the PMAC console from the TVOE HOST and change your time-zone on the PMAC (not MySQL) to UTC. Execute the upgrade and then change it back to the timezone which it was using. You need to make sure your global time_zone variable on your PMAC is set to SYSTEM for this to work. READ CAREFULLY BEFORE EXECUTING THESE
The steps are as follows:
Attachments This solution has no attachment |
||||||||||||||||||
|