How to Perform Database Repairs
m (→How to Perform a Database Repair (a DBR)) |
(→How to Perform a Database Repair (a DBR)) |
||
Line 86: | Line 86: | ||
[[file:DBR_EDBR07.png]]<br><br> | [[file:DBR_EDBR07.png]]<br><br> | ||
Eventually, the '''Building Trainz Asset Data''' window will disappear indicating that the process has been completed.<br> | Eventually, the '''Building Trainz Asset Data''' window will disappear indicating that the process has been completed.<br> | ||
+ | |||
+ | =How to Perform an Extended Database Repair (an EDBR)= | ||
+ | |||
+ | <table cellpadding="4" bgcolor=#c1e7e7> | ||
+ | <tr valign="top"> | ||
+ | <td>[[file:DotPoint.JPG]]</td> | ||
+ | <td>An '''EDBR''' performs a "deep scan" of the database and checks that the data in every asset conforms to the rules for that type of asset</td> | ||
+ | </tr> | ||
+ | </table> | ||
+ | <br> | ||
+ | This is a more complex, slower and potentially more dangerous repair. An EDBR can detect and flag errors in the data that a DBR will miss. It runs on every single asset in the database the same error and compliance checks that are run when a new asset is installed.<br> | ||
+ | |||
+ | <table cellpadding="4" bgcolor=#ffffb0> | ||
+ | <tr valign="top"> | ||
+ | <td>[[file:NotePad.PNG]]</td> | ||
+ | <td><font size="3">'''Notes:'''</font><br> | ||
+ | *Perform a '''EDBR''' if you have '''serious problems''' with your data that a DBR does not repair | ||
+ | </td> | ||
+ | </tr> | ||
+ | </table> | ||
+ | <br> | ||
+ | <table cellpadding="4" bgcolor=#fcbcbc> | ||
+ | <tr valign="top"> | ||
+ | <td>[[file:Stop.PNG]]</td> | ||
+ | <td>It is not unusual for CM to display a long list of faulty assets that were not shown as faulty before the EDBR was run. Most or all of these "faulty" assets can be repaired by using the "Revert to Original" submit asset option.</td> | ||
+ | </tr> | ||
+ | </table> |
Revision as of 14:19, 26 January 2019
This guide will take you through the process of performing manual database repairs and clean database installs. TRS19 and TANE will automatically perform database repairs when they detect corruption in the Trainz database but sometimes a manual repair or even a manual clean install of the database is required.
What is the "Trainz Database"?
The Trainz Database contains all the installed assets |
In the earliest Trainz versions all the assets that came installed with Trainz, or that you installed from the DLS or downloaded as .cdp files, were stored as separate folders on your designated data drive. This made it easy to access the assets for editing and other operations. However the penalty was that each time you started Trainz it had to scan the assets to check their integrity and the more assets you had the longer the startup took. This led to complaints from users.
Today, all installed Trainz assets are added as records in an asset database which has significantly sped up the startup process and has reduced the possibility of accidental data corruption by users. The penalty is that users can no longer access the installed assets by using Windows Explorer. Access to the assets in the database for editing and examination is through the Content Manager program.
Because it is a database manager, Content Manager also provides users with many more search, display and management options than were ever previously possible. Each entry in the display shown below is a single record in the Trainz database. Each entry can be easily opened for editing, it can be deleted, copied (cloned) and updated. New assets can be manually created or installed from other sources.
How to Perform a Database Repair (a DBR)
A DBR performs a "surface scan" of the database detecting missing content and content errors. It will update your database and can clean up some corrupted data. |
This is the simplest and (usually) the fastest option.
If you have installed a new asset that CM reports has having "missing" or "unknown" assets then a DBR is very unlikely to find those missing assets.
|
|||||
Steps:
|
|||||
|
The process will proceed automatically and unaided through a number of steps, only some of which are shown below. The time required for each step will vary enormously (some will take much longer than others) and the total time involved will depend on the number of assets installed, the speed of your system and other factors.
1. Scanning for deleted asset files
2. Scanning for added asset files
3. Importing built in assets
4. Rebuilding cached asset data
Eventually, the Building Trainz Asset Data window will disappear indicating that the process has been completed.
How to Perform an Extended Database Repair (an EDBR)
An EDBR performs a "deep scan" of the database and checks that the data in every asset conforms to the rules for that type of asset |
This is a more complex, slower and potentially more dangerous repair. An EDBR can detect and flag errors in the data that a DBR will miss. It runs on every single asset in the database the same error and compliance checks that are run when a new asset is installed.
Notes:
|