Db2

Db2

Where DBAs and data experts come together to stop operating and start innovating. Connect, share, and shape the AI era with us.


#Data


#Data
#Databases
#Operatingsystems
#Db2
#Databasesolutions
 View Only
  • 1.  DB2 LUW - External procedure and Instance Restart

    Posted 08/26/20 03:56 AM
    We are migrating a whole bunch of stored procedures written in C & COBOL to DB2 LUW as External stored procedures. The current practice is, for every change to a procedure, there is a need to restart the DB2 Instance for the change to properly reflect.

    My question is, is there a way to avoid this ?

    Regards
    Vijay

    ------------------------------
    Vijay Shankar
    ------------------------------

    #Db2


  • 2.  RE: DB2 LUW - External procedure and Instance Restart

    Posted 08/27/20 04:18 AM
    Hello Vijay,

    I have never encountered the need for restarting the instance when changing a stored procedure.
    Just perform every step that you performed the first time you created it.
    You can set up a make file to perform these steps.

    What error messages do you get when you do not restart the instance after a procedure change ?

    ------------------------------
    Yves-Antoine Emmanuelli
    ------------------------------



  • 3.  RE: DB2 LUW - External procedure and Instance Restart

    Posted 08/27/20 10:08 AM

    Hi

    Thank you for your response.

    What DB2 does is hold on to a copy of the older load module, even after we move the new one. Results in a -818 timestamp mismatch failure as the executing load and the package are different.

    I figured that this behaviour could be due to the KEEPFENCED=YES  dbm parameter, which lets the db2 fenced mode process to be reused for subsequent calls and eventually holds on to the first loaded module even if it has changed in the disk. This gets released only when the instance is bounced. I updated this to a NO to get my issue fixed. But I guess this is not recommended in high volume production due to the overheads associated with creating a db2fmp for each call.

    Do correct me if my understanding is incorrect

    Regards

    Vijay



    ------------------------------
    Vijay Shankar Arunachalam
    ------------------------------