The MQL command validate unique
identifies conflicts so that they can be resolved prior to turning off the setting. After resolving all conflicts, you can turn off the casesensitive
system setting (its default is set to on), and reindex the vaults to switch to unique indices.
Duplicate records could exist if you used the database before turning off the casesensitive
setting. For example, in a case sensitive environment you could have users name "bill" and "Bill". These user names would cause unique constraint violations if an attempt was made to make this database case insensitive (add unique indices).
-
To identify conflicts and resolve and issues by changing some names or deleting unneeded items.
In MQL, run
validate unique
. This shows an example of the output of this command where conflicts exists:Duplicate person 'Bill'
Duplicate program 'test'
Duplicate state 'Open' in policy 'Incident'
Duplicate signature 'Accept Quality Engineer Assignment' on state
'Assign' in policy 'Incident'
Duplicate signature 'Accept Quality Engineer Assignment' on state
'Assign' in policy 'Incident'
Duplicate business type 'CLASS'
Duplicate business object 'RequestReport' 'Unassigned' '1'
Duplicate business object 'Document' 'Financials' 'Q32003'
Duplicate business object 'Test Suite' 'Vault' ''
Duplicate business object 'Milestone' 'Covers For Manuals' ''
Duplicate business object 'Task' 'Regression testing' '0'
Resolve all conflicts by deleting or changing the name of one of
the duplicates. Duplicate signatures might be reported more than once,
depending on the number of unique signers on the signature for all actions (approve, reject,
ignore).
You might also find duplicate Person workspace objects such
as these:
Duplicate table 'Cost PRS' owned by ganley
Duplicate BusinessObjectQuery 'a' owned by coronella
Duplicate VisualCue 'committed' owned by maynes
Duplicate ObjectTip 'Description' owned by liu
Duplicate Filter 'feature' owned by zique
Duplicate BusinessObjectSet 'Current Software' owned by powers
Duplicate ProgramSet 'New Bug' owned by oconnor
These conflicts must be resolved by the user specified as
the owner.
-
Identify and resolve existing attribute and policy definitions to be sure the rules you set are what you want.
For more information, see Collaboration and Approvals with Case-sensitive Off.
- In MQL, run
set system casesensitive off
; - Reindex all vaults to create case insensitive indices. For very large vaults, this could take several hours. You can run
validate index vault VAULTNAME
; for information on what will occur. For more information, see MQL
Command Reference: Index Vault. If duplicates exist, an error occurs during the vault index.
- Calculate or update statistics on all tables by running the following
MQL
command:validate level 4;
Run the validate
level 4 command after any substantial data load operation, and periodically thereafter, to update the statistics.
3DSpace is now ready to use in the case-insensitive
mode.