Version control of Oracle Stored Objects.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Lig

    Version control of Oracle Stored Objects.

    We have an implementation of Oracle 9i database. We have a team of 20
    developers working on a project. We use PL/SQL DEVELOPER and Visual
    Source Safe to cotrol the source.

    The problem we have at the moment is one of version control.For the
    moment, 2 developers can edit and compile a package.Because the package
    is compiled on the DB Server,It is possible that a source being edited
    by a developer could be overwritten by another.There is nothing in
    PL/SQL that forces a user to check out and edit. We have Visual Source
    safe fully integrated into PL/SQL Developer.But that's only as much as
    it gets.VSS is not ORacle aware.


    Are there any products out there that can be used for Version
    controlling Oracle Stored Objects that are Oracle Aware?

    Is there a better way of doing this?

    TIA
    Lig

    Pl reply to
    lignite AT iol DOT ie
  • Frank van Bortel

    #2
    Re: Version control of Oracle Stored Objects.

    Lig wrote:
    We have an implementation of Oracle 9i database. We have a team of 20
    developers working on a project. We use PL/SQL DEVELOPER and Visual
    Source Safe to cotrol the source.
    >
    The problem we have at the moment is one of version control.For the
    moment, 2 developers can edit and compile a package.Because the package
    is compiled on the DB Server,It is possible that a source being edited
    by a developer could be overwritten by another.There is nothing in
    PL/SQL that forces a user to check out and edit. We have Visual Source
    safe fully integrated into PL/SQL Developer.But that's only as much as
    it gets.VSS is not ORacle aware.
    >
    >
    Are there any products out there that can be used for Version
    controlling Oracle Stored Objects that are Oracle Aware?
    >
    Is there a better way of doing this?
    >
    TIA
    Lig
    >
    Pl reply to
    lignite AT iol DOT ie
    install the CVS interface in PL/SQL Developer:


    --
    Regards,
    Frank van Bortel

    Comment

    • Frank van Bortel

      #3
      Re: Version control of Oracle Stored Objects.

      Frank van Bortel wrote:
      Lig wrote:
      >
      >We have an implementation of Oracle 9i database. We have a team of 20
      >developers working on a project. We use PL/SQL DEVELOPER and Visual
      >Source Safe to cotrol the source.
      >>
      >The problem we have at the moment is one of version control.For the
      >moment, 2 developers can edit and compile a package.Because the
      >package is compiled on the DB Server,It is possible that a source
      >being edited by a developer could be overwritten by another.There is
      >nothing in PL/SQL that forces a user to check out and edit. We have
      >Visual Source safe fully integrated into PL/SQL Developer.But that's
      >only as much as it gets.VSS is not ORacle aware.
      >>
      >>
      >Are there any products out there that can be used for Version
      >controlling Oracle Stored Objects that are Oracle Aware?
      >>
      >Is there a better way of doing this?
      >>
      >TIA
      >Lig
      >>
      >Pl reply to
      >lignite AT iol DOT ie
      >
      >
      install the CVS interface in PL/SQL Developer:

      >
      Just realize you (probably) have that (fully integrated...)

      There will always be ways to go around it - you can still
      use SQL*Plus, or whatever to make changes.

      The only way is to let your developers know you are serious
      about source safe. Threaten to fire them if not used, surprise
      them with a clean database on a Monday morning, whatever it takes.
      --
      Regards,
      Frank van Bortel

      Comment

      • Andy

        #4
        Re: Version control of Oracle Stored Objects.

        Frank van Bortel <fvanbortel@net scape.netwrote in message news:<d0a0jo$tq j$1@news5.zwoll 1.ov.home.nl>.. .
        Lig wrote:
        We have an implementation of Oracle 9i database. We have a team of 20
        developers working on a project. We use PL/SQL DEVELOPER and Visual
        Source Safe to cotrol the source.

        The problem we have at the moment is one of version control.For the
        moment, 2 developers can edit and compile a package.Because the package
        is compiled on the DB Server,It is possible that a source being edited
        by a developer could be overwritten by another.There is nothing in
        PL/SQL that forces a user to check out and edit. We have Visual Source
        safe fully integrated into PL/SQL Developer.But that's only as much as
        it gets.VSS is not ORacle aware.


        Are there any products out there that can be used for Version
        controlling Oracle Stored Objects that are Oracle Aware?

        Is there a better way of doing this?

        TIA
        Lig

        Pl reply to
        lignite AT iol DOT ie
        >
        install the CVS interface in PL/SQL Developer:
        http://www.allroundautomations.nl/plsvcs.html
        How can 2 developers edit a package when VSS is (supposedly) being
        used? This sounds like developers not using source control properly
        and editing PL/SQL on the fly. Prehaps you should get your DBA to
        revoke the CREATE PACKAGE/FUNCTION/PROCEDURE privilige from the
        developers and only let your DBA perform releases to the appropriate
        environments

        Andy

        Comment

        • Lig

          #5
          Re: Version control of Oracle Stored Objects.

          Andy :

          - VSS Integration only has copy locally; The compilation of the code
          takes place on the Server.

          - Developers can check in and check out code.But f they dont do it,who
          am I to blame for incorrect code creeping in?

          Instead , if I can force them to use VersionControl, then I can audit
          changes.

          Imagine a situation where I checkout a package and start to edit it. In
          the process, if the package on the server is changed, I try to get the
          version again from the server, will this version not be newer to the one
          I have?

          Correct me if I am wrong.Am I missing something here ?

          Cheers
          Lig

          Comment

          • fitzjarrell@cox.net

            #6
            Re: Version control of Oracle Stored Objects.


            Lig wrote:
            Andy :
            >
            - VSS Integration only has copy locally; The compilation of the code
            takes place on the Server.
            >
            - Developers can check in and check out code.But f they dont do
            it,who
            am I to blame for incorrect code creeping in?
            >
            Instead , if I can force them to use VersionControl, then I can audit
            changes.
            >
            Imagine a situation where I checkout a package and start to edit it.
            In
            the process, if the package on the server is changed, I try to get
            the
            version again from the server, will this version not be newer to the
            one
            I have?
            >
            Correct me if I am wrong.Am I missing something here ?
            >
            Cheers
            Lig
            It has been my understanding that Visual Source Safe should disallow
            more than one copy of a file to be checked out, local copy or not.
            That being the case how on earth do you end up with two or more
            editable copies of a file?

            I'd investigate why this occurs and put a stop to it at once, by
            ensuring all developers use VSS as it's intended. Several good
            suggestions to ensure compliance have been given you; use any or all of
            them to help fix this mess.


            David Fitzjarrell

            Comment

            • Frank van Bortel

              #7
              Re: Version control of Oracle Stored Objects.

              Andy wrote:
              Frank van Bortel <fvanbortel@net scape.netwrote in message news:<d0a0jo$tq j$1@news5.zwoll 1.ov.home.nl>.. .
              >
              >>Lig wrote:
              >>
              >>>We have an implementation of Oracle 9i database. We have a team of 20
              >>>developers working on a project. We use PL/SQL DEVELOPER and Visual
              >>>Source Safe to cotrol the source.
              >>>
              >>>The problem we have at the moment is one of version control.For the
              >>>moment, 2 developers can edit and compile a package.Because the package
              >>>is compiled on the DB Server,It is possible that a source being edited
              >>>by a developer could be overwritten by another.There is nothing in
              >>>PL/SQL that forces a user to check out and edit. We have Visual Source
              >>>safe fully integrated into PL/SQL Developer.But that's only as much as
              >>>it gets.VSS is not ORacle aware.
              >>>
              >>>
              >>>Are there any products out there that can be used for Version
              >>>controllin g Oracle Stored Objects that are Oracle Aware?
              >>>
              >>>Is there a better way of doing this?
              >>>
              >>>TIA
              >>>Lig
              >>>
              >>>Pl reply to
              >>>lignite AT iol DOT ie
              >>
              >>install the CVS interface in PL/SQL Developer:
              >>http://www.allroundautomations.nl/plsvcs.html
              >
              >
              How can 2 developers edit a package when VSS is (supposedly) being
              used? This sounds like developers not using source control properly
              and editing PL/SQL on the fly. Prehaps you should get your DBA to
              revoke the CREATE PACKAGE/FUNCTION/PROCEDURE privilige from the
              developers and only let your DBA perform releases to the appropriate
              environments
              >
              Andy
              Well, when it is *not* used...
              The dilemma is how to enforce that it *is* used; there
              are numerous options to change the code, without using VSS,
              thus compromising the project.
              But surprising the developers with an empty database
              does help, occasionally :)
              "Hey, just restore from VSS <g>".
              --
              Regards,
              Frank van Bortel

              Comment

              • IANAL_VISTA

                #8
                Re: Version control of Oracle Stored Objects.

                DA Morgan <damorgan@x.was hington.eduwrot e in
                news:1110065133 .857196@yasure:
                The real BDFH builds a DDL trigger that raises an exception with all DDL
                on the database and another that audits it. He/she then disables the
                first trigger whenever making changes leaving the second one to create
                the audit trail.
                Alternatively, just nightly extract the current production code from the
                repository and install it into the database. Any and all ad hoc, on the
                fly or unapproved changes just get summarily overwritten.

                Comment

                • DA Morgan

                  #9
                  Re: Version control of Oracle Stored Objects.

                  IANAL_VISTA wrote:
                  DA Morgan <damorgan@x.was hington.eduwrot e in
                  news:1110065133 .857196@yasure:
                  >
                  >>The real BDFH builds a DDL trigger that raises an exception with all DDL
                  >>on the database and another that audits it. He/she then disables the
                  >>first trigger whenever making changes leaving the second one to create
                  >>the audit trail.
                  >
                  >
                  Alternatively, just nightly extract the current production code from the
                  repository and install it into the database. Any and all ad hoc, on the
                  fly or unapproved changes just get summarily overwritten.
                  And you do this with users connected? ;-)

                  --
                  Daniel A. Morgan
                  University of Washington
                  damorgan@x.wash ington.edu
                  (replace 'x' with 'u' to respond)

                  Comment

                  • Ed Prochak

                    #10
                    Re: Version control of Oracle Stored Objects.



                    Who change the package on the server? If it wasn't you then someone is
                    not using source control.

                    You are missing a development process. Well, no actually, you have an
                    ADHOC development process. Having VSS or CVS, doesn't do you a bit of
                    good if developers don't use it. As others point out, until ALL your
                    developers agree to never edit code unless they have it checked out,
                    then you have merely the illusion of code control.


                    You have a choice: continue as a team of cowboy coders,
                    or change to work as a team of software engineers.

                    Good luck. You are going to need it.
                    Ed

                    Comment

                    • Galen Boyer

                      #11
                      Re: Version control of Oracle Stored Objects.

                      On Fri, 04 Mar 2005, lignite@iol.ie wrote:
                      We have an implementation of Oracle 9i database. We have a team
                      of 20 developers working on a project. We use PL/SQL DEVELOPER
                      and Visual Source Safe to cotrol the source.
                      >
                      The problem we have at the moment is one of version control.For
                      the moment, 2 developers can edit and compile a package.Because
                      the package is compiled on the DB Server,It is possible that a
                      source being edited by a developer could be overwritten by
                      another.There is nothing in PL/SQL that forces a user to check
                      out and edit. We have Visual Source safe fully integrated into
                      PL/SQL Developer.But that's only as much as it gets.VSS is not
                      ORacle aware.
                      >
                      >
                      Are there any products out there that can be used for Version
                      controlling Oracle Stored Objects that are Oracle Aware?
                      >
                      Is there a better way of doing this?
                      Yes, give each developer his own schema and have him deploy the code
                      from source control to that schema. When he is done fixing his code, he
                      checks in. Then, only deploy code to QA, Staging, IDE's and Production
                      from Source Control.

                      --
                      Galen deForest Boyer

                      Comment

                      • glimmertwinfan

                        #12
                        Re: Version control of Oracle Stored Objects.

                        Yes, give each developer his own schema and have him deploy the code
                        from source control to that schema. When he is done fixing his code,
                        he
                        checks in. Then, only deploy code to QA, Staging, IDE's and
                        Production
                        from Source Control.
                        >
                        --
                        Galen deForest Boyer
                        That's exactly how we do it and it works great.

                        Comment

                        Working...