How can I shrink the CASRMCentralDB database in SQL Server used with Web Reporter?

book

Article ID: 52973

calendar_today

Updated On:

Products

Activator eTrust CA-ALERT eTrust CA-ALERT for CICS ALERT CA-Archiver ASM/ARCHIVE VSE-ESA OPTION CA ASM/Archive CA AutoAction AutoSys Job Management Adapter for AutoXfer Process Automation Manager Portal ARCserve Backup Client CA-CICSORT CA-Clipper COBOLVISION Analyzer CA CTO Distributed CA-Dart CA-Datesolver/2000 CA Distribulink EUREKA:Object EPIC VM CA Enterprise Endevor Change Manager for Unix CA-Archiver Disk Option CA-EPIC Backup CA-EPIC Access Option CA-EPIC SUPER SYS CA CA-EPIC for CMS System CA CA-EPIC TAPE MANAGEMENT eTrust Antivirus Gateway for CVP eTrust Content Inspection Gateway eTrust Content Inspection Gateway Option for MSP/ISA EE eTrust Antivirus Gateway for Netscape eTrust VPN Enterprise Edition FAQS VM CA FAQS Automated Systems Operation CA Global Subsystem (CA-GSS) ANDYNE MAINFRAME MISCELLANEOUS CA-Inventory Discovery Server CA-JARS Resource Management CA-JARS Resource Management ACC Option CA-JOBDOC JOBWATCH CA-Look CA-MAZDAMON CA Service Management Affiliate Technology Partner Fee CA Service Management Basic Technology Partner Fee CA-Metanet MF - MISC OLD CODES CA-Omniguard for CICS CA-Omniguard CA Opera CA Connect PREVAIL CA-Paramount XP CAM FOR DIST SYS CA-Paramount FOR NAVIGRAPH/HOST Research Planmacs Unlimited Project Planner CA Remote Console PREVAIL/XP-AUTOMATION PHASE 1 CA-Remote Console PREVAIL/XP AUTOMATION-RDF/SSM CA Raps Research Raveler Generic Non Product SOLVE:EPS Unicenter NetMaster Network Management for SNA CA Alexandria CA Sort System CA-Sort System CA-SPOOLMAN CA Storage Mainframe SYSTEM/SCHEDULER SYSTEM/SCHEDULER VSE-ESA OPTION CA-System/Manager CA-Tape/Manager VSE-ESA OPTION Output Management Document Server TNG Network and Systems Management Agent for CA-Datacom DFSMShsm Workstation Network and Systems Management UNIX SMTP Unicenter Management for Microsoft Exchange SMTP Option UNICENTER II Unicenter Network and Systems Management Database Performance Monitor Option UNICENTER OSM Database Command Center Mnt CA Opera CA-VM:DBA CA-VM:DB Admin CA-VM:DB Center CA-VM:DB Developer CA-VM:DB Editor CA-VM:DB Monitor CA-VM:DB Reorganizer CA-VM:DB Reporter CA-VM:DB Restore CA-VM:DB REXX CA-VM:DB SQLMAP CA-VM:DB Suite CA VM:Migrate CA-VM:Monitor CA-VM:Notekeeper V/Solver CA-VM:Webserver for Officevision CA-VM:Webserver Secure CA VM:Webgateway CA-VM:Webserver CA XMENU for z/VM VISION:COMBO for TSO VISION:DAGER VISION:ELEVEN VISION:EIGHTY VISION:Online VISION:IQ for Informix CA Automate STORAGE RESOURCE MANAGEMENT SUITE

Issue/Introduction

Description:

When you perform the Add AS/Delete AS/Modify AS operations using the Web Reporter Control Panel UI, both the .mdf & .ldf files size increase, and in case of .ldf file, it grows drastically since you perform bulk operations like Add AS/Delete AS at a single go.

Solution:

To shrink the size of the database Before implementing below solutions please refer to the following Microsoft KBASE article: http://support.microsoft.com/kb/315512

  1. Database level: You can perform the following two options by enabling shrinking option as provided by MS SQL Server by executing the below commands.

    • Option # 1: ALTER DATABASE [CASRMCentralDB] SET AUTO_SHRINK ON By enabling this option the database engine periodically examines the space usage in each database and reduces the size of the files in the database. This activity occurs in the background and does not affect any user activity within the database.

    • Option # 2: DBCC SHRINKDATABASE ([CASRMCentralDB], 10, TRUNCATEONLY) This option enables manual shrink of database or files. Pros:

      • The SQL Server takes care of automatic shrinking.

      Cons:

      • Disk fragmentations issues may creep up due to which, in long run there might be chances of corrupting the operating system.

      • Due to the fragmentation SQL Server performance might slow down.

  2. File Level: You can manually execute the below SQL commands in frequent time intervals: BACKUP LOG [CASRMCentralDB] WITH TRUNCATE_ONLY Cons:

    • The administrator has to track and check the log size, and perform this activity from time to time.

  3. Truncating: When you perform regular SQL Server back-ups, enable truncate log option so that the backup software will truncate the logs after it is backed up. Pros:

    • This is a very common practice in every application

Environment

Release: BRMAPS20100-11.7-Storage Resource Manager-Application Server
Component: