SharePoint 2010 content database size issues alldocs streams

HI All,
We are planning to do migration from sharepoint 2010 to sharepoint 2013. our database team identified that "all docs streams" and "audit log table" using almost 300 gig
we dropped "audit log" table today almost 100 gig
 but still "all doc streams" table size is almost 147 gig
how to handle this situation before migration?
do I need to migrate as it is or do I need to work on "all doc streams" table
hot to handle database size
which way you recommend ? what are the best practices
please see database table size
can any one please send me step by step implementation?
Thanks,
kumar
kkm

First off, touching SharePoint database tables is completely unsupported.
http://support.microsoft.com/kb/841057
You shouldn't be making changes within the database at all and you're putting yourself out of support by doing so.
AllDocStreams is your data. You need to have users clean up data, or move Site Collections to new Content Databases if you feel you need to reduce the size of the table itself.
Trevor Seward
Follow or contact me at...
&nbsp&nbsp
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

Similar Messages

  • Reduce Size or delete unwanted entries from tables AllDocStreams,AllDocVersions,EventCache,EventLog of Sharepoint 2010 content database

    Size or delete unwanted  entries from tables AllDocStreams,AllDocVersions,EventCache,EventLog  of Sharepoint 2010 content database:
    We using  powershell  scripts to migrate data between   two  sharepoint  2010 sites .
    While  doing migration  we  delete all  document libraries  & list  form  destination  site  and then run  powershell to migrate data from  source to destination. We following this  process
    twice in a week.
    But in doing  so  we found the above mention tables (AllDocStreams,AllDocVersions,EventCache,EventLog ) of destination Sharepoint Content database  are growing at an alarming rate. 
    Wish to know  how  could get rid of  unwanted  data stored in these tables.

    Hi,
    This is old thread but here is your answer for some of the tables you mentioned
    http://blogs.msdn.com/b/sowmyancs/archive/2012/06/29/alldocversions-amp-alldocstreams-table-size-after-upgrading-to-sharepoint-2010.aspx
    Cheers

  • SharePoint 2010 Content database growing too fast

    Hi,
    I have a SharePoint 2010 Content database wss_content_DB which is 197 GB BUT when I calculate my site collection I can see they have used only about 70 GB. I know there is Auditdata table which is about 27 GB. Couple of days ago my content DB was about 105
    GB and it Audit data log was set to unlimited once  I noticed that I set to 90 days since then it jumped to 197 GB.
     I have no idea what is going on.
     Now I need to know
     - why it is showing 197 GB in SQL server
     - How can I trim audit log
     -  Why suddenly it's increased to 197 GB from 105 GB
    Any help will be greatly appreciated.
     Abdul

    There is a way to deal with this table. There is an stsadm command (stsadm -o trimauditlog) as part of the infastructure update that will allow you to manage this data.
    #Powershell Script to trim old AuditData table records.
    $currentDate = Get-Date
    #Number of days we want to keep data in the table
    $NumberOfDays = -90
    $DateToDelete = $currentDate.AddDays($NumberOfDays)
    $DateString = ‘{0:yyyyMMdd}’ -f $DateToDelete
    $STSADMCMD = “stsadm -o trimauditlog -date $DateString -databasename WSS_ContentDB”
    invoke-expression “$STSADMCMD”
    WHY IT SUDDENLY INCREASED:
    Do this query on your SQL Instance: DBCC SQLPERF(logspace)
    This will show you how the size of LOGfiles (LDF) and how much is unused, if you have alot of unused space it indicates you dont have a recent DB backup - normally backup would write log data to MDF file .
    Normally you will not shrink DBs, only if you have deleted alot of data and you are not going to use space again so only do a shrink if you REALLY needs to.
    http://www.microsoft.com/en-us/download/details.aspx?id=24282

  • Sharepoint 2010 - configuration database size limit

    Hi,
       We have below scenario in our production farm. Ours is a SharePoint 2010 Enterprise Edition server.
    Medium size farm (4 WFE, 4 App Servers, Content DBs in separate tier. No SharePoint search in this farm)
    Configuration DB reached 250+ GB. Please clarify below queries.
    1. What is the boundary limit for configuration database size?
    2. How we can scale the configuration database?
    3. Can we add multiple configuration database per farm?
    4. What are the best practices and regular maintenance activities to be done to keep the configuration db size under control?
    It would be really really great if someone gives some good knowledge in this area.

    1) Not aware of one
    2) You can add multiple files to the file group
    3) No
    Is the growth in the MDF or the LDF (log file)? If it is in the log file, are you using high availability (Clustering, Mirroring, Log Shipping, AlwaysOn)? If so, you need to run a BACKUP LOG periodically to maintain the LDF size, or allow you to truncate
    the LDF.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Existing SharePoint 2010 Content Database Attach – No Site Collections

    First, let me start off by saying that I have read every single thread I could find on this subject, such as:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/0c34ca6f-0db1-4d61-a48c-c4704dd86513/currentsitecount-is-zero-in-upgraded-site
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/502459b3-0301-4ac3-bfc4-16ea702bb5bc/empty-site-data-after-mounting-content-database?forum=sharepointadminprevious
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/ec472ed5-4cdd-45ca-a327-ccc34c29c0a4/zero-site-collections-when-restoring-sp2010-content-database?forum=sharepointgeneralprevious
    http://social.technet.microsoft.com/Forums/en-US/c8df1760-275a-43a4-b3fc-cf257c56d8e2/orphaned-entry-in-config-database
    That said, even though my situation is a bit different than those posts, I have tried all the things!
    Let me break it down:
    Our prod server is a sad Frankenstein upgrade from Project/SharePoint 2003 to 2007 to 2010. 
    The problem is not on our prod server.
    Our test server was a database attach installation.  It mostly works. 
    The problem is, we have this old content database which housed the project sites that were created on 2003, then upgraded to 2007, then upgraded to 2010 – but when it attaches to the test server, it's empty.  The "current number of site collections"
    in CA shows 0 and the CurrentSiteCount in powershell = 0.
    We have to keep these sites and their links for compliance reasons (7 year retention policy!) and we haven’t really cared that they aren’t working on the test server…except that we are going to be upgrading to 2013 this year, and that’s a database attach
    no matter what.  So I have to solve this now.
    I’ve checked the following:
    The data is there on the database.
    The database name I’m typing is correct.
    The version of the db is up to date.
    The top level site is set to Exclusion.
    Permissions.
    Here’s what I’ve tried:
    Attaching using powershell
    Attaching using Central Admin
    Detaching and reattaching
    Running psconfig
    Resetting IIS
    When the database is unattached, I have tried the “Recover data from an unattached content database” function – it recognizes the database (if I type it in wrong, it tells me I don’t have access) but then finds nothing in the site collections.
    The prod server is perfectly happy with these sites, and we copied the database from prod after the 2010 upgrade, so I don’t know what the issue is.
    I appreciate any thoughts any of you have.  I’m stumped!
    ElliJ 
    Project Solutions Specialist
    http://projectserverpants.wordpress.com/

    Holy lots of errors, batman!!
    I think it's safe to say that the 2010 upgrade didn't hit all our sites, based on the errors and this post:
    http://social.technet.microsoft.com/Forums/projectserver/en-US/c7b19345-3036-4dc1-a174-026796cdee7c/missing-server-side-dependencies-after-project-server-upgrade-from-2003-to-2010?forum=projserv2010setup
    There are serveral missing setup files and one missing assembly:
    Category        : MissingSetupFile
    Error           : True
    UpgradeBlocking : False
    Message         : File [1033\PWA\lists\wplib\dwp\Updates.dwp] is referenced [27
                      5] times in the database [STS_FSHAREPTP01_1], but is not inst
                      alled on the current farm. Please install any feature/solutio
                      n which contains this file.
    Remedy          : One or more setup files are referenced in the database [STS_F
                      SHAREPTP01_1], but are not installed on the current farm. Ple
                      ase install any feature or solution which contains these file
                      s.
    Category        : MissingAssembly
    Error           : True
    UpgradeBlocking : False
    Message         : Assembly [Microsoft.Office.Project.Server.PWA,Version=12.0.0.
                      0,Culture=neutral,PublicKeyToken=71e9bce111e9429c] is referen
                      ced in the database [STS_FSHAREPTP01_1], but is not installed
                       on the current farm. Please install any feature/solution whi
                      ch contains this assembly.
    Remedy          : One or more assemblies are referenced in the database [STS_FS
                      HAREPTP01_1], but are not installed on the current farm. Plea
                      se install any feature or solution which contains these assem
                      blies.
    I guess the question now is - how do we get it to upgrade ALL of the site collections and sites?  I'm actually pretty sure I can figure it out from here, that test was a huge help, thanks!

  • SharePoint 2010 - Content database contains orphaned items

    Good day people!
    We have come across the feared "Content databases contain orphaned items"!
    Running a check on our farm shows:
    PS C:\Users\SPAdmin> Get-SPContentDatabase | ForEach-Object { $_.repair($false)}
    <OrphanedObjects Count="0" />
    <OrphanedObjects Count="0" />
    <OrphanedObjects Count="7">
    <Orphan Type="RoleAssignments" Count="7" />
    </OrphanedObjects>
    <OrphanedObjects Count="385">
    <Orphan Type="RoleAssignments" Count="385" />
    </OrphanedObjects>
    PS C:\Users\SPAdmin>
    Microsoft is very specific about how to solve this type of error on their http://go.microsoft.com/fwlink/?LinkID=142694.
    That is very nice and good,  but, doing this on a large production database doesnt feel all that good when we do not really know whats going to happen with the autofix button.
    Would/could anyone explain what the "Fix Now" button does? Any risks involved? Are there other ways to fix this problem? We already emptied all recycle bins completely.
    best regards
    Bjorn

    Hi Bjorn,
    Thanks for posting your issue, Kindly follow below mentioned Steps to fix reported issue
    Verify that the user account that is performing this procedure is a member of the Farm Administrators group.
    On the Central Administration Home page, click Monitoring.
    On the Monitoring page, in the Health Analyzer section, click
    Review problems and solutions.
    On the Review problems and solutions page, click the alert for the failing rule, and then click
    Fix Now. Keep the dialog box open so you can run the rule again to confirm the resolution.
    After following the steps in the Remedy section, in the
    Review problems and solutions dialog box for the alert, click Reanalyze Now to confirm the resolution. If the problem is resolved, the rule is not flagged as a failing rule on the Review problems and solutions page.
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • Constant refreshing of IE is only way to get site to display after a SharePoint 2010 Content Database Migration to 2013..why?

    Hi,
    I am having an issue of having to refresh my IE to be able to view a migrated SharePoint 2010 site in 2010 mode in SP2013. Is this Token Service Problem, Request Management problem.....
    Any ideas out there - driving me nuts!
    Thanks.
    John.
    P.S> Still think this could be related to over-provisioned host as all SP Machines are virtual. Won't know for sure until Tuesday.
    Thanks.
    JOhn.

    What are you using Request Management for?
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • List and libraries in sharepoint 2010 content database

    I want to know when I create List or form library . where every form of form library will go.
    Will it save into content database ?
    I want to make report from the content database for form library or list ?

    All Content in SharePoint is stored in the content database and there are APIs that you can use to access the contents of a particular list or library in SharePoint.  But if you are thinking that you can access a specific list as a single table or portion
    of a database table in the content database for your report then you will be disappointed for two reasons.
    First, direct access to the SQL databases in SharePoint is prohibited by your license agreement.  It is too easy to break things in SharePoint when you start accessing the databases directly.
    Second, individual entries in a list or library are not stored directly in one place.  
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • Sharepoint 2010 Content Deployemnt Job issue with duplicate fields in User information List

    Hi friends,
    I am facing below issue with the content deployment job.
    It was working earlier. But now since from couple of days all the content deployment jobs in production environment are failing with below error.
    Field name already exists. The name used for this field is already used by another field in the list. Select another name and try again.
    ObjectName="User Information List".
    When I check the fields in User information list in targeted site, I found couple of columns are dupicate like "ask me about",first name","Last name" etc.
    Do i Need to drop target site collection or recreate with fresh content deployment job.
    Please suggest.
    Please help .
    Regards
    Subrat

    Hi,
    According to your post, my understanding is that you got duplicate field error.
    Based on the error message, you can try to use the following code sample to remove duplicate records, and check whether it works:
    http://social.msdn.microsoft.com/Forums/en-US/sharepointgeneralprevious/thread/41ee04bd-91fb-4bf9-932a-bac42c56c357
    Here is a similar issue, you can also use the ‘RemoveDuplicateColumn64’ provided:
    http://sharepointsurfer.wordpress.com/2012/04/27/how-to-fix-publishing-site-content-deployment-error-duplicate-first-name-column/
    What’s more, as you had said, you can recreate a site with a fresh deployment job.
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How to Synchronize 2010 content database of my site (Web Application port 8080) to Sharepoint 2013 content database

    Hello,
    I am migrating Sharepoint 2010 my site content database to SharePoint 2013. First I have to create My site web application  in SharePoint 2013. How can I synchronize 2010 content database with 2013.

    Hi ghsajith,
    According to your description, my understanding is that you want to upgrade your SharePoint 2010 to SharePoint 2013.
    There is an article for your reference:
    http://blogs.msdn.com/b/alimaz/archive/2012/07/17/upgrading-from-sharepoint-2010-to-sharepoint-2013-step-by-step.aspx
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Mismatch between the Content Database size and the total of each site collection' storage used.

    Hi All,
    Environment:  SharePoint 2010 with SP2.
    Issue: One of the Content databases size in our farm shows 200 GB as used. There are 25 site collections in the DB and we counted
    the total storage used of all site collections in that Content DB and is not more than 40 GB. (used "enumsites" command and counted the each sitecollections storage used).
    What actions/troubleshooting were done?
    Ran one script which will find the actual size of site collection and how much space used in the disk. But didn’t find major difference in the report.
    Checked “Deleted from end user recycle bin “in all the site collections and no major storage is noticed.
    Planning to Detach the problematic Content DB and attach ,will check whether any major effect is there
    Why the Content DB shows 200 GB as used when the total storage used of all site collections is just 40 GB.
    Appreciate suggestions from any one.
    Best Regards,
    Pavan Kumar Sapara.
    s p kumar

    Hi,
    Thanks for your reply.
    As there is only 20 MB of unallocated space for the above said DB, SQL DB team informed that they cannot perform the DB shrink at this moment.
    So we are thinking to Offload all the site collections to other new DB and then will Drop the problematic database. In this way we can overcome the
    issue.
    Answer for your queries.
    Are the mismatched sizes causing an issue? Are you short on diskspace for DB storage or SQL backups?
    No, there is no issue with the mismatched sizes. We are not on short on disk space. We just worried why it occupies that much size(200 GB) when
    the total storage used of all site collections in that DB is 40 GB.
    Best Regards,
    Pavan Kumar Sapara.
    s p kumar

  • Sharepoint Site and Database Size Conflict

    Hello,
    We are at the initial face of migration from Sharepoint 2010 to Sharepoint online. We have gather all the reports but for some reason, Report for Site show more data size than Content database.
    eg. I have content Database size of 5 GB.
    Site data which also include the subsite size total show as 13 GB. I am confused how is that possible ? Any help appreciated 

    Hi Priti, see the following links for the reason:
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/34ad8581-b4ae-442d-bce5-1a1f72f6e472/sharepoint-site-and-content-database-size-discrepency?forum=sharepointgenerallegacy
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/6b5c33f8-be08-466f-81aa-359f8a03ede5/sharepoint-site-collection-size-vs-database-properties-sizemdf-file-size?forum=sharepointadminprevious
    cameron rautmann

  • Display Custom Fields in a SharePoint 2010 Content Query Web Part?

    Using SharePoint 2010, Having Custom List With 4 Columns, Now I am Using Content Query Web-part To Display List Data ,But Currently It Display Only First Column, SO How to Display Custom Fields in a SharePoint 2010 Content By Query Web Part
    AKshay Nangare

    Hi,
    By default CQWP shows only one column. However, if you want to show more than one column, then CQWP needs to be customized. The property which you are looking for is CommonViewFields. It is used to specify the additional fields that you want to display in
    the Web Part. See this for more information:
    https://msdn.microsoft.com/en-us/library/ms497457%28v=office.14%29.aspx?f=255&MSPPError=-2147217396
    Blog | SharePoint Learnings CodePlex Tools |
    Export Version History To Excel |
    Autocomplete Lookup Field

  • SharePoint content database size limit

    Hi All,
    I am just verifying whether my method is a right way to do it.
    I created a site collection and I am need to clone the sites. I tried Export/Import but the permissions are not copied as I use a third party tool for column level permission.
    The work around I found is to restore the site with new content database (all permissions are copied). I need to create 100 of those same exact site collection (for different users). I am planning on creating new content database within the same web
    application and resorting the site collection to the new content DB.
    Microsoft supports content DB of 4TB size.
    But my question is if I create multiple content DB (each does not exceed 200 MB) will there be any performance issue? Is it a right way to do it?
    100*200(MB) = close to 2 GB.
    I will be having 5 web application each with the 100 site collection and a content DB for each site collection with 200 MB.
    Is there anything wrong to do it this way?

    Hi Maddy.r,
    from the article it is stated the limit that 500 content database per farm.
    Limit                      
                            Maximum value                      
                            Limit type                      
                            Notes                      
    Number of content databases
    500 per farm
    Supported
    The maximum number of content databases per farm is 500. With 500 content databases per web application, end user operations such as opening the site or site collections are not affected. But administrative operations such as creating a new site collection
    will experience decrease in performance. We recommend that you use Windows PowerShell to manage the web application when a large number of content databases are present, because the management interface might become slow and difficult to navigate.
    sharepoint 2010 and 2013, have difference, and the capability for sharepoint 2013 is better than 2010.
    addition,
    i heard there is solution to have multiple farm instead, since the limitation is by farm, then if you able to create multiple farm, it may increase the bar for your environment limitation.
    http://www.informit.com/articles/article.aspx?p=2131832&seqNum=2
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Extracting documents from Sharepoint 2013 Content Database

    harepoint 2013 stores documents in the WSS_Content database in a table called DocStreams.
    Up until Sharepoint 2010, files where stored in a single row in a VarBinary column. Since Sharepoint 2013, files are stored in multiple rows using Shredded Blob storage.
    Does anyone know how I can piece together the files from the shredded storage in c#?
    I have found many exampled online to extract files from SharePoint 2010 and earlier but they only support a files content being stored in 1 row.

    Just wondering, can't you attach the database in a new site and access documents? As I know, in SharePoint 2013 they have changed architecture to manage versioning. In pre-SharePoint 2013 every individual versions was a duplicate copy of the  document
    - which would increase db size and would make it difficult to move documents in the cloud. So in SharePoint 2013 they use delta concept - where if you edit a document which creates a new version, the version is the delta (changes) to previous version.
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com

Maybe you are looking for

  • Can't open/update iPhoto

    I have been lucky to install the new iLife '11, but after I have installed it for about a few weeks, it can't open. It happened to me when I tried to open it pops up a notice like this: In order to open iPhoto, you need to update to the latest versio

  • Clear space (old backups) WD My Passport for Mac HD

    Hi, I have purchased an external hard disk WD My Passport for Mac in order to backup my MacBook Air regularly (with time machine) and store films and pictures to save space from my mac. I have just realised that I have several old backups from my Mac

  • How to set a query of VO in  Best-Effort Mode

    Hi, I'm using auto refresh property of VO, to refresh the LOV . But i get " java.sql.SQLException: ORA-29983: Unsupported query for Continuous Query Notification" error.. So i want to set the query in best-effort-mode . May i know how to set it. here

  • G5 Startup Failure

    What action do I take to correct the following on my G5 (June 04) dual processor: On safe boot there is an error mapping AppleIntel CPUPower Management.  Can't allocate class.  This occured after taking many steps described in the technical resource

  • Créating new redo log group with dataguard

    Hi, is there an impact on the standby database if i create a new redo log group on the primary database? Thanks