Presentation is loading. Please wait.

Presentation is loading. Please wait.

DBMaintPlus August 23, 2012. DBMaintPlus SQL Database Maintenance Utility for RB-ERP Version V9.3 and above Disclaimer The DBMaintPlus Utility is designed.

Similar presentations


Presentation on theme: "DBMaintPlus August 23, 2012. DBMaintPlus SQL Database Maintenance Utility for RB-ERP Version V9.3 and above Disclaimer The DBMaintPlus Utility is designed."— Presentation transcript:

1 DBMaintPlus August 23, 2012

2 DBMaintPlus SQL Database Maintenance Utility for RB-ERP Version V9.3 and above 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.

3 DBMaintPlus SQL 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

4 DBMaintPlus Documentation Location on WW network:

5 DBMaintPlus Documentation Location on WW network:

6 DBMaintPlus on RB-ERP Server

7 DBMaintPlus on SQL Server

8 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

9 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'

10 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

11 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

12 DBMaintPlus Exercise #1 Copy existing ISAM files from 'tst' to 'new'

13 DBMaintPlus Exercise #1 Edit the EMS_REGISTRY.NEW file

14 DBMaintPlus Exercise #1 Edit the EMS_REGISTRY.NEW file

15 DBMaintPlus Exercise #1 Edit the EMS_REGISTRY.NEW file

16 DBMaintPlus Exercise #1 Edit the EMS_REGISTRY.NEW file

17 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

18 DBMaintPlus Exercise #1 Edit the EMS_REGISTRY.NEW file

19 DBMaintPlus Exercise #1 Edit the EMS_REGISTRY.NEW file

20 DBMaintPlus Exercise #1 Edit the EMS_REGISTRY.NEW file

21 DBMaintPlus Exercise #1 Edit the EMS_REGISTRY.NEW file

22 DBMaintPlus Exercise #1 Edit the EMS_REGISTRY.NEW file

23 DBMaintPlus Exercise #1 Edit the EMS_REGISTRY.NEW file CTRL_Z to finish !

24 DBMaintPlus Exercise #1 Create the logical RB-ERP company 'new'

25 DBMaintPlus Exercise #1 Create the logical RB-ERP company 'new' Using Navigator Company Maintenance

26 DBMaintPlus Exercise #1 Create the logical RB-ERP company 'new' Using Navigator Company Maintenance Select Add Company Code

27 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’

28 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

29 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

30 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

31 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

32 DBMaintPlus Exercise #1 Create the logical RB-ERP company 'new' Using Navigator Company Maintenance Select Change Company Name

33 DBMaintPlus Exercise #1 Create the logical RB-ERP company 'new' Using Navigator Company Maintenance Select Change Company Name Enter ‘new’

34 DBMaintPlus Exercise #1 Create the logical RB-ERP company 'new' Using Navigator Company Maintenance Select Change Company Name Enter ‘new’ Enter new company name

35 DBMaintPlus Exercise #1 Create the logical RB-ERP company 'new' Using Navigator Company Maintenance Select Change Company Name Enter ‘new’ Enter new company name

36 DBMaintPlus Exercise #1 Create the logical RB-ERP company 'new' Using Navigator Password/Device Maint

37 DBMaintPlus Exercise #1 Create the logical RB-ERP company 'new' Using Navigator Password/Device Maint Add a new password

38 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

39 Using Navigator Company Maintenance Connection String Maint DBMaintPlus Exercise #1 Verify “connection string”  NEW TERM

40 Using Navigator Company Maintenance Connection String Maint Enter new company ‘new’ DBMaintPlus Exercise #1

41 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

42 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

43 Verify “connection string”  NEW TERM DBMaintPlus Exercise #1 SQL DB USERNAME | PW

44 Verify “connection string”  NEW TERM DBMaintPlus Exercise #1 SQL DB USERNAME | PW

45 Verify “connection string”  NEW TERM DBMaintPlus Exercise #1 SQL SERVER DSN NAME

46 Verify “connection string”  NEW TERM DBMaintPlus Exercise #1 SQL SERVER NAME

47 Verify “connection string”  NEW TERM DBMaintPlus Exercise #1 SQL DB NAME

48 Create xfODBC connection file for 'new' DBMaintPlus Exercise #1 Copy ‘tst’ con file to ‘new’ new_W94.con X:\var\tcm\connect

49 Create xfODBC connection file for 'new' DBMaintPlus Exercise #1 Edit ‘new’ con file

50 Create xfODBC connection file for 'new' DBMaintPlus Exercise #1 Replace ‘.tst’ with ‘.new‘

51 DBMaintPlus Exercise #1 On SQL Server - Create schema for ‘new’

52 DBMaintPlus Exercise #1 On SQL Server - Create schema for ‘new’

53 SQL Server Name DBMaintPlus Exercise #1 On SQL Server - Create schema for ‘new’

54 SQL Server Name DBMaintPlus Exercise #1 On SQL Server - Create schema for ‘new’

55 SQL Server Name DBMaintPlus Exercise #1 On SQL Server - Create schema for ‘new’

56 SQL Server Name DBMaintPlus Exercise #1 On SQL Server - Create schema for 'new' SQL DB Name Schema Code ‘new’

57 DCM Version DBMaintPlus Exercise #1 On SQL Server - Create schema for 'new'

58 DCM Version DBMaintPlus Exercise #1 What DCM Version do I use ? Where can I find out?

59 On SQL Server - Create schema for 'new' DCM Version DBMaintPlus Exercise #1 What DCM Version do I use ? Where can I find out?

60 RB-ERP Server – DCM to Obtain DCM Version DCM Tool DBMaintPlus Exercise #1

61 RB-ERP Server – DCM to Obtain DCM Version

62 DBMaintPlus Exercise #1 RB-ERP Server – DCM to Obtain DCM Version Verify Environment

63 DBMaintPlus Exercise #1 RB-ERP Server – DCM to Obtain DCM Version Verify Environment Verify SQL Server Verify SQL DB Name

64 DBMaintPlus Exercise #1 RB-ERP Server – DCM to Obtain DCM Version Instance Name if Required

65 DBMaintPlus Exercise #1 RB-ERP Server – DCM to Obtain DCM Version

66 DBMaintPlus Exercise #1 RB-ERP Server – DCM to Obtain DCM Version

67 On SQL Server - Create schema for 'new' DCM Version DBMaintPlus Exercise #1 Create Schema – NOT UPGRADE SCHEMA

68 RB-ERP Server Name DBMaintPlus Exercise #1 On SQL Server - Create schema for 'new' xfODBC Connection File Name Data used for creation of a Linked Server which allows access back to the RB-ERP Application Server for access to ISAM Files.

69 RB-ERP Server Name DBMaintPlus Exercise #1 On SQL Server - Create schema for 'new' xfODBC Connection File Name Data used for creation of a Linked Server which allows access back to the RB-ERP Application Server for access to ISAM Files.

70 DBMaintPlus Exercise #1 On SQL Server - Create schema for 'new'

71 DBMaintPlus Exercise #1 On SQL Server - Create schema for 'new' Progress logged here… This step will take awhile !!

72 DBMaintPlus Exercise #1 On SQL Server - Create schema for 'new' Done – Check for error messages

73 DBMaintPlus Exercise #1 On SQL Server – Verify Linked Server Working Using SSMS Server Objects Linked Servers

74 DBMaintPlus Exercise #1 On SQL Server – Verify Linked Server Working Using SSMS Server Objects Linked Servers Locate new linked server Right-Click – Test

75 DBMaintPlus Exercise #1 On SQL Server – Verify Linked Server Working Using SSMS Server Objects Linked Servers Locate new linked server Right-Click – Test

76 DCM Tool DBMaintPlus Exercise #1 RB-ERP Server – DCM Tool to Update Schema

77 DBMaintPlus Exercise #1 RB-ERP Server – DCM Tool to Update Schema

78 DBMaintPlus Exercise #1 RB-ERP Server – DCM Tool to Update Schema Verify Environment Verify SQL Server Verify SQL DB Name

79 DBMaintPlus Exercise #1 RB-ERP Server – DCM Tool to Update Schema

80 DBMaintPlus Exercise #1 RB-ERP Server – DCM Tool to Update Schema

81 DBMaintPlus Exercise #1 RB-ERP Server – DCM Tool to Update Schema Although the schema was created at V9.4, it needs to have any addendum updates and changes added to the vanilla V9.4 schema to be at the latest patch level.

82 DBMaintPlus Exercise #1 RB-ERP Server – DCM Tool to Update Schema

83 DBMaintPlus Exercise #1 RB-ERP Server – DCM Tool to Update Schema

84 DBMaintPlus Exercise #1 RB-ERP Server – DCM Tool to Update Schema

85 DBMaintPlus Exercise #1 RB-ERP Server – DCM Tool to Update Schema Check EVERYONE FULL on the share W94_DATABASE permissions !

86 DBMaintPlus Exercise #1 RB-ERP Server – DCM Tool to Update Schema This step can take awhile !

87 DBMaintPlus Exercise #1 RB-ERP Server – DCM Tool to Update Schema

88 DBMaintPlus Exercise #1 RB-ERP Server – DCM Tool to Update Schema

89 DBMaintPlus Exercise #1 RB-ERP Server – DCM Tool to Update Schema

90 DBMaintPlus Exercise #1 RB-ERP Server – DCM Tool to Update Schema

91 DBMaintPlus Exercise #1 RB-ERP Server – DCM Tool to Update Schema This DCM process ran from 13:15 to 13:30 (15 minutes) on an empty schema! Execution of this process on a LARGE data base against multiple schemas can take some time !!

92 DBMaintPlus Exercise #1 RB-ERP Server – DBMaintPlus – Copy Schema And FINALLY we are actually going to “copy a schema !!

93 DBMaintPlus Exercise #1 RB-ERP Server – DBMaintPlus – Copy Schema

94 DBMaintPlus Exercise #1 RB-ERP Server – DBMaintPlus – Copy Schema

95 DBMaintPlus Exercise #1 RB-ERP Server – DBMaintPlus – Copy Schema

96 DBMaintPlus Exercise #1 RB-ERP Server – DBMaintPlus – Copy Schema Verify Correct Environment

97 DBMaintPlus Exercise #1 Verify SQL Server Name RB-ERP Server – DBMaintPlus – Copy Schema Verify SQL DB Name Select source schema ‘tst’

98 DBMaintPlus Exercise #1 Verify SQL Server Name RB-ERP Server – DBMaintPlus – Copy Schema Verify SQL DB Name Select destination schema ‘new’

99 DBMaintPlus Exercise #1 RB-ERP Server – DBMaintPlus – Copy Schema There is a pause at this point ! Don’t panic – it is going to run !!

100 DBMaintPlus Exercise #1 RB-ERP Server – DBMaintPlus – Copy Schema

101 DBMaintPlus Exercise #1 RB-ERP Server – DBMaintPlus – Copy Schema

102 DBMaintPlus Exercise #1 RB-ERP Server – DBMaintPlus – Copy Schema This step can take awhile !

103 DBMaintPlus Exercise #1 RB-ERP Server – DBMaintPlus – Copy Schema

104 DBMaintPlus Exercise #1 RB-ERP Server – DBMaintPlus – Copy Schema

105 DBMaintPlus Exercise #1 RB-ERP Server – DBMaintPlus – Copy Schema

106 DBMaintPlus Exercise #1 RB-ERP Server – Delete/Create Cache Files Change directory to DSQ Delete existing ‘new’ cache

107 DBMaintPlus Exercise #1 RB-ERP Server – Delete/Create Cache Files Change directory to DSQ Delete existing ‘new’ cache Build ‘new’ cache files

108 DBMaintPlus Exercise #1 RB-ERP Server – Delete/Create Cache Files On a company with a HUGE amount of data, this can take a LONG TIME !!

109 DBMaintPlus Exercise #1 RB-ERP Server – Delete/Create Cache Files Use dir *.ne* /p Verify that all cache files got built – look for file 673.

110 DBMaintPlus Exercise #1 RB-ERP Server – Verify Sync’ed Cache Files User isqlvcount to verify

111 DBMaintPlus Exercise #1 RB-ERP Server – Verify Sync’ed Cache Files Check tcm_logger.log file In folder: X:\var\tcm\logger\logs

112 DBMaintPlus Exercise #1 RB-ERP Server – Verify Sync’ed Cache Files First ISQLVCOUNT From the bottom find the first ISQLVCOUNT and search for “FAILED” to the bottom of the log file.

113 DBMaintPlus Exercise #1 RB-ERP Server – Verify Sync’ed Cache Files First ISQLVCOUNT From the bottom find the first ISQLVCOUNT and search for “FAILED” to the bottom of the log file.

114 DBMaintPlus Exercise #1 RB-ERP Server – Verify Sync’ed Cache Files

115 DBMaintPlus Exercise #1 Additional Tasks – Setup services for background processes as required RB-ERP Services – Background Scheduler – DC Services – Including configuration within RB-ERP » DCM1MA » DCSRVR

116 DBMaintPlus Learn by Examples #1 Copy Existing RB-ERP Company (Schema) to New RB-ERP Company (Schema) QUESTIONS ?

117 DBMaintPlus Exercise #2 Copy Existing RB-ERP Company (Schema) to Existing RB-ERP Company (Schema) – Make a copy of company 'tst' to existing 'new' – Steps starting on Page 32 Remove existing ISAM files for ‘new’ Copy existing ISAM files from 'tst' to 'new' Edit the EMS_REGISTRY.NEW file RB-ERP Server – DBMaintPlus – Copy Schema RB-ERP Server – Delete/Create Cache Files RB-ERP Server – Verify Sync’ed Cache Files

118 DBMaintPlus Exercise #2 Copy Existing RB-ERP Company (Schema) to Existing RB-ERP Company (Schema) – Make a copy of company 'tst' to existing 'new' – Steps starting on Page 32 Remove existing ISAM files for ‘new’ Copy existing ISAM files from 'tst' to 'new' Edit the EMS_REGISTRY.NEW file RB-ERP Server – DBMaintPlus – Copy Schema RB-ERP Server – Delete/Create Cache Files RB-ERP Server – Verify Sync’ed Cache Files

119 DBMaintPlus Learn by Examples #2 Copy Existing RB-ERP Company (Schema) to Existing RB-ERP Company (Schema) QUESTIONS ?

120 DBMaintPlus Exercise #3 Create New Company (Schema) ‘abc’ – Create a new company code ‘abc' – Steps starting on Page 50 Create the logical RB-ERP company ‘abc' Verify “connection string” Create xfODBC connect file ‘abc_VXX.con’ Create base ISAM files (copy or initialize) – DUT:UT_CURR_CODE.abc – DUT:EMS_REGISTRY.abc – DCM:TABLES.abc

121 DBMaintPlus Exercise #3 Set ‘abc’ Schema Device Table Entries to RDB On SQL Server - Create schema for ‘abc’ – 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 – Initialize all applications / files RB-ERP Server – Create Cache Files RB-ERP Server – Verify Sync’ed Cache Files Additional tasks – Background processes configurations as required

122 DBMaintPlus Exercise #3 Create New Company (Schema) ‘abc’ – Create a new company code ‘abc' – Steps starting on Page 50 Create the logical RB-ERP company ‘abc' Verify “connection string” Create xfODBC connect file ‘abc_VXX.con’ Create base ISAM files (copy or initialize) – DUT:UT_CURR_CODE.abc – DUT:EMS_REGISTRY.abc – DCM:TABLES.abc

123 DBMaintPlus Exercise #3 Set ‘abc’ Schema Device Table Entries to RDB On SQL Server - Create schema for ‘abc’ – 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 – Initialize all applications / files RB-ERP Server – Create Cache Files RB-ERP Server – Verify Sync’ed Cache Files Additional tasks – Background processes configurations as required

124 #3 Create New Company (Schema) ‘abc’ QUESTIONS ? DBMaintPlus Learn by Examples

125 DBMaintPlus Exercise #4 Delete an Existing RB-ERP Company/Schema – DEM Company not needed – training / testing – Steps starting on Page 46 Delete the logical company ‘dem’ from RB-ERP application RB-ERP Server – Delete ‘dem’ ISAM / Cache Delete the ‘dem’ schema using DBMaintPlus Additional tasks – Remove background processes as required

126 DBMaintPlus Exercise #4 Delete the logical RB-ERP company ‘dem' Using Navigator Company Maintenance

127 DBMaintPlus Exercise #4 Delete the logical RB-ERP company ‘dem' Using Navigator Company Maintenance Select Delete Company Code

128 DBMaintPlus Exercise #4 Delete the logical RB-ERP company ‘dem' Using Navigator Company Maintenance Select Delete Company Code Locate ‘dem’ (2) Enter ‘2’

129 DBMaintPlus Exercise #4 Delete the logical RB-ERP company ‘dem' Using Navigator Company Maintenance Select Delete Company Code Locate ‘dem’ (2) Enter ‘2’ After checking for users, message of if you really want to do this appears. Select YES – logical company is deleted.

130 DBMaintPlus Exercise #4 RB-ERP Server – Delete ‘dem’ ISAM / Cache Files Change directory to DATA0 Delete ALL ISAMs for ‘dem’

131 DBMaintPlus Exercise #4 RB-ERP Server – Delete ‘dem’ ISAM / Cache Files Change directory to DATA1 Delete ALL ISAMs for ‘dem’

132 DBMaintPlus Exercise #4 On SQL Server - Delete schema for ‘dem’

133 DBMaintPlus Exercise #4 On SQL Server - Delete schema for ‘dem’

134 DBMaintPlus Exercise #4 On SQL Server - Delete schema for ‘dem’

135 SQL Server Name DBMaintPlus Exercise #4 On SQL Server - Delete schema for ‘dem' SQL DB Name Select Schema ‘dem’

136 DBMaintPlus Exercise #4 On SQL Server - Delete schema for ‘dem'

137 DBMaintPlus Exercise #4 On SQL Server - Delete schema for ‘dem'

138 DBMaintPlus Exercise #4 On SQL Server - Delete schema for ‘dem' This step can take awhile !

139 DBMaintPlus Exercise #4 On SQL Server - Delete schema for ‘dem'

140 #4 Delete an Existing RB-ERP Company/Schema QUESTIONS ? DBMaintPlus Learn by Examples

141 DBMaintPlus Exercise #5 Refresh Test Environment W94 Data from Live Environment V94 Data – Copy all company/schema data from V94 to W94 – Steps starting on Page 67 Make a FULL backup of all data (static system) – V94 SQL DB  V94_SQL_DB_BACKUP.BAK (Using SSMS) – V94_DATA0  V94_DATA0_COPY – V94_DATA1  V94_DATA1_COPY Note values in current W94 SQL DB ‘dbo.parameters’ table – Row 39 and Row 44 Note W94 SQL DB users / schemas under security

142 DBMaintPlus Exercise #5 Optionally make backups first then delete – Current W94 SQL DB – Current W94_DATA0 and W94_DATA1 – NOTE – you may want to save DC configuration ‘.DAT’ files in DUT Restore Data from V94 to W94 – Using SSMS Restore SQL DB from Backup » V94_SQL_DB_BACKUP.BAK  SQL DB TCMW94 – Copy / Replace » V94_DATA0_COPY  W94_DATA0 » V94_DATA1_COPY  W94_DATA1 – Set ‘dbo.parameters’ Row 39 and 44 back to noted values – Create users for all schemas in W94 SQL DB (DBMaintPlus ) Verify xfODBC connection files for W94 environment

143 DBMaintPlus Exercise #5 Verify xfODBC connection files for W94 environment Verify/correct connection strings for ALL schemas Run DCM tool against all schemas in W94 Delete all cache files Rebuild all cache files Remove all non-standard triggers (DBMaintPlus) – CRM – Others Additional Tasks – Restore Background processes as required – DC Config Files from DUT TEST - TEST - TEST - TEST – Make SURE you are hitting the correct SQL DB from the W94 Environment » Make minor changes – verify using SSMS to see data changes

144 DBMaintPlus Exercise #5 Verify xfODBC connection files for W94 environment Verify/correct connection strings for ALL schemas Run DCM tool against all schemas in W94 Delete all cache files Rebuild all cache files Remove all non-standard triggers (DBMaintPlus) – CRM – Others Additional Tasks – Restore Background processes as required – DC Config Files from DUT TEST - TEST - TEST - TEST TEST - TEST - TEST - TEST – Make SURE you are hitting the correct SQL DB from the W94 Environment » Make minor changes – verify using SSMS to see data changes

145 DBMaintPlus Exercise #5 Backup of SQL DB using SSMS

146 DBMaintPlus Exercise #5 Backup of SQL DB using SSMS

147 DBMaintPlus Exercise #5 Backup of SQL DB using SSMS

148 DBMaintPlus Exercise #5 Backup of SQL DB using SSMS

149 DBMaintPlus Exercise #5 Copy origin V94_DATA0 and V94_DATA1

150 DBMaintPlus Exercise #5 Copy origin V94_DATA0 and V94_DATA1

151 DBMaintPlus Exercise #5 Note values in W94 SQL DB ‘dbo.parameters’ – Row 39 and 44

152 DBMaintPlus Exercise #5 Note W94 SQL DB users/schemas under security

153 DBMaintPlus Exercise #5 Delete current W94 SQL DB

154 DBMaintPlus Exercise #5 Delete current W94 SQL DB

155 DBMaintPlus Exercise #5 Delete current W94 SQL DB

156 DBMaintPlus Exercise #5 Delete current W94 SQL DB

157 DBMaintPlus Exercise #5 Delete current W94 SQL DB

158 DBMaintPlus Exercise #5 Delete current W94_DATA0 and W94_DATA1 SQL DB Change directory to DATA0 Delete ALL ISAMs Change directory to DATA1 Delete ALL ISAMs

159 DBMaintPlus Exercise #5 Delete current W94_DATA0 and W94_DATA1

160 DBMaintPlus Exercise #5 Using SSMS Restore SQL DB from Backup – V94_SQL_DB_BACKUP.BAK  SQL DB TCMW94

161 DBMaintPlus Exercise #5 Using SSMS Restore SQL DB from Backup – V94_SQL_DB_BACKUP.BAK  SQL DB TCMW94

162 DBMaintPlus Exercise #5 Using SSMS Restore SQL DB from Backup – V94_SQL_DB_BACKUP.BAK  SQL DB TCMW94

163 DBMaintPlus Exercise #5 Using SSMS Restore SQL DB from Backup – V94_SQL_DB_BACKUP.BAK  SQL DB TCMW94

164 DBMaintPlus Exercise #5 Restore V94_DATA0 & V94_DATA1 copies to W94

165 DBMaintPlus Exercise #5 Using SSMS Restore SQL DB from Backup – Set ‘dbo.parameters’ Row 39 and 44 back to noted values

166 DBMaintPlus Exercise #5 Using SSMS Restore SQL DB from Backup – Set ‘dbo.parameters’ Row 39 and 44 back to noted values

167 Users are from TCM94_tenuser DBMaintPlus Exercise #5 Using SSMS Restore SQL DB from Backup – Create users for all schemas in W94 SQL DB (DBMaintPlus)

168 DBMaintPlus Exercise #5 Using SSMS Restore SQL DB from Backup – Create users for all schemas in W94 SQL DB (DBMaintPlus)

169 DBMaintPlus Exercise #5 Using SSMS Restore SQL DB from Backup – Create users for all schemas in W94 SQL DB (DBMaintPlus) SQL Server Name SQL DB Name Select ‘All Schemas’

170 DBMaintPlus Exercise #5 Using SSMS Restore SQL DB from Backup – Create users for all schemas in W94 SQL DB (DBMaintPlus) Verify Environment

171 DBMaintPlus Exercise #5 Using SSMS Restore SQL DB from Backup – Create users for all schemas in W94 SQL DB (DBMaintPlus) Verify RB-ERP App Server Enter for each schema

172 DBMaintPlus Exercise #5 Using SSMS Restore SQL DB from Backup – Create users for all schemas in W94 SQL DB (DBMaintPlus)

173 DBMaintPlus Exercise #5 Using SSMS Restore SQL DB from Backup – Create users for all schemas in W94 SQL DB (DBMaintPlus) WARNING Message about non-standard triggers appears!!

174 After DBMaintPlus Processing DBMaintPlus Exercise #5 Using SSMS Restore SQL DB from Backup – Create users for all schemas in W94 SQL DB (DBMaintPlus)

175 DBMaintPlus Exercise #5 Run DCM tool against all schemas in W94 Verify Environment Verify SQL Server Verify SQL DB Name

176 DBMaintPlus Exercise #5 Run DCM tool against all schemas in W94

177 Verify “connection string” for ALL schemas Using Navigator Company Maintenance Connection String Maint Enter new company ‘new’ Hitting enter on field to chg will verify the string DBMaintPlus Exercise #5

178 RB-ERP Server – Delete/Create All Cache Files Change directory to DSQ Delete cache files !! Build cache for ‘tst’ Continue to rebuild all cache files for all schemas !

179 DBMaintPlus Exercise #5 Remove Non-Standard Triggers (DBMaintPlus)

180 DBMaintPlus Exercise #5 Remove Non-Standard Triggers (DBMaintPlus) Verify SQL Server Name Verify SQL DB Name

181 DBMaintPlus Exercise #5 Remove Non-Standard Triggers (DBMaintPlus)

182 DBMaintPlus Exercise #5 Remove Non-Standard Triggers (DBMaintPlus)

183 DBMaintPlus Exercise #5 Remove Non-Standard Triggers (DBMaintPlus) Verify SQL Server Name Verify SQL DB Name

184 DBMaintPlus Exercise #5 Remove Non-Standard Triggers (DBMaintPlus)

185 DBMaintPlus Exercise #5 Remove Non-Standard Triggers (DBMaintPlus)

186 DBMaintPlus Exercise #5 Remove Non-Standard Triggers (DBMaintPlus)

187 DBMaintPlus Exercise #5 Remove Non-Standard Triggers (DBMaintPlus) After Trigger Remove

188 #5 Refresh Test Environment W94 Data from Live Environment V94 Data QUESTIONS ? DBMaintPlus Learn by Examples

189 DBMaintPlus Exercise #6 Copy selected tables from one DB to another

190 DBMaintPlus Exercise #6 Copy selected tables from one DB to another Verify Environment

191 DBMaintPlus Exercise #6 Copy selected tables from one DB to another SQL Server Name SQL DB Name Select FROM ‘dem’

192 DBMaintPlus Exercise #6 Copy selected tables from one DB to another SQL Server Name SQL DB Name Select TO ‘tst’

193 DBMaintPlus Exercise #6 Copy selected tables from one DB to another

194 DBMaintPlus Exercise #6 Copy selected tables from one DB to another

195 DBMaintPlus Exercise #6 Copy selected tables from one DB to another

196 DBMaintPlus Exercise #6 Copy selected tables from one DB to another NOTE – after copying tables: Rebuild Z-Tables Rebuild Cache Files

197 #6 Copy selected tables from one DB to another QUESTIONS ? DBMaintPlus Learn by Examples

198 RB-ERP – Background Processes Shop Floor Background scheduler Data Collection (DC) Processes – DCM1MA – DCSRVR Two Steps – Setup of services – Configuration of DC Services

199 RB-ERP – Background Processes Setup of Services – From RB-ERP Cmd Line – Starting up the services installer Change dir to the ‘dcsf_services’ folder in the correct environment

200 Setup of Services – From RB-ERP Cmd Line – Starting up the services installer RB-ERP – Background Processes Enter ‘setup’

201 Setup of Services – From RB-ERP Cmd Line – Starting up the services installer Possible problem – SETUP.EXE will not run SETUP.EXE wants to install a new “srvany.exe” file. Current one is in use. – Solution #1: Rename this file srvany.exe  srvany.exe_old – Solution #2: Stop all RB-ERP DC and B’grnd services RB-ERP – Background Processes

202 Setup of Services – From RB-ERP Cmd Line – Starting up the services installer RB-ERP – Background Processes

203 Setup of Services – From RB-ERP Cmd Line – Starting up the services installer

204 Setup of Services – From RB-ERP Cmd Line – What to setup ? RB-ERP – Background Processes

205 Setup of Services – From RB-ERP Cmd Line – Background Scheduler

206 RB-ERP – Background Processes Setup of Services – From RB-ERP Cmd Line – Background Scheduler TCM Services User TCM Services PW Manual Startup

207 RB-ERP – Background Processes Company Code ‘tst’ Setup of Services – From RB-ERP Cmd Line – Background Scheduler

208 RB-ERP – Background Processes Setup of Services – From RB-ERP Cmd Line – Background Scheduler

209 RB-ERP – Background Processes Setup of Services – From RB-ERP Cmd Line – Prompt for setup of another service?

210 Setup of Services – From RB-ERP Cmd Line – Background Scheduler – Control Files RB-ERP – Background Processes

211 Setup of Services – From RB-ERP Cmd Line – Background Scheduler – Control Files RB-ERP – Background Processes

212 Setup of Services – From RB-ERP Cmd Line – Background Scheduler – Startup RB-ERP – Background Processes RB-ERP Main Menu Manufacturing Shopfloor Control Other Functions Scheduler Startup

213 Setup of Services – From RB-ERP Cmd Line – Background Scheduler – Startup RB-ERP – Background Processes Options for startup or Checking current status.

214 Setup of Services – From RB-ERP Cmd Line – Background Scheduler – Startup RB-ERP – Background Processes Options for startup or Checking current status. Current status shows all companies in the environment.

215 Setup of Services – From RB-ERP Cmd Line – Background Scheduler – Startup RB-ERP – Background Processes Selecting Start… Shows configuration for the process. Select OK to start…

216 Setup of Services – From RB-ERP Cmd Line – Background Scheduler – Startup RB-ERP – Background Processes Two DOS windows will appear as the bat files are processed.

217 Setup of Services – From RB-ERP Cmd Line – Background Scheduler – Startup RB-ERP – Background Processes Checking current status.

218 Setup of Services – From RB-ERP Cmd Line – Background Scheduler – Shutdown RB-ERP – Background Processes RB-ERP Main Menu Manufacturing Shopfloor Control Other Functions Scheduler Shutdown

219 Setup of Services – From RB-ERP Cmd Line – Background Scheduler – Shutdown RB-ERP – Background Processes Prompt for continue the shutdown is displayed.

220 Setup of Services – From RB-ERP Cmd Line – Background Scheduler – Shutdown RB-ERP – Background Processes Followed by a prompt for if you want an immediate shutdown.

221 Setup of Services – From RB-ERP Cmd Line – Background Scheduler – Log Files RB-ERP – Background Processes

222 RB-ERP Background Scheduler QUESTIONS ?

223 RB-ERP – Background Processes Setup of Services – From RB-ERP Cmd Line – Prompt for setup of another service?

224 RB-ERP – Background Processes Setup of Services – From RB-ERP Cmd Line – Data Collection

225 Setup of Services – From RB-ERP Cmd Line – Data Collection RB-ERP – Background Processes TCM Services User Manual Startup TCM Services PW

226 Setup of Services – From RB-ERP Cmd Line – Data Collection – DCM1MA RB-ERP – Background Processes

227 Setup of Services – From RB-ERP Cmd Line – Data Collection – DCM1MA RB-ERP – Background Processes Company Code ‘tst’

228 Setup of Services – From RB-ERP Cmd Line – Data Collection – DCM1MA RB-ERP – Background Processes

229 Setup of Services – From RB-ERP Cmd Line – Prompt for another service to setup? RB-ERP – Background Processes

230 Setup of Services – From RB-ERP Cmd Line – DCM1MA - Control Files RB-ERP – Background Processes

231 Setup of Services – From RB-ERP Cmd Line – DCM1MA – Control Files RB-ERP – Background Processes

232 Setup of Services – From RB-ERP Cmd Line – DCM1MA – EB-ERP Configuration RB-ERP – Background Processes RB-ERP Main Menu Other Special Functions Application Mfg Dist Special Functions Data Collection DC SubSystems DCW Configuration Maintenance

233 Setup of Services – From RB-ERP Cmd Line – DCM1MA – EB-ERP Configuration RB-ERP – Background Processes

234 Setup of Services – From RB-ERP Cmd Line – DCM1MA – EB-ERP Configuration RB-ERP – Background Processes It appears that DCM1MA configurations already exist? How can that be?

235 Setup of Services – From RB-ERP Cmd Line – DCM1MA – EB-ERP Configuration RB-ERP – Background Processes The configurations came over from the V94 Environment that we moved into out W94 environment.

236 Setup of Services – From RB-ERP Cmd Line – DCM1MA – EB-ERP Configuration File Location RB-ERP – Background Processes

237 Setup of Services – From RB-ERP Cmd Line – DCM1MA – EB-ERP Configuration RB-ERP – Background Processes Be VERY CAREFUL about checking configurations that were inherited from other environments!

238 Setup of Services – From RB-ERP Cmd Line – DCM1MA – EB-ERP Configuration RB-ERP – Background Processes The Host ID is from the old V94 environment !

239 Setup of Services – From RB-ERP Cmd Line – DCM1MA – EB-ERP Configuration RB-ERP – Background Processes MUST be changed to the correct W94 HOST ID !

240 Setup of Services – From RB-ERP Cmd Line – DCM1MA – EB-ERP Configuration RB-ERP – Background Processes If no configurations were in the environment, a prompt for new configurations would appeared.

241 Setup of Services – From RB-ERP Cmd Line – DCM1MA – EB-ERP Configuration RB-ERP – Background Processes Fill in the fields as appropriate for the new configuration.

242 Setup of Services – From RB-ERP Cmd Line – DCM1MA – EB-ERP Configuration RB-ERP – Background Processes On saving the configuration, the existing configurations now appear. To add new, hit ‘INSERT”, to remove hit ‘DELETE’.

243 Setup of Services – From RB-ERP Cmd Line – DCM1MA – EB-ERP Startup RB-ERP – Background Processes RB-ERP Main Menu Other Special Functions Application Mfg Dist Special Functions Data Collection DC Workstation Startup & Shutd

244 Setup of Services – From RB-ERP Cmd Line – DCM1MA – EB-ERP Startup RB-ERP – Background Processes Options to check current status or START or STOP processes.

245 Setup of Services – From RB-ERP Cmd Line – DCM1MA – EB-ERP Startup RB-ERP – Background Processes Show current status

246 Setup of Services – From RB-ERP Cmd Line – DCM1MA – EB-ERP Startup RB-ERP – Background Processes Select process to start by Double-Click on the process. Start DCM1MA process

247 Setup of Services – From RB-ERP Cmd Line – DCM1MA – EB-ERP Startup RB-ERP – Background Processes Select process to start by Double-Click on the process. Once selected an asterisk will appear on the process. Start DCM1MA process

248 Setup of Services – From RB-ERP Cmd Line – DCM1MA – EB-ERP Startup RB-ERP – Background Processes Select process to start by Double-Click on the process. Once selected an asterisk will appear on the process. Start by hitting F1 Start DCM1MA process

249 Setup of Services – From RB-ERP Cmd Line – DCM1MA – EB-ERP Startup RB-ERP – Background Processes Confirmation messages will appear. Start DCM1MA process

250 Setup of Services – From RB-ERP Cmd Line – DCM1MA – EB-ERP Startup RB-ERP – Background Processes Confirmation messages will appear. Option to start now or at a later time will appear. Start DCM1MA process

251 Setup of Services – From RB-ERP Cmd Line – DCM1MA – EB-ERP Startup RB-ERP – Background Processes Two DOS windows will appear as the bat files are processed. Start DCM1MA process

252 Setup of Services – From RB-ERP Cmd Line – DCM1MA – EB-ERP Startup RB-ERP – Background Processes Show current status

253 Setup of Services – From RB-ERP Cmd Line – DCM1MA – EB-ERP Shutdown RB-ERP – Background Processes RB-ERP Main Menu Other Special Functions Application Mfg Dist Special Functions Data Collection DC Workstation Startup & Shutd

254 Setup of Services – From RB-ERP Cmd Line – DCM1MA – EB-ERP Shutdown RB-ERP – Background Processes Options to check current status or START or STOP processes.

255 Setup of Services – From RB-ERP Cmd Line – DCM1MA – EB-ERP Shutdown RB-ERP – Background Processes Select process to stop by Double-Click on the process. Stop DCM1MA process

256 Setup of Services – From RB-ERP Cmd Line – DCM1MA – EB-ERP Shutdown RB-ERP – Background Processes Select process to stop by Double-Click on the process. Once selected an asterisk will appear on the process. Stop by hitting F1 Stop DCM1MA process

257 Setup of Services – From RB-ERP Cmd Line – DCM1MA – EB-ERP Shutdown RB-ERP – Background Processes Confirmation messages will appear. Stop DCM1MA process

258 Setup of Services – From RB-ERP Cmd Line – DCM1MA – EB-ERP Shutdown RB-ERP – Background Processes Confirmation messages will appear. Option to stop now or at a later time will appear. Stop DCM1MA process

259 Setup of Services – From RB-ERP Cmd Line – DC Services – Log Files RB-ERP – Background Processes

260 RB-ERP DCM1MA QUESTIONS ?


Download ppt "DBMaintPlus August 23, 2012. DBMaintPlus SQL Database Maintenance Utility for RB-ERP Version V9.3 and above Disclaimer The DBMaintPlus Utility is designed."

Similar presentations


Ads by Google