Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


backup


backup

Author
Message
Krishna1
Krishna1
SSC Veteran
SSC Veteran (218 reputation)SSC Veteran (218 reputation)SSC Veteran (218 reputation)SSC Veteran (218 reputation)SSC Veteran (218 reputation)SSC Veteran (218 reputation)SSC Veteran (218 reputation)SSC Veteran (218 reputation)

Group: General Forum Members
Points: 218 Visits: 556
pls find the screen shot in the attachment
Attachments
1.pdf (3 views, 23.00 KB)
balasaukri
balasaukri
Valued Member
Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)

Group: General Forum Members
Points: 63 Visits: 301
First Screen shot is not clear - another image is on that. Moreover the log_reuse_wait_desc for t1 (if it is SIMPLE) looks as LOG_Backup... It can't be. How you created this db (t1) really don't know. Please create another db with SIMPLE and repeat the tasks as you mentioned. It should work. No way for the misbehaviour.
Krishna1
Krishna1
SSC Veteran
SSC Veteran (218 reputation)SSC Veteran (218 reputation)SSC Veteran (218 reputation)SSC Veteran (218 reputation)SSC Veteran (218 reputation)SSC Veteran (218 reputation)SSC Veteran (218 reputation)SSC Veteran (218 reputation)

Group: General Forum Members
Points: 218 Visits: 556
sorry did not realise. I have corrected the screen shot in this attachment.

I created t1 using ssms. and it shows the recovery model as simple
Attachments
3.pdf (3 views, 24.00 KB)
balasaukri
balasaukri
Valued Member
Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)

Group: General Forum Members
Points: 63 Visits: 301
(i) Displaying Log_reuse_wait_desc as Log_Backup for a db in SIMPLE contradicts.
(ii) Is there any active transaction pending on this db?
(iii) Change the Recovery to Full.... and then again to SIMPLE then try.
(vi) Have you tried to create a new db in SIMPLE and do the same exercise?
GilaMonster
GilaMonster
SSC-Forever
SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)

Group: General Forum Members
Points: 47415 Visits: 44402
That means you just switched to simple and a checkpoint hasn't occurred. The wait types don't change instantly, run a checkpoint and the Log Backup will disappear.


Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass


Krishna1
Krishna1
SSC Veteran
SSC Veteran (218 reputation)SSC Veteran (218 reputation)SSC Veteran (218 reputation)SSC Veteran (218 reputation)SSC Veteran (218 reputation)SSC Veteran (218 reputation)SSC Veteran (218 reputation)SSC Veteran (218 reputation)

Group: General Forum Members
Points: 218 Visits: 556
1) steps how i got Log_Backup for the simple
.created new db with simple recovery
.Created 20000 rows
. took back up
.till now it showslog_resue_wait_desc as Nothing
created 20000 more records and now it shows as Log_backup
2)how to check if active transaction log exsits?
GilaMonster
GilaMonster
SSC-Forever
SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)

Group: General Forum Members
Points: 47415 Visits: 44402
What do you mean by 'active transaction log'? There's always a portion of the log that's active.

If you want to check log behaviour:

Create one database switch it to simple recovery model, schedule backups (full) and make data changes
Create a second database, switch it to full recovery model, schedule backups (full) and make data changes.

You can't get log backup waits unless the DB has been in either full or bulk-logged recovery model and have just been switched to simple.


Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass


Krishna1
Krishna1
SSC Veteran
SSC Veteran (218 reputation)SSC Veteran (218 reputation)SSC Veteran (218 reputation)SSC Veteran (218 reputation)SSC Veteran (218 reputation)SSC Veteran (218 reputation)SSC Veteran (218 reputation)SSC Veteran (218 reputation)

Group: General Forum Members
Points: 218 Visits: 556
Hi Gail

Sorry what i meant was "How to check active transaction?" (not log Smile)

I have done the same steps as you mentioned for testing log behaviour. I had added attchemnt with my obervations. Please check the attchment and let me know what must have gone wrong.

Also checked the log_reuse_wait_desc (select name, recovery_model_desc, log_reuse_wait_desc,* from sys.databases where name in( ..)) it shows Log_backup for simple recovery. ( in my previou reply i have mentioned how i managed to get this description for simple recovery model)



Thanks and regards
GilaMonster
GilaMonster
SSC-Forever
SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)

Group: General Forum Members
Points: 47415 Visits: 44402
Krishna1 (6/20/2013)
Sorry what i meant was "How to check active transaction?" (not log Smile)


DBCC OPENTRAN

Also checked the log_reuse_wait_desc (select name, recovery_model_desc, log_reuse_wait_desc,* from sys.databases where name in( ..)) it shows Log_backup for simple recovery. ( in my previou reply i have mentioned how i managed to get this description for simple recovery model)


You cannot get a log_reuse_wait_desc of LOG_BACKUP for a database that is in simple recovery unless you've just switched out of full/bulk-logged. Double-check what you ran.


Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass


Krishna1
Krishna1
SSC Veteran
SSC Veteran (218 reputation)SSC Veteran (218 reputation)SSC Veteran (218 reputation)SSC Veteran (218 reputation)SSC Veteran (218 reputation)SSC Veteran (218 reputation)SSC Veteran (218 reputation)SSC Veteran (218 reputation)

Group: General Forum Members
Points: 218 Visits: 556
Hi Gail

I still get the LOG_backup for simple recovery.

This how i get it in sql 2012-

.created new db with simple recovery
.Created 20000 rows
. took back up (Full)
.till now it showslog_resue_wait_desc as Nothing
created 20000 more records and now it shows as Log_backup


Code used is as follows---------------
create table a ( a1 char(1000) default 'a1',
a2 char(1000) default 'a2',
a3 char(1000) default 'a3',
a4 char(1000) default 'a4',
a5 char(1000) default 'a5',
a6 char(1000) default 'a6',
a7 char(1000) default 'a7' ,
i integer)

insert into a (i) values (1)
go 20000
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search