REALLY URGENT: Repository Lost
Moderator: SourceGear
REALLY URGENT: Repository Lost
Hi,
I just lost my main Vault repository!
It simply no more appears in Vault Admin or Vault Client. There are no error/warning log entries.
You can imaging that fast help would be really appreciated!
Thank You!
Regards, Alex
I just lost my main Vault repository!
It simply no more appears in Vault Admin or Vault Client. There are no error/warning log entries.
You can imaging that fast help would be really appreciated!
Thank You!
Regards, Alex
update4u Software AG
Alex:
What version of the server are you running? Is it Vault 3.0.7 or Vault 3.1 Beta?
Is it safe to assume it is a version before Vault 3.0.7?
I'm going to ask some questions based on this posting - http://support.sourcegear.com/viewtopic.php?t=4057
Jeff
What version of the server are you running? Is it Vault 3.0.7 or Vault 3.1 Beta?
Is it safe to assume it is a version before Vault 3.0.7?
I'm going to ask some questions based on this posting - http://support.sourcegear.com/viewtopic.php?t=4057
Jeff
Jeff Clausius
SourceGear
SourceGear
We'll start off with the results of these queries:
1) SELECT repid, name, currenttxid FROM sgvault.dbo.tblrepositories
2) SELECT x.repid, x.txid FROM sgvault.dbo.tblfulltreerevisionfolders x WHERE EXISTS ( SELECT y.repid FROM sgvault.dbo.tblrepositories y WHERE y.repid = x.repid AND y.currenttxid = x.txid )
1) SELECT repid, name, currenttxid FROM sgvault.dbo.tblrepositories
2) SELECT x.repid, x.txid FROM sgvault.dbo.tblfulltreerevisionfolders x WHERE EXISTS ( SELECT y.repid FROM sgvault.dbo.tblrepositories y WHERE y.repid = x.repid AND y.currenttxid = x.txid )
Jeff Clausius
SourceGear
SourceGear
SELECT repid, name, currenttxid FROM sgvault.dbo.tblrepositories
3 ... 16076
4 ... 15628
5 ... 5
6 ... 8962
7 ... 16073 <-- Lost repository
8 ... 5598
9 ... 5775
3 ... 16076
4 ... 15628
5 ... 5
6 ... 8962
7 ... 16073 <-- Lost repository
8 ... 5598
9 ... 5775
Last edited by aluetjen on Fri Jun 24, 2005 10:23 am, edited 1 time in total.
update4u Software AG
DECLARE @repid [bigint];
SET @repid = 7;
SELECT MAX(txid) FROM sgvault.dbo.tblfulltreerevisionfolders WHERE repid = @repid;
SELECT t.* FROM sgvault.dbo.tbltransactions t WHERE t.repid = @repid AND t.txid >=
(SELECT MAX(txid) FROM sgvault.dbo.tblfulltreerevisionfolders WHERE repid = @repid);
16072
16072 7 2 2005-06-24 14:16:50.347 2005-06-24 14:16:51.207
16073 7 24 2005-06-24 14:17:01.863 2005-06-24 14:17:02.457
SET @repid = 7;
SELECT MAX(txid) FROM sgvault.dbo.tblfulltreerevisionfolders WHERE repid = @repid;
SELECT t.* FROM sgvault.dbo.tbltransactions t WHERE t.repid = @repid AND t.txid >=
(SELECT MAX(txid) FROM sgvault.dbo.tblfulltreerevisionfolders WHERE repid = @repid);
16072
16072 7 2 2005-06-24 14:16:50.347 2005-06-24 14:16:51.207
16073 7 24 2005-06-24 14:17:01.863 2005-06-24 14:17:02.457
update4u Software AG
OK. Step 2
DECLARE @repid [bigint];
SET @repid = 7;
SELECT MAX(txid) FROM sgvault.dbo.tblfulltreerevisionfolders WHERE repid = @repid;
SELECT t.* FROM sgvault.dbo.tbltransactions t WHERE t.repid = @repid AND t.txid >=
(SELECT MAX(txid) FROM sgvault.dbo.tblfulltreerevisionfolders WHERE repid = @repid);
DECLARE @repid [bigint];
SET @repid = 7;
SELECT MAX(txid) FROM sgvault.dbo.tblfulltreerevisionfolders WHERE repid = @repid;
SELECT t.* FROM sgvault.dbo.tbltransactions t WHERE t.repid = @repid AND t.txid >=
(SELECT MAX(txid) FROM sgvault.dbo.tblfulltreerevisionfolders WHERE repid = @repid);
Jeff Clausius
SourceGear
SourceGear
Step 3 from the previous thread
Let's get an idea of files were changed. You don't need to report this back, but use this information to inform users they will need to re-commit their changes. Also keep the object ids around for confirmation after we're done.
DECLARE @lasttxid [bigint], @repid [int];
SELECT @repid = 7, @lasttxid = 16072;
SELECT v.objid, u.login, n.name, t.*, td.* FROM sgvault.dbo.tbltransactions t
INNER JOIN sgvault.dbo.tbltransactiondetails td ON (td.txid = t.txid)
INNER JOIN sgvault.dbo.tblfsobjectversions v ON (v.objverid =
td.itemobjverid) INNER JOIN sgvault.dbo.tblfsobjectversionnames n ON (n.vernameid = v.vernameid) INNER JOIN sgvault.dbo.tblusers u ON (u.userid = t.userid) WHERE t.repid = @repid and t.txid > @lasttxid;
Let's get an idea of files were changed. You don't need to report this back, but use this information to inform users they will need to re-commit their changes. Also keep the object ids around for confirmation after we're done.
DECLARE @lasttxid [bigint], @repid [int];
SELECT @repid = 7, @lasttxid = 16072;
SELECT v.objid, u.login, n.name, t.*, td.* FROM sgvault.dbo.tbltransactions t
INNER JOIN sgvault.dbo.tbltransactiondetails td ON (td.txid = t.txid)
INNER JOIN sgvault.dbo.tblfsobjectversions v ON (v.objverid =
td.itemobjverid) INNER JOIN sgvault.dbo.tblfsobjectversionnames n ON (n.vernameid = v.vernameid) INNER JOIN sgvault.dbo.tblusers u ON (u.userid = t.userid) WHERE t.repid = @repid and t.txid > @lasttxid;
Jeff Clausius
SourceGear
SourceGear