Restore log and differential backups on a Publication database.

Hi, i have the following issue, i have to restore a log backup and a differential backup in a publication database, the problem is that i want to keep the publications and the subscriptions without recreate the subscriptions.
So how can i perform this goal :/ is somebody know how can i do that please let me know :D !!! thanks in advance.
In my case is a merge replication....

For merge replication you do not need to worry about the log reader agent - in fact there should not be one. Ensure that you use the keep_replication switch when doing the restore.
Note that for merge replication the subscriber will backfill the publisher with changes in the publisher which are not in the subscriber. After this is done you might want to do a tablediff, but it should not be necessary, depending on how recent your full
and differential backups were done.
looking for a book on SQL Server 2008 Administration?
http://www.amazon.com/Microsoft-Server-2008-Management-Administration/dp/067233044X looking for a book on SQL Server 2008 Full-Text Search?
http://www.amazon.com/Pro-Full-Text-Search-Server-2008/dp/1430215941

Similar Messages

  • Restoring a Rman Tablespace backup to noarchilog mode database

    Hi All,
    Is it possible to take a backup of a tablespace through rman from archivelog mode database and restore the same to noarchivelog mode database through rman ? Please suggest if it is not possible why it is not possible.
    We have a testing database from which a tablespace has been dropped. Can it be restored from the Prod database ?
    Please help. The database version is 9.2.0.8..

    Fabricio_Jorge wrote:
    I think it's possible to backup/restore a single tablespace:
    BACKUP TABLESPACE nome_tablespace [FORMAT 'path/bkp_file'];
    Being able to backup a single tablespace is NOT the same as grafting that TS into a different database.
    First, you are not really backing up a 'tablespace'. You are backing up files. In this case, just the files that implement the named TS, but files, nevertheless. And files belong to a database. Header info in each file defines, among other things, the dbid of the database the file belongs to. And the current scn. That will be a severe mis-match if you tried to 'restore' it to some other db.

  • Need to restore from and older backup because I lost all my contacts when I upgraded my phone

    my backup that was created is saying it needs a password and I didn't give it one. Which password is it requesting? Also the second question is how do I restore from a old back up, I am needing to get my contacts back.

    If the backup is asking for a password you may have turned on backup file encryption. If this is the case, and you don't remember the encryption password you could be out of luck.

  • How to make and schedule backup tasks for MySQL Databases

    Has NSS 322 this functionality? If not, are there any packages to do dat? I can´t see the folders that contain MySQL Databases, so I can´t backup them.
    Many thanks in advance for your support.

    All of the MySQL databases are visable within the phpMyAdmin application.  phpMyAdmin can export, import, manage the databases directly.
    To use the remote replication feature from the GUI, you need the databases visible in a share.  I'm sure that is possible through the CLI, but I'm not able to tell you how to do it.  Maybe someone else on the forum can help provide a solution.
    You can also use the rsync command in the CLI directly.
    Did you find any ideas on the phpMyAdmin website?  This must be a common task that someone has worked out a solution for.

  • Differential backup cleanup tasks leave empty files behind

    Hello,
    I have a full backup done weekly and then differential backups every 4 hours. Both backups are followed by cleanup tasks. Full backups and cleanup tasks run with no problems and so do differential backups too and their cleanup tasks, but sometimes differential
    backup cleanup leaves behind empty files (0 bytes in size).
    I checked the logs, and differential backup tasks are completing succesfully and I can see the backup files being created too and being cleaned up too, but sometimes there are empty backup files left over. I had the same issue while using SQL Server maintenance
    tasks and Ola Hallengren's SQL Server Maintenance Solution. I tried googling and asking Ola too but couldn't come up with a solution.
    Has anybody else had anything like this happenning or has any idea what might be causing this?

    Hello,
    A 0 byte file generally means there was a problem with whatever created it. Maintenance plan cleanups check the file header to see if it's a SQL Server backup file. If it isn't, it won't delete it thus the reason why it's "left behind". figure
    out why the files are created as 0 bytes and if that can be fixed, there will be no cleanup issue.
    -Sean
    The views, opinions, and posts do not reflect those of my company and are solely my own. No warranty, service, or results are expressed or implied.

  • Procedure restore Differential backup and to restore windows 2003 server

    Hello All,
      i am sticking at some of the points
    1. As per company policy they want to take full SAP offline + Redo log files backup once every two week and twice a week the differential backup. I suggested them the differential backup twice a week but now i have a question in mind since i never done it practically Do i need to have anything else like Log file to restore the Differential backup apart from full SAP backup or i can restore data with only Full SAP backup and differential backup.
    2. I am not much familiar with Windows 2003 server backup, If i take full Widows 2003 server backup will i be able to restore windows server along with installed SAP and all other software in case something happen to my server.
    if the answer is yes what are the pre-requisite if there be any to do the same. from the pre-requisite i mean do i need to be on same hardware as my previous server was or i can restore it on any other system too?
    i will appreciate any reply on the same.
    Mani

    Hi Mandy,
          I am not sure weather you are treating  Windows 2003 and SAP Backup i.e SQL Backup as two seperate things.
       SQL Backup : If you take MS SQL Backup ( directly from MSSQL or Schdule it from SAP DB13) and take full backup once a week or twice a week eg: Sunday full backup followed by monday, tuesday differential(Midnight) backups and Wednesday full backup again followed by Thursday and Friday differential(midnight).
         Should the database need to be restored to thursday @ 4:30 AM, you will restore Wednesday full backup + Thursday diffential + any log files backup taken there after.
    Windows 2003 Backup:
                Regarding this, You do not have to take Full Windows backup every day. You may take backup of few files / network drives, which can be restored directly while you are logged in to Server. It is sright forward.
               Sienario: When whole C drives of Windows crashed. To prepare for this sicenaro, you should take Windows system backup when ever you make chnages to kernal, SQL upgrade or before and after Windows patching.
             If the server crashes due to hardware failure, you should restore the server from backup .. ( for this there are different methods, like boot from boot disk and attach tape drive and restore or boot from disk and attach to NAS device and restore, you have to refer Windows 2003 restoration methods or consult your Windows specilist) which will bring back OS, kernal and SQL to normal state. and followed by SQL restore.
           Hope this helps.
    Krishna

  • Backup and restore logs, quarantines cisco ironport c170

    Hello,
    Is there anyway to backup and restore logs and quarantine to another ironport c170?
    Thanks in advance.
    Alexandre

    Hello Alexandre,
    logs can easily be downloaded via FTP or SCP, there is a folder per logs subscription, i.e.
    /mail_logs
    /system_logs
    /error_logs
    Each folder contains multiple logs, thos e are with extention .s are the ones that have rolled over, while .c and .current are the ones currently written to. I would not recommend to upload them to another appliance, as this may cause problems or at least confusion. Quarantines cannot be backed up, that functionality is limited to SMAs (M-series).
    Hope that helps,
    Andreas

  • Restoring RMAN cumulative and differential backupsets

    Hi all,
    I have 2 queries regarding restoring and recovering rman backupsets.
    1) i have backup policy for sunday level 0, wednesdays cumulative backup and other days of the week differential backup.Now if my database crashes on friday afternoon.What would be my action plans for restoring and recovering the database with brief steps for the same.
    2)Suppose i have retention policy for 2.And i have a backupset which has become obsolate as the result.Is it possible to restore and recover this obsolate backupset?
    Regards
    Vijay

    1) i have backup policy for sunday level 0, wednesdays cumulative backup and other days of the week differential backup.Now if my database crashes on friday afternoon.What would be my action plans for restoring and recovering the database with brief steps for the same.
    Step 1: start up Internet Explorer or Firefox or Chrome
    Step 2: Type http://tahiti.oracle.com in the address bar
    Step 3: Navigate to the homepage of the version you refuse to mention
    Step 4: Look for the Backup and Recovery Manual
    Step 5: Consult the Restore and Recovery scenarios in that doc
    2)Suppose i have retention policy for 2.And i have a backupset which has become obsolate as the result.Is it possible to restore and recover this obsolate backupset?
    Suppose I hired you as a DBA. My database crashes. You start visiting Oracle Forums immediately instead of restoring and recovering the database.
    In fact you don't seem to have a clue on the process as you think you can recover a backupset.
    What should I do?
    Sybrand Bakker
    Senior Oracle DBA

  • Restoration of Differential Backup

    Hi,
    I am running Microsoft SQL server 2008 in our environment. I have created one new database and configured Full and differential Backups.Full backup on every week and differential backup on every day.Now the database went to recovery mode accidentally.
    I have not yet taken Full backup for that particular database.I have only the Differential backup.
    While i am trying to restore that differential backup its showing an error.Its not allowing me to restore.
    Please help me to solve this problem.
    Vinodh Selvaraj

    Hi,
    I am running Microsoft SQL server 2008 in our environment. I have created one new database and configured Full and differential Backups.Full backup on every week and differential backup on every day.Now the database went to recovery mode accidentally.
    I have not yet taken Full backup for that particular database.I have only the Differential backup.
    While i am trying to restore that differential backup its showing an error.Its not allowing me to restore.
    Please help me to solve this problem.
    Regards,
    vinodh selvaraj.
    Vinodh Selvaraj
    Hello,
    You cannot take differential backup without taking full backup.You have to first restore full backup with no recovery and then latest differential backup taken after full backup with recovery.
    What is the error which you are facing?
    Duplicate post
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/91c2ac7e-b122-426a-8a52-62ad452551c0/restoration-of-differential-backup?forum=sqldatabaseengine
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • Restore Differential Backup

    Hi Balmukund,
    We are  using Sql server 2005 in production server.we are maintaining  two servers.. one for current day & another for Archive data .For the past few months we taking the full backup & restoring the same in the Archive sever.Now the volume
    got increased & it takes too much time to restore the full backup.So i am planning to restore the differential backup on the daily basis.I am planning as mentioned below,
    Weekly once (say Sunday)- Full backup
    Daily backup say Monday  to Saturday) - Differential backup.
    So i can restore the full backup on day 1 morning.
    and can restore differential backup on day 2 morning.
    From day 3 to day 6 onwards,how can i restore the same.
    Kindly send the script for the same or give me any other idea for the same.

    Hi... Balmukund
    Restored the full backup on day 1 morning.
    and restored differential backup on day 2 morning
    From day 3 onwards restored the latest differential backup and
    changed the database to Standby / No recovery mode
    for some reasons, I changed the database mode using the following script.
    ALTER DATABASE [DatabaseName] SET READ_WRITE WITH NO_WAIT
    Now my question is ,
    Kindly  confirm Is it possible to restore differential backup in that database
    What was the output of your alter database command? Also, if your db is still in restoring mode, you can restore additional diff backups on it. You can check the status of your db with the below query. If the status = online and is_in_standy = 0 then
    you have recovered the db and cannot restore additional backups. Will need to restart from full and lates diff again. HTH
    select
    name,
    state_desc,is_in_standby
    from sys.databases
    HTH...

  • Using Data Guard and hot backups - 9.2.0.6.0

    Hi all,
    I have an existing 9.2.0.6.0 database that is setup in a DataGuard environment - one primary database with a physical standby in a separate datacenter. It is all setup and it works beautifully. On our primary database, we currently have 2 different types of backups we are doing - we do an export of the main schema (all of the application data is all in this one schema) 4 times a day, and we do a full database hot backup once a night.
    My question is in regards to the hot backup - I don't know that it is even worth doing a hot backup of this database? I am trying to think of a situation where we would actually want to restore a hot backup of the primary database... If we ran into some kind of a data issue, it would probably be quickest and easiest to restore data from one of the exports, and when we did that restore (import), I assume that data change would be replicated through DataGuard to the standby site. But if there was some kind of situation where we wanted to restore a recent hot backup of the primary database, that would essentially break the Data Guard configuration, and I assume that after the hot backup was restored, we would have to somehow re-instantiate Data Guard on the standby site.
    Does anyone have any input on this? If you are running with DataGuard, is it even worth it to be doing hot backups? What kind of situation would call for restoring a hot backup, instead of just failing over to the standby?
    Thanks!
    --Brad                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    If we ran into some kind of a data issue, it would probably be quickest and easiest to restore data from one of the exportsIt would be quickest to failover to stand by database than restroing from dump file. After all you maintaing stand by db for that reason.
    How can you restore database up to the latest changes using export/import ? You may have to restore using rman and apply the logs.
    You can backup from stand by database. You do not need to back up primary.

  • Differential backup failed because old backup does not exist

    Hi,
    We scheduled the backups of TFS through the TFS Administration console.
    * Full each sunday at 18:00
    * Differnetial each evening at 22:00
    * Transactional each hour
    * rentention time 8 days
    The differential back-ups of Monday (20-4) and Thuesday (21-4) did go well. But for some reason the differential of Wednesday and Thursday didn't work out.
    Start of log file of 21-4:
    [21-4-2015 20:00:00] [Info] Requested Backup Job: Differential
    [21-4-2015 20:00:00] [Info] -------------------------------------------------------------------
    [21-4-2015 20:00:00] [Info] Jobs Requested: Differential. Completed:None. To Run:Differential.
    [21-4-2015 20:00:00] [Info] RunDifferentialBackupJob
    [21-4-2015 20:00:00] [Info] Scanning configuration for new DBs
    [21-4-2015 20:00:00] [Info] BackupSettings changed ? False
    [21-4-2015 20:00:00] [Info] Starting differential backups
    [21-4-2015 20:00:00] [Info] Database Tfs_Configuration parent is 9859022596859328236
    [21-4-2015 20:00:00] [Info] Starting Differential Backup server:RDSQL11\TFS database:Tfs_Configuration filename:\\RDSQL11\Backup$\Tfs_Configuration_9859024468858452975D.bak
    [21-4-2015 20:00:00] [Info] BACKUP DATABASE [Tfs_Configuration] TO DISK = N'\\RDSQL11\Backup$\Tfs_Configuration_9859024468858452975D.bak' WITH DIFFERENTIAL, NOFORMAT, NOINIT, NOSKIP, REWIND, NOUNLOAD, STATS = 10
    [21-4-2015 20:00:01] [Info] Backup Complete for database Tfs_Configuration
    On 22-4 the log looks like this:
    [22-4-2015 20:00:00] [Info] Requested Backup Job: Differential
    [22-4-2015 20:00:00] [Info] -------------------------------------------------------------------
    [22-4-2015 20:00:00] [Info] Jobs Requested: Differential. Completed:None. To Run:Differential.
    [22-4-2015 20:00:00] [Info] RunDifferentialBackupJob
    [22-4-2015 20:00:00] [Info] Scanning configuration for new DBs
    [22-4-2015 20:00:00] [Info] BackupSettings changed ? False
    [22-4-2015 20:00:00] [Info] Starting differential backups
    [22-4-2015 20:00:00] [Info] Database Tfs_Configuration parent is 9859022596859328236
    [22-4-2015 20:00:00] [Info] Starting Differential Backup server:RDSQL11\TFS database:Tfs_Configuration filename:\\RDSQL11\Backup$\Tfs_Configuration_9859025332862172100D.bak
    [22-4-2015 20:00:00] [Info] BACKUP DATABASE [Tfs_Configuration] TO DISK = N'\\RDSQL11\Backup$\Tfs_Configuration_9859025332862172100D.bak' WITH DIFFERENTIAL, NOFORMAT, NOINIT, NOSKIP, REWIND, NOUNLOAD, STATS = 10
    [22-4-2015 20:00:00] [Error]
    Exception Message: Cannot perform a differential backup for database "Tfs_Configuration", because a current database backup does not exist. Perform a full database backup by reissuing BACKUP DATABASE, omitting the WITH DIFFERENTIAL option.
    BACKUP DATABASE is terminating abnormally. (type SqlException)
    SQL Exception Class: 16
    SQL Exception Number: 3035
    SQL Exception Procedure:
    SQL Exception Line Number: 1
    SQL Exception Server: RDSQL11\TFS
    SQL Exception State: 1
    SQL Error(s):
    SQL Error[1]: System.Data.SqlClient.SqlError: BACKUP DATABASE is terminating abnormally.
        Class: 16
        Number: 3013
        Server: RDSQL11\TFS
        Source: .Net SqlClient Data Provider
        State: 1
        Procedure:
        Line Number: 1
    Exception Data Dictionary:
    HelpLink.ProdName = Microsoft SQL Server
    HelpLink.EvtSrc = MSSQLServer
    HelpLink.EvtID = 3035
    HelpLink.BaseHelpUrl = http://go.microsoft.com/fwlink
    HelpLink.LinkId = 20476
    So this is the same parent and the the file is still present on disk.
    Can someone point in a direction to solve this issue?
    Thanks!!

    Hi RemkoP,
    Based on your description, you can check whether you have a full backup file in your backup folder. Differential backups are backups of the changes that have occured since your last full database backup. If there no full backups, then we cannot perform a
    differential backup.
    You might do a full backup for the database, then do the differential backup. If you have any other concerns, please elaobrate more details about your scenario and reproduce steps.
    Best regards,

  • Hourly differential backups are too big

    Hello,
    Please let me first apologize if this isn't the correct forum.
    I'm having a problem that, for the life of me, I can't seem to resolve.  To begin with, I'm using MSSQL Server 2012.
    I created a new MSSQL maintenance plan to perform a full nightly (12:00 am) backup for one of our databases. This new plan replaced an old plan that did nothing but perform a full backup. With this new plan I do the following:
    Check DB Integrity, Backup DB (full), Shrink DB, Rebuild Index, Clean Up History, Maintenance Cleanup Tasks.
    The size of our DB is only 12GB
    Now, the new plan took effect last Friday and it functioned properly as it made a full backup of the DB. The problem I'm having is that the differential backups I'm also doing every hour are now 10 times as big as they were before the new plan went into effect.
    Just to compare, before midnight Friday (when the new full backup plan took effect), my hourly differential backups were only in the range of 750MBs. My first differential backup after that came to 4+ GBS.  So, as you can see, the increase is somewhat
    alarming. Being that we have individual maintenance plans for both full and differential backups and being that I did not touch/modify our differential plan, can anyone please tell me why the size of these hourly differential backup plans are so big now? How
    is it that creating a new full backup plan affect the size of the differential files?  Could this have anything to do with me doing db shrinks and/or Index rebuilds?
    I'm at a loss here so I will really appreciate any feedback on this. Thank you very much!
    Rob
    P.S. Just in case, here's a screenshot of the differences:

    Hi Rob,
    Rebuilding all indexes daily is not necessary. I would actually recommend you to use the free solution by Ola Hallegran which only rebuilds indexes if an index is fragmented. I would not use or recommend to use maintenance plans for rebuild indexes/update
    stats as it lack many options and also Ola's solution is free and is used by 1000's of dba's across the globe.
    Yeah...but not supported by Microsoft.  Use it at your own risk.
    It is better to use Maintenance Plan Wizard, a proper Microsoft product:
    Use the Maintenance Plan Wizard
    Generally, indexes should be rebuilt periodically like every weekend or every month end.
    STATISTICS should be updated nightly.
    Missing indexes should be eliminated.
    Optimization: http://www.sqlusa.com/articles/query-optimization/
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

  • Disk array configurations with oracle redo logs and flash recovery area.

    Dear Oracle users,
    We are planning to buy the new server for oracle database 10g standard edition. We put oracle database file, redo logs, and flash recovery area on each of disk array. My question is what is the best disk array configuration for redo logs and flash recovery area? RAID 10 or RAID 1? Is that possible we can duplicate Flash recovery area to the other location (such as net work drive) at the same time? Since we only have single disk array controller to connect to the disk arrays, I am try to avoid the single failure that will lose archive logs and daily backup.
    thanks,
    Belinda

    Thank you so much for the suggestion. Could you please let me know the answer for my question of FRA redundancy?
    “Is that possible we can duplicate Flash recovery area to the other location (such as net work drive) at the same time? Since we only have single disk array controller to connect to the disk arrays, I am try to avoid the single failure that will lose archive logs and daily backup.”

  • How to restore Ipad from previous backup that is not the restore list?

    I did a firmware update for Ipad from 5.1.1 to 6.1
    I backup my Ipad before I did it at 4.46am
    Then I restore my Ipad so it will install IOS 6.1
    However I accidentally set it up as new device with a differrent name (default suggested by itune which is "AL's Ipad")
    Then I try to select my previous backup called "Ipad 3"
    But I cant see "Ipad 3" from my restore list.
    So can I restore my "Ipad 3" backup?

    If you went through the process of restoring your iCloud backup, then tapped Show Older Backups when asked which backup to restore to and the backup you're looking for isn't listed, there's no way to recover it.  You could check to see if you have an older backup on your computer that would have the data you're looking for by opening iTunes and going to Setting>Devices and checking the Backups list.

Maybe you are looking for

  • Windows 8 And Random Connectivity Issues

    Hello, I just relatively recently got a laptop with Windows 8 on it. I hadn't used Windows 8 before, but while some features are good, others are not.  Notably, when I put my computer to sleep and return from sleep, often times I need to unplug my et

  • Conditon type in sales order

    Hi, The condition type(ZALT) having there are three combinations like(destination country- depature contry , s.org-d.chanel , s.org-div ) and i have slected  exlusive indicators for all combinations in Acess seq. So normally it will pick the First re

  • RMAN Last Completed Backup recorded in any table/view?

    Hi Friends, we are running RMAN backup of Full Database every day on 11g R2 Database. I would like to know where can i query the last completed backup date/time (in any table/view...) so that i will put a script to query that table/view to verify tha

  • Createing Packaged Product

    Hi Folks, Could you give me a step by step process of creating a packaged product in CRM? I have gone through the reference in http://help.sap.com/saphelp_crm52/helpdata/en/46/57832701a208e7e10000000a114a6b/content.htm I need to know how exactly to d

  • Generic EDI Adapters

    Hi Could you plz name some generic EDI Adapaters which work on EDI standards (ANSI X12 and EDIFACT)?? For example BIC Adapter is used to convert ANSI X12-XML Messages into ANSI X12 Messages. Similarly could you plz name some adapters which work on ED