Baan archiving toolset

1,319 views

Published on

A toolset written in Baan Tools to generate scripts to archive databases

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,319
On SlideShare
0
From Embeds
0
Number of Embeds
30
Actions
Shares
0
Downloads
22
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Baan archiving toolset

  1. 1. Baan Archiving Toolset<br />© 2010 by Robelle consulting<br />
  2. 2. What is archiving?<br />The database of an ERP system grows very quickly, and after years of usage this has a negative impact on performances and productivity.<br />Archiving data allows to move old data in a different company or even delete obsolete data.<br />
  3. 3. Why archiving data?<br />The main reasons to do archiving are:<br />Improve system performances<br />Freeing up on-line disk spaces<br />Better data management<br />Delete obsolete data <br />
  4. 4. ON LINE <br />OFF LINE<br />Basic archiving procedure<br />Year 1<br />Storage (tapes, CD, DVD)<br />Production<br />Database<br />Year 2<br />Year 3<br />Usually the data are stored in different companies, and each archiving compay contains an year of data.<br />When the data are not anymore needed to be accesses frequently, can be moved on external storage media like tape or DVD, freeing disk usage space.<br />Year N<br />
  5. 5. The way data are archived<br />Original Company<br />Archiving Company<br />Master (Static) Data<br />(Items, Customers, etc)<br />Only copied, they are needed even in the original company<br />Copy<br />Dynamic Data<br />(Sales Orders, etc)<br />Copied and then deleted from original company<br />Move<br />Obsolete Data<br />Obsolete data are simply deleted from the original company. They aren’t actually in this company.<br />Texts (can be removed after by means of standard session that deletes unused texts)<br />Copied with a new number in the new company and updated in the dinamic data moved there<br />Copy<br />
  6. 6. Why do not use standard archiving procedures?<br />Baan offers a lot of standard archiving procedures, but…<br />Standard procedures cannot threat right custom needs, by example some company must keep sales data even after all the sales process is completed (different concepts of ‘obsolete’ data).<br />Standard procedures cannot archive new customized tables that can even have an impact on the selecting process of archiving standard tables.<br />The criteria for selecting data to archive can be different from the company criteria.<br />
  7. 7. How to solve the problem?<br />There are basically two ways to solve the problem:<br />Customize the archiving session adding the criteria and the customized tables.<br />Company needs to have access to the sources to customize them.<br />Company needs to use development resources to do the job.<br />Using a toolkit to implement the archiving procedures.<br />
  8. 8. Baan Archiving Toolset (BAT)<br />A tool to implement archiving processes (and more).<br />Easy to install and start to use.<br />Auto-generate Baan tool procedure.<br />Quick implementing archiving processes.<br />
  9. 9. BAT: How it works<br />It is possible to define many archiving procedures.<br />Each archiving procedure consists of<br />A main table <br />A tree of linked tables (basically, tables that references the main table or other tables) and the selection criteria<br />A list of referenced tables (the ‘static’ data)<br />A list of parameters used for selecting main data to archive <br />
  10. 10. BAT: Procedure definition<br />Example: Sales Orders archiving procedure<br />
  11. 11. BAT: Procedure steps<br />Once defined the main table, in the level 0 of the procedure steps tree is inserted the main table. It’s possible to add manually the other levels or to generate them automatically pressing the ‘Load Tables’ button. <br />
  12. 12. BAT: Automatically generated procedure steps<br />The derivation tree is generated from the referenced tables structure, starting from the main table.<br />
  13. 13. BAT: Procedure steps<br />Setting the ‘Insert’ and ‘Delete’ flags it is possible to implement the MOVE, COPY or simply DELETE of the records selected.<br />In the field ‘Change company’ it is possible to set which field is used to store the company number (for multicompany use, see the crossreference company table).<br />
  14. 14. BAT: Procedure Steps<br />In the text (the ‘condition’ flag states if there is) there are the ‘where’ condition to select the record. It is always possible to add or change the conditions.<br />
  15. 15. BAT: The static tables<br />This session is used to store the ‘static’ tables. The ‘Load Table’ button loads all table referenced in the procedure. Those tables will be only ‘refreshed’ in the archiving company and not deleted from the original company. Is is possible to add or remove any. <br />
  16. 16. BAT: Main table selection criteria<br />In this session, it is possible to define some parameters to select the data in the main table, by example: <br />
  17. 17. BAT: Main table selection criteria<br />These parameters must be used defining the selection criteria of the procedure step of level 0 (the main table)<br />
  18. 18. BAT: archiving script run<br />Now, the process is completed. Running the procedure, the program generates a script, compile it an runs it to achieve the customized archiving procedure. <br />Basically, the user has to define only the selection criteria for the main table, all the other duties are done automatically, saving time and efforts. No development needed.<br />

×