Want to get rid of Google Ads, click here.
+ Reply to Thread
Results 1 to 5 of 5

Thread: Transaction Log Very BIG!!!

  1. #1
    Member HyotonKamilo's Avatar
    Join Date
    Jul 2009
    Location
    Bogotá, COL
    Posts
    59

    Question Transaction Log Very BIG!!!

    Hi!

    I got a question...

    hoy i can limit my SM DB Transaction log, because itīs already on 13 GB and still growth, i need to limit the size of this file for avoying problems with Service Mangaer...

    Thanks
    Regards
    Kamilo

  2. #2
    Senior Member
    Join Date
    Apr 2006
    Location
    Poland
    Posts
    680

    Default

    It would help a lot if you would tell what DB you use.

    If you have an MS SQL - then you have to do full backup and shrink the log.
    With SQL2005 I have problems with that and have seen others do have it as well, as
    it looks like not always the full backup is cutting the log.
    There is another option like changing the recovery model - but this method has VERY BIG influence on possibility to restore the DB after crash. Not recommended on production.

    It is not recommended on Oracle as well, the option to not use the archive logs.

    If you mean sm.log - If you have not turned on the additional logging (in your sm.ini for example) then there is nothing you can do about the speed of growing this file.
    But you can try to rotate the logs - search about it on this forum. Search for
    an option "-maxlogsize"

    regards
    Artur

  3. #3
    Member HyotonKamilo's Avatar
    Join Date
    Jul 2009
    Location
    Bogotá, COL
    Posts
    59

    Default

    hi artur
    Thanks for your answer

    i use MS SQL Express 2005 as muy database manager; and i use the SM7DEMO (the default database) i realize a backup of the database and the transaction log, to another hard drive, but this log still growth, today, the size of the file is about 17GB.

    iīll wait for yopur answer.

    Regards from Colombia.
    Kamilo

  4. #4
    Member HyotonKamilo's Avatar
    Join Date
    Jul 2009
    Location
    Bogotá, COL
    Posts
    59

    Exclamation

    hi again

    the log i reffer to, is the log of the database, in the data folder; in MS SQL, exists a file called SM7DEMO_log.ldf, this file its very big in comparison to the database (16GB vs 2GB ).

    well, this file is the transaction log of the databasse, but i canīt stop itīs filesize, today growths about 200MB, definitively itīs not normal.

    Thanks!!!
    Regards.
    Kamilo

  5. #5
    Senior Member
    Join Date
    Apr 2006
    Location
    Poland
    Posts
    680

    Default

    It does not make sense to compare the size of mdf to ldf files.
    For example: you may have just 5 records in mdf file so the size will be about default 5MB (or even less) but if you do an update every 1ms the log file will grow as hell.

    You have to schedule the full backup using MSSQL agent and shrinking the log. As I wrote:
    "With SQL2005 I have problems with that and have seen others do have it as well, as
    it looks like not always the full backup is cutting the log."

    this is the only (and safe) way.
    Other options have severe tradeoffs in term of system security.

    regards
    Artur

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts