Managing Your Lawson System MSPs and CTPs Ron Wright netASPx Corp.

Slides:



Advertisements
Similar presentations
An End-User Perspective On Using NatQuery Query Scheduling T
Advertisements

Threats to privacy in the forensic analysis of database systems Patrick Stahlberg, Gerome Miklau, and Brian Neil Levine Department of Computer Science.
An End-User Perspective On Using NatQuery Building a Datawarehouse T
David Notkin Autumn 2009 CSE303 Lecture 22 Subversion is an open source version control system. Social Implications Friday version control system.
2000 Copyrights, Danielle S. Lahmani UNIX Tools G , Fall 2000 Danielle S. Lahmani Lecture 12.
Copyright © 2008 Pearson Addison-Wesley. All rights reserved. Chapter 12 Separate Compilation Namespaces Simple Make Files (Ignore all class references.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Low level CASE: Source Code Management. Source Code Management  Also known as Configuration Management  Source Code Managers are tools that: –Archive.
Backup and Recovery Part 1.
Version Control. What is Version Control? Manages file sharing for Concurrent Development Keeps track of changes with Version Control SubVersion (SVN)
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
CEN th Lecture CEN 4021 Software Engineering II Instructor: Masoud Sadjadi Change Control.
Backups in Linux Ning Zhu Class presentation. Introduction The dump and restore commands are the most common way to create and restore from backups in.
Planning for Year-end Processing in the United States
Accounts Payable Accrual Process For FY06. Accounts Payable Accrual System Specialized Subsystem Establishes Estimated Payables Clears Current Liability.
E-Business on Solid Ground. Lawson Release 8.0 Technical Aspects Preparing to upgrade, etc. Rocky Mountain Lawson User Group December 6, 2001 Brian Beckman.
FireRMS SQL Audit, Archiving & Purging Presented by Laura Small FireRMS Quality Assurance.
March 20, 2008Electronic Resources and Libraries College Center for Library Automation Tallahassee, FL Susan B. Campbell Susan.
1MIS 2008 / Merging Two Data Collections: Lessons Learned from the CCD-EDEN Merger EDEN Best-Practice Sharing Oregon File Preparation Practices.
Upgrading SCT Banner 2 u The process of maintaining SCT Banner involves frequent upgrades for both enhancement and error correction purposes u These.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Chapter 9 Scripting RMAN. Background Authors felt that scripting was a topic not covered well Authors wanted to cover both Unix/Linux and Windows environments.
What to do for a Financial year end And When to do it.
LiveCycle Data Services Introduction Part 2. Part 2? This is the second in our series on LiveCycle Data Services. If you missed our first presentation,
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
ORACLE
Processing SIRxs Journals Presented at SIR-UK Conference Dublin, Ireland, June 2008 © Tom Shriver, DataVisor 2008.
1 Microsoft Exchange 2000 Server Maintenance and Troubleshooting System Maintenance and Monitoring Database Operation and Maintenance Backup, Restore,
Managing Your Lawson System MSPs and CTPs Ron Wright netASPx Corp.
Introduction to C Programming CE Lecture 7 Compiler options and makefiles.
Using CRDS for HST Not rehashing purpose or design of CRDS Review current development status Development schedule for JWST What needs to be done for HST.
Copyright © 2015 – Curt Hill Version Control Systems Why use? What systems? What functions?
Key Applications Module Lesson 21 — Access Essentials
Chris Wright Senior Systems Engineer, Lucity MOVING TO ONE DATABASE FOR SQL SERVER.
AIP Backup & Restore Sunita Barve NCRA, Pune. AIP The latest version of DSpace 1.7.0, supports backup and restore of all its contents as a set of AIP.
11 DISASTER RECOVERY Chapter 13. Chapter 13: DISASTER RECOVERY2 OVERVIEW  Back up server data using the Backup utility and the Ntbackup command  Restore.
CE Operating Systems Lecture 3 Overview of OS functions and structure.
Databases. What is a database?  A database is used to store data. The word DATA is actually Latin for FACTS. A database is, therefore, a place, or thing.
Week 7 : Chapter 7 Agenda SQL 710 Maintenance Plan:
What is a port The Ports Collection is essentially a set of Makefiles, patches, and description files placed in /usr/ports. The port includes instructions.
Prepared by: Steve Teo Contributors: Tong Huu Khiem.
Chapter Five Advanced File Processing. 2 Lesson A Selecting, Manipulating, and Formatting Information.
Semi-Automatic patch upgrade kit
IT Database Administration Section 09. Backup and Recovery Backup: The available options Full Consistent (cold) Backup Database shutdown, all files.
Automating a Vendor File Load Process with Perl and Shell Scripting Roy Zimmer Western Michigan University.
Standard Year-End Close Procedures. Welcome! Microsoft Dynamics GP Standard Year-End Close Procedures.
Recovery technique. Recovery concept Recovery from transactions failure mean data restored to the most recent consistent state just before the time of.
1Software Development Using KIDS Software Development using KIDS Developed by David Whitten WorldVistA Education Meeting Las Cruces, NM May 2007.
1 CSE 303 Lecture 19 Version control and Subversion ( svn ) slides created by Marty Stepp
+ AliEn status report Miguel Martinez Pedreira. + Touching the APIs Bug found, not sending site info from ROOT to central side was causing the sites to.
Millennium/Agresso Interface Yvonne Desmond, Gillian Donagher, Dublin Institute of Technology
First Tuna Data Workshop (TDW-1) October 2006, Noumea, New Caledonia Oceanic Fisheries Programme (OFP) Secretariat of the Pacific Community (SPC)
Application Maintenance Toolset (AMT) Applying Patches (CTPs)
How to use the job list Version Yoel Kortick.
Database Recovery Techniques
Database Recovery Techniques
Module 11: File Structure
Connect:Direct for UNIX v4.2.x Silent Installation
Upgrade SFX V3 to V4 Lieve Rottiers.
JSL File manager Brady Brady and Don Mccormack, JMP.
Computers in the Medical Office
Chapter 7 Installing Program &Backup Tool
Version Control System
Inovonics Wireless Corporation
“All Lawson, All the Time!”
Year End Essentials Presented by: Carol Kossoris, CPA, MBA
Periodic Processes Chapter 9.
Database Recovery 1 Purpose of Database Recovery
Introduction to Medisoft
Application Maintenance Toolset (AMT) Applying Patches (CTPs)
Presentation transcript:

Managing Your Lawson System MSPs and CTPs Ron Wright netASPx Corp.

CTP Definition Lawson’s Definition: "Critical Transfer Packages ( CTP's )" are individual "high priority" fixes that are available to download immediately without waiting for the scheduled Maintenance Service Package. Many CTPs released every week

MSP Definition Lawson’s Definition: "Maintenance Service Packages ( MSP's )" consist of scheduled, periodic groupings of individual, critical fixes. Each new Transfer Package is built upon the previous one, so all fixes are included in the newest available CTP. Released every 2-3 months NOT installed like a collection of CTPs!

MSP: When and How Often netASPx applies all MSPs Give MSPs time for critical problems to be resolved (1 month) Review CTPs released within 2 weeks of an MSP for applicability Watch Topica mailing lists for impressions (

MSP: Experiences Call volume increases for a short duration after Issues are often serious in nature Number of issues and severity closely related to the amount and quality of the testing performed! Develop test plans with end user involvement. Test processes and programs, not just programs Write down the cutoff CTP for easy retrieval. Useful knowledge for most CTPs installs.

CTP: When and How Often Other than those reviewed after an MSP, CTPs are applied only upon an issue CTPs are more problematic than MSPs netASPx has applied over 150 unique CTPs since October, 2002

Application Maintenance Toolset Suite of utilities for installing applications and applying MSPs and CTPs Downloaded from support.lawson.com (Transfer Packages) Includes lasetup, appmetaload, patchcompile, and the metadata load and dump programs

lasetup initial Used for a new installation or point release Clears out $LAWDIR/ /Admin/install.log Overwrites source files without backup Performs sysloads

lasetup staged (MSP) Files are staged to a designated location then compared to program code in productline Programs found to be more recent than code in the MSP are not replaced Metadata in $LAWDIR/ /metadata All files and metadata to be replaced are backed up to $LAWDIR/ /backup/ -MSP# Metadata more recent then the MSP is first overwritten in the GEN database then reloaded

Backing out an MSP Preparation: Complete data backup (expsysdb -s) Backup of LADBDIR and LAWDIR Optional prep step: sysdump (more options for recovery)

Backing out an MSP (cont) Restore Procedure: 1.Backup data (if unsure of backup or potential exists that updated data may need to be retrieved) 2.Drop tables (bldxxxddl –UDq ) 3.Restore LADBDIR and LAWDIR 4.Startladb 5.bldxxxddl –Uq 6.Restore data (impexp) 7.startlaw

lasetup patch (CTP) Files to be replaced are compared for more recent versions. More recent versions are not replaced. Replaced program files and metadata are backed up to: $LAWDIR/ /backup/ GEN data not updated yet

appmetaload (CTP & MSP) Applies changes to the GEN database related to a program or library Used during MSP install to reload “Reverted” metadata Information related to workfiles, messages, etc. loaded for you. No more manual entry,, except… Database changes (dbdef) not handled

patchcompile (CTP) Determines all programs related to the patch that must be recompiled and submits them. Optionally creates a script to submit all compiles.

Backing out a CTP No prep required 1.Copy program files from $LAWDIR/ /backup/ back to appropriate location 2.Go through “meta” directories (ex. Metagl) and run appropriate metaload program for each file found. ( ex. metaloadmsg AP20.msg ) 3.If manual database changes were done, those must be reversed manually. (dbdef, blddbdict, dbreorg) 4.Recompile productline or rerun patchcompile

Under the Covers Version comparison: Version compared using the first line in every program file. This line has: Any change to the file changes the chksum value. If chksum doesn’t match the header, version ignored and program overwritten in all circumstances. To bypass this behavior: perl $GENDIR/bin/addversions –s {version} {file}

Under the Covers (cont) Metaload series of programs update all elements associated with the item being updated. It does not perform a merge within the GEN database. Be careful if you run the metadump programs. They do not write to stdout. Files in the current directory are overwritten. Metadump files fairly easy to read. Most contain “prefix” of GEN tables to be updated. Confirm prefix by running dmpdict GEN. Look for index (ie. PGMSET1 - PGM is prefix)

Handling Program Modifications Use the UNIX diff utility to see changes. (works on NT too with MKS Toolkit or others) diff $LAWDIR/dev8/backup/12345/apsrc/AP20PD $LAWDIR/dev8/apsrc/AP20PD diff can also create a merged version of two programs for you: diff –D12345 $LAWDIR/dev8/backup/12345/apsrc/AP20PD $LAWDIR/dev8/apsrc/NA20PD (merged program will not compile until edited)

CTPs: Merging Modifications (copied programs) 1.Apply CTP 2.Look in the install.log for a list of updated program files and metadatafiles related to the original program(s) 3.Dump the same metadata info for the copied program (metadumpwrk, metadumplib, etc) (Note: Do not run the metadump commands in a directory with existing metadata files. They will be overwritten.) 4.Make backup copies of files to be merged (cp MY01PD MY01PD.backup) 5.Create merged versions diff –D CTP2345 $LAWDIR/pl/ifsrc/MY01PD.backup $LAWDIR/pl/ifsrc/CU01PD > MY01PD diff –D CTP2345 $LAWDIR/pl/ifsrc/MY01.msg $LAWDIR/pl/metadata/ifmeta/CU01.msg > MY01_new.msg 6.Edit merged versions. All code needing attention will be bracketed with “#ifdef” or “#ifndef” to “#endif” (Keep the version line from the CTP) 7.Load merged metadata: metaloadmsg pl MY01_new.msg 8.Recompile program 9.Cleanup as desired (MY01*.msg, MY01PD.backup)

CTPs: Merging Modifications (programs modified in place) 1.Apply CTP 2.Look in the install.log for a list of files and metadata replaced by the CTP. 3.Make backup copies of files to be merged: cp $LAWDIR/pl/ifsrc/CU01PD $LAWDIR/pl/ifsrc/CU cp $LAWDIR/pl/metadata/ifmeta/CU01.msg $LAWDIR/pl/metadata/ifmeta/CU01_2345.msg 4.Create merged versions diff –D CTP2345 $LAWDIR/pl/backup/PATCH2345/ifsrc/CU01PD $LAWDIR/pl/ifsrc/CU01PD.2345 > $LAWDIR/pl/ifsrc/CU01PD diff –D CTP2345 $LAWDIR/pl/backup/PATCH2345/metadata/ifmeta/CU01.msg $LAWDIR/pl/metadata/ifmeta/CU01_2345.msg > $LAWDIR/pl/metadata/ifmeta/CU01.msg 5.Edit merged versions. All code needing attention will be bracketed with “#ifdef” or “#ifndef” to “#endif” (Keep the version line from the CTP) 6.Load merged metadata: metaloadmsg pl $LAWDIR/pl/metadata/ifmeta/CU01.msg 7.Recompile program 8.Cleanup as desired (MY01*.msg, MY01PD.1234) 9.Optional: If you would like any future CTPs or MSPs to not overwrite your merged program with an older version: 1.Get version from the header of each CTP’d file (2 nd field) 2.Run: perl $GENDIR/bin/addversions –s {version} {file} Ex. perl $GENDIR/bin/addversions –s 3 CU01PD

Sample “diff –D” output

MSPs and Modifications Backup source and do a pgmdump for each of your modified programs Apply MSP Backup the MSP metadata and code before putting your modifications back in place. Do pgmdump and create copies of source files for programs modified. pgmload from your pre-MSP Create metadumps for relevant metadata from install.log or looking at $LAWDIR/ /metadata Create merged versions of metadata and code. Edit merged files Load merged metadata changes Compile Optional: Re-version files with “perl addversions”

Script to dump program metadata #!/bin/ksh pl=$1 pc=$2 pl_u=$(echo $pl | tr 'a-z' 'A-Z') pc_u=$(echo $pc | tr 'a-z' 'A-Z') for type in msg pgm do eval metadump${type} $pl $pc done rngdbdump -n gen workfile1 -f filename -v productline=$pl_u programcode=$pc_u \ | while read workfile do metadumpwrk $pl $pc $workfile done

A Strategy for “dbdef” and Other Manual Changes from CTPs Breakout each manual step from the README.html into a separate file. The filename should contain the earliest CTP number that contained this step (found in the README.html). Keep in a safe place. If during the manual step an existing value was changed (ex. new field size), this is a good place to keep a record of the original value for backout and audit trail purposes. –Example: $LAWDIR/pl/metadata/manual/12345_dbdef and $LAWDIR/pl/backup/PATCH13579/12345_dbdef After an MSP it is now easy to identify manual steps that must be completed after the MSP is applied.

Questions