Since the metadata is unusable, the only resolution is to wipe out the metadata and replace it with a good copy of the metadata.
VERY IMPORTANT - PLEASE READ BEFORE PROCEEDINGWiping out the metadata means that you are deleting all your resources/projects with the intention of restoring them from a
Full Server backup CAR file that you know contains good metadata. Very specifically, wiping out the metadata means that TDV will look and act like a brand new first time installation that has absolutely no knowledge of any work that you have done in the past. Therefore, if you do not have a
Full Server backup CAR file,
YOU WILL PERMANENTLY LOSE ALL OF YOUR EXISTING WORK (i.e. ANY RESOURCES AND DATA SOURCES THAT YOU CREATED). There is
NO WAY to recover the lost data. Therefore, if you do not have a Full Server Backup CAR file, and you are not in a position to permanently lose all your projects,
PLEASE CONTACT TECHNICAL SUPPORT TO DISCUSS BEFORE YOU PROCEED.For purposes of illustration, let us say that we have taken a full server backup file "FSB_good.car" before the issue occurred and that we intend to use this file to restore the metadata to the last known good state.
If this is a standalone TDV server:
1. If the server is responsive enough to obtain a full server backup, take a backup CAR (Studio >> Administration >> Full Server Backup) as a precaution.
2. Stop the TDV server. Do not stop the repository.
3. List out all files under <TDV_INSTALL>\conf\repository\postgresql that begin with 'composite_clean'.
Example--------
cd D:\TIBCO_DV\conf\repository\postgresql
dir composite_clean*
--------
If the list contains files named composite_clean-
nnnnnnnnn.sql ('nnnnnnnnn' represents a version number), run repo_util.bat with the arguments:
-dropSchema -schemaDropScript <highest versioned file>For instance if the list is:
- composite_clean-080200001.sql
- composite_clean-080401001.sql
- composite_clean.sql
Then, composite_clean-
080401001.sql is the highest versioned file and the command is:
--------
D:\TIBCO_DV\bin>repo_util.bat -dropSchema -schemaDropScript D:\TIBCO_DV\conf\repository\postgresql\composite_clean-
080401001.sql
--------
If the list does not contain any versioned files (i.e. only composite_clean.sql is present), the
schemaDropScript argument is not required:
--------
D:\TIBCO_DV\bin>repo_util.bat -dropSchema
--------
4. Start the TDV server.
5. Connect to the TDV server using Studio, and verify that it looks like a fresh installation.
6. Import a Full Server Backup "FSB_good.car" containing good metadata.
If this is a cluster:1. Take all the nodes out of the cluster.
2. If any of the nodes is responsive enough to obtain a full server backup, take a backup CAR (Studio >> Administration >> Full Server Backup) as a precaution.
3. Stop the TDV server on each node. Do not stop the repository.
4. List out all files under <TDV_INSTALL>\conf\repository\postgresql that begin with 'composite_clean'.
Example--------
cd D:\TIBCO_DV\conf\repository\postgresql
dir composite_clean*
--------
If the list contains files named composite_clean-
nnnnnnnnn.sql ('nnnnnnnnn' represents a version number), run repo_util.bat with the arguments:
-dropSchema -schemaDropScript <highest versioned file>For instance if the list is:
- composite_clean-080200001.sql
- composite_clean-080401001.sql
- composite_clean.sql
Then, composite_clean-
080401001.sql is the highest versioned file and the command is:
--------
D:\TIBCO_DV\bin>repo_util.bat -dropSchema -schemaDropScript D:\TIBCO_DV\conf\repository\postgresql\composite_clean-
080401001.sql
--------
If the list does not contain any versioned files (i.e. only composite_clean.sql is present), the
schemaDropScript argument is not required:
--------
D:\TIBCO_DV\bin>repo_util.bat -dropSchema
--------
5. Start the TDV server on each node.
6. Connect to each server using Studio, and verify that it looks like a fresh installation.
7. Add just one node to the cluster to begin with. Once the node is in the cluster, import a backup "FSB_good.car" containing good metadata into it. Connect to it with Studio, and run a few basic checks to verify that that the node is working as expected.
8. Add the other nodes back one at a time. After adding each node, wait a while for it to sync the metadata (i.e. it should copy it from the first node that you added). Then, use Studio to run a few basic checks to verify that that the node is working as expected.