• Skip to main content
  • Skip to primary sidebar

DallasDBAs.com

SQL Server Database Consulting

  • Services
  • Pocket DBAยฎ
  • Blog
  • Testimonials
  • Contact
  • About

Kevin3NF

Re-initializing Log Shipping Sucks

August 20, 2007 by Kevin3NF Leave a Comment

2005 Log Shipping

ok…I’m behind the times and just started working with SQL Server Log Shipping instead of writing my own custom scripts (Backup, Copy, Restore…just ain’t that hard…)

Messing with a dead LS database this weekend, I tried to script out the existing configuration from the Log Shipping GUI. Has anyone else seen this thing drop all of the information on the destination server when it created the script?

I didn’t bother to Google it and just re-created from scratch.

It bothers me that you have to drop and re-create to “re-initialize” a log shipped database.

No fries for me ๐Ÿ™

Filed Under: Uncategorized

MSDB Cleanup

February 6, 2007 by Kevin3NF Leave a Comment

Enterprise Manager hang

My customer’s SQL 2000 .818 box has started timing out when he tries to use Enterprise manager to backup or restore a database.

After giving him the command to run in Query Analyzer, I took a look at his backup tables in MSDB and found roughly 3.8 million records in each…dating back to mid 2005.

I’ll be running sp_delete_backuphistory tonight. ๐Ÿ™‚

If you don’t want to use the cursor driven proc provided by MSFT, click here for Tara Kizer’s custom script:
isp_DeleteBackupHistory

Sorry for the long delay between postings…its been slow ๐Ÿ™‚

Kevin3NF

Filed Under: Uncategorized

IT Alphabet

January 24, 2007 by Kevin3NF Leave a Comment

Slow day at the office…

Alpha
Beta
Cisco
Dell
Ethernet
Firewall
Google
Hacker
Intel
Java
Kilobyte
Linux
Monitor
Netmon
Oracle
Port
Quicken
RAM
Sun
Trojan
Unix
Virus
Windows
Xeon
Yahoo
Zero

Filed Under: Uncategorized

Recovery Hope

January 16, 2007 by Kevin3NF Leave a Comment

Comment of the day from the newsgroups:

Until you test a backup by restoring, you don’t have recovery plan, you have a recovery hope.

— Geoff N. Hiten
Senior Database Administrator
Microsoft SQL Server MVP

Filed Under: Uncategorized

Database in Read-Only after detach/attach

January 16, 2007 by Kevin3NF Leave a Comment

 

I got a “middle of the night panic call” this morning. My customer was moving 2 user databases to a new drive on the same server.

After detach and copy, he re-attached successfully. But, the databases are in read-only mode and cannot be changed (Error 5105, Device activation error. The physical file name ‘%.*ls’ may be incorrect.)

SQL 2000, post Sp3, Windows 2003, sp1.

Additional errors:
2007-01-16 03:06:41.02 spid61 Starting up database ‘MyDatabase’.
2007-01-16 03:06:41.02 spid61 udopen: Operating system error 5(Access is denied.) during the creation/opening of physical device F:SQLDataMyDatabase_Data.mdf.
2007-01-16 03:06:41.02 spid61 FCB::Open failed: Could not open device F:SQLDataMyDatbase_Data.mdf for virtual device number (VDN) 1.
2007-01-16 03:06:41.02 spid61 udopen: Operating system error 5(Access is denied.) during the creation/opening of physical device F:SQLDataMyDatabase_Log.ldf.
2007-01-16 03:06:41.02 spid61 FCB::Open failed: Could not open device F:SQLDataMyDatabase_Log.ldf for virtual device number (VDN) 2.

Turned out that the SQL Server startup account did not have the correct security permissions on the folder or the files. Whoops. ๐Ÿ™‚

Kevin3NF

Filed Under: Uncategorized

New Year’s Resolutions Kill Log Shipping!

January 12, 2007 by Kevin3NF Leave a Comment

New Year’s resolutions kill Log Shipping!

ok…funniest issue I’ve run across in a while ๐Ÿ™‚

We have some custom log shipping script that was working just fine until the end of 2006. Starting around January 2, the restore process couldn’t restore fast enough to keep the standby server current.

I looked at the T-Log files for the last 2 weeks and saw that the T-log backups between 3 and 5 am were 2 to 3 times the size they used to be.

Why? Because the customer here is a national Fitness center business that had a huge influx of memberships and activities ๐Ÿ™‚

People trying to lose weight broke log shipping.

The fix? Run the restore process more often (it was only running off hours).

You get fries AND a low-fat shake with this one…

Kevin3NF

Filed Under: Uncategorized

  • « Go to Previous Page
  • Go to page 1
  • Interim pages omitted …
  • Go to page 41
  • Go to page 42
  • Go to page 43
  • Go to page 44
  • Go to Next Page »

Primary Sidebar

Search

Sign up for blogs, DBA availability and more!

Home Blog About Privacy Policy
  • Home-draft
  • Blog
  • About Us

Copyright © 2026 ยท WordPress ยท Log in