MDB Housekeeping -Script for General MDB HousekeepingScript for General MDB Housekeeping -Revised Feb 17 2006.

Slides:



Advertisements
Similar presentations
Unicenter ® NSM - Integration for BMC ® Remedy Service Management ®
Advertisements

The CA MDB Revised May © 2005 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced.
CA's Management Database (MDB): The EITM Foundation -WO108SN.
1 © 2004 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective.
Best Practices for Implementing Unicenter Service Desk r11.x in an HA MSCS Environment -Part 4: HA MDB with eIAM and HA Primary Server Last Revised January.
Enhancing Productivity & Lowering Costs with CA Management Software Case study Zürcher Kantonalbank (ZKB)
File Management Systems
Unicenter Desktop & Server Management Scaling Options - SQL -Latest Revision June Read the notes pages.
Leveraging ITIL Challenges and Successes Greg Charles, Ph.D. Area Principal Consultant February 2006.
Proper Care and Feeding of your SQL MDB -Recommendations for General MDB Maintenance -Read the notes on the foils! -Revised October
Database Backup and Recovery
Unicenter NSM r11 Windows -SNMP Polling Analysis.
SOUL INSTALLATION Step-1 For this Please Install the Version 7.0 or SQL Server 2000 or onwards.
AGENDA Tools used in SQL Server 2000 Graphical BOL Enterprise Manager Service Manager CLI Query Analyzer OSQL BCP.
MDB Install Overview for Federated and Shared MDBs Revised June 19, 2006.
Agenda  Overview  Configuring the database for basic Backup and Recovery  Backing up your database  Restore and Recovery Operations  Managing your.
NovaBACKUP 10 xSP Technical Training By: Nathan Fouarge
Unicenter Desktop & Server Management Network Challenges -Latest Revision 11/28/2005.
Module 8: Designing Active Directory Disaster Recovery in Windows Server 2008.
Highly Available Unicenter Solutions -A High Level Summary Draft – Last Revised June 9, 2006.
Best Practices for Implementing Unicenter Service Desk r11.x in an HA MSCS Environment - Part 3: HA Primary Server Revised January 02, 2009 Although this.
Ch 81 Organizing and Managing Your Hard Disk. Ch 82 Overview Learn how to organize a hard disk efficiently and logically to serve your specific needs.
Migration to NSM r11. © 2005 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong.
© 2011 Autodesk Automating Autodesk® Revit® Server Rod Howarth Software Development Manager – Bornhorst + Ward.
Best Practices for Implementing Unicenter Asset Portfolio Management r11.2 in an HA MSCS Environment - Part 2 – Unicenter Asset Management Portfolio Draft.
Unicenter Asset Portfolio Management Service Release Summary John Fulton Director, Product Management, Unicenter APM February 14, 2008 CA Blue R0.
SRUTHI NAGULAVANCHA CIS 764, FALL 2008 Department of Computing and Information Sciences (CIS) Kansas State University -1- Back up & Recovery Strategies.
Chapter 7 Making Backups with RMAN. Objectives Explain backup sets and image copies RMAN Backup modes’ Types of files backed up Backup destinations Specifying.
Chapter 18: Windows Server 2008 R2 and Active Directory Backup and Maintenance BAI617.
Unicenter Desktop & Server Management Scaling Options -Latest Revision 12/09/2005.
Backup & Recovery Backup and Recovery Strategies on Windows Server 2003.
Unicenter Desktop & Server Management Components & Communication -Latest Revision 12/09/2005.
Prepared by: Steve Teo Contributors: Tong Huu Khiem.
Reverse Protocol Pattern for WSDM
1 3 Computing System Fundamentals 3.7 Utility Software.
Deploying non-HA NSM Components in a Microsoft Cluster Environment -Unicenter NSM Release 11.1 SP1 -Last Revision October 30, 2007.
Job Management Option (WLM) Scalability Tests r11 December
11 DISASTER RECOVERY Chapter 13. Chapter 13: DISASTER RECOVERY2 OVERVIEW  Back up server data using the Backup utility and the Ntbackup command  Restore.
MDB Connectivity Scalability Tests r11 October 25 th
Systems Management Server 2.0: Backup and Recovery Overview SMS Recovery Web Site location: Updated.
Best Practices for Implementing Unicenter NSM r11.1 in an HA MSCS Environment Part II -Last Revision April 24, 2006.
R11 Management Command Center Scalability Tests Revised July
R11 Event Management Scalability Tests -. © 2005 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced.
Summary Queries Query Wizard –This is a choice once you select fields –Much easier to develop some summary queries with the wizard, then learn how to do.
1 EndNote X2 Your Bibliographic Management Tool 29 September 2009 Humanities and Social Sciences Resource Teams.
Unicenter Desktop & Server Management Scaling Options - Ingres -Latest Revision Jun Read the notes pages.
Best Practices for Implementing Unicenter Asset Portfolio Management r11.2 in an HA MSCS Environment -Part I: Installing UAPM Optional Components Draft.
© 2005 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective.
Making r11 Agent Technology talk through a Firewall Last Updated 12/19/2005.
Unicenter NSM Repository Bridge 3.1 -> r11. © 2005 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos.
Upgrading from r4.1.4 to r7: Making a Smooth Transition Roger Suttmeier Support Distribution Manager June 14, 2006.
Project Management. Introduction  Project management process goes alongside the system development process Process management process made up of three.
Best Practices for Implementing Unicenter NSM r11.1 in an HA MSCS Environment Part I -Last Revision April 24, 2006.
© 2003 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective.
Unicenter NSM Debugging Tips & Tricks -Release r11.
Federated MDBs with Multiple SQL Instances Last Revision Date: September 6, 2006.
Best Practices for Implementing Unicenter NSM r11 in an HA MSCS Environment Part I -Last Revision April 24, 2006.
MCC through Firewall Last Updated 12/19/05. CAM © 2005 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and.
Best Practices for Implementing Unicenter NSM r11 in an HA MSCS Environment Part II -Last Revision April 24, 2006.
Best Practices for Implementing Unicenter Service Desk r11.1 in an HA MSCS Environment -Part II: Installing non-HA Primary Server Connecting to an HA MDB.
Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.
This courseware is copyrighted © 2016 gtslearning. No part of this courseware or any training material supplied by gtslearning International Limited to.
Section 3 Computing with confidence. The purpose of this section The purpose of this section is to develop your skills to achieve two goals: 1-Becoming.
Delete an Operating System From Single-Boot HP Computer.
Multi-Disk Install Steps for Unicenter NSM r11 Ingres
8 6 MySQL Special Topics A Guide to MySQL.
Operating System Fundamentals
OPERATING SYSTEM B-TECH III YEAR I SEM BRANCH :ECE
1.3 Given a scenario, apply appropriate Microsoft command line tools
DOS Commands Damian Gordon.
Presentation transcript:

MDB Housekeeping -Script for General MDB HousekeepingScript for General MDB Housekeeping -Revised Feb

© 2005 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. Mission -This presentation explains the standard Ingres housekeeping operations packaged in the housekeeping script supplied with the MDB. -You are expected to configure and adapt this script (at a minimum you should incorporate your preferred backup tool).

© 2005 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. Overview -Performance is paramount to all mission critical applications. In order to help keeping Ingres performing at its best, we put together a script that helps performing housekeeping tasks such as: - USERMOD - useful utility for maintaining user tables. Improves the performance of query processing - OPTIMIZEDB - generates statistics that are used by the Ingres Query Optimizer to select an efficient query processing strategy - CKPDB - checkpoints a database -Then moves CHECKPOINT, DUMP and JOURNAL files not needed to recover the MDB from the current (i.e. last) CHECKPOINT sequence -Windows only at the moment

Optimization and Backup © 2005 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

Optimization and Backup -As you saw in Proper Care and Feeding of your MDB, Optimization and Backup are two very important aspects -The first step here is to optimize the MDB and then checkpoint it: - usermod -umdbadmin -online mdb - optimizedb -zk -zw -umdbadmin mdb - ckpdb -umdbadmin mdb

Finding MDB Locations © 2005 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

MDB Locations -It is fundamental to find CHECKPOINT, DUMP, and JOURNAL locations in order to keep files needed to recover from the LAST checkpoint sequence online -We parse the output (refer to Proper Care and Feeding of your MDB for examples) of infodb mdb to find those locations. So, you will see commands like the ones below in the script: - infodb mdb | findstr \ckp >.\II_TEMP.TXT - for /F "tokens=3,4,5,6,7,8*" %i in ('type.\II_TEMP.TXT') do set II_CHECKPOINT=%i %j %k %l %m %n Checkpoint files for the MDB are located at: %II_CHECKPOINT%

© 2005 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. MDB Locations -As we find out locations, we create OFFLINE folders for the files that are not needed ONLINE – i.e. files that can be moved to OFFLINE media. Example: Creating OFFLINE folder for CHECKPOINT files... - for /F "tokens=1 delims=\" %i in ('echo %II_CHECKPOINT%') do set II_DELIM=%i - if not exist %II_DELIM%\OFFLINE\CKP\DEFAULT\MDB md %II_DELIM%\OFFLINE\CKP\DEFAULT\MDB - set CKP_OFFLINE=%II_DELIM%\OFFLINE\CKP\DEFAULT\MDB

Finding Current CHECKPOINT Sequence © 2005 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

Finding Current CHECKPOINT Sequence -Once we are done with locations, we proceed to find which CHECKPOINT sequence is the last (i.e. current) one -We find out which sequence is the last one by parsing the output of infodb mdb: - for /F "tokens=4" %i in ('findstr /i /c:"Checkpoint sequence".\II_TEMP.TXT') do set CUR_CKP_SEQ=%i -Now that we know what the current CHECKPOINT sequence is, all others can be moved to the OFFLINE folder

JOURNAL History for Current CHECKPOINT Sequence © 2005 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

JOURNAL History for Current CHECKPOINT Sequence -Now that we know which CHECKPOINT sequence is the current (last) one, we will find which JOURNAL files are needed to recover from that CHECKPOINT sequence -First, we find out the LAST JOURNAL needed: - for /F "tokens=8" %i in ('findstr /i /c:"Journal sequence".\II_TEMP.TXT') do set LAST_JNL_SEQ=%i

© 2005 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. JOURNAL History for Current CHECKPOINT Sequence -Now that we know what JOURNAL file is the last one for the current CHECKPOINT sequence, we will find which file is the first one: - for /F "tokens=7" %i in ('findstr /i /c:"%LAST_JNL_SEQ% 1".\II_TEMP.TXT') do set FIRST_JNL_SEQ=%i -Now that we know what JOURNAL files are needed to recover from the current CHECKPOINT sequence, all other files can be moved to the OFFLINE folder – i.e. all files except those in the FIRST_JNL_SEQ – LAST_JNL_SEQ range

© 2005 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. Moving JOURNAL Files to the OFFLINE Folder -We use the XCOPY command to “move” JOURNAL files to the OFFLINE folder -First, we put the EXCLUDE LIST together – i.e. files that won’t be “moved” (all files except those in the FIRST – LAST JOURNAL range): - for /L %i in (%FIRST_JNL_SEQ%,1,%LAST_JNL_SEQ%) do dir /b *%i.jnl >>.\II_TEMP.TXT -Then, we use the exclude list in conjunction with the XCOPY command to copy files to the OFFLINE folder: - for /F "tokens=1 delims=\" %i in ('echo %II_JOURNAL%') do set II_DELIM=%i - xcopy *.JNL %II_DELIM%\OFFLINE\JNL\DEFAULT\MDB /i /exclude:.\II_TEMP.TXT /y

© 2005 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. Moving JOURNAL Files to the OFFLINE Folder -We say we use the XCOPY command to “move” JOURNAL files to the OFFLINE folder because now that XCOPY was used to COPY files to that folder, files can be deleted from the JOURNAL location: - for /F "tokens=1* delims=%II_DELIM%" %i in ('xcopy *.JNL %II_DELIM%\OFFLINE\JNL\DEFAULT\MDB /i /exclude:.\II_TEMP.TXT /y /l ^| find ":"') do del /F /Q %i

DUMP History for Current CHECKPOINT Sequence © 2005 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

DUMP History for Current CHECKPOINT Sequence -The next steps are similar to the ones used to find FIRST and LAST JOURNALS for the current CHECKPOINT sequence -First, we determine the LAST DUMP needed: - for /F "tokens=8" %i in ('findstr /i /c:"Dump sequence".\II_TEMP.TXT') do set LAST_DMP_SEQ=%i

© 2005 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. DUMP History for Current CHECKPOINT Sequence -Now that we know what DUMP file is the last one for the current CHECKPOINT sequence, we will find out what file is the first one: - for /F "tokens=7" %i in ('findstr /i /c:"%LAST_DMP_SEQ% 1".\II_TEMP.TXT') do set FIRST_DMP_SEQ=%i -Now that we know the JOURNAL files needed to recover from the current CHECKPOINT sequence, all other files can be moved to the OFFLINE folder – i.e. all files except in the FIRST_DMP_SEQ – LAST_DMP_SEQ range

© 2005 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. Moving DUMP Files to the OFFLINE Folder -We use the XCOPY command to “move” DUMP files to the OFFLINE folder -First, we put the EXCLUDE LIST together – i.e. files that won’t be “moved” (all files except those in the FIRST – LAST DUMP range): - for /L %i in (%FIRST_DMP_SEQ%,1,%LAST_DMP_SEQ%) do dir /b *%i.DMP >>.\II_TEMP.TXT - for /L %i in (%FIRST_DMP_SEQ%,1,%LAST_DMP_SEQ%) do dir /b *%i*.LST >>.\II_TEMP.TXT - for /L %i in (%CUR_CKP_SEQ%,1,%CUR_CKP_SEQ%) do dir /b *%i.DMP >>.\II_TEMP.TXT - for /L %i in (%CUR_CKP_SEQ%,1,%CUR_CKP_SEQ%) do dir /b *%i*.LST >>.\II_TEMP.TXT - dir /b *.CNF >>.\II_TEMP.TXT - dir /b *.TXT >>.\II_TEMP.TXT

© 2005 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. Moving DUMP Files to the OFFLINE Folder -Then, we use the exclude list in conjunction with the XCOPY command to copy files to the OFFLINE folder: - xcopy *.* %II_DELIM%\OFFLINE\DMP\DEFAULT\MDB /i /exclude:.\II_TEMP.TXT /y -We say we use the XCOPY command to “move” DUMP files to the OFFLINE folder because now that XCOPY was used to COPY files to that folder, files can be deleted from the DUMP location: - for /F "tokens=1* delims=%II_DELIM%" %i in ('xcopy *.* %II_DELIM%\OFFLINE\DMP\DEFAULT\MDB /i /exclude:.\II_TEMP.TXT /y /l ^| find ":"') do del /F /Q %i

Moving CHECKPOINT Files to the OFFLINE Folder © 2005 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

Moving CHECKPOINT Files to the OFFLINE Folder -Now that we know what the current CHECKPOINT sequence is, all other files can be moved to the OFFLINE folder -Put the XCOPY exclude list together for CHECKPOINT files: - dir /b *%CUR_CKP_SEQ%*.CKP >>.\II_TEMP.TXT - dir /b *.TXT >>.\II_TEMP.TXT -We use the XCOPY command to “move” CHECKPOINT files to the OFFLINE folder: - for /F "tokens=1 delims=\" %i in ('echo %II_CHECKPOINT%') do set II_DELIM=%i - xcopy. %II_DELIM%\OFFLINE\CKP\DEFAULT\MDB /i /exclude:.\II_TEMP.TXT /y /s

© 2005 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. Moving JOURNAL Files to the OFFLINE Folder -We say we use the XCOPY command to “move” CHECKPOINT files to the OFFLINE folder because now that XCOPY was used to COPY files to that folder, files can be deleted from the CHECKPOINT location: - for /F "tokens=1*" %i in ('xcopy. %II_DELIM%\OFFLINE\CKP\DEFAULT\MDB /i /exclude:.\II_TEMP.TXT /y /s /l ^| find ".\"') do del /F /Q %i

© 2005 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. Questions?