Migrate Mirror Database to New Server

Hi,
I need to migrate my SQL server Mirror Database to
a new server. my current setup is as below
1. server A principal (192.168.1.100)
2. server B Mirror     (192.168.1.200)
now i have a new server (Server C) to replace server B as below
1. server A principal (192.168.1.100)
2. server C Mirror     (192.168.1.300)
my question is how to migrate mirror db to new server without any affect or downtime on principal server, please share idea/experience for above.
note: SQL SERVER 2008R2 EE(64BIT), Win2008R2 EE 64bit.
Regard
Faisal Wahid

Thanks for your quick response.
Is it possible something like in oracle (pardon as i am oracle DBA not sql server guy), 
(Oracle Steps to migrate standby(mirror) db to new server)
1. Pause replication on primary(principal) 
2. Move standby(mirror) database files to new server(using copy/rman/etc).
3. Update connection information (TNS in oracle) on primary(principal) to point new server.
4. Start replication on primary(principal).
the above steps will simply migrate the standby(mirror) database to new server,
can we do something like above in sql server?

Similar Messages

  • Migrating MySQL database to new server

    I'm rebuilding a server for a client and I need to migrate the MySQL database off of the old server onto the new. I'm going from Server 10.5.4 to Server 10.5.4. I tried just taring the old database location at /var/mysql and untaring it to the new server at the same location and started the MySQL service, but it service won't start properly.
    I get an error in the MySQL Admin Log file that says that the "MySQL daemon startup timed-out"
    After looking at the database files, they appear to have the old server name included in their names, and there is a pid file that is specific to the server.
    Is there a process for exporting/importing the MySQL databases so I can get them installed on the new server?
    Thanks.

    So I'll reply to my own question so the answer is documented.
    I used the following command it export all the database from the old server:
    mysqldump -u username -ppassword --all-databases > alldump.sql
    username is the name of the admin user, usually root
    password is the admin password, make sure there is no space between the -p and the password. So if the password is "twit" the option is -ptwit
    And the two -- are needed in the --all-databases option
    Copy the alldump.sql file to the new server and run the following command to import all the databases:
    mysql -u username -ppassword < alldump.sql
    Be sure to set the admin password in Server Admin and start the MySQL service before importing.
    That's it.

  • Migrating SAN databases to new server

    We have a physical SQL 2005 server which has it's data & logs stored on a FC attached SAN. We need to replace the server hardware and are moving the data to a new SQL 2008 R2 physical server. The current server has dozens of databases totalling
    around 530GB of mdb's and ~90GB of .ldf's.
    We are planning to perform a native backup first, but in the interest of time our plan was to shut down the old server, swing the fiber cables over to the new server, change the config in the SAN to present the same LUNs to the new server, then mount
    those LUNs on the new server. So long as the old server is shutdown, does this seem like a viable process? My supervisor asked if there would be any benefit to unmounting the databases prior to shutdown first... I didn't think there would be so long as it
    was a clean shutdown but wanted to ask just in case.
    I know doing it this way will require manually attaching the databases. If anyone has ideas on how to make that attachment process be more efficient, I'd love to hear them.
    Thanks!

    You will need to detach the databases from the old instance BEFORE moving the LUN to the new server.  Then you can attach them to the new instance.   I have done this many times.
    You cannot attach MSDB or master.  So you will need to move any logins, agent jobs and SSIS packages to the new server first.
    This is a one way upgrade.  Once you attach the 2005 database files to 2008, they will be converted to 2008 format and you cannot go back to 2005.  Make sure you have backups.

  • Migrating Oracle Databases to SQL Server 2000

    Hi friends,
    I wanna to Migrating Oracle Databases to SQL Server 2000.
    But i don have idea abt that.
    could u plz help how to start and procced.
    Neeraj Goel

    Hi Neeraj,
    This forum is dedicated to Migrating from SQLServer and other third party databases to Oracle.
    Not the other way round.
    The Oracle Migration Workbench facilitates migrations to Oracle.
    Regards,
    Dermot.

  • MOVE REPLICATION DATABASE TO NEW SERVER

    WE HAVE A PRODUCTION DATABASE THAT WORK'S AS REPLICATION FROM 9 DATABASES, WE ARE GOING TO MOVE DATABASE TO NEW SERVER.
    AS DATABASE IS PRODUCTION, WE CAN NOT STOP SERVICES. WE THINK TO CREATE A NEW DATABASE ON NEW SERVER, IMPORT DATA FROM PROD. DATABASE. SIZE APROX 100GB.
    QUESTION:
    I NEED TO KNOW HOW I CAN STOP SERVICES SHORT TIME. TO CHANGE TO SNEW SERVER.
    THANKS FOR YOUR SUGGESTIONS

    Здравствуте Ivan.
    Before i would do anything like this i would make sure that i have a good valid backup (just in case!).
    I would check all the applications that are currently conencting to your ORacle and make sure they are all conneting 'by name' not the IP. Or and then i would check DNS server (make sure nslookup is working) to makesure that everything resolves correctly after the moving DB to another machine.
    Then check that the oracle_home etc are in the same directory and check that all paths etc in the configurations are the same.
    Hope this helps
    Kind Regards

  • Recovering andrestoring of database in new server after current server fail

    Hi,
    If we have a disaster ,where the Database server has gone and we can not use it again.
    1) We do not have dataguard.
    2) We have rman backup file of 2 days before (Full database backup). Rman backup with nocatalogue
    3) Flashback log files of 2 days back
    3) Archive log till yesterday
    4) Export file of morning.
    Can we be able to restore and recover our database in new server
    if yes then how.
    Because RMAN Backup has its DBID and the new Oracle software which i install on new server will be installed with new ID.
    Please help me understanding this thing (About target database)
    Regards

    First of all, you should install the software on the server only, you should NOT create a database.
    As you can restore a database to a new host (and this is documented), you won't have any problems. That is, if you don't create a database during installation, and read up on recovery.
    I wonder: why do all those anonymous users always can't be bothered to read the documentation, and ask others to paraphrase it for free?
    Sybrand Bakker
    Senior Oracle DBA

  • Move Owb database to new server

    Hi,
    We are going to move our Owb (9.2.0.2.8) database to a new server. The nodename isn't going to change only the ip-address will change. The OS will be the same.
    The steps will be:
    1) install Owb on new server
    2) copy database to new server
    Is there some other step we'll need to take?
    regards,
    Ivan

    Здравствуте Ivan.
    Before i would do anything like this i would make sure that i have a good valid backup (just in case!).
    I would check all the applications that are currently conencting to your ORacle and make sure they are all conneting 'by name' not the IP. Or and then i would check DNS server (make sure nslookup is working) to makesure that everything resolves correctly after the moving DB to another machine.
    Then check that the oracle_home etc are in the same directory and check that all paths etc in the configurations are the same.
    Hope this helps
    Kind Regards

  • Migrating Reporting Services to new Server - Subscriptions are not transfering

    Hello,
    I have an instance of SQL Server 2008R2 running on Windows Server 2008.  It is setup to be a reporting server.  There are many subscriptions that are scheduled and run on this server.  We are wanting to move to Windows Server 2012 and SQL Server
    2012.  So, we have built out a new VM and I have exported from the current server the ReportServer and ReportServerTempDB and have imported them to the new server.  I have resolved the one Orphaned user that happened and went to look for the subscriptions
    so that I could disable them so they wouldn't run.  I could not find any.
    select * from msdb.dbo.sysjobs where enabled = 1 and category_id = 100.
    no rows...
    I had read from other posts to let it sit for a few days and they will appear.  I have waited 2 weeks.
    So, what am I missing?  I would prefer to do a clean install and migrate the data over rather than upgrading the OS and SQL.
    Thanks

    Hi Sql Dude,
    Per my undersranding that you can't find any informamation related to the subscription in the sydjobs table after migration, right?
    You issue can be caused by many factors.Please check details information below:
    Please check if you can see all the subscription in the report manager and can create new subscriptions. The ReportServer database used by SSRS to store the subscriptions maintains a record of the subscription owner (as well as audit fields) which track
    the user accounts that have created/modified the subscriptions. 
    If you can't see subscription on the report manager and can create new subscriptions, the issue can be caused by "My subscriptions" had been created on the original non-domain server(Local User account).  Therefore, once the instance was migrated
    to a new server on the domain, said Local User was no longer available.  Every user with access to the ReportServer database has an entry created in the Users table and a unique GUID generated.
    To work around the issue, you can do a SQL Update query to changed the OwnerID and ModifiedByID fields on the Subscriptions table to relate to the GUID of the equivalent user on the domain.Tip:
    Change the Owner of SQL Reporting Services Subscription
    If you can see all the subsription on the report manager but can't find any job, please try to edit and update the subscription to see if it will recreate the job again and please also try to provide more details information in the log file to see if you
    got some error message, the path like:
    C:\Program Files\Microsoft SQL Server\MSRS11.SQLEXPRESS\Reporting Services\LogFiles
    If above didn't help, please reference to the similar thread below:
    Can't access SSRS 2008 R2 subscriptions after migration
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Migrating IR Reporting to new server

    We are moving from an old production Workspace server to a new one. It will be the same version of Hyperion (11.1.2.1) and have the same name - this is simply a Hardware upgrade. The problem is that there will also be a new repository database server. Is there a way to migrate the repository from the old server to the new one?
    The issue is this: We have lots of users that have saved Interactive Reports (IR), and if the reports won't run after the migration, there will be a great wailing and gnashing of teeth from our user community. Joking aside, we would very much like to avoid this. We are told that LCM is the proper methodology for migrating - will it also preserve the repository entries so saved IR reports will continue working? If not, what can we do?
    thanks,
    -pat

    LCM is the best way to migrate from environments or even between apps on the same environment. So you shold be fine to:
    1. create LCM
    2. install new server, hyperion software,
    3. restore via LCM
    The only issue I could see coming up relates to the ip address which would be different from old to new server, which is why LCM should get around that.
    *I haven't used LCM for IR reports specifically, but all for other workspace items:  FR, WA reports and user settings are migrated if you chose to do so.
    Here are a couple of useful links:
    http://ranzal.wordpress.com/2010/03/24/using-oracles-hyperion®-life-cycle-management/
    http://www.oracle.com/technetwork/middleware/performance-management/tutorials/ra-lcm-obe-087262.html
    Cheers, Iain

  • Move/migrate ZFD to a new server

    Using ZFD with the Sybase SQL Anywhere database. AWI, Inventory are the only processes (other than Sybase of course) that we need running.
    The rest is "pure" eDir I believe (NAL, Remote Control)
    The issue is that I need to move/migrate the ZFD 7 stuff from NetWare to OES2 SP2 Linux, but I cannot use the Identity transfer option
    I THINK I can basically install the ZFD code onto the OES2 server, mount or copy the data on the NSS volume on NetWare to the data on OES2 server, and then edit the eDir objects to use the correct paths/IP?
    Or am I wrong in thinking that.
    ZCM is not an option at this point yet (due to a few bugs and some other logistical issues).
    Oh, I don't care too much if I have to redo the Sybase databases from scratch. And I will also change the DNS for ZENWSIMPORT appropriately.

    Originally Posted by magic31
    Basicly, just install a new OES2 server, then install the ZenWorks services you want using the installer in the ZEN7_with_SP1_IR4a_DesktopMgmtLinux.iso media.
    This is for ZDM on SLES, but installation points also apply for OES2 (like exporting the trusted root cert to be used by the ZenWorks agents : Install ZenWorks 7 on SLES 10 SP2 | DiWi )
    If you are on OES2 SP2 also apply the IR4a HP3 (NOVELL: Downloads - ZENworks 7 Desktop Management on Linux Support Pack 1 Interim Release 4a Hot Patch 3)
    Then configure a new ZenWorks Server policy so the settings are as you want em, move the DNS pointer to the new server, reconfigure PDHCP and your User/Workstation policies to reflect new paths where applicable.
    That should cover most points... ZDM is quite easy to move about.
    Hope that helps,
    Willem
    Okay in all seriousness now, it says it's installed with some non-fatal errors.
    9 non-fatal errors to be exact.
    Not sure if that's going to break something. Was complaining about jclient and stuff.
    Install Action: Jump To: Next NO JUMP -- Prev: Choose Install Set
    Status: ERROR
    Additional Notes: ERROR - java.lang.VerifyError: Incompatible JClient/DClient package
    JClient Revision: 1.3.1172
    DClient Revision: 2.5.300
    Install Action: Jump To: Next License Verified -- Prev: NO JUMP
    Status: ERROR
    Additional Notes: ERROR - java.lang.NoClassDefFoundError: com.novell.application.zenworks.install.configure. AuthConfigureAction
    Install Action: Jump To: Next Samba Verified -- Prev: NO JUMP
    Status: ERROR
    Additional Notes: ERROR - java.lang.NoClassDefFoundError
    Custom Action: com.novell.application.zenworks.install.installany where.customcode.InstallZenLicensing
    Status: ERROR
    Additional Notes: ERROR - class com.novell.application.zenworks.install.installany where.customcode.InstallZenLicensing.install() Unexpected Fatal Error:
    Custom Action: com.novell.application.zenworks.install.installany where.customcode.InventoryServerConfigure
    Status: ERROR
    Additional Notes: ERROR - class com.novell.application.zenworks.install.installany where.customcode.InventoryServerConfigure.install( ) Unexpected Fatal Error:
    Custom Action: com.novell.application.zenworks.install.installany where.customcode.SetFailedComponent
    Status: SUCCESSFUL
    Custom Action: com.novell.application.zenworks.install.installany where.customcode.SybaseConfigure
    Status: ERROR
    Additional Notes: ERROR - class com.novell.application.zenworks.install.installany where.customcode.SybaseConfigure.install() Unexpected Fatal Error:
    Custom Action: com.novell.application.zenworks.install.installany where.customcode.AWSConfigAction
    Status: ERROR
    Additional Notes: ERROR - class com.novell.application.zenworks.install.installany where.customcode.AWSConfigAction.install() Unexpected Fatal Error:

  • Move mailbox database to new server (new domain)

    Hey,
    I want to move a mailbox database from a broken server to a new server in a new domain.
    We are already using the new server and I am wondering if I can merge the databases or make the old mail available in any way. Currently everybody has done a pst export before adding the new mailbox.
    Thanks,
    Jason

    Hi Jason,
    Exchange Server 2013 introduces the concept of batch moves and migration endpoints. Migration endpoints are management objects that describe the remote server and the connections that can be associated with one or more batches. And, the new batch move architecture
    improves on MRS moves with enhanced management capability. You can select the appropriate method to move your mailboxes.
    Here is an article for your reference:
    Mailbox moves in Exchange 2013
    https://technet.microsoft.com/en-us/library/jj150543(v=exchg.150).aspx
    Hope this can be helpful to you.
    Best regards,
    Amy Wang
    TechNet Community Support

  • Break cluster and move databases to new server

    Hello everyone.  I have a question that may be basic but I am by no means a SQL person.  Right now we have a SQL 2005 cluster running on VM ESXi with a celerra backend storage.  Some drives are mapped Raw.  We recently put in a new
    VNX and we are not able to migrate the SQL server over due to how the drives are mapped.  I am thinking that I want to build a new SQL server and move the databases.  The new build will not be a cluster since we have point in time recovery manager
    from EMC.  Now my thinking is, can I break the cluster, move the 2nd node to the new ESXi and storage and present new storage or would it be best to just build a new server?  Is it easy enough to change an instance name after SQL is running? 
    Several applications refer to the SQL Cluster and they are critical so I need something with least amount of downtime.  Would doing backup of all of SQL and then a restore to the new system be best?  Any thoughts or direction?  Thanks
    Joe M

    The most straightforward and reliable method is to build a new server, migrate the databases using backup/restore, test the new server, and cut-over by shutting down the old servers and either reconfiguring the client applications or renaming the new server
    to have the same network name as the old server's SQL Cluster Client Access point. 
    You can also use DNS redirection instead of renaming the new server, although using a DNS hostname alias for your server requires some additional security configuration.  EG
    http://blogs.msdn.com/b/dbrowne/archive/2012/05/21/how-to-add-a-hostname-alias-for-a-sql-server-instance.aspx
    David
    David
    David http://blogs.msdn.com/b/dbrowne/

  • Restore SharePoint Database to new server - What to do about external content type?

    I currently run SharePoint 2010 and have a content database back-up which I want to restore to a new server.
    I was able to restore to a new server and everything seems to be working, except that I have one list in my previous site which had an external content type in it linking to a database for our ERP system. The ERP system's database will also be located on
    the new server (same as the new location for the content database). How do I link the external content type from my list to the new location of the ERP database?
    One thing which I've tried is to create a new BDC and set up a new external content type within the list. That seems to point to the new location just fine, except that I would have to remap all every single item in the list individually.
    Any help would be appreciated.

    You will need to modify your BCS Model to reflect the new location of your ERP database. Another option is to use SQL Aliases, which will allow SharePoint to think the new location is still by the old name.
    http://mmman.itgroove.net/2012/07/setting-up-a-sql-server-alias-with-sharepoint-server-2010/
    This is assuming that you are retiring the old database server.
    Dimitri Ayrapetov (MCSE: SharePoint)

  • How to Migrate my database from SQL Server 2000 to Oracle

    I want to transfer my database from SQL Server 2000 to Oracle, Can I do this without using Oracle Migration Workbench ??
    Please help me.
    Thanks in advance
    Vicky... :-)

    Do you have a good technical reason for not wanting to use the Migration Workbench?
    Given that it's free and does a hell of a lot of the work for you, why wouldn't you use it?
    Other than that, I would say you would be on your own...
    cheers,
    Anthony

  • How to mesure/benchmark performance of a new database on new server?

    Hi there
    I have two oracle servers with following (same) details:
    RHEL 5.8 64-bit
    Oracle 10gR2 - 10.2.0.5.8
    ASM 10gR2 - 10.2.0.5.8
    Server A: RAM 32GB, 8 CPUs @ 3.00GHz
    Server B: RAM 128GB, vCPUs 16 cores
    Server A (physical server) already has a database A. Server B (on VMWare - yes, my client is moving all Oracle servers to VMware for whatever reason) is a new installation and new database B with exact same init params as databas A. I expdp the data from database A and impdp into database B.
    As per the hardware team, the hardware is better than the old server B. I did a very basic test to check if new DB performs better than that on physical server. Here is the results:
    I ran a simple query to create a new table. The original table (say, table_a) contains 1.7+ million rows and size is 2.2GB.
    create table test1
    as
    select * from table_a;
    It took 3:28mins on database B while it took only 1:55mins on database A. So the new database B seems to be performing poor (apparently). Then I looked at the explain plan (not sure if it means much because it s a very simple query) and here it is from both databases:
    Database A (physical server
    Plan
    SELECT STATEMENT ALL_ROWS
    Cost: 14,052  Bytes: 2,161,302,003  Cardinality: 16,250,391 
    1 TABLE ACCESS FULL TABLE table_a
    Cost: 14,052  Bytes: 2,161,302,003  Cardinality: 16,250,391 
    Database B (virtual server)
    Plan
    SELECT STATEMENT ALL_ROWS
    Cost: 59,844  Bytes: 2,161,302,003  Cardinality: 16,250,391 
    1 TABLE ACCESS FULL TABLE table_a
    Cost: 59,844  Bytes: 2,161,302,003  Cardinality: 16,250,391 
    Questions:
    1. Why is the cost different? Should I "compute statistics" on database B (virtual server)?
    2. How to investigate further and find out reason for the time difference?
    3. What other benchmark test can I run to make sure that I have the right database configuration?
    Not sure if this is enough info - if not, please let me know what else should I provide.
    The team I have to hand-over this server is refusing to accept it by saying that it is slower than the existing one.
    Please advise!
    Best regards

    Wow... I am really thankful for everyone's input - this is really really appreciated!
    I will try what you all have suggested. In the meantime, I did some simple test on both databases and here are the results:
    Create table t1
      (1.7million rows)
    Create index on
      two columns on t1
    Create table t2
      500000 rows
    Create Index on
      two columns on t2
    Delete from t1
      (500000 rows)
    Insert into t1
      500000 rows
    Drop  table t2
    Drop table t1
    Database A
    hh:mm:ss.00
    hh:mm:ss.00
    hh:mm:ss.00
    hh:mm:ss.00
    hh:mm:ss.00
    hh:mm:ss.00
    hh:mm:ss.00
    hh:mm:ss.00
    1st run
    00:01:55.78
    00:02:12.59
    00:00:03.06
    00:00:01.99
    00:01:25.56
    00:00:10.37
    00:00:00.15
    00:00:05.12
    2nd run
    00:01:56.27
    00:02:11.54
    00:00:02.89
    00:00:01.09
    00:01:18.39
    00:00:10.20
    00:00:00.17
    00:00:04.87
    3rd run
    00:01:56.71
    00:02:12.36
    00:00:03.14
    00:00:01.13
    00:01:22.97
    00:00:10.22
    00:00:00.15
    00:00:04.88
    Database B (VM)
    hh:mm:ss.00
    hh:mm:ss.00
    hh:mm:ss.00
    hh:mm:ss.00
    hh:mm:ss.00
    hh:mm:ss.00
    hh:mm:ss.00
    hh:mm:ss.00
    1st run
    00:00:25:83
    00:03:54.60
    00:00:00.67
    00:00:01.43
    00:00:29.56
    00:00:09.75
    00:00:00.05
    00:00:01.10
    2nd run
    00:00:24.67
    00:03:05.81
    00:00:00:62
    00:00:01.10
    00:00:31.76
    00:00:08.59
    00:00:00.04
    00:00:00.59
    3rd run
    00:00:44.06
    00:03:12.91
    00:00:00.97
    00:00:01.62
    00:00:39.35
    00:00:08.90
    00:00:00.03
    00:00:00.61
    Now, the database on Server B (VMware) seems to be outperforming that on Server A except for the "Create index on two columns on t1" column.
    Any clues why index creation is consistently taking longer on the database B (on VM) as compared to that on database A (physical server)?
    @jgarry: I am not in a position to try SLOB (no doubt a good tool with lots of reputation) because it requires to create a new DB (which I cannot do on the existing server). I did try "HammerDB" but unfortunately it crashed on each attempt to test the load.

Maybe you are looking for

  • Problem with comic in iBooks

    I recently downloaded a comic on iBooks for my iPhone 4s, but unfortunately the pages only half load, leaving most of the page completely gray while having a small top part of the image displayed. I have deleted and redownloaded the comic to no avail

  • Macbook Pro power button

    My boss gave me a 2008 15" Macbook Pro to set up ready for another employee, everything had been wiped off the laptop. He told me that first he wanted it fixed - the power button only worked occasionally- it always worked for me but I took it to the

  • PSE 9...exceed installation limit...

    I have owned PSE9 for over a year and it is installed on two computers only.  It has never been installed on any other computer other than the two at present.  Out of the blue and a year after the initial installations it now tells me I have exceeded

  • MacBook Pro won't download, taken to dark gray screen instead.

    When I click on a download link or pdf file link I am taken to a dark gray screen instead of starting the download or viewing the pdf. This just started happening. I haven't made any changes and installations to my Mac. I can right click and choose t

  • Windows 2003 Server Mounts as a Package. Why?

    This is a weird one. Y'all tell me how its even possible. At work, we have a Windows 2003 Server-based server. For the Mac's, we have two shared folders. Now, one of our Macs is a finely aged 800mhz G4 Quicksilver running 10.3.9. It has recently deve