dbTalk Databases Forums  

Bring up the standby server in sql 2k

microsoft.public.sqlserver.server microsoft.public.sqlserver.server


Discuss Bring up the standby server in sql 2k in the microsoft.public.sqlserver.server forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
mecn
 
Posts: n/a

Default Bring up the standby server in sql 2k - 11-30-2005 , 05:13 PM






Hi,

How do I bring up the standby server online in sql2k by restoring the last
log backup(backed up with noinit).
This log file has been restored with standby clause. can I restore again
with recovery?

Thanks,



Reply With Quote
  #2  
Old   
Mike Epprecht \(SQL MVP\)
 
Posts: n/a

Default Re: Bring up the standby server in sql 2k - 11-30-2005 , 05:21 PM






Hi

Yes.

RESTORE <dbname> WITH RECOVERY
will bring the DB into a usable state.

--
--------------------------------
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland

IM: mike (AT) epprecht (DOT) net

MVP Program: http://www.microsoft.com/mvp

Blog: http://www.msmvps.com/epprecht/

"mecn" <mecn2002 (AT) yahoo (DOT) com> wrote

Quote:
Hi,

How do I bring up the standby server online in sql2k by restoring the last
log backup(backed up with noinit).
This log file has been restored with standby clause. can I restore again
with recovery?

Thanks,





Reply With Quote
  #3  
Old   
mecn
 
Posts: n/a

Default Re: Bring up the standby server in sql 2k - 11-30-2005 , 05:35 PM



Thanks,
But when I doing restore with recovery give me error says Server: Msg 4326,
Level 16, State 1, Line 11
The log in this backup set terminates at LSN 6791000023918900001, which is
too early to apply to the database. A more recent log backup that includes
LSN 6794000015810000001 can be restored.

I don't know why?
"Mike Epprecht (SQL MVP)" <mike (AT) epprecht (DOT) net> wrote

Quote:
Hi

Yes.

RESTORE <dbname> WITH RECOVERY
will bring the DB into a usable state.

--
--------------------------------
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland

IM: mike (AT) epprecht (DOT) net

MVP Program: http://www.microsoft.com/mvp

Blog: http://www.msmvps.com/epprecht/

"mecn" <mecn2002 (AT) yahoo (DOT) com> wrote in message
news:uAtveOg9FHA.2264 (AT) tk2msftngp13 (DOT) phx.gbl...
Hi,

How do I bring up the standby server online in sql2k by restoring the
last
log backup(backed up with noinit).
This log file has been restored with standby clause. can I restore again
with recovery?

Thanks,







Reply With Quote
  #4  
Old   
Tibor Karaszi
 
Posts: n/a

Default Re: Bring up the standby server in sql 2k - 12-01-2005 , 06:34 AM



Can you post that exact RESTORE command you are executing?

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/


"mecn" <mecn2002 (AT) yahoo (DOT) com> wrote

Quote:
Thanks,
But when I doing restore with recovery give me error says Server: Msg 4326,
Level 16, State 1, Line 11
The log in this backup set terminates at LSN 6791000023918900001, which is
too early to apply to the database. A more recent log backup that includes
LSN 6794000015810000001 can be restored.

I don't know why?
"Mike Epprecht (SQL MVP)" <mike (AT) epprecht (DOT) net> wrote in message
news:um6tXTg9FHA.252 (AT) TK2MSFTNGP15 (DOT) phx.gbl...
Hi

Yes.

RESTORE <dbname> WITH RECOVERY
will bring the DB into a usable state.

--
--------------------------------
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland

IM: mike (AT) epprecht (DOT) net

MVP Program: http://www.microsoft.com/mvp

Blog: http://www.msmvps.com/epprecht/

"mecn" <mecn2002 (AT) yahoo (DOT) com> wrote in message
news:uAtveOg9FHA.2264 (AT) tk2msftngp13 (DOT) phx.gbl...
Hi,

How do I bring up the standby server online in sql2k by restoring the
last
log backup(backed up with noinit).
This log file has been restored with standby clause. can I restore again
with recovery?

Thanks,







Reply With Quote
  #5  
Old   
mecn
 
Posts: n/a

Default Re: Bring up the standby server in sql 2k - 12-01-2005 , 08:57 AM



This is the script I excuted with error.

restore log LDNPROD from disk = 'path.bak' with recovery





"Tibor Karaszi" <tibor_please.no.email_karaszi (AT) hotmail (DOT) nomail.com> wrote in
message news:ObMuJOn9FHA.3660 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
Quote:
Can you post that exact RESTORE command you are executing?

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/


"mecn" <mecn2002 (AT) yahoo (DOT) com> wrote

Thanks,
But when I doing restore with recovery give me error says Server: Msg
4326,
Level 16, State 1, Line 11
The log in this backup set terminates at LSN 6791000023918900001, which
is
too early to apply to the database. A more recent log backup that
includes
LSN 6794000015810000001 can be restored.

I don't know why?
"Mike Epprecht (SQL MVP)" <mike (AT) epprecht (DOT) net> wrote in message
news:um6tXTg9FHA.252 (AT) TK2MSFTNGP15 (DOT) phx.gbl...
Hi

Yes.

RESTORE <dbname> WITH RECOVERY
will bring the DB into a usable state.

--
--------------------------------
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland

IM: mike (AT) epprecht (DOT) net

MVP Program: http://www.microsoft.com/mvp

Blog: http://www.msmvps.com/epprecht/

"mecn" <mecn2002 (AT) yahoo (DOT) com> wrote in message
news:uAtveOg9FHA.2264 (AT) tk2msftngp13 (DOT) phx.gbl...
Hi,

How do I bring up the standby server online in sql2k by restoring the
last
log backup(backed up with noinit).
This log file has been restored with standby clause. can I restore
again
with recovery?

Thanks,









Reply With Quote
  #6  
Old   
Tibor Karaszi
 
Posts: n/a

Default Re: Bring up the standby server in sql 2k - 12-01-2005 , 10:59 AM



If you just want to make the database accessible (fail over), try executing (as suggested by Mike):

RESTORE DATABASE LDNPROD WITH RECOVERY

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/


"mecn" <mecn2002 (AT) yahoo (DOT) com> wrote

Quote:
This is the script I excuted with error.

restore log LDNPROD from disk = 'path.bak' with recovery





"Tibor Karaszi" <tibor_please.no.email_karaszi (AT) hotmail (DOT) nomail.com> wrote in
message news:ObMuJOn9FHA.3660 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
Can you post that exact RESTORE command you are executing?

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/


"mecn" <mecn2002 (AT) yahoo (DOT) com> wrote in message
news:u4ki7ag9FHA.1332 (AT) tk2msftngp13 (DOT) phx.gbl...
Thanks,
But when I doing restore with recovery give me error says Server: Msg
4326,
Level 16, State 1, Line 11
The log in this backup set terminates at LSN 6791000023918900001, which
is
too early to apply to the database. A more recent log backup that
includes
LSN 6794000015810000001 can be restored.

I don't know why?
"Mike Epprecht (SQL MVP)" <mike (AT) epprecht (DOT) net> wrote in message
news:um6tXTg9FHA.252 (AT) TK2MSFTNGP15 (DOT) phx.gbl...
Hi

Yes.

RESTORE <dbname> WITH RECOVERY
will bring the DB into a usable state.

--
--------------------------------
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland

IM: mike (AT) epprecht (DOT) net

MVP Program: http://www.microsoft.com/mvp

Blog: http://www.msmvps.com/epprecht/

"mecn" <mecn2002 (AT) yahoo (DOT) com> wrote in message
news:uAtveOg9FHA.2264 (AT) tk2msftngp13 (DOT) phx.gbl...
Hi,

How do I bring up the standby server online in sql2k by restoring the
last
log backup(backed up with noinit).
This log file has been restored with standby clause. can I restore
again
with recovery?

Thanks,









Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.