Re: STANDBY mode
- From: <someone@xxxxxx>
- Date: Wed, 10 Feb 2010 13:44:55 -0500
Thanks for the help. Works now. It's permission related.
"Tibor Karaszi" <tibor_please.no.email_karaszi@xxxxxxxxxxxxxxxxxx> wrote in
message news:u5ZhuUaqKHA.5736@xxxxxxxxxxxxxxxxxxxxxxx
inI'm thinking put it to recovery and then apply next transation log file
with
NOCOVERY, can I do that?
As already stated: No.
I still can't make standby mode works, actually there are no tuf files
otherprimary/secondary, it related to restore process, and also with nocovery
mode, copy/restore works fine.
I'm sorry, but above sentence is hard to make heads and tails out of.
Standby work just fine. Probably you are using some tool whcih constructs
the restore commands for you and possibly copies the undo file to some
location - which is what is causing your problems. You need totroubleshoot
this tool - that is where the problem is, not with the RESTORE and STANDBYin
process. Possibly the tool is the log shipping functionality which is
shipped with the product.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
<someone@xxxxxx> wrote in message
news:eMtEmPaqKHA.4636@xxxxxxxxxxxxxxxxxxxxxxx
Thanks Kalen,
I'm thinking put it to recovery and then apply next transation log file
with
NOCOVERY, can I do that?
I still can't make standby mode works, actually there are no tuf files
valuesprimary/secondary, it related to restore process, and also with nocovery
mode, copy/restore works fine.
How to find out why and fix for stanndby mode?
"Kalen Delaney" <please_reply_on_newsgroups@xxxxxxxxxx> wrote in message
news:37B55CFE-5C33-4E32-B960-E11F9062095A@xxxxxxxxxxxxxxxx
Once you have run RECOVERY, you cannot restore any more logs.
It is exactly the purpose of STANDBY to let access the db to check
NORECOVERY?and integrity, and then to keep restoring logs.restoring
As Tibor has said already "That is what STANDBY is for"!
--
HTH
Kalen
----------------------------------------
Kalen Delaney
SQL Server MVP
www.SQLServerInternals.com
<someone@xxxxxx> wrote in message
news:unwL0TQqKHA.4492@xxxxxxxxxxxxxxxxxxxxxxx
Thansk Tibor,
After swith with RECOVERY, how to make it restoring, ready for
log again? I'm thinking sometimes need to check the data integrity.
"Tibor Karaszi" <tibor_please.no.email_karaszi@xxxxxxxxxxxxxxxxxx>
wrote
in
message news:u59TN9PqKHA.4284@xxxxxxxxxxxxxxxxxxxxxxx
Are you asking of one can get to a database restore using
STANDBY='C:\Database\SecondaryData\DatabaseBackup\ROLLBACK_UNDO_DisasterDataIf
RECOVERY).so,
the answer is no. That is what STANDBY is for (or, of course,
check
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
<someone@xxxxxx> wrote in message
news:OlHuqqPqKHA.1144@xxxxxxxxxxxxxxxxxxxxxxx
Thanks Tibor,
Using NORECOVERY mode, is it possbile to run some query to simple
comparethe
secondary data, for example, how many records in clients table
withwith
primary database.
"Tibor Karaszi" <tibor_please.no.email_karaszi@xxxxxxxxxxxxxxxxxx>
wrote
in
message news:%23e$dsLJqKHA.5696@xxxxxxxxxxxxxxxxxxxxxxx
There is something strange going on here. You say you do STANDBY
below
and undo file name:
story.base.BAK'
But the error message from SQL Server tells a very different
So,belowAccording to the error message, the prior restore was done with
as
standby file:
\\X-Database\SecondaryData\Logs\x_20100205054523.tuf'
And, according to the error message, above file doesn't exist.
athe
process seems messed up. Or perhaps above is the standby file for
youSo,following log restore? Ah, yes, I now see that in the error
message.
probably the first log restore using the standby file (the one
standbycreated)
was OK. But a following log restore failed, because a prior
STANDBY='C:\Database\SecondaryData\DatabaseBackup\ROLLBACK_UNDO_DisasterDatafile
was
inaccessible (network drive not available, somebody deleted the
file
or
something like that).
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
<someone@xxxxxx> wrote in message
news:OCJa4XnpKHA.1548@xxxxxxxxxxxxxxxxxxxxxxx
Thanks Tibor,
I restore as:
RESTORE DATABASE cashx
FROM disk ='C:\Database\SecondaryData\DatabaseBackup\mydb.bak'
WITH
filebase.BAK'
The old log files system will handle: Skipped log backup file.
Secondary
DB:
xxx
and the database is Standby/Read-Only, but store log failed:
Message
2010-02-05 00:45:26.50 *** Error: Could not apply log backup
secondary'\\Database\SecondaryData\Logs\x_20100205011501.trn' to
standbydatabase
'cashx'.(Microsoft.SqlServer.Management.LogShipping) ***
2010-02-05 00:45:26.50 *** Error: During startup of warm
fileproblem,database
inaccessible'x' (database ID 7), its standby file
('\\X-Database\SecondaryData\Logs\x_20100205054523.tuf') was
to
the RESTORE statement. The operating system error was '5(Access
is
denied.)'. Diagnose the operating system error, correct the
and
retry startup.
RESTORE LOG is terminating abnormally.
Processed 0 pages for database 'x', file 'x_Data' on file 1.
Processed 841 pages for database 'x', file 'x_Log' on file
1.(.Net
SqlClient
Data Provider) ***
I checked, I don't have tuf file. Can you please help here?
"Tibor Karaszi"
<tibor_please.no.email_karaszi@xxxxxxxxxxxxxxxxxx>
wrote
in
message news:OBZrblRpKHA.4348@xxxxxxxxxxxxxxxxxxxxxxx
Use the STANDBY option of the RESTORE command (along with a
into
be
created by the restore process where to keep the info needed
fullalsoorder
to
undo the UNDO performed by the recovery process). Or, you can
use
options).NORECOVERY. What you can't use is ECOVERY (or none of these
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
<someone@xxxxxx> wrote in message
news:ugSsJMRpKHA.1548@xxxxxxxxxxxxxxxxxxxxxxx
Hi Tibor,
How to put database in standby mode when restoring from a
andback?
Thanks.
"Tibor Karaszi"
<tibor_please.no.email_karaszi@xxxxxxxxxxxxxxxxxx>
wrote
in
message news:uGm2jmQpKHA.3748@xxxxxxxxxxxxxxxxxxxxxxx
You can't. I.e., you need to re-do a prior database restore
get
going
from there.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
<someone@xxxxxx> wrote in message
news:#ww1cVQpKHA.5224@xxxxxxxxxxxxxxxxxxxxxxx
Hi how to put the database to standby mode for log
shipping:
*** Error: The restore operation cannot proceed
because the secondary database 'mydatabase' is not in
NORECOVERY/STANDBY
mode.(Microsoft.SqlServer.Management.LogShipping)
Thanks...
.
- References:
- STANDBY mode
- From: someone
- Re: STANDBY mode
- From: Tibor Karaszi
- Re: STANDBY mode
- From: someone
- Re: STANDBY mode
- From: Tibor Karaszi
- Re: STANDBY mode
- From: someone
- Re: STANDBY mode
- From: Tibor Karaszi
- Re: STANDBY mode
- From: someone
- Re: STANDBY mode
- From: Tibor Karaszi
- Re: STANDBY mode
- From: someone
- Re: STANDBY mode
- From: Kalen Delaney
- Re: STANDBY mode
- From: someone
- Re: STANDBY mode
- From: Tibor Karaszi
- STANDBY mode
- Prev by Date: O/S when running SQL2005 SP3
- Next by Date: Re: O/S when running SQL2005 SP3
- Previous by thread: Re: STANDBY mode
- Next by thread: Re: STANDBY mode
- Index(es):
Relevant Pages
|