Content databases contain orphaned items

Keep getting this in SPHA - tried auto fix but this does nothing - what are the recommended troubleshooting steps to resolve this issue? It's a new build using SQL AOAG and hot standby data centre and the same issue is showing on the replicated DBs
Cheers

Hi,
Content DB orphans / Security Corruption (Missing ScopeID) could be detected using stsadm -o databaserepair or using a PowerShell script such as below for SharePoint 2010 /2013 Farm.
Note:
Please take farm / Content DB backup before you attempt to use this script.
Script runs at Farm level, enumerates thru each Content DB so script could take some time to complete if there are many Content DBs / large farm.
Script is Read-Only (just detects orphans – if any).
IMPORTANT: Script can be changed to remove orphans by setting bool DeleteCorruption to $true however I strongly suggest to use this script only for detection and DeleteCorruption switch should
be applied manually after taking backup of farm / Content DB.
More Info on SPContentDatabase.Repair method
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.spcontentdatabase.repair.aspx
More Info on stsadm -o databaserepair command
http://technet.microsoft.com/en-us/library/cc263282.aspx
if ((Get-PSSnapin -Name Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue) -eq $null )
{Add-PSSnapin Microsoft.SharePoint.Powershell}
$CDBs = Get-SPContentDatabase
ForEach ($CDB in $CDBs)
Write-Host "Detecting Orphans for " $CDB.Name
$CDB.Repair($false)
Cheers

Similar Messages

  • 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

  • Problem in getting sandbox path in Content Database

    Hello all,
    we have created a custom application using Oracle Content database API, which upload files to content database programmatically. For this we are using following code to retrieve sandbox
    try
    FdkCredential credential = new SimpleFdkCredential(username,password);
    ManagersFactory session = ManagersFactory.login(credential,url);
    FileManager fileM = session.getFileManager();
    Item sandbox = fileM.resolvePath(sandbox_path, null);
    Item workspace = (sandbox == null) ? null :
    fileM.resolveRelativePath(sandbox.getId(),workspace_name, null);
    catch(FDKException e)
    e.printStackTrace();
    Here, sandbox_path and workspcae_name are the names of sandbox and workspace in contentDB. credential, session and fileM are creating fine, but unable to get the sandbox Item.
    when we are running the same application in local, it executed successfully and all the files uploaded successfully. There we didn't get any problem. But the same files when we ported to server and tried to upload files to content database we are unable in getting Item object that is sandbox. Instead of retrieving sandbox we are getting null value. Both custom files and Content Database are on same server.
    Can anyone please help use why this is happening.

    Hi Nitin,
    I think you can use CODE similar to below.
    Check the function module SXMI_XMB_SYSLOG_READ for more details. It contains similar logic.
      SUBMIT RSLG0000 LINE-SIZE 255
             WITH TR_TERM  EQ '*'
             WITH TR_DATE  EQ FROM_DATE
             WITH TR_TIME  EQ FROM_TIME
             WITH TR_EDATE EQ TO_DATE
             WITH TR_ETIME EQ TO_TIME
             WITH TR_CPU   EQ SERVER_NAME
           WITH TR_PAGES EQ '003'         " Begrenzung Anzahl Seiten
             WITH TR_USER  EQ LOOKING_FOR_USER
             WITH NOCODEVC EQ 'X'
             WITH NOCOTASK EQ 'X'
             WITH NOCOMAND EQ 'X'
             WITH NOCOTRAN EQ 'X'
             WITH NOCOTERM EQ 'X'
             EXPORTING LIST TO MEMORY
             AND RETURN.
      CALL FUNCTION 'LIST_FROM_MEMORY'
           TABLES
                LISTOBJECT = LIST_IN_MEMORY
           EXCEPTIONS
                OTHERS     = 99.
    Thanks,
    Ramakrishna
    Message was edited by: Ramakrishna Prasad Ramisetti

  • 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!

  • Create feature for generate new collection having separate content database by using custom coding with C#

    Hi all My self ArunDarly .Iam using share point 2010 ,I want below task solve by  using custom coding with
    C#
    I have one task that create new site collection having separate content database. and that content database site collection limit  should be only one  (it must contain one site collection and note more than one  )
    This total functionality should happen when I am saving one list item (dynamically generate new site collection ) 
    If any body know this Please give me your guidance  
    Thanking  You,
    Arun Darly

    Hey Arun,
    I have done the same job. Hope this code will help you.
    using (SPSite siteCollectionOuter = new SPSite("Any SC url in which u want to create site."))
    SPWebApplication webApp = siteCollectionOuter.WebApplication;
    SPSiteCollection siteCollection = webApp.Sites;
    SPContentDatabase contentDatabase =
    siteCollection.WebApplication.ContentDatabases.Add(ServerName, New Database Name, Admin Name,
    "Admin Password",25,50, 0);
    //Above line will create new content DB
    contentDatabase.Update();
    siteCollection.WebApplication.Update();
    SPSite newSite = contentDatabase.Sites.Add("New SC Url", "SC Title", SC Desctipyion, 1033,
    15, "STS#0", "SC Admin", "Admin", "admin password",
    "User 2", "User NAme", "Password");
    //Ablove line will create new SC in to the Content DB
    //add the upper limit for the site collection
    SPQuota quota;
    quota = new SPQuota {StorageMaximumLevel = 2510220};
    newSite.Quota = quota;
    // And update the site collection and the content database
    newSite.RootWeb.Update();
    contentDatabase.Update();

  • How to force Portal not to display item content for a custom item

    Hi,
    I've read in several places questions about rendering an Item in a custom way, without letting portal
    display the item content, if you read along I've discovered a SIMPLE WAY to force portal not to
    display the content item.
    As per bugs and requests on metalink it seemed that in many versions of Oracle Portal (mine is 9.0.4.1)
    this is impossible, since even if we remove the "Item Content" from the list of displayed attributes in the
    region, Portal does display it anyway, just after every other Attribute.
    - Re: using an item type procedure
    - Metalink BUG # 3998251 "ENH: SHOULD BE ABLE TO HIDE "ITEM CONTENT" FOR TEXT ITEMS OR NEED A NEW ITEM TYP" and is being looked into internally whether it is feasible to include this in future releases.
    - Metalink Doc ID:      Note:290534.1          Subject:      Unable to Hide the "Item Content" Attribute for a Text Item     
    Mine scenario was the usual one:
    -oracle portal 9.4.0.1
    -a custom item based on custom text (so as to have the RTE to edit HTML).
    -A few attributes that help me define the class of an enclosing DIV tag that I wanted to put (a class and an ID)
    -A plsql call associated to the custom item, with the flag "display inline" checked
    -The dirty HTML generated by the built-in Oracle RTE (with BODY and HTML tags enclosing the actual HTML)
    -The region that will contain the item is set so that just the "Function Call" is (or should be) displayed
    I wanted to control entirely the display of the item text, while enclosing it in a custom DIV tag.
    After a few tries, one of which involved forcing an HTML comment around the item content that Portal stubbornly
    displayed, I've discovered this simple way. I don't know hom much this way is portable, but is done entirely with the APIs.
    In the stored procedure that displays the item, that I encolose, i just do:
    1) retrieved the ITEM querying WWSBR_ALL_ITEMS;
    2) updated the ITEM via WWSBR_API.MODIFY_ITEM, passing as display_otpion the value WWSBR_API.FULL_SCREEN!!
    Here I try a little explanation:
    An item just created has FULLSCREEN=1 and INPLACE=0. This way the stored procedure is executed
    AND the item content is displayed.
    WIth the modify_item, the item gets FULLSCREEN=1 and INPLACE=2 !! This seems strange since the docs
    tells that inplace can be 0 or 1. But this works.
    I've played with the WWV_THINGS table directlry, and setting INPLACE to 0, 2 or 3 works as well, while
    if it is set to 1, it behave the usual way.
    The trick is to have FULLSCREEN to 1 while INPLACE is not set to 1.. and this was the easiest solution.
    I'd like to receive a feedback from Oracle regarding this behaviour.
    Bye
    Walter
    --- This is the procedure ---
    CREATE OR REPLACE PROCEDURE show_item_mod(itemid in varchar2, styleid in varchar2,
         styleclass in varchar2) IS
    html CLOB;
    idx1 number;
    idx2 number := 0;
    item portal.wwsbr_all_items%rowtype;
    BEGIN
         --retrieve item content
         select * into item from portal.wwsbr_all_items where id=itemid;
         html := item.text;
         --check if text body contains "dirty" tags as put by Oracle RTE editor
         --and strips text from <BODY> to </BODY>
         idx1 := instr(html,'<BODY>');
         if(idx1 > 0) then
                   --strip text of broken tags
                   idx2 := instr(html,'</BODY>');
                   html := substr(html,idx1+6,idx2-idx1-6);
         end if;
         --check if this is first time we enter this procedure
         --or if text has changed
         if(item.description is null or idx2 != 0) then
                   --update filename so next time we won't enter the IF branch
                   --update DIPLSAY OPTION to FUllSCREEN
                   --update text, if this was changed
                   idx1 := portal.wwsbr_api.modify_item(
                        p_master_item_id => item.masterid,
    p_item_id => itemid,
    p_caid => item.caid,
    p_folder_id => item.folder_id,
    p_display_name => item.display_name,
    p_region_id => item.folder_region_id,
    p_display_option => portal.WWSBR_API.FULL_SCREEN,
    p_category_id => item.category_id,
    p_category_caid => item.category_caid,
    p_author => item.author,
    --p_description => item.description  ,
    p_keywords => item.keywords ,
    p_text => html ,
    p_folderlink_id => item.folder_link_id ,
    p_folderlink_caid => item.folder_link_caid ,
    p_publish_date => item.publish_date ,
    p_expire_mode => item.expiremode,
    --p_file_filename => 'Changed!',
                        p_description=> 'changed!',
    p_addnewversion => FALSE,
    p_access_level => portal.wwsbr_api.FOLDER_ACCESS
                   -- process cache invalidation messages
              portal.wwpro_api_invalidation.execute_cache_invalidation;
              end if;
         htp.prn('<div ');
         if(styleclass is not null) then
                   htp.prn(' class="' || styleclass || '" ');
         end if;
         if(styleid is not null) then
                   htp.prn(' id="' || styleid || '" ');
         end if;
         htp.prn('>');
         htp.p(html);
         htp.p('</div>');
    END show_item_mod;
    /

    Hi,
    I've read in several places questions about rendering an Item in a custom way, without letting portal
    display the item content, if you read along I've discovered a SIMPLE WAY to force portal not to
    display the content item.
    As per bugs and requests on metalink it seemed that in many versions of Oracle Portal (mine is 9.0.4.1)
    this is impossible, since even if we remove the "Item Content" from the list of displayed attributes in the
    region, Portal does display it anyway, just after every other Attribute.
    - Re: using an item type procedure
    - Metalink BUG # 3998251 "ENH: SHOULD BE ABLE TO HIDE "ITEM CONTENT" FOR TEXT ITEMS OR NEED A NEW ITEM TYP" and is being looked into internally whether it is feasible to include this in future releases.
    - Metalink Doc ID:      Note:290534.1          Subject:      Unable to Hide the "Item Content" Attribute for a Text Item     
    Mine scenario was the usual one:
    -oracle portal 9.4.0.1
    -a custom item based on custom text (so as to have the RTE to edit HTML).
    -A few attributes that help me define the class of an enclosing DIV tag that I wanted to put (a class and an ID)
    -A plsql call associated to the custom item, with the flag "display inline" checked
    -The dirty HTML generated by the built-in Oracle RTE (with BODY and HTML tags enclosing the actual HTML)
    -The region that will contain the item is set so that just the "Function Call" is (or should be) displayed
    I wanted to control entirely the display of the item text, while enclosing it in a custom DIV tag.
    After a few tries, one of which involved forcing an HTML comment around the item content that Portal stubbornly
    displayed, I've discovered this simple way. I don't know hom much this way is portable, but is done entirely with the APIs.
    In the stored procedure that displays the item, that I encolose, i just do:
    1) retrieved the ITEM querying WWSBR_ALL_ITEMS;
    2) updated the ITEM via WWSBR_API.MODIFY_ITEM, passing as display_otpion the value WWSBR_API.FULL_SCREEN!!
    Here I try a little explanation:
    An item just created has FULLSCREEN=1 and INPLACE=0. This way the stored procedure is executed
    AND the item content is displayed.
    WIth the modify_item, the item gets FULLSCREEN=1 and INPLACE=2 !! This seems strange since the docs
    tells that inplace can be 0 or 1. But this works.
    I've played with the WWV_THINGS table directlry, and setting INPLACE to 0, 2 or 3 works as well, while
    if it is set to 1, it behave the usual way.
    The trick is to have FULLSCREEN to 1 while INPLACE is not set to 1.. and this was the easiest solution.
    I'd like to receive a feedback from Oracle regarding this behaviour.
    Bye
    Walter
    --- This is the procedure ---
    CREATE OR REPLACE PROCEDURE show_item_mod(itemid in varchar2, styleid in varchar2,
         styleclass in varchar2) IS
    html CLOB;
    idx1 number;
    idx2 number := 0;
    item portal.wwsbr_all_items%rowtype;
    BEGIN
         --retrieve item content
         select * into item from portal.wwsbr_all_items where id=itemid;
         html := item.text;
         --check if text body contains "dirty" tags as put by Oracle RTE editor
         --and strips text from <BODY> to </BODY>
         idx1 := instr(html,'<BODY>');
         if(idx1 > 0) then
                   --strip text of broken tags
                   idx2 := instr(html,'</BODY>');
                   html := substr(html,idx1+6,idx2-idx1-6);
         end if;
         --check if this is first time we enter this procedure
         --or if text has changed
         if(item.description is null or idx2 != 0) then
                   --update filename so next time we won't enter the IF branch
                   --update DIPLSAY OPTION to FUllSCREEN
                   --update text, if this was changed
                   idx1 := portal.wwsbr_api.modify_item(
                        p_master_item_id => item.masterid,
    p_item_id => itemid,
    p_caid => item.caid,
    p_folder_id => item.folder_id,
    p_display_name => item.display_name,
    p_region_id => item.folder_region_id,
    p_display_option => portal.WWSBR_API.FULL_SCREEN,
    p_category_id => item.category_id,
    p_category_caid => item.category_caid,
    p_author => item.author,
    --p_description => item.description  ,
    p_keywords => item.keywords ,
    p_text => html ,
    p_folderlink_id => item.folder_link_id ,
    p_folderlink_caid => item.folder_link_caid ,
    p_publish_date => item.publish_date ,
    p_expire_mode => item.expiremode,
    --p_file_filename => 'Changed!',
                        p_description=> 'changed!',
    p_addnewversion => FALSE,
    p_access_level => portal.wwsbr_api.FOLDER_ACCESS
                   -- process cache invalidation messages
              portal.wwpro_api_invalidation.execute_cache_invalidation;
              end if;
         htp.prn('<div ');
         if(styleclass is not null) then
                   htp.prn(' class="' || styleclass || '" ');
         end if;
         if(styleid is not null) then
                   htp.prn(' id="' || styleid || '" ');
         end if;
         htp.prn('>');
         htp.p(html);
         htp.p('</div>');
    END show_item_mod;
    /

  • BSIS Index for G/L Accounts contains Customer items ?

    Hello experts,
    I have some doubts about what i'm seing in database table BSIS. I always thought that this index table was containing only items with account type 'S' for GL account items.
    But it seems that customer items (with account type = D) can also be stored in this index table.
    Can anyone confirm if it is the normal behavior ? I'm really confused.
    Thanks in advance for any help.
    S.

    In the master data of the reconciliation account, you have the field SKB1-MITKZ (Reconcil.ID), with value 'D' for a customer reconciliation account.
    The documentation of this field is:
    Account is reconciliation account                                                                               
    An entry in this field characterizes the G/L account as a reconciliation
         account. The reconciliation account ensures the integration of a       
         subledger account into the general ledger.                                                                               
    Examples                                                                               
    G/L account 140000 is defined as a reconciliation account. In the      
         customer account 4711, the G/L account 140000 is determined as a       
         reconciliation account.                                                                               
    In this way, all postings to customer account 4711 are also posted     
         automatically to the G/L account 140000. The G/L account itself is not 
         designed for direct posting. In this way, a reconciliation between     
         subledger and general ledger is always guaranteed.

  • Upgrading Sharepoint Content Database from 2008R2 sql server to SQL Server 2012

    I am doing an upgrade of SharePoint 2010 to 2013.
    What is the best way for the SharePoint database in 2008 to upgrade to 2012.
    attaching just the backup of content database should work or there is some other considerations as well along with.
    Are there any  known issues while upgrading the SharePoint database from 2008 to 2012.
    this is not an in place upgrade.
    kukdai

    If I may continue this question. I am upgrading MSSQL 2008 to MSSQL 2012. This box contains all of the DBs for our Sharepoint installation.  I am not a Sharepoint admin, I am a DBA.  So let me get this straight , from what I read up above all I
    have to do is just go through the standard procedure of upgrading SQL server 2008 to 2012 and the sharepoint DBs will upgrade with it w/o an issue.  Are there any gotchas with SSRS?  
    My SQL box runs WIN 2008 and has all necessary MSoft updates.
    Ianaa

  • Site collection movement to another content database

    HI All,
    we are using sharepoint 2010 and have 2 big production web applications. 7 content databases are attached with one web application. Out of 7 cdb's, 3 content databases are more than 200 gb. The rest 4 cdbs are small in size. I want to pick some bigger site
    collection from those 3 bigger cdbs, and move them to any of the rest 4 cdb's.
    As per my knowledge.
    1. All the 7 cdb's are attached to a single web application.
    2. CDB's are in same instance of sql server.
    My question here is, how (move-SPSITE URL DESTINATIONCONTENTDATABASE WSS_COntent_abc) works.
    Question 1.  Will this cmdlets take the backup of URL mentioned , keep it somewhere in file system, and then move it to destination. and then delete it from source.
    Question 2: Or it will only move it to destination CDB, and delete it from source. Without taking any backup.
    Please help me to understand these questions.
    Thanks

    Hi,
    According to your post, my understanding is that you wanted to move site collection to another content database.
    You can use the Windows PowerShell command Move-SPSite to move site collections between content databases. However, it cannot backup the database.
    To backup database, you can use the Windows PowerShell command:
    Backup-SPFarm -Directory   <Backup folder>  -BackupMethod {Full | Differential} -Item <Content database name> [-Verbose]
    More information:
    Move site collections between databases (SharePoint Server 2010)
    Back up a content database in SharePoint Server 2010
    Restore a content database in SharePoint Server 2010
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Content Database large after removing BLOB

    My content database was 3 gigs before removing BLOB. In the process of removing BLOB, it required a merge which moved all of the files from the BLOB to my content database and made it 32 gigs. I then deleted the site containing all of the documents, but
    it didn't reduce the size of my content database.
    How can I clean up and get my content database back down to the original 3 gigs?

    Thanks for your replies and interest in helping. I've been researching this for days.
    In order to remove the BLOB I had to "migrate the data" into my content database. I then deleted the list and the subsite and emptied the recycle bin. After doing all the clean up I could find on the SharePoint side, I started researching the SQL
    side.
    I followed the instructions in the links you posted, but the Shrinking (second link) was basically the same as what I've tried already. The same steps, just from a different site.
    I don't know if I should be looking at SharePoint, SQL or both. The migrate (removing the BLOB) was done in SQL, so I'm thinking it should be removed using SQL.
    This is the link to the steps I used to remove the BLOB:
    https://alipka.wordpress.com/2010/06/19/how-to-disable-rbs-in-sharepoint-2010/
    This is the step I did that increased the DB size:
    Migrate all content off RBS to SQL and disable RBS for content db:
    $cdb=Get-SPContentDatabase <ContentDbName>
    $rbs=$cdb.RemoteBlobStorageSettings
    $rbs.GetProviderNames()
    $rbs.SetActiveProviderName("")
    $rbs.Migrate() –note: this might take some time depending on amount of data in your RBS store
    $rbs.Disable()

  • Remove-SPContentDatabase : The content database could not be found

    I am using SharePoint 2010 
    ============================================
    PS C:\Windows\system32> get-spdatabase 8fdf806b-6dc8-49b2-8bfc-d574707ea58c
    Name                     Id                                   Type
    Managed Metadata Serv... 8fdf806b-6dc8-49b2-8bfc-d574707ea58c Microsoft.SharePo...
    =======================================================
    The  "Managed Metadata Service_e13d38135b8b4f268e0aa0d4c6d408b1" does not exist on the SQL Server.
    When I remove the database, I am getting following error in powershell
    ==========================================================
    PS C:\Windows\system32>  remove-spcontentdatabase -id 8fdf806b-6dc8-49b2-8bfc-d574707ea58c
    Remove-SPContentDatabase : The content database could not be found.
    At line:1 char:26
    +  remove-spcontentdatabase <<<<  -id 8fdf806b-6dc8-49b2-8bfc-d574707ea58c
        + CategoryInfo          : InvalidData: (Microsoft.Share...ContentDatabase:SPCmdletRemoveContentDatabase) [Remove-SPContentDatabase], SPException
        + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletRemoveContentDatabase
    ============================================================
    I dont want to use the DeleteConfigurationObject option as per below blog.
    http://blogs.technet.com/b/nishants/archive/2010/04/14/how-to-delete-orphan-configuration-objects-from-sharepoint-farm.aspx
    Are there any other options to fix this situation.
    Thanks
    Nate

    MMS is not a Content Database, it is a Service Application Database. Run:
    $db = Get-SPDatabase <GUID>$db.Delete()
    That should do it.
    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.

  • Workflow issue with new WSP, "Unable to locate the content database"

    I deployed a wsp last night. The farm is 1 WFE, 1 APP, 1 SQL. The workflow can be started manually, but isn't being triggered by a timer job. Workflow timer services are started on WFE and APP.
    03/03/2015 18:25:19.62 OWSTIMER.EXE (0x1870)                              0x1F50 
    Job Monitoring Logging Service Job                                          
    1              Unexpected       Microsoft.SharePoint.SPException: Unable to locate the content database named 'IntranetContent'     at SharePoint.IT.JobMonitoring.Jobs.DashboardJob.Execute(Guid
    targetInstanceId)                a3f74c85-4a11-4654-9869-67e1d2e712d9
    Any suggestions on troubleshooting?
    Thanks,
    Scott

    Hi scogordo,
    What is the wsp? Is it a migrated workflow?
    Whether the wsp has the relationship with the problematic workflow.
    You said that the workflow isn't being triggered by a timer job, what is the time job? Or, you mean the workflow cannpt be triggered automatically when an item is added or changed or other.
    If the workflow cannot start automatically when an item is added or changed, you need to make sure you are not using the System Account.
    Best Regards,
    Wendy
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Upgrade large farm with Service Pack detaching all content databases?

    Hi,
    Whenever we upgrade one of our farms (with a Cumulative Update, Language Pack, or Service Pack), the corresponding PSConfig usually yields in error due to the huge time taken to upgrade all the content databases at the same time.
    We have heared about the possibility of detaching all content databases previous to the update (just CONTENT databases), then proceed with the installation and PSConfig, and finally a gradual upgrade by attaching one by one the content databases.
    After searching online I have not found a relevant or precise official documentation detailing whether this procedure is recommended or viable, and have some additional questions:
    - Can all he content database be disconnected (including the ones containig myprofiles, top level sites...) during the upgrade?
    Thanks in advance

    In my understanding, the patching involves (at least) two steps:
    Patching binaries on all servers of the farm
    Upgrading the database schema of Service Applications DBs, Configuration & Admin DBs, and content databases.
    If during the upgrade the database is not attached to the farm, SharePoint does not know about it, and does nothing with itm just like if it was physically detached from the SQL Server instance. But when, after patching, you reattach the database, SharePoint
    detects the difference in the schema version and the patched farm version, and upgrades the database accordingly. As far as I understand, this is automatically done by
    Mount-SPContentDatabase:
    "The Mount-SPContentDatabase cmdlet attaches an existing content database to the farm. If the database being mounted requires an upgrade, this cmdlet will cause the database to be upgraded.
    The default behavior of this cmdlet causes an upgrade of the schema of
    the database and initiates upgraded builds for all site collections within the specified content database if required. To prevent initiation of upgraded builds of site collections, use the
    NoB2BSiteUpgrade parameter. This cmdlet does not trigger version-to-version upgrade of any site collections."
    If you decide not to upgrade, you can later run Upgrade-SPContentdatabase.
    The point is, that if you keep attached all the content databases, the PSConfig needs to do a massive upgrade of all the content databases before finishing, thus considering that the farm is ok. On the detach/attach approach, the first PSConfig ends quite
    soon so your farm is up and running sooner (although, that's for sure, without the data being available until attached and upgraded - but you can gradually start giving service instead of waiting for the whole process).
    So far, so good. But what I was trying to ask in my question, is whether there is a detailed procedure to follow for this approach, or if there is any particular constraint regarding this approach (like "databases containing top level site collections
    should not be detached", or "pay attention to the my site host web application", or "that patching method is not supported").
    Thanks.

  • Alerts are not working for Site collections in a content database

    Hi,
    We have been into a strange issue that alerts are not working for site collections from a particular content database. When user subscribed for the alerts, they are getting mail about their subscription but not after that for any new items/documents added
    or changes happen in the list/document library.
    We have tried with Immediate as well as scheduled alerts both are not working.
    FYI, Alerts for all other site collections from different content database for the same web application are working without any issues.
    Any help would be appreciated.
    Thanks
    Ramkumar

    Looks like an Timer job Issue for your web application. Can you please check if these jobs are enabled and check error log for the alerts Timer jobs .Check whether the "Immediate Alerts" job is enabled for your web application.
    job-immediate-alerts
    job-daily-alerts
    job-weekly-alerts
    Please check this wiki -
    Troubleshooting Steps for SharePoint Alert Email Does Not Go Out
    Thanks
    Ganesh Jat [My Blog |
    LinkedIn | Twitter ]
    Please click 'Mark As Answer' if a post solves your problem or 'Vote As Helpful' if it was useful.

  • Project Server 2013 restore site from content database

    My Project server was moved from one domain to other so i had to recreate everything since distributed cache was nt happy. I recreated everything. Now i have contet database from porject server that i need to restore to brand new environment. How to do that? 
    Simply doing rmount content database is not working? How to reprovision it in Project server service application?
    Adit

    You mention that you mounted the content database.    Did you do this with PowerShell?  Have you tried adding the content databases, using the menus under Application management?
    If that fails, I would just rebuild by doing the following. There probably is an easier way to do this, but here is what I would do
    1) Delete the web application used for Project server
    2) Create a new web application and point to the content database. 
    3) Then you can provision project server
    Michael Wharton, MVP, MBA, PMP, MCT, MCTS, MCSD, MCSE+I, MCDBA
    Website http://www.WhartonComputer.com
    Blog http://MyProjectExpert.com contains my field notes and SQL queries

Maybe you are looking for