E N D
DBMaintPlus August 23, 2012
Disclaimer The DBMaintPlus Utility is designed for use by staff familiar with RB-ERP and the SQL database versions of RB-ERP. Use of this program and the procedures included in this document are at the risk of the user. WorkWise is not responsible for misapplication or misinterpretation of the procedures included in this document. DBMaintPlus and the procedures contained require that you have made sufficient backups and have a verified restore capability should issues arise. The end user of this utility and these procedures is responsible for such backups and verified restore capability. This document contains procedures which will modify both the RB-ERP SQL Database and associated ISAM “cache” files on the RB-ERP Application Server. Care to insure data integrity is of the utmost priority in the use of this document. DBMaintPlusSQL Database Maintenance Utility for RB-ERP Version V9.3 and above
Recommendations • It is STRONGLY recommended that the use of this tool be done off-hours, with no users on the system. • These procedures should only be done AFTER SUFFICIENT BACKUPS are made of the current RB-ERP SQL database and ISAM files. • Multi-RB-ERP Environments - Caution !! • Be VERY careful if multiple RB-ERP environments are on your servers. You must ensure you are referencing the correct environment when following any of the procedures in this document. • Requirements for usage of this document: • RB-ERP V9.3 or above • DBMaintPlus.exe dated 8/3/2012 or better DBMaintPlusSQL Database Maintenance Utility for RB-ERP Version V9.3 and above
DBMaintPlus Documentation • Location on WW network:
DBMaintPlus Documentation • Location on WW network:
DBMaintPlus Learn by Examples #1 Copy Existing RB-ERP Company (Schema) to New RB-ERP Company (Schema)#2 Copy Existing RB-ERP Company (Schema) to Existing RB-ERP Company (Schema)#3 Create New Company (Schema) ‘abc’#4 Delete an Existing RB-ERP Company/Schema#5 Refresh Test Environment W94 Data from Live Environment V94 Data #6 Copy selected tables from one DB to another
DBMaintPlus Exercise #1 • Copy Existing RB-ERP Company (Schema) to New RB-ERP Company (Schema) • Make a copy of company 'tst' to non-existing 'new' • Steps starting on Page 8 • Copy existing ISAM files from 'tst' to 'new' • Edit the EMS_REGISTRY.NEW file • Create the logical RB-ERP company 'new' • Verify “connection string” NEW TERM • Create xfODBC connection file for 'new'
DBMaintPlus Exercise #1 • On SQL Server - Create schema for ‘new’ • RB-ERP Server – DCM to Obtain DCM Version • On SQL Server – Verify Linked Server Working • RB-ERP Server – DCM Tool to Update Schema • RB-ERP Server – DBMaintPlus – Copy Schema • RB-ERP Server – Delete/Create Cache Files • RB-ERP Server – Verify Sync’ed Cache Files • Additional tasks • Background Scheduler and DC Services and process configurations as required
DBMaintPlus Exercise #1 • Copy existing ISAM files from 'tst' to 'new' Note – this will copy cache files etc from the DSQ folder! Bad news – it takes more time ! Good news – it verifies that there is enough space for the copies! The “ED” application files are the ONLY ones that need to be copied. If you want to only copy “ED” files, use the command: copy_tcmdata X:\tcm\W94_DATA0\ED tst new
DBMaintPlus Exercise #1 • Copy existing ISAM files from 'tst' to 'new'
DBMaintPlus Exercise #1 • Edit the EMS_REGISTRY.NEW file
DBMaintPlus Exercise #1 • Edit the EMS_REGISTRY.NEW file
DBMaintPlus Exercise #1 • Edit the EMS_REGISTRY.NEW file
DBMaintPlus Exercise #1 • Edit the EMS_REGISTRY.NEW file
DBMaintPlus Exercise #1 • Edit the EMS_REGISTRY.NEW file Note – I always use: ‘spaceCMPspace’ NOTE – Do the above replace using the “Match Case” selection and do it twice: TST NEW and then tst new
DBMaintPlus Exercise #1 • Edit the EMS_REGISTRY.NEW file
DBMaintPlus Exercise #1 • Edit the EMS_REGISTRY.NEW file
DBMaintPlus Exercise #1 • Edit the EMS_REGISTRY.NEW file
DBMaintPlus Exercise #1 • Edit the EMS_REGISTRY.NEW file
DBMaintPlus Exercise #1 • Edit the EMS_REGISTRY.NEW file
DBMaintPlus Exercise #1 • Edit the EMS_REGISTRY.NEW file CTRL_Z to finish !
DBMaintPlus Exercise #1 • Create the logical RB-ERP company 'new'
DBMaintPlus Exercise #1 • Create the logical RB-ERP company 'new' Using Navigator Company Maintenance
DBMaintPlus Exercise #1 • Create the logical RB-ERP company 'new' Using Navigator Company Maintenance Select Add Company Code
DBMaintPlus Exercise #1 • Create the logical RB-ERP company 'new' Using Navigator Company Maintenance Select Add Company Code Select a blank entry (6) Enter ‘new’
DBMaintPlus Exercise #1 • Create the logical RB-ERP company 'new' Using Navigator Company Maintenance Select Add Company Code Select a blank entry (6) Enter ‘new’ 99% use (C)opy
DBMaintPlus Exercise #1 • Create the logical RB-ERP company 'new' Using Navigator Company Maintenance Select Add Company Code Select a blank entry (6) Enter ‘new’ 99% use (C)opy Warning Message - YES
DBMaintPlus Exercise #1 • Create the logical RB-ERP company 'new' Using Navigator Company Maintenance Select Add Company Code Select a blank entry (6) Enter ‘new’ 99% use (C)opy Warning Message – YES Company code to copy
DBMaintPlus Exercise #1 • Create the logical RB-ERP company 'new' Using Navigator Company Maintenance Select Add Company Code Select a blank entry (6) Enter ‘new’ 99% use (C)opy Warning Message – YES Company code to copy
DBMaintPlus Exercise #1 • Create the logical RB-ERP company 'new' Using Navigator Company Maintenance Select Change Company Name
DBMaintPlus Exercise #1 • Create the logical RB-ERP company 'new' Using Navigator Company Maintenance Select Change Company Name Enter ‘new’
DBMaintPlus Exercise #1 • Create the logical RB-ERP company 'new' Using Navigator Company Maintenance Select Change Company Name Enter ‘new’ Enter new company name
DBMaintPlus Exercise #1 • Create the logical RB-ERP company 'new' Using Navigator Company Maintenance Select Change Company Name Enter ‘new’ Enter new company name
DBMaintPlus Exercise #1 • Create the logical RB-ERP company 'new' Using Navigator Password/Device Maint
DBMaintPlus Exercise #1 • Create the logical RB-ERP company 'new' Using Navigator Password/Device Maint Add a new password
DBMaintPlus Exercise #1 • Create the logical RB-ERP company 'new' Using Navigator Password/Device Maint Add a new password SUPERPASS | new ‘M’ for all files ‘R’ for all files
DBMaintPlus Exercise #1 • Verify “connection string” NEW TERM Using Navigator Company Maintenance Connection String Maint
DBMaintPlus Exercise #1 • Verify “connection string” NEW TERM Using Navigator Company Maintenance Connection String Maint Enter new company ‘new’
DBMaintPlus Exercise #1 • Verify “connection string” NEW TERM Using Navigator Company Maintenance Connection String Maint Enter new company ‘new’ Hitting enter on field to chg will verify the string
DBMaintPlus Exercise #1 • Verify “connection string” NEW TERM Using Navigator Company Maintenance Connection String Maint Enter new company ‘new’ Hitting enter on field to chg will verify the string
DBMaintPlus Exercise #1 • Verify “connection string” NEW TERM SQL DB USERNAME | PW
DBMaintPlus Exercise #1 • Verify “connection string” NEW TERM SQL DB USERNAME | PW
DBMaintPlus Exercise #1 • Verify “connection string” NEW TERM SQL SERVER DSN NAME
DBMaintPlus Exercise #1 • Verify “connection string” NEW TERM SQL SERVER NAME
DBMaintPlus Exercise #1 • Verify “connection string” NEW TERM SQL DB NAME
DBMaintPlus Exercise #1 • Create xfODBC connection file for 'new' X:\var\tcm\connect Copy ‘tst’ con file to ‘new’ new_W94.con
DBMaintPlus Exercise #1 • Create xfODBC connection file for 'new' Edit ‘new’ con file
DBMaintPlus Exercise #1 • Create xfODBC connection file for 'new' Replace ‘.tst’ with ‘.new‘