Showing posts with label transaction. Show all posts
Showing posts with label transaction. Show all posts

Tuesday, March 27, 2012

Error 18204 on backup of Transaction log

I have used SQL Server 2005 Database Maintenance Plans to establish full backups and hourly transaction log backups. The jobs that stem from the DB Subplans run fine and report no errors when I view the history on them, however I have noticed the following error in my SQL Server error log. I am not seeing a similar error for my database backups, only the hourly log backups. Space is not an issue. Any guidance on this one would be greatly appreciated.

18204 :
BackupDiskFile::CreateMedia: Backup device <'Path\logname'> failed to create. Operating system
error = 2(The system cannot find the file specified.).

Thanks,

Jason

Have you checked that all directories exists that are used in your maintenance plan?

Daan

|||Is the job which to take full and log backups succeeds ? if not check check if the sql startup account has modify privileges to the path mentioned in the maintenanance plan....

Thanxx
Deepak
|||

Please check if you have all the necessary permissions on the destination driver as Deepak said. Also, please check if this KB is applicable to you: http://support.microsoft.com/kb/255235

HTH

Error 18204 on backup of Transaction log

I have used SQL Server 2005 Database Maintenance Plans to establish full backups and hourly transaction log backups. The jobs that stem from the DB Subplans run fine and report no errors when I view the history on them, however I have noticed the following error in my SQL Server error log. I am not seeing a similar error for my database backups, only the hourly log backups. Space is not an issue. Any guidance on this one would be greatly appreciated.

18204 :
BackupDiskFile::CreateMedia: Backup device <'Path\logname'> failed to create. Operating system
error = 2(The system cannot find the file specified.).

Thanks,

Jason

Have you checked that all directories exists that are used in your maintenance plan?

Daan

|||Is the job which to take full and log backups succeeds ? if not check check if the sql startup account has modify privileges to the path mentioned in the maintenanance plan....

Thanxx
Deepak
|||

Please check if you have all the necessary permissions on the destination driver as Deepak said. Also, please check if this KB is applicable to you: http://support.microsoft.com/kb/255235

HTH

sql

Friday, February 24, 2012

Error - Trancount Reset!

Hi,
I am using the T-SQL commands "BEGIN TRANSACTION", "COMMIT TRANSACTION"
and "ROLLBACK TRANSACTION" via the Statement.Execute method instead of
setting the autoCommit feature of JDBC.
We often have objects that contain transactional updates that may be called
by another object that has already initiated a transaction or that may be
used alone, thus we need a form of transaction nesting which the autoCommit
feature does not provide.
However, we have noticed that the @.@.TRANCOUNT will reset to 0 once a
statement object is created on the same connection - for example, we would
expect:
FIRST OBJECT
BEGIN TRANSACTION
... SOME WORK (TRANCOUNT = 1)
SECOND OBJECT
BEGIN TRANSACTION (TRANCOUNT = 2)
.. SOME WORK
COMMIT TRANSACTION (TRANCOUNT = 1)
FIRST OBJECT
COMMIT TRANSACTION (TRANCOUNT = 0)
However, we have noticed that as soon as a Statement object is created in
the inner transaction, the TRANCOUNT is immediately set to 0. Then, when the
COMMIT TRANSACTION statement is issued, an error is raised because there is
no matching BEGIN TRANSACTION.
Has anyone ever encountered this error? Is it a bug?
Thanks,
Mike
MikeF wrote:

> Hi,
> I am using the T-SQL commands "BEGIN TRANSACTION", "COMMIT TRANSACTION"
> and "ROLLBACK TRANSACTION" via the Statement.Execute method instead of
> setting the autoCommit feature of JDBC.
Very dangerous.

> We often have objects that contain transactional updates that may be called
> by another object that has already initiated a transaction or that may be
> used alone, thus we need a form of transaction nesting which the autoCommit
> feature does not provide.
That doesn't explain why the autoCommit() path won't work. You set autoCommit(false)
and call what you want. anything below needn't know whether it's in a tx or not.
Then commit or roll back.

> However, we have noticed that the @.@.TRANCOUNT will reset to 0 once a
> statement object is created on the same connection - for example, we would
> expect:
> FIRST OBJECT
> BEGIN TRANSACTION
> ... SOME WORK (TRANCOUNT = 1)
> SECOND OBJECT
> BEGIN TRANSACTION (TRANCOUNT = 2)
> .. SOME WORK
> COMMIT TRANSACTION (TRANCOUNT = 1)
> FIRST OBJECT
> COMMIT TRANSACTION (TRANCOUNT = 0)
> However, we have noticed that as soon as a Statement object is created in
> the inner transaction, the TRANCOUNT is immediately set to 0. Then, when the
> COMMIT TRANSACTION statement is issued, an error is raised because there is
> no matching BEGIN TRANSACTION.
> Has anyone ever encountered this error? Is it a bug?
You need to add a connection property selectMethod=cursor. Otherwise
the driver will make *new connections* under the covers to implement
concurrent statements, and each statement will be independent of
the connection/statement on which you think you started a transaction.
This would have been prevented/revealed immediately if you had stuck to
JDBC control calls for defining your transactions.
Joe Weinstein at BEA
> Thanks,
> Mike

Friday, February 17, 2012

Error

Can anyone explain me this error message and why am i
getting it:
Distributed transaction completed. Either enlist this
session in a new transaction or the NULL transaction.
[SQLSTATE 42000] (Error 8525) [SQLSTATE 01000] (Error
7312). The step failed.
thanxs!Hi,
Your transaction may be timing out. By default DTC transaction Timeout is
set to 60 seconds .
If this is not long enough In component services\computers\my computer
right click. select properties and select
the options tab and increase the transaction timeout (you may set this to 0
and the transaction will not time out)
Thanks
Hari
MCDBA
"cs" <anonymous@.discussions.microsoft.com> wrote in message
news:8a0401c3e96e$32888cf0$a601280a@.phx.gbl...
quote:

> Can anyone explain me this error message and why am i
> getting it:
> Distributed transaction completed. Either enlist this
> session in a new transaction or the NULL transaction.
> [SQLSTATE 42000] (Error 8525) [SQLSTATE 01000] (Error
> 7312). The step failed.
> thanxs!
|||where can i find the "component services"'
quote:

>--Original Message--
>Hi,
>Your transaction may be timing out. By default DTC

transaction Timeout is
quote:

>set to 60 seconds .
> If this is not long enough In component

services\computers\my computer
quote:

>right click. select properties and select
>the options tab and increase the transaction timeout (you

may set this to 0
quote:

>and the transaction will not time out)
>Thanks
>Hari
>MCDBA
>
>"cs" <anonymous@.discussions.microsoft.com> wrote in

message
quote:

>news:8a0401c3e96e$32888cf0$a601280a@.phx.gbl...
>
>.
>
|||Hi,
Can you tell me where do you get the error?
I thought that you are using some components.
Thanks
Hari
MCDBA
"cs" <anonymous@.discussions.microsoft.com> wrote in message
news:8a0401c3e96e$32888cf0$a601280a@.phx.gbl...
quote:

> Can anyone explain me this error message and why am i
> getting it:
> Distributed transaction completed. Either enlist this
> session in a new transaction or the NULL transaction.
> [SQLSTATE 42000] (Error 8525) [SQLSTATE 01000] (Error
> 7312). The step failed.
> thanxs!

Error

Can anyone explain me this error message and why am i
getting it:
Distributed transaction completed. Either enlist this
session in a new transaction or the NULL transaction.
[SQLSTATE 42000] (Error 8525) [SQLSTATE 01000] (Error
7312). The step failed.
thanxs!Hi,
Your transaction may be timing out. By default DTC transaction Timeout is
set to 60 seconds .
If this is not long enough In component services\computers\my computer
right click. select properties and select
the options tab and increase the transaction timeout (you may set this to 0
and the transaction will not time out)
Thanks
Hari
MCDBA
"cs" <anonymous@.discussions.microsoft.com> wrote in message
news:8a0401c3e96e$32888cf0$a601280a@.phx.gbl...
> Can anyone explain me this error message and why am i
> getting it:
> Distributed transaction completed. Either enlist this
> session in a new transaction or the NULL transaction.
> [SQLSTATE 42000] (Error 8525) [SQLSTATE 01000] (Error
> 7312). The step failed.
> thanxs!|||where can i find the "component services"'
>--Original Message--
>Hi,
>Your transaction may be timing out. By default DTC
transaction Timeout is
>set to 60 seconds .
> If this is not long enough In component
services\computers\my computer
>right click. select properties and select
>the options tab and increase the transaction timeout (you
may set this to 0
>and the transaction will not time out)
>Thanks
>Hari
>MCDBA
>
>"cs" <anonymous@.discussions.microsoft.com> wrote in
message
>news:8a0401c3e96e$32888cf0$a601280a@.phx.gbl...
>> Can anyone explain me this error message and why am i
>> getting it:
>> Distributed transaction completed. Either enlist this
>> session in a new transaction or the NULL transaction.
>> [SQLSTATE 42000] (Error 8525) [SQLSTATE 01000] (Error
>> 7312). The step failed.
>> thanxs!
>
>.
>|||Hi,
Can you tell me where do you get the error?
I thought that you are using some components.
Thanks
Hari
MCDBA
"cs" <anonymous@.discussions.microsoft.com> wrote in message
news:8a0401c3e96e$32888cf0$a601280a@.phx.gbl...
> Can anyone explain me this error message and why am i
> getting it:
> Distributed transaction completed. Either enlist this
> session in a new transaction or the NULL transaction.
> [SQLSTATE 42000] (Error 8525) [SQLSTATE 01000] (Error
> 7312). The step failed.
> thanxs!