Migrating master database to another server (DR testing).
So I was tasked to do some DR testing, by moving one of our environments to another. I was tasked with moving 1 user database called Vant, master, and msdb. I managed to accomplish it, but it wasn't easy and a little messy. I'm looking
to see if you guys can help me clean my steps up a bit.
Environment backgroud.
Both environments are SQL Server 2012 Enterprise
Build: 11.0.3368
Instance Name: Default
Process
I took all 3 backups from my source server and placed it in a network location where my destination server can access.
1) I began by trying to restore master database by placing my instance in single user mode, backup restored.
2) when I removed the destination instance from single user mode, the service would not start, did this a couple of times, but no luck.
3)I also made sure the startup parameters were pointing to the right folder location
4)Then I thought, maybe it was the folder location where it restored to, that was causing the problem because they were different; so I went ahead moved master into a folder location that would match the source, i also changed the startup parameters, but
the instance still wouldn't start
5)So then I checked the event logs, and noticed that SQL Server was looking for databases that were on the Source Instance, as well as some of the system databases that I hadn't moved the files to the new folder location
6)Restored the original master database from the destination server so that I could get the service going
7) moved all the system databases from the old folder location on the destination server to where master now resided; created two empty databases with the names the event log was looking for.
8)Restored master database from source server, and the service finally started up
9)When I went into SSMS, I noticed that the two empty databases I created were in recovery pending
10) dropped one of the databases I didn't need, and restored the Vant database, as well as msdb; everything looks good.
So there it is, I totally don't feel good about this. I don't like the fact that the databases came up in "recovery pending" and also that I had to create the databases it was looking for before I could restore and start up the service, but
maybe that's just how it is. Any advice you can give me on how to clean this up would be much appreciated.
Hi,
Did you reffered to Microsoft doumentation on how to move system databses.
http://technet.microsoft.com/en-us/library/ms345408(v=sql.110).aspx
For user databse backup when you restore on different server you use with move option to physically give location to mdf and ldf files.
Moving system database is little tricky
Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers
My TechNet Wiki Articles
Similar Messages
-
Connect to a oracle database in another server
Hi people,
I have to read some tables on a oracle database in another server.
I know that I will have to use EXEC SQL command, but how can I make the connection between SAP and that oracle database.
I have seen something about the DBCON table, but I am not sure if I can connect on another server from ther and how...
Thanks...Dear,
Check the below links:
http://sap.ittoolbox.com/groups/technical-functional/sap-basis/connection-between-sap-system-with-external-oracle-database-with-tcode-dbco-1178583
http://help.sap.com/saphelp_nwpi71/helpdata/en/df/455ec9747111d6b25100508b6b8a93/content.htm
Hope it will help you.
Regards,
Alok Tiwari -
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 GoelHi 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. -
Query for UDT over different Databases on another Server
Hi,
i want to use via query an UDT from another Database on another Server...
nomal Tables can be Used like this:
select* from [SVR-Name].Database.dbo.OITM
But if I try the same for an UDT:
select* from [SVR-Name].Database.dbo.[@UDT]
it doesn't work.
Does anyone have an Idea for me ?
Thx.
MarkusThx for your replies,
a query over different Databases on the same SQL-Server is no problem.
... but I want to select an UDT which is on another SAP-Server (other location) in a different Database.
Servername = SVR
Database = LIVE
UDT = [@portfolio]
select * from [SVR].LIVE.DBO.[@portfolio]
doesn't work.
(normal query to reach OITM for example:
select * from [SVR].LIVE.DBO.OITM
works fine !! -
Coying Database to another server
Dear All,
I want trying to copy database to another server but i got error
Login failed for user 'domainName\ComputerName$'
I already use domain administrator to both of server and already create user login in both server.
Both of the login is domain administrator and same user for the server. I use SQL Server Standard Edition 2008 R2.
How can i fix this error?
please help
Best regards,
SurbaktiHi Surbakti,
According to your description, if you copy a local database to a remote SQL Server via the copy database wizard, we need to verify if the SQL Server Agent Service account does have sufficient access
rights to the remote server. See:
Use the Copy Database Wizard
Usually, I suggest the better option is to perform the full backup of the database and then copy the backup file manually to remote computer. Once done, restore the database from this backup file on
remote computer.
There is detail about move databases between computers that are running SQL Server instance.
http://support.microsoft.com/kb/314546/en-us
Regards,
Sofiya Li
Sofiya Li
TechNet Community Support -
Copy Master Database To Another Instance
At our instasllation we have copied the Master database across instances with success. This makes migrations much easier and it has never caused any issues. However I am concerned whether this is officially supported and if there may be something we are
not considering that may cause issues in the future. Of course the source and destination SQL Server instances are the same OS and SQL Server versions and the paths of all databases are the same.
Thank you for your help
ScottHi,
I think this method can be used when the backup restore method does not work because of the original database files were corrupted or missing.
Some interesting articles for your reference:
The Easiest Way To Rebuild The master Database:
http://blogs.technet.com/b/fort_sql/archive/2011/02/01/the-easiest-way-to-rebuild-the-sql-server-master-database.aspx
Restoring Master Database :
http://msdn.microsoft.com/en-us/library/ms190679.aspx
How to build system databases:
http://msdn.microsoft.com/en-us/library/dd207003.aspx
Hope the information helps.
Tracy Cai
TechNet Community Support -
Connecting oracle dev 2000 forms to oracle 9i database on another server
we have these oracle developer 2000 forms (in .fmx format) in a server and the data of these forms in another server.... the server with the data is very old and is very slow...so we decided to relocate the database(oracle 9i) to a new server..... also, we move the developer 2000 forms from the old server to another server which will serve as the front end to the new data server.
The problem is we can't figure out how to make the developer 2000 forms on the new front end server to point to the new database on the new data server. I would really appreciate if u cud gimme some advice on this... so we need to know how the forms find the data, where this "connection string" is for developer 2000 forms.You have to create a Net Service from "Net Configuration Assistant". Or you can copy TNSNAMES.ora file from your old server to new server. You can find TNSNAMES.ora file in developer_suite_Home/Network/admin folder.
-
How to connect to a MySQL database in another server
Dear friends,
I am using Oracle SQL Developer 1.5.3 and I need to connect to a MySQL database located in another server.
I am trying to create a new connection, informing connection name, username and password. Supposing that "Hostname" is the IP server address, I click on "Choose database", but I always receive the following error message: "Status : Failure - Cannot connect to MySQL server".
Please tell me what I should do to solve this situation. Thanks in advance.
Best regards,
FranklinYou need to configure your mysql database to accept connection from your PC for the user you used.
For example,
GRANT ALL ON *.* TO 'someuser'@'somehost';
FLUSH PRIVILEGES; -
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 create Oracle 11g DSN for database on another server
Hi,
How do i create an Oracle Database 11g DSN for a database that is lying on another server? I tried using the Microsoft ODBC Administrator tool but it gives me options only for the databases lying on my own machine.Hi,
Check this thread may it help you https://forums.oracle.com/thread/2479208 -
Rebuild master database on MSSQL Server Edition 2012
Hi There,
Can somebody please tell me the steps to rebuild master database from a corrupted installation for MSSQL Server 2012?
Thanks,
Ashish Tripathi
Regards, Ashish TripathiHello,
Please read the following article.
https://msdn.microsoft.com/en-us/library/dd207003(v=sql.110).aspx
An alternative may be the following procedure.
http://blogs.technet.com/b/fort_sql/archive/2011/02/01/the-easiest-way-to-rebuild-the-sql-server-master-database.aspx
Hope this helps.
Regards,
Alberto Morillo
SQLCoffee.com -
Must Move 10g Database To Another Server
Good morning,
Well, right in the middle of my implementation, I've learned that we must change to a different physical server for the 10 g database. Wonderful.
I have installed several patches. Will a consistent backup of the db capture those patches? After I restore to the new server, will I have to reinstall all patches?
Don't most patchsets modify the Oracle instance as well as the database?
Thanks, JohnHave you tried the clone features? On DBCA, there is a clone database option. If you use Enterprise Grid Control, they have a clone database from one server to another and you can choose different instance name and different file structure. This has the additional benefits of no need to bring down the current database. Also you can try the clone.pl to clone the oracle_Home. I have not tried one with patches but I guess it will include every thing under ORACLE_HOME. It will handle most but I still have trouble with the data control setup but then I recreate everything from scratch
-
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 WahidThanks 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? -
Import data into database on another server
What is the syntax to import data from a .dmp file on another server into a database on a different server? Do I just use
imp scot/tiger@nextdb parfile=params.dat
I do not have enough space on the other server to hold the large import file. Even a compressed file give a 'no space left on device error', so I want to just issue the import command on the other server. Is that possible?Yes it is possible and the example you provided is enough if you want to import the data in nextdb.
But, consider network bandwidth, since all data that has to be imported must go thru the network. This can make import process much slower.
One more thing to consider! You have mentioned there is not enough space on your destination site for the dump file. If that is the case, make sure that you have enough space for the data that has to be imported.
See how much free space you have in the target tablespace and the target location in order to be sure that there is enough space for the data. -
How to create a standby database in another server?
hi,
I want to create a standby database in another machine, please tell me the steps fot it.
thx.Can you tell what version of Oracle you are running, because the steps can vary depending on your version.
Maybe you are looking for
-
How do I remove the grouping headings in my list view web part?
I don't have access to SharePoint Designer and so far, that is all I can find that people are saying to use. I understand and know how to edit the HTML in SharePoint, just don't know what code to put in and where exactly to put it so that the Docume
-
Neither my iPod Touch nor my iPhone will show up in iTunes when I plug in through the USB cable. My software is updated, I've restarted everything, I've reset the devices, but still no luck. Help?!
-
"To view the full contents of this document..."
Hi All, I am working on a PDF parser and while parsing PDF file I am able to parse the document catalog & cross reference table but when it comes to content I get a message "To view the full contents of this document, you need a later version of the
-
Who chooses the little icons to the left of a website?
On both the "Search or Enter Address" field and on the Bookmarks list, to the left of website names, there are tiny icons. How can I choose one for my own site?
-
Hello everyone, I have a question and I hope to find anyone who can answer it :-) I am developing a Midlet (MIDP 1.0 CDLC 1.0) for which I am implementing my own forms. That means that I do not use the ChoiceGroup class (for example ) which is provid