Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Setup Mirror failing with 'lock could not be placed on dat..

 
   Database Forums (Home) -> Replication RSS
Next:  auto field update  
Author Message
Mike D

External


Since: Dec 07, 2008
Posts: 5



(Msg. 1) Posted: Sat Dec 27, 2008 12:43 am
Post subject: Setup Mirror failing with 'lock could not be placed on database' e
Archived from groups: microsoft>public>sqlserver>replication (more info?)

Hi, I have a rather large 500GB sql 2005 database I'm trying to mirror, I
have everything inplace ready to go but I keep getting the below error, I
have closed all connections, I have ran the commands to kill all connections
and to set it to single user mode but I still get the same error, I went
through the same process with a much small DB on the same servers without
issue, can anyone advise if there is anything else I can try, taking a DB
like this offline etc is an hour of and an hour on so I can't play with that
to much, I'm confused, in the activlity monitor there are nho connections to
this DB only the master and temp!

Any help is appreciated.

TITLE: Database Properties
------------------------------

An error occurred while starting mirroring.

------------------------------
ADDITIONAL INFORMATION:

Alter failed for Database 'mydb'. (Microsoft.SqlServer.Smo)

For help, click:
http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9....3042.0

------------------------------

An exception occurred while executing a Transact-SQL statement or batch.
(Microsoft.SqlServer.ConnectionInfo)

------------------------------

ALTER DATABASE failed because a lock could not be placed on database 'mydb'.
Try again later. (Microsoft SQL Server, Error: 5061)

For help, click:
http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=0...0.3054&

------------------------------
BUTTONS:

OK
------------------------------

 >> Stay informed about: Setup Mirror failing with 'lock could not be placed on dat.. 
Back to top
Login to vote
Hilary Cotter3

External


Since: Aug 28, 2004
Posts: 1259



(Msg. 2) Posted: Sat Dec 27, 2008 7:37 am
Post subject: Re: Setup Mirror failing with 'lock could not be placed on database' e [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Did you try this

alter database databaseset set recovery full with rollback immediate

"Mike D" wrote in message

> Hi, I have a rather large 500GB sql 2005 database I'm trying to mirror, I
> have everything inplace ready to go but I keep getting the below error, I
> have closed all connections, I have ran the commands to kill all
> connections
> and to set it to single user mode but I still get the same error, I went
> through the same process with a much small DB on the same servers without
> issue, can anyone advise if there is anything else I can try, taking a DB
> like this offline etc is an hour of and an hour on so I can't play with
> that
> to much, I'm confused, in the activlity monitor there are nho connections
> to
> this DB only the master and temp!
>
> Any help is appreciated.
>
> TITLE: Database Properties
> ------------------------------
>
> An error occurred while starting mirroring.
>
> ------------------------------
> ADDITIONAL INFORMATION:
>
> Alter failed for Database 'mydb'. (Microsoft.SqlServer.Smo)
>
> For help, click:
> http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9....3042.0
>
> ------------------------------
>
> An exception occurred while executing a Transact-SQL statement or batch.
> (Microsoft.SqlServer.ConnectionInfo)
>
> ------------------------------
>
> ALTER DATABASE failed because a lock could not be placed on database
> 'mydb'.
> Try again later. (Microsoft SQL Server, Error: 5061)
>
> For help, click:
> http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=0...0.3054&
>
> ------------------------------
> BUTTONS:
>
> OK
> ------------------------------
>

 >> Stay informed about: Setup Mirror failing with 'lock could not be placed on dat.. 
Back to top
Login to vote
Paul Ibison

External


Since: Oct 03, 2008
Posts: 35



(Msg. 3) Posted: Tue Dec 30, 2008 1:33 am
Post subject: RE: Setup Mirror failing with 'lock could not be placed on database' e [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Have a look in sysprocesses (or sp_who2) to see what process is causing the
database lock.
Perhaps it could be some polling/monitoring application that is running in
the background?
HTH,
Paul Ibison
 >> Stay informed about: Setup Mirror failing with 'lock could not be placed on dat.. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Sql Server 2005 Mirror Replicaton - Hi.... I have sql server 2005 evaluation edition. And This version doesn't provides Mirroring option.Even after installation of service Pack1. Is there any other edition (Freeware or Evaluation) which provides the Database Mirroring ? waiting for the...

Perform Mirror-Changes to All Databases - Hi, We're setting up a mirrored database environment with SQL Server 2005. >From what I have found, we have to perform mirror actions for each database seperately. Is it possible to perform these standard actions, such as failing over the database the...

SQL 2000 SP4 replicating to SQL2005 Mirror servers - Hi, I fully expect the answer is no, but I'll ask anyway! We have a publisher (also distributor) server using SQL2000 SP4, which utilises Snapshot and Transactional replication to a SQL2000 box at our hosting site. The hosting site box will soon be..

Transactional Replication failing - "The process could not.. - I'm trying to setup transaction replication between 2 servers. This is a one-way replication: Server A to Server B, not Server B to Server A. I am able to replicate all the tables except one. I added commands to the agent so that it would create an..

Updates failing on replicated tables - Hi all, I have a merge replication running between SQLexpress and SQL2005. I had to rebuild my server where the subscription is (sqlExpress). My replication seems to be runnig fine, No errors and the data seems to be synced. When I try to update a....
   Database Forums (Home) -> Replication All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]