Copy Business Data from Production to Prototype or any other environment
Database size considerations
Before to update databases is very important to examine the free space available on the Enterprise Server or Data Server where databases reside.
The best practice is to compare the actual size of jde_production and jde_crp.
SQLServer bulk logged option
Before to proceed is strongly recommended to set Bulk logged option on the database jde_crp and set up the option: unrestricted file growth for data and log files.
Number of Rows on critical tables
F0911 Account Ledger
F0011 Batch Control Records
F0101 Address Book Master
F03B11 Customer Ledger
F03B13 Receipts Header File
F03B14 A/R Check Detail File
F4101 Item Master
F4102 Item Branch / Plant
F4111 Item Ledger (Cardex)
F4105 Item Cost
F4106 Item Price
F41112 Item ASOF Files
F4115 Item History
F0411 Accounts Payable Ledger
F0413 Accounts Payable – Matching documents header
F0414 Accounts Payable – Matching documents detail
F4301 Purchase Order Header
F4311 Purchase Order Detail File
F43199 Purchase Order Detail Ledger File
F43121 Receipt Information
F4201 Sales Order Header File
F4211 Sales Order Detail File
F42119 Sales Order Detail Ledger File
F42199 Sales History File
For those tables than exceeds 300,000 records it’s recommended to copy it using SQL commands and exclude it from the R98403 using data selection.
Business Data
In order to copy Business Data from Production to Prototype make your own copy of the R98403 Version XJDE0021 using Batch Versions.
Processing options must be set up right otherwise you can delete the production database.
Database backup should be performed prior to run this process.
This UBE can take several hours up to 48 hours so a weekend run is recommended.
The R98403 must run Local mode.
Data selection:
In order to exclude voluminous tables as explained above, an entry on the data selection of object name (F9860) should be included.
Control Tables
This is the last step to be executed, missing or wrong execution of the R98403 version XJDE0022 will return duplicate keys messages.
§ Make your own copy of the R98403 version XJDE0022 (Refresh Prototype Control Tables From Production). This version will be used to copy control tables from Production to Prototype Control Tables - PROD data source.
§ Edit the processing options for your new version
o For target Environment (option 1), leave blank.
o For target Data Source (option 2), enter Control Tables – CRP.
o For Data Load (option 3), enter 2 – this copies data to the table.
o For source Data Source (option 4), enter Control Tables – PROD.
o For option 6: 1
o For option 7: A Recreate existing tables
o For option 8: 1
o For option 9: Blank
§ Edit the data selection for your version to include the following objects: F9000, F9001, F9002, F9005, F9005D, F9006, F9006D, F9010, F9020, F9021, F9022, F9030, F9050, F91014, F91011, F91012, F91013.
§ Run the version locally. It should copy all central objects tables from Control Tables – PROD to Control Tables – CRP.
§ Verify the results of the report and the creation of the tables. This should copy the following tables to the ESU database: F0002, F00021, F9000, F9001, F9002, F9005, F9005D, F9006, F9006D, F9010, F9020, F9021, F9022, F9030, F9050, F91014, F91011, F91012, F91013, F0004, F0004D, F0005, F0005D, F0082, F00821, F00825, F00826, F0083, F0084.
§ Exit out of Batch Versions application.
Sergio Vargas
Windows 2000 / SQL2000 / B7333 Xe / SP15.1