versioning stored procedures/PLSQL?

∥☆過路亽.° 提交于 2019-12-03 12:29:51

问题


Is there an efficient way to version store procedures written in PL/SQL? (I only mention PL/SQL because there may exist a particular tool, any answer directed to versioning of stored procedures is ideal).


回答1:


In my current job , the team is now using the following method to version control the PL/SQL .When compiling the PL/SQL , no matter compile successfully or not , a record will be inserted into the log table . Besides in the mid-night , there is an JAVA agent to be scheduled to run automatically check if the PL/SQL source needed to check into the CVS.

Update

Link to blog now is AMIS TECHNOLOGY BLOG


The following link no longer works

http://technology.amis.nl/blog/846/plsql-source-code-control-inside-the-database-after-compile-trigger-for-automatic-archiving




回答2:


Can you use a 'regular' version control system? All of our deployed/deployable stored procs are controlled just like application code.

It's been a while since I've dealt with PL/SQL, so I don't have anything to offer on the package definitions.

Granted, this isn't in the database, but...




回答3:


We built a tool so that we can manage our PL/SQL code in the Oracle Database. It hooks Git to the Oracle database and helps you manage your PL/SQL code base easily. You can do basic Git tasks such as commiting, resetting, branching, cloning, merging, pulling etc... and Gitora automatically updates the PL/SQL code in the database.

You can download it at www.gitora.com




回答4:


Oracle's free SQL Developer tool has integration with CVS and Subversion for version control of PL/SQL code.



来源:https://stackoverflow.com/questions/2390029/versioning-stored-procedures-plsql

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!