webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Archiving and Purging

webMethods Community Member

webMethods Community MemberTue November 23, 2010 05:05 PM

webMethods Community Member

webMethods Community MemberThu December 02, 2010 07:06 PM

  • 1.  Archiving and Purging

    Posted Tue November 23, 2010 04:37 PM

    Hi,

    In WebMethods71_TN database
    Tables:
    dbo.ARCHIVE_ArtivityLog
    dbo.ARCHIVE_BizDOC
    .
    .
    .
    .
    .
    .
    .
    dbo.Archive_WorkTable…
    Ineed to develop some scripts so that based on it,
    It should archive these tables day to day…and delete the old stuff…

    Can u suggest me how to work on this…
    Should i need to create new databse,tables…and write the scripts…so that i can schedule that daily…and it gonna archive…and i need to delete the data from orginal archive tables…

    Its urgent plz gimme some suggestions…and can anybody help for scripts…sql server 2005


    #B2B-Integration
    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: Archiving and Purging

    Posted Tue November 23, 2010 04:39 PM

    Folks, I should not use TN builtin services to archive and purge…I need to do it on databse level…


    #webMethods
    #Integration-Server-and-ESB
    #B2B-Integration


  • 3.  RE: Archiving and Purging

    Posted Tue November 23, 2010 05:05 PM


  • 4.  RE: Archiving and Purging

    Posted Tue November 23, 2010 06:38 PM

    Hi,

    Currently, i archive is going on using wn.tnarchive, from webMethods,…Inorder to not involve, webMethods in archiving, i need to be done on databse level…


    #Integration-Server-and-ESB
    #B2B-Integration
    #webMethods


  • 5.  RE: Archiving and Purging

    Posted Tue November 23, 2010 07:03 PM

    Is it something your internal decision not to burden the IS job for this activity or something? :slight_smile: On a side note it should run fine though!


    #webMethods
    #B2B-Integration
    #Integration-Server-and-ESB


  • 6.  RE: Archiving and Purging

    Posted Tue November 23, 2010 07:55 PM

    Yes its the decision taken to reduce burden on IS instead of archiving from webMethods, archiving at database level…can anybody come up with suggestions


    #B2B-Integration
    #webMethods
    #Integration-Server-and-ESB


  • 7.  RE: Archiving and Purging

    Posted Wed November 24, 2010 11:01 AM

    The archive & Delete services provided by SAG are also supported by them, so if there is a problem you can call for support.

    Using self developed scripts means you are accessing the internal db structure of a product internal db structure, which is usually not supported, so everything is on your own risk including that your TN stops working.

    I would not recommend such n approach. If you want to do it neverthelesse I would recommend approaching SAG support or professional services for providing the scripts.


    #B2B-Integration
    #Integration-Server-and-ESB
    #webMethods


  • 8.  RE: Archiving and Purging

    Posted Wed November 24, 2010 02:49 PM

    I agree with mwroblinski’s points above.

    However, the DB tables are not complicated. Do an analysis of the tables and determine what you want/need to do.

    I would recommend avoiding doing an archive of the tables (copying the data to another set of tables) since that is largely useless. None of the wM tools will be able to present that data and moving the data back into the live tables can be somewhat troublesome. I usually recommend simply deleting old data and having a relatively short time period for what is considered old–30 to 45 days should be sufficient. The TN DB should not be used for long-term storage.


    #Integration-Server-and-ESB
    #B2B-Integration
    #webMethods


  • 9.  RE: Archiving and Purging

    Posted Wed November 24, 2010 03:01 PM

    I also agree with mwroblinski’s comments!..Most commonly 60 days worth of data would be enough and old data can be archived to get faster query results/performance:

    HTH,
    RMG


    #Integration-Server-and-ESB
    #webMethods
    #B2B-Integration


  • 10.  RE: Archiving and Purging

    Posted Thu December 02, 2010 07:06 PM


  • 11.  RE: Archiving and Purging

    Posted Thu April 28, 2011 07:15 PM

    Hi,

    Is it possible to have TN Table and TN Archive Tables in different shcema? If yes, how will TN Archive process will work in this approach? Please share your thoughts on good/not approachable implementation. We are trying to keep TN DB and TN Archive DB seperate if possible.
    Thanks.


    #webMethods
    #B2B-Integration
    #Integration-Server-and-ESB


  • 12.  RE: Archiving and Purging

    Posted Thu April 28, 2011 08:57 PM

    You can do it using by writing external archive script not with using TN built-in Archive services.Approach your DBA for more help:

    HTH,
    RMG


    #Integration-Server-and-ESB
    #B2B-Integration
    #webMethods


  • 13.  RE: Archiving and Purging

    Posted Thu April 28, 2011 09:09 PM

    Thanks for reply. But can you please tell me if it will be good approach? or is it better to go with in-built services?

    Any thoughts?! :slight_smile:


    #Integration-Server-and-ESB
    #B2B-Integration
    #webMethods


  • 14.  RE: Archiving and Purging

    Posted Thu April 28, 2011 10:18 PM

    Built-in services will work only with same db/schema.The other approach you are looking is take some DBA help:

    HTH,
    RMG


    #B2B-Integration
    #Integration-Server-and-ESB
    #webMethods


  • 15.  RE: Archiving and Purging

    Posted Tue May 03, 2011 06:54 PM

    Thanks for your replies. We have created ARCHIVE tables in same schema now. After that when I am trying to execute archive built-in service, I am getting below error:
    java.sql.SQLException: An attempt was made to access the SQL statement archive.del.allevents.before.this.time, which was not defined in the configuration file

    Am I missing anything? We just ran DB component configurator to create schema.

    Please suggest.


    #Integration-Server-and-ESB
    #B2B-Integration
    #webMethods