sql - Is procedures should be removed after use? -
i have many procedures in database execute every night (with cron
) batch runs sql*plus , run them.
so question is, best practice between :
- create, execute , drop procedures batch
- let procedures in database, , execute them
the best practice leave stored procedures in database , execute them. allows server cache execution plan, more importantly allows run cron job limited user privileges requiring execute permissions. first option requires permissions drop , edit procedures , not idea, if production server. bug in code result in other procedures unrelated cron job being dropped.
Comments
Post a Comment