Log shipping and error 22029
From: kmkrause2 (kmkrause2_at_discussions.microsoft.com)
Date: 09/21/04
- Next message: Hari Prasad: "RE: Transfer Logins and passwords from one SQL 6.5 server too another"
- Previous message: Tibor Karaszi: "Re: Restore"
- Next in thread: Ron Talmage: "Re: Log shipping and error 22029"
- Reply: Ron Talmage: "Re: Log shipping and error 22029"
- Reply: Pankaj Agarwal [MSFT]: "RE: Log shipping and error 22029"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 21 Sep 2004 13:55:02 -0700
I am having some trouble using MS SQL Server 2000 log shipping. I can get the
database to fail over and become active on the secondary server, but I want
to also have the primary become immediately available for reverse log
shipping.
After I have run the stored procedures to demote the primary, I have to
detach and attach the database on the secondary to be able to run the stored
procedure to promote the secondary. If I don't the procedure fails (sorry, I
don't have the exact error, but it refers to the databse being unable to
access). I also have to manually run the last copy and restore job to make
sure the final transaction log backup gets applied. Once this is done, the
stored procedure to promote the secondary is successful. I then run the
stored procedure to change the monitor server to reflect the new server roles.
Once the database is failed over, I have to go into the maintenance plan for
the reverse log shipping and assign the new destination server. When doing
this, I receive a message stating that the database on the new destination
server is not in standby mode. If I set the database to Read Only in the
Properties dialog box, I can then configure the new destination server. When
I do this, the log backups work fine and so does the copy job. But the
restore job fails with the following error
Executed as user: DMSMAIN\Administrator. sqlmaint.exe failed. [SQLSTATE
42000] (Error 22029). The step failed.
I can't find any helpful documentation of this message. Listed below are the
stored procedures I am running.
USE master
GO
EXEC msdb.dbo.sp_change_primary_role
@db_name = 'modelcopy',
@backup_log = 1,
@terminate = 1,
@final_state = 2,
@access_level = 1
USE master
GO
EXEC msdb.dbo.sp_change_secondary_role
@db_name = 'Modelcopy',
@do_load = 1,
@force_load = 1,
@final_state = 1,
@access_level = 1,
@terminate = 1,
@keep_replication = 0,
@stopat = null
USE master
GO
EXEC msdb.dbo.sp_change_monitor_role
@primary_server = 'sqlserver1' ,
@secondary_server = 'staging3',
@database = 'modelcopy',
@new_source = '\\staging3\logshipping'
Any help is appreciated
TIA,
Ken
- Next message: Hari Prasad: "RE: Transfer Logins and passwords from one SQL 6.5 server too another"
- Previous message: Tibor Karaszi: "Re: Restore"
- Next in thread: Ron Talmage: "Re: Log shipping and error 22029"
- Reply: Ron Talmage: "Re: Log shipping and error 22029"
- Reply: Pankaj Agarwal [MSFT]: "RE: Log shipping and error 22029"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|