Passa al contenuto principale
Supporto OCLC

OPEN Datenbank läuft voll (MSSQL)

Problembeschreibung

  • Die OPEN Datenbank kann volllaufen (offt bei MSSQL Express)
  • Es können sich z.B. keine neuen Leser mehr anmelden oder OPEN ist Offline.

Gilt für

  • Alle OPEN's

Lösung

Kurze Einführung oder Anweisungen zum Befolgen dieser Schritte:

  1. Über das MSSQL-Managmentstudio, kann man sie die Betrofennen Tabelen über einen Standardbericht (Sorltiert nach größe) anzeigen lassen.
  2. Die Berofennen Tabellen per Trancate oder Delete bereinigen.

    Beispiel für under öfters betrofenen Tabellen:

    truncate table Sitelog;
    truncate table exceptions;
    truncate table OCLCSearch_History;

    -----------------------------------
    Bei Delete muss man aufpassen, das das .ldf nich vollläuft:

    --Deleting millions of records from a table without blowing the transaction log

    DECLARE @continue INT
    DECLARE @rowcount INT

    SET @continue = 1

    WHILE @continue = 1

    BEGIN
        PRINT GETDATE()
        SET ROWCOUNT 10000
        BEGIN TRANSACTION

        delete from EventLog

        SET @rowcount = @@rowcount 
        COMMIT
        PRINT GETDATE()
        IF @rowcount = 0
        BEGIN
            SET @continue = 0
        END
    END


    -----------------------------------

Weitere Informationen

x

Seiten ID

69093