UrbanPro
true

Learn MS SQL Administration from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

What DBA should do to avoid database from running out of space?

Meetopus
06/08/2018 0 0

Disk space is something that really critical for SQL Server, and if we don’t keep a close eye on available disk resources, it could cause database failures or hamper depended on the major business application.

Always increasing the space may not be the solution if you are managing the database server as a DBA, then you should focus on below basic things to avoid a big problem.

Let's understand what the different problem that may create a space crunch on the database server is?

1. Long-running transaction.
2. Incorrect Database recovery model and transaction log backup strategy.
3. No Cleanup of an old backup.
4. Non-Archival of history related to maintenance of SQL Agent from MSDB.
5. Missing Maintenance task on the Database.


What is a long-running transaction which may cause space issue?

DML operations which are not getting committed will cause the log file to grow very quickly. Example bulk Insert, Delete executed in a single batch which is not getting committed may lead to grow the log file very quickly and run out of space and even can cause database failure.

Incorrect Database recovery model and transaction log backup strategy?

Database recovery model plays a critical role during a disaster. If you have a critical database, it is must that you should configure your database recovery model to FULL and plan the backup strateby with incremental and Transaction log backup frequently to have a point in time recovery. Apart from this if you have a database with huge transaction running frequently, then you should configure the transaction log backup every 30 minutes consider business strategy and the extent to which business can bare data loss during a disaster. This tlog backup will even help to move the committed transaction from log file to data file and thus will help to keep the log file intact.

No Cleanup of old backup from database drive.

Many times it is found the DBA configure the backup on a local drive or same server which is not really good practice. If you see with the recent case, we have good hardware and drive with huge space. However, ransomware virus attack has really caused big problems to the database server. If you have backups of the database on the same drive, then this backup may even get infected with this virus and of no use for recovery. Always keep the copy of the backup on other media server.

Coming to point DBA normally create a maintenance backup plan, however, miss to create the cleanup task which creates a space issue on the drive. There lot of article which guides on clean up task.

Non-archival of history related to maintenance of SQL Agent from MSDB.

MSDB stores all sorts of data, such as backup and restore history, SQL Agent job history, log shipping monitor history, SSIS packages, Database Engine Tuning Advisor data, and Service Broker queue data. Just like user databases, msdb needs regular maintenance, including index optimisations and, more importantly, regular purging.

All above activity can be achieved via Maintenance Tasks for SQL Server.

Happy Learning
Ajay

0 Dislike
Follow 2

Please Enter a comment

Submit

Other Lessons for You

History of SQL server
In 1988, Microsoft released its first version of SQL Server. It was designed for the OS/2 platform and was developed jointly by Microsoft and Sybase. During the early 1990s, Microsoft began to develop...

SQL is not a Rocket Science
I am a Professional and at the inital days I completely hate Databases but I forgot to know that "Everything starts and ends with us".It means the INTEREST starts with us. Everybody knows this but none...

What's the best way to learn SQL Server?
Just read the book, type and run the code, and work the chapter examples. If you work the book, you will be ahead of many SQL Server programmers. You’ll understand declarative set-based interaction...

Top 10 SQL Concepts for Job Interview
1. SELECT and FROM: This is the “heart” of any SQL query - SELECT columns FROM table.2. WHERE: This acts as a filter and allows you to select only relevant rows based on conditions.3. GROUP...

Cursors In SQL Server
First thing first Usage of Cursors is not encouraged in SQL Server as they are slow. You may go with While loop if you need to iterate through a recordset. Cursor is a database object to retrieve data...
X

Looking for MS SQL Administration Classes?

The best tutors for MS SQL Administration Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn MS SQL Administration with the Best Tutors

The best Tutors for MS SQL Administration Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more