Groups | Blog | Home
all groups > sql server replication > december 2005 >

sql server replication : SQL2005 - Mirroring and TransLogShipping problem


Jay Becker
12/29/2005 12:42:04 PM
Hello everyone. We are evaluating SQL 2005 Standard for both a mirroring and
log shipping scenario. We want to have database mirroring setup in house and
log shipping to a remote site. We have successfully implemented db mirroring
using the trace flag 1400, like this.....

sqlservr -d"c:\program files\microsoft sql
server\mssql.1\mssql\data\master.mdf" -T1400

and it works great. Only problem is you must stop the default sql server
service, which also stops the sql server agent. So, now the problem is that
while we are using that trace flag 1400 for mirroring, we can't implement log
shipping as the sql server agent must be running.

I tried starting the sql server agent from command line using NET START
SQLSERVERAGENT, but since the service won't start, this obviously won't
either. Also, just using regular command line will not work. It says it
can't be started from command line.

Any suggestions or ideas as to how I can test both mirroring and log
shipping at the same time?

Thanks for your time.

Michael Hotek
12/29/2005 6:56:31 PM
You have me completey confused. There is no way this should be failing.

Yes, SQL Server Agent requires the SQL Server to be running. Why? SQL
Server Agent uses the msdb database which is only available when the SQL
Server is running.

So, enable trace flag 1400 and start the SQL Server instance. Once the SQL
Server is running, start SQL Server Agent.

--
Mike
Mentor
Solid Quality Learning
http://www.solidqualitylearning.com


[quoted text, click to view]

Yunwen Bai
1/4/2006 2:40:04 PM
I guess the issue here is about restarting the sqlserveragent. please try as
Michael stated ( to make sure sql server is up and running ) and make sure
the creadential for the sqlagent service is correct. if you still have
problems with starting the sqlserveragent. please let us know.

Sql2005 BOL has the details about confiuring mirroring and logshiping side
by side. you can refer BOL to set it up.

Thanks
Yunwen


[quoted text, click to view]
Jay Becker
1/6/2006 10:15:03 AM
When you enable the traceflag to turn on database mirroring, you have to
first stop the default SQL Server service, which also turns off SQL Server
Agent. When you turn on SQL Server service with the trace flag the agent
does not turn on. And you cannot turn it on as a service. Here is the way
to turn it on......

SQLAGENT90.EXE -c

That starts the SQL agent, which is necessary for log shipping. Works great.


Jay

[quoted text, click to view]
AddThis Social Bookmark Button