Tools to work with stored procedures in Oracle, in a team?

后端 未结 9 764
梦毁少年i
梦毁少年i 2020-12-31 09:18

What tools do you use to develop Oracle stored procedures, in a team :

  • To automatically \"lock\" the current procedure you are working with, so nobody else in
9条回答
  •  不思量自难忘°
    2020-12-31 09:36

    Treat PL/SQL as usual code : store it in files, and manage these files with your revision control tool and your internal procedures.

    If you do not already have a revision control tool, then write your requirements down and pick one up. A lot of people it seems use Subversion, associated to TortoiseSVN as a client on Windows (I do).

    The thing is : use your tool as is recommended, and adapt your procedures accordingly. For instance, Subversion uses a copy-modify-merge model by default, as opposed to a lock-modify-unlock model which you seem to favor.

    In my case, I like to use TortoiseSVN, as stated above. And as is usual with this tool :

    • I never lock any files. This is very manageable with small teams, and it requires ahead planning on larger ones, which is always a good thing IMHO.
    • I send my changes manually back to the server, because ... I don't think there's another way with Subversion (plus, internal procedures forbid a commit without a message, which is also a good thing IMHO).

    And whatever your choice, I recommend reading this post (and related ones) about database versioning.

提交回复
热议问题