This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Is it safe to truncate OO Huge database tables ?

Hi, I noticed that OO has a very huge table OO_STEP_LOG_BINDINGS as follows and  want to know what does this tables contain and if it is safe to truncate it ?

 

  • 0

    Run the purge flow if you need to remove data from this tablespace - its used in conjunction with a few other tables. Removing data directly from this table without syncing across the rest of the relationship map will cause data lookup issues for reporting. 1M records really isnt that large for this table -- is there an issue occurring or just housekeeping? 

  • 0 in reply to 

    Thanks a lot for your reply.

    I wanted to empty this table because it takes more than 80GB and in our dev plateform we do not have a large disk space (~~ 100 GB).

    NB: For the number of records, the screenshot previously attached is from our dev server, the prod one has more than 80 M records.

    Regards;

  • 0

    Hello Adel,

    How did you get the OO DB tables  size report (attached in screenshot). I wish to have the same one for our env.

    Please do let me know.

    Regards,

  • 0 in reply to 

    Hi ,

    I am using SQL Server.

    You choose your database -> right click -> Reports -> Standard Reports -> Disk usage by table 

    Regards;

  • 0 in reply to 

    Thanks Adel,

    We have an oracle database. May be i should see how can i fetch reports from oracle ..

  • Suggested Answer

    0 in reply to 

    Hi Adel,

    What JarodMB said is correct the best way to delete data from the database is via the purge procedures. Now in case of emergency in environments where data retention is not important (dev / test evnironments) truncating tables is faster and cheaper (from the I/O perspective).

    The step log bindings table contains the input, output and transition data for all steps of executed flows. This data is only persisted after a step is completely executed. If data is removed from this table then you might have issues seeing step details in the OO Central UI drilldown. Judging from the usage in the screenshot this looks to be a 10.20 range OO install which is really old at this point. While procedures do exist for MSSQL and 10.20 range, i think it would be safe to truncate the bindings table for a quick fix.

    Hope this helps,

    Vlad

  • 0 in reply to 

    For Oracle use (this includes LOB data also):

    SELECT segment_name AS "Object Name", segment_type AS "Object Type", round(bytes/1024/1024,2) AS "Object Size (Mb)"
    FROM USER_SEGMENTS
    ORDER BY "Object Size (Mb)" DESC;