Backupexec SQL Agent fails to back up SQL database files

BackupExec - Restore Backup Job History and SQL Data Folder BackuExec Version BackupExec License Information
Hi,
  I have Backupexec running on Windows 2008 Domain Controller (named "DC1") and a Windows 2003 Server running Microsoft SQL database. I did not install Backup Exec software, but I thought all SQL database files were being backed up. The other day I discovered that I could not restore SQL database file "TMW_LIVE.mdf (17GB)". So I checked backup Job History from one random day and learned that these SQL database files were "skipped" because they are OPEN.

 How do I need to do to close these SQL database files during the backup time and reopen them after the backup job is run?

Thanks.
LVL 1
sgleeAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Vitor MontalvãoMSSQL Senior EngineerCommented:
You can't backup SQL Server database files while SQL Server is running because the engine don't let any other process to access the files.
The best option is to use a Symantec SQL client for execute the database backups or if you want to keep the same solution you need to execute the database backups inside SQL Server and then provide the path for Symantec Backup to execute the backups only for those files and not the .MDF and .LDF.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Mr TorturSystem EngineerCommented:
Hi sglee,
You can backup your SQL Databases online easily because you have the SQL agent licence in backup exec. That is its purpose and if you have the licence you had probably paid for it. Sure you can also backup your DB with a dump, it is free, but it is less comfortable.
To use your SQL agent, when backuping your server with backup exec you must browse to select different objects than classic folder/files. When selecting which data to backup on your server in Backup exec, you should have an object named SQL server under your server, at the same level than the server's local drives. If you use this object to backup in your selection it will use the SQL agent.
If licence and agent for SQL are finally installed in Backup Exec there is nothing more to do.
0
sgleeAuthor Commented:
SQL Database Backup FolderBackup Selection@Vitor,
As seen in the screenshot above, I run SQL database backup daily from SQL Server/W2003 Server and stores 1 day worth of BAK and TRN files in \\DC1\SQLBackup folder. Since I am backing up the D drive on DC1 and D drive has SQLBackup folder, I think I can restore SQL database from TRN and BAK files if needed.
0
Vitor MontalvãoMSSQL Senior EngineerCommented:
Sorry for the delay but I wasn't able to connect to EE in these last days.

About your question, the answer is yes. Be careful with the files that you chose. You need the last .BAK file and all the .TRN files since the last .BAK until the time you want to restore (usually the last one).
0
Iamthecreator OMIT Admin/EE Solution GuideCommented:
Backing up SQL databases and transaction logs
http://www.symantec.com/docs/HOWTO99220 

Automatic exclusion of SQL data during volume-level backup
If you select a volume that contains SQL data for backup, the SQL Agent determines which SQL data should not be included in a volume-level backup. For example, .MDF and .LDF files should not be part of the backup because they are opened for exclusive use by the SQL system. These files will be automatically excluded for backup by a feature called Active File Exclusion. If this exclusion did not happen during a non-snapshot backup, these files would appear as in use - skipped. If this exclusion did not happen during a snapshot backup, the files would be backed up in a possible inconsistent state, which could create restore issues.

While it is not recommended, if you want to include SQL data in a volume-level backup, you must first dismount the database that you want to back up. Then, run the backup job.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Storage Software

From novice to tech pro — start learning today.