Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase ««123»»

backup Expand / Collapse
Author
Message
Posted Thursday, June 20, 2013 12:17 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Sunday, April 27, 2014 7:55 PM
Points: 218, Visits: 556
pls find the screen shot in the attachment

  Post Attachments 
1.pdf (3 views, 23.78 KB)
Post #1465466
Posted Thursday, June 20, 2013 2:01 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Yesterday @ 2:17 AM
Points: 42, Visits: 252
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.
Post #1465498
Posted Thursday, June 20, 2013 2:16 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Sunday, April 27, 2014 7:55 PM
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


  Post Attachments 
3.pdf (3 views, 24.89 KB)
Post #1465503
Posted Thursday, June 20, 2013 2:51 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Yesterday @ 2:17 AM
Points: 42, Visits: 252
(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?
Post #1465522
Posted Thursday, June 20, 2013 3:57 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Yesterday @ 9:36 AM
Points: 42,765, Visits: 35,863
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 2008, MVP
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

Post #1465558
Posted Thursday, June 20, 2013 4:16 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Sunday, April 27, 2014 7:55 PM
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?
Post #1465563
Posted Thursday, June 20, 2013 4:29 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Yesterday @ 9:36 AM
Points: 42,765, Visits: 35,863
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 2008, MVP
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

Post #1465568
Posted Thursday, June 20, 2013 4:52 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Sunday, April 27, 2014 7:55 PM
Points: 218, Visits: 556
Hi Gail

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

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
Post #1465579
Posted Thursday, June 20, 2013 5:07 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Yesterday @ 9:36 AM
Points: 42,765, Visits: 35,863
Krishna1 (6/20/2013)
Sorry what i meant was "How to check active transaction?" (not log :))


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 2008, MVP
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

Post #1465586
Posted Thursday, June 20, 2013 5:36 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Sunday, April 27, 2014 7:55 PM
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

Post #1465603
« Prev Topic | Next Topic »

Add to briefcase ««123»»

Permissions Expand / Collapse