Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...173 Mb Database173 Mb Database
Previous
 
Next
New Post
6/5/2007 4:49 AM
 

Thnaks for the reply

My database is now 134mb and .ldf is 74mb.  Now my site really hasnt got any content yet and all images are stored on the file system.  It only has 80 pages, with 40 users and 6 roles.  I am strating to belive that there is something wrong here and will have to do some investigations.

Yes my site log, event log have been set to record for one day.

Is there any posts or tutorials regarding DNN database management

 

thannks


Class Campers -The Home of the Volkswagen camper & Bus Enthusiast
Worlds Cheapest Homes - Need a Cheap Property, cant afford a home
Beeb iPlayer - Need help with the BBC's new iPlayer software
Internet Insurance Quotes - For the the information you will ever require about Insurance
 
New Post
6/5/2007 11:48 AM
 

Make sure there are no problems in your db. If db have broken pages or indexes or any other you might receive error messages. So, in Query Analyzer do start  with a:

 

  • DBCC CHECKDB ('mydatabase') WITH ALL_ERRORMSGS

 

If DBCC runs OK, fine. But, it is most likely that many folks are letting EventLog, SiteLog and ScheduleHistory (and maybe other tables) continue to grow infinitely. So, perhaps they will find Error Messages. I just deleted all records in those Log tables before continuing with the rest Query Analyzer instructions.

NOTE: if you can afford to loose data in any of those Logging tables or you cannot delete all records when you try then do a:

  • DBCC CHECKTABLE 'table_name', REPAIR_ALLOW_DATA_LOSS

 

Now it is time to know a bit more about your database settings. In query analyzer do a:

  • exec sp_helpdb 'mydatabase'

Check size and recovery mode which perhaps is set to FULL. You may need to change to SIMPLE mode. Do this when in Studio Manager or Enterprise Manager: right click on your db,  properties, options..find and set mode. Or, if you prefer Query Analizer

  • exec sp_dboption 'mydatabase', 'trunc. log on chkpt.', 'TRUE';

Note: this weird parameter should be like witten like this 'trunc. log on chkpt.' abreviated and with a period (.)

Then, backup your log,

  • BACKUP LOG mydatabase WITH TRUNCATE_ONLY

No single quote here.

Finally, shrink your db with option to truncate.

  • DBCC SHRINKDATABASE ('mydatabase',TRUNCATEONLY)

I managed to free 800MB using this process.

 

 
New Post
6/6/2007 7:03 AM
 

Ah awasome

thanls for the detailed post.  After going through your post i did find that the resevered space on my database was 120mb.  I mage this a lot smaller with a database increatment size of 1mb.  I then shrunk my database and it is now 19mb

Wicked, thankyou very much

 


Class Campers -The Home of the Volkswagen camper & Bus Enthusiast
Worlds Cheapest Homes - Need a Cheap Property, cant afford a home
Beeb iPlayer - Need help with the BBC's new iPlayer software
Internet Insurance Quotes - For the the information you will ever require about Insurance
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...173 Mb Database173 Mb Database


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out