November 2, 2009 at 11:13 pm
Hi,
I have a Log shipping configured database and on secondary the database is in restoring mode & log backups are applying every 15 mins. Is there any way to BACKUP this database(restoring state) on secondary?
thanks
November 3, 2009 at 12:00 am
gmamata7 (11/2/2009)
Hi,I have a Log shipping configured database and on secondary the database is in restoring mode & log backups are applying every 15 mins. Is there any way to BACKUP this database(restoring state) on secondary?
thanks
Which database? The one in Restoring mode? You have not made the question clear.
If I am thinking right, you have a backup of your Primary databases already in place when you configured Log shipping!!???. You can restore the same file backup.
Thanks.
November 3, 2009 at 12:25 am
thanks Krishna,
My question is: Is there any way to take the backup of a database, which is in restoring mode?
November 3, 2009 at 1:22 am
gmamata7 (11/3/2009)
thanks Krishna,My question is: Is there any way to take the backup of a database, which is in restoring mode?
When the database is in restoring state, it means the databases is not online/unavailable- Hence not accessible. so, it would not be possible to take a backup of that database unless it is brought back online.
Edited to add:
November 3, 2009 at 1:34 am
When the database is in restoring state, it means the databases is not online/unavailable- Hence not accessible. so, it would not be possible to take a backup of that database unless it is brought back online.
When a database is in restoring mode, if I stop the SQL Service and copy the .mdf & .ldf file and saved them in a folder. Later, I brought the database online.
Now, If I stop the SQL Service and replace the .mdf & .ldf files with previously copied mdf & ldf files and start the service, then the database will start and it should be in restoring mode right??
thanks
November 3, 2009 at 2:38 am
no database will not come online even if the service are restarted...
November 3, 2009 at 2:44 am
gmamata7 (11/3/2009)
When the database is in restoring state, it means the databases is not online/unavailable- Hence not accessible. so, it would not be possible to take a backup of that database unless it is brought back online.
When a database is in restoring mode, if I stop the SQL Service and copy the .mdf & .ldf file and saved them in a folder. Later, I brought the database online.
Did you mean, you created a new database? and brought that back online?
Now, If I stop the SQL Service and replace the .mdf & .ldf files with previously copied mdf & ldf files and start the service, then the database will start and it should be in restoring mode right??
Yes, that's right. The database will be on restoring state too. The only way to bring it online is using the backup command and RECOVERY mode.
What you can do is, You can create a new database with the files that you copied.
November 3, 2009 at 3:19 am
hey,
try this command on the server where you are shipping the log that is target server
use master
restore database databasename with recovery
it might bring your restoring state db in online.
i have tried it on mirroring it worked..please check and let me know
Thanks & regards
Ramu
November 3, 2009 at 3:45 am
ramuvanparti (11/3/2009)
hey,try this command on the server where you are shipping the log that is target server
use master
restore database databasename with recovery
it might bring your restoring state db in online.
i have tried it on mirroring it worked..please check and let me know
Thanks & regards
Ramu
That breaks the log-shipping configuration which you do not want to do it I suppose.
Mamta,
Is your original question just for reference and to get to know things or do you want to implement it? Please state your purpose which would be more useful.
Viewing 9 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic. Login to reply