Pros and cons of using packages in Oracle

前端 未结 4 1907
予麋鹿
予麋鹿 2021-01-29 01:16

I am fairly new to using packages. My team is deciding on whether or not to use packages in our applications. We have 4 applications that are using in-line sql currently. We are

4条回答
  •  甜味超标
    2021-01-29 01:50

    Just adding a side effect of using packages...

    If I have a package with all the stored procedures and functions that is required for my application to run. Consider one small stored procedure suddenly fail due to some issue(eg. some alteration in table structure) or some other minor issue so that only one stored procedure becomes invalid.

    In this case, will the entire package become invalid? Affecting the entire application?

    On the other hand if do not use package and create standalone procs and functions, then only one proc will fail.

提交回复
热议问题