Reindexing and Update Statistics on Standby Server

In an environment where we have enabled Always On, we have configured a Maintenance Plan that constitutes on the following sub plans: a. Reindexing b. UpdateStatistics and c. Integrity Checks.  However, for the databases that are getting synchronized on
the Standby Server (they are on "Synchronizing" mode), can we also configure the same Maintenance plan in the standby server.  Will there be a problem in running these jobs on the databases that are in "Synchronizing" mode?

The standby/replicas databases are either in read-only or constant recovery mode and, therefore, no data modification can be performed. This includes running maintenance jobs such as reindexing and updating of statistics. The better approach here is to
use a custom maintenance script, such as that from
Ola Hallengren, that only reindex those that are necessary to minimize the amount of transaction log records generated on the primary and keep the standby in synchronized state.
Edwin Sarmiento SQL Server MVP | Microsoft Certified Master
Blog |
Twitter | LinkedIn
SQL Server High Availability and Disaster Recover Deep Dive Course

Similar Messages

  • Is reindexing and rebuilding statistics nessiary

    I'm reducing the size of a SQL database from 115905 records to about 110000 records.  My SQL server administrator is nowhere to be found.  Is it critical to have the database rebuild
    indexes and update statistics before I let users get back into the front end application and do regular work?
    I've been doing these archives daily for a week and he rebuilds indexes and updates statistics each day before I let the users get in.

    Since you deleted large no of records updatiing stats would be a good option .And if you rebuild index with full scan,which i dont think would be necessary to do after delete process,stats would automatically be updated .
    More or less index rebuild depends on fragmentation >30 % you rebuild and between 30 and 10 you reorganize.
    Since it is your daily task I would suggest you to look at Ola hallengren script
    http://ola.hallengren.com/sql-server-index-and-statistics-maintenance.html
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • Connecting to datasource and retrieve, insert and update data in SQL Server

    hi,
    i am trying to retrieve, insert and update data from SQL Server 2000 and display in JSPDynPage and is for Portal Application. I have already created datasource in visual composer. Is there any sample codes for mi to use it as reference???
    Thanks
    Regards,
    shixuan

    Hi,
    See this link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6209b52e-0401-0010-6a9f-d40ec3a09424
    Regards,
    Senthil kumar K.

  • Insert and update tables from SQL server to oracle database tables

    Hi,
    I am having problem while update data from sql server to oracle database tables.
    I am doing one way insert +updates that is from SQL Server tables ==> Oracle database tables
    I am using tools Sql server Integration service. I can insert data from sql server to oracle but update can't. Please help me how can I update + insert from sql server to oracle database tables easily.
    Thanks in advance.

    Hi,
    What about using Oracle SQL Developer for migration
    http://www.oracle.com/technetwork/database/migration/sqlserver-095136.html
    HTH

  • CBO and Update Statistics

    Hi ,
    Ver. 10204
    The cbo usually working very well when it have an update statistics ,
    Orcale also recommand to manually gather statistics after bulk loading.
    Could one show simple TEST CASE where oracle is choosing a poor execution plan due to non update statistics?
    Thanks

    user546852 wrote:
    The cbo usually working very well when it have an update statistics ,
    Orcale also recommand to manually gather statistics after bulk loading.
    Could one show simple TEST CASE where oracle is choosing a poor execution plan due to non update statistics?I've written a blog note some time ago which explains potential issues regarding SQL statement tuning. The sample used there is based on incorrect object statistics.
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • UPDATE STATISTICS and merry-go-round scanning

    Hello everybody,
    if I do UPDATE STATISTICS [table] SQL Server internally scans the table multiple times for different statistics objects (good description by Kendra Little at
    http://www.brentozar.com/archive/2014/01/update-statistics-the-secret-io-explosion/).
    Does anybody know whether these scans are executed parallel to each other and can profit from merry-go-round scan mechanism? (http://msdn.microsoft.com/en-us/library/ms191475.aspx).
    Thanks in advance.

    My impression is that they executed one by one on the same thread, but I have not researched this very closely.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • IF Auto Update Statistics ENABLED in Database Design, Why we need to Update Statistics as a maintenance plan

    Hi Experts,
    IF Auto Update Statistics ENABLED in Database Design, Why we need to Update Statistics as a maintenance plan for Daily/weekly??
    Vinai Kumar Gandla

    Hi Vikki,
    Many systems rely solely on SQL Server to update statistics automatically(AUTO UPDATE STATISTICS enabled), however, based on my research, large tables, tables with uneven data distributions, tables with ever-increasing keys and tables that have significant
    changes in distribution often require manual statistics updates as the following explanation.
    1.If a table is very big, then waiting for 20% of rows to change before SQL Server automatically updates the statistics could mean that millions of rows are modified, added or removed before it happens. Depending on the workload patterns and the data,
    this could mean the optimizer is choosing a substandard execution plans long before SQL Server reaches the threshold where it invalidates statistics for a table and starts to update them automatically. In such cases, you might consider updating statistics
    manually for those tables on a defined schedule (while leaving AUTO UPDATE STATISTICS enabled so that SQL Server continues to maintain statistics for other tables).
    2.In cases where you know data distribution in a column is "skewed", it may be necessary to update statistics manually with a full sample, or create a set of filtered statistics in order to generate query plans of good quality. Remember,
    however, that sampling with FULLSCAN can be costly for larger tables, and must be done so as not to affect production performance.
    3.It is quite common to see an ascending key, such as an IDENTITY or date/time data types, used as the leading column in an index. In such cases, the statistic for the key rarely matches the actual data, unless we update the Statistic manually after
    every insert.
    So in the case above, we could perform manual statistics updates by
    creating a maintenance plan that will run the UPDATE STATISTICS command, and update statistics on a regular schedule. For more information about the process, please refer to the article:
    https://www.simple-talk.com/sql/performance/managing-sql-server-statistics/
    Regards,
    Michelle Li

  • Check and update optimizer statistics failed

    Hellow Friends,
    After running job Check and update optimizer statistics each and every time from db13 in my BI production server it got failed please
    view the logs
    BR0301E SQL error -20000 at location stats_tab_collect-20, SQL statement:                                                                    
    'BEGIN DBMS_STATS.GATHER_TABLE_STATS (OWNNAME => '"SAPSR3"', TABNAME => '"/BIC/B0000228000"', ESTIMATE_PERCENT => NULL, METHOD_OPT => 'FOR ALL
    ORA-20000: index "SAPSR3"."/BIC/B0000228000KE"  or partition of such index is in unusable state                                              
    ORA-06512: at "SYS.DBMS_STATS", line 13159                                                                               
    ORA-06512: at "SYS.DBMS_STATS", line 13179                                                                               
    ORA-06512: at line 1                                                                               
    BR0886E Checking/collecting statistics failed for table SAPSR3./BIC/B0000228000                                                              
    BR0280I BRCONNECT time stamp: 2009-05-19 18.17.19                                                                               
    BR0883I Table selected to collect statistics after check: SAPSR3./BIC/B0000229000 (161130/1480:0:0)                                          
    BR0280I BRCONNECT time stamp: 2009-05-19 18.17.19                                                                               
    BR0881I Collecting statistics for table SAPSR3./BIC/B0000229000 with method/sample E/P10 ...                                                 
    BR0280I BRCONNECT time stamp: 2009-05-19 18.17.21                                                                               
    BR0301E SQL error -20000 at location stats_tab_collect-20, SQL statement:                                                                    
    'BEGIN DBMS_STATS.GATHER_TABLE_STATS (OWNNAME => '"SAPSR3"', TABNAME => '"/BIC/B0000229000"', ESTIMATE_PERCENT => 10, METHOD_OPT => 'FOR ALL C
    ORA-20000: index "SAPSR3"."/BIC/B0000229000KE"  or partition of such index is in unusable state                                              
    ORA-06512: at "SYS.DBMS_STATS", line 13159                                                                               
    ORA-06512: at "SYS.DBMS_STATS", line 13179                                                                               
    ORA-06512: at line 1                                                                               
    BR0886E Checking/collecting statistics failed for table SAPSR3./BIC/B0000229000                                                              
    BR0280I BRCONNECT time stamp: 2009-05-19 18.17.21                                                                               
    BR0883I Table selected to collect statistics after check: SAPSR3./BIC/B0000230000 (0/13545:0:0)                                              
    BR0280I BRCONNECT time stamp: 2009-05-19 18.17.21                                                                               
    BR0881I Collecting statistics for table SAPSR3./BIC/B0000230000 with method/sample E/P30 ...                                                 
    BR0280I BRCONNECT time stamp: 2009-05-19 18.17.21                                                                               
    BR0301E SQL error -20000 at location stats_tab_collect-20, SQL statement:                                                                    
    'BEGIN DBMS_STATS.GATHER_TABLE_STATS (OWNNAME => '"SAPSR3"', TABNAME => '"/BIC/B0000230000"', ESTIMATE_PERCENT => 30, METHOD_OPT => 'FOR ALL C
    ORA-20000: index "SAPSR3"."/BIC/B0000230000KE"  or partition of such index is in unusable state                                              
    ORA-06512: at "SYS.DBMS_STATS", line 13159                                                                               
    ORA-06512: at "SYS.DBMS_STATS", line 13179                                                                               
    ORA-06512: at line 1                                                                               
    BR0886E Checking/collecting statistics failed for table SAPSR3./BIC/B0000230000                                                              
    Please help me to resolve the issue.

    some of your PSA tables are inconsistent - ex: /BIC/B0000228000 - check PSA partitioning in RSRV to correct the same or delete data from the same using SE14 and try running the same.

  • I forgot my password and am trying to reset my ipod,but it won't work. It says that my ipod is in recovery mode and that I must restore it. I click ok, and then restore, and then restore and update. then it says contacting ipod software update server and

    I forgot my password and am trying to reset my ipod, but it won't work.It says that my ipod is in recovery mode and that I must restore it. I click ok, and then click on restore and update. Then it says connecting ipod software update server and a screen pops up with ipod software update on the top and iOS 5.1. It lists a bunch of stuff this update contains and on the bottom it says next, which I click and nothing happens, it just goes back to the ipod restore page. Help, what am I doing wrong?

    This device is not eligible for the requested build (Also sometimes displayed as an "error 3194")
    Update to the latest version of iTunes. Mac OS X 10.5.8 (Leopard) users may need to download iTunes 10.6.3.
    Third-party security software or router security settings can also cause this issue. To resolve this, followTroubleshooting security software issues.
    Downgrading to a previous version of iOS is not supported. If you have installed software to performunauthorized modifications to your iOS device, that software may have redirected connections to the update server (gs.apple.com) within the Hosts file. Uninstall the unauthorized modification software from the computer.
    Edit out the "gs.apple.com" redirect from your hosts file, and then restart the computer for the host file changes to take affect. For steps to edit the Hosts file and allow iTunes to communicate with the update server, see iTunes: Troubleshooting iTunes Store on your computer, iPhone, iPad, or iPod—follow steps under the heading Blocked by configuration (Mac OS X / Windows) > Rebuild network information > The hosts file may also be blocking the iTunes Store. If you do not uninstall the unauthorized modification software prior to editing the hosts file, that software may automatically modify the hosts file again on restart.
    Avoid using an older or modified .ipsw file. Try moving the current .ipsw file (see Advanced Steps > Rename, move, or delete the iOS software file (.ipsw) below for file locations), or try restoring in a new user to ensure that iTunes downloads a new .ipsw.

  • A pop-up window advising of software update for Firefox appears and does not connect with server

    The window suggests strongly that I update software but when I attempt to update it does nothing but try to connect with server and never does

    * http://kb.mozillazine.org/Software_Update (Software Update not working properly)
    Remove the files in the updates and updates\0 folder.
    You may need to delete active-update.xml and updates.xml as well if present.<br />
    XP:
    C:\Documents and Settings\&lt;user&gt;\Local Settings\Application Data\Mozilla\Firefox\Mozilla Firefox\updates
    (%USERPROFILE%\Local Settings\Application Data\Mozilla\Firefox\Mozilla Firefox)
    If you have problems with updating then best is to download the full version and uninstall the currently installed version.
    You may need to remove the Firefox program folder to do a clean install of the new version.
    Do a clean (re-)install:
    Download a fresh Firefox copy and save the file to the desktop.
    * Firefox 4.0.x: http://www.mozilla.com/en-US/firefox/all.html
    * Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.
    * Do not remove personal data if you uninstall the current version.
    * It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    Your bookmarks and other profile data are stored elsewhere in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder] and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox.

  • I updated to OS X 10.9.2 and turned on my calendar sync in iCloud, now my calendar is unavailable and shows moving calendar to server acount for 3 days. Not sure how to reset or gain access? Please help!

    I updated to OS X 10.9.2 and turned on Calendar sync in iCloud, now my calendar is unavailable and shows "moving calendars to server account" for 3 days. Not sure how to reset or access calendar. I can only force quit the app and when I restart it, it goes right to the same message. I have also tried turning off the sync in iCloud to no avail. Please help. I need my calendar!

    Try the solution posted by melosaris here: https://discussions.apple.com/message/23475967#23475967.

  • Updated to ios6 on my ipod touch 4g when i try to turn it on it doesn't, it just comes up with the itunes symbol and the usb, so i plugged into laptop opened itunes and it says to restore back to ios5 i pressed restore and it cant connect to server? help?

    updated to ios6 on my ipod touch 4g when i try to turn it on it doesn't, it just comes up with the itunes symbol and the usb, so i plugged into laptop opened itunes and it says to restore back to ios5 i pressed restore and it cant connect to server? help?

    Maunally restore it. In order to do this:
    -Download the iOS 5.1.1 firmware from here  http://www.redmondpie.com/download-5.1.1-ios-for-iphone-4s-4-3gs-ipad-ipod-touch -direct-official-links/
    1. After downloading the firmware from the given link, open iTunes and click on your device.
    2. Now press SHIFT on your keyboard and while pressing it click on "Restore".
    3. A dialog box will appear.
    4. Select the firmware you downloaded and click ok.
    5. Done!!! Your iPhone will now be restored to 5.1.1 and if you had backed up your iPod before, then you can put all its settings afterwards.

  • Mail constantly is synchronising with server and updating cache directory!

    Mail constantly is synchronising with server (sent messages) and updating cache directory making everything slow.
    I have a .mac account. I understand the concept of IMAP and that it information is stored on the server therefore it needs to update but surely not constantly and besides the blue bar sticks halfway through without completing. Please help.

    I have had the same issue. Rebuilding fixes it temporarily, but it comes back....Also have an issue where Mail will not download attachments automatically. They show up in grey until they are clicked...have Mail set to download all messages and their attachments, but it doesn't want to. Very frustrating. I have begun the switch to Entourage, which is unfortunate, as I like Mail more.

  • Got a macbook pro. runs FFox 4.0.1 Daily i get prompt says "update FFox". I click it and it says"connecting to server" forever. have to close window. does this daily.

    got a macbook pro. runs FFox 4.0.1
    Daily i get prompt says "update FFox". I click it and it says"connecting to server" forever. have to close window. does this daily.

    got a macbook pro. runs FFox 4.0.1
    Daily i get prompt says "update FFox". I click it and it says"connecting to server" forever. have to close window. does this daily.

  • I updated iphone 4s to 7.02 and now cannot access icloud server.

    I updated iphone 4s to 7.02 and now cannot access icloud server.

    One of these:
    Restart:
    1. Press and hold the Sleep/Wake button until the red "slide to power off" slider appears, and then slide the slider.
    2. Press and hold the Sleep/Wake button until the Apple logo appears.
    Reset: Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Note: You will not lose any data
    Restore from backup
    Restore as new
    http://support.apple.com/kb/HT1414

Maybe you are looking for