• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Should DBA know to check theres no DB connections before performing a data update

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    #31
    It depends on what is using the DB.

    Comment


      #32
      Originally posted by minestrone View Post
      It depends on what is using the DB.
      Why?
      Knock first as I might be balancing my chakras.

      Comment


        #33
        Originally posted by suityou01 View Post
        Why?
        Cached data in some instances.

        Comment


          #34
          Sorry OP but I'm approaching 10 years as a DBA/developer, mostly direct for Oracle, and have never once had a scenario where people have had to log out for a 'data update'.

          Occasionally some DDL or huge table level updates are scheduled for outside of business hours, but even then, leaving the occasional session connected should not be the end of the world.

          Sounds like a flaw in the application locking or change processes rather than with the DBA.

          Comment


            #35
            Originally posted by Kanye View Post
            Sorry OP but I'm approaching 10 years as a DBA/developer, mostly direct for Oracle, and have never once had a scenario where people have had to log out for a 'data update'.
            WHS - same here. Never had to get users to log out for a data update.

            Now I have had a few applications where this might have been an issue, so the application / DB schema accomodated this, by being able to pre-load the data gradually, but in an inactive state - and then made active when ready.

            Sounds like the application architecture needs a rethink.

            Comment


              #36
              Originally posted by centurian View Post
              Sounds like the application architecture needs a rethink.
              If you are using ORM which mostly everyone does these days in writing java apps ( I would think .NET has eventually got there as well) and using third level caching which you should be then you have to drop the appication or else what you are updating might be written over by the application cache.

              It is pretty standard tech and a pretty standard way of using it.

              As I said it depends on the use of the DB but it is normal ( necessary )to drop the connections on the architectures I use.
              Last edited by minestrone; 6 January 2013, 17:57.

              Comment


                #37
                Originally posted by minestrone View Post
                If you are using ORM which mostly everyone does these days in writing java apps ( I would think .NET has eventually got there as well) and using third level caching which you should be then you have to drop the appication or else what you are updating might be written over by the application cache.

                It is pretty standard tech and a pretty standard way of using it.

                As I said it depends on the use of the DB but it is normal ( necessary )to drop the connections on the architectures I use.
                Which is why ORM's are more pain then they are worth. The person who retrofitted one at current client co deserves to be shot.
                merely at clientco for the entertainment

                Comment


                  #38
                  ORMs are terribly misunderstood by most people that use them, fantastic at delivering clean code quickly written to do page sized data loading but I keep finding people writing batch jobs with it. Battering the shit: out of the DB for minutes on end to do something a stored proc could do in a second.

                  Comment


                    #39
                    Originally posted by minestrone View Post
                    If you are using ORM which mostly everyone does these days in writing java apps ( I would think .NET has eventually got there as well) and using third level caching which you should be then you have to drop the appication or else what you are updating might be written over by the application cache.

                    It is pretty standard tech and a pretty standard way of using it.

                    As I said it depends on the use of the DB but it is normal ( necessary )to drop the connections on the architectures I use.
                    Your architectures dont use optimistic locking then? Are you not using versioning on your rows? Which you usually should be in scalable multiuser systems.

                    The DBA update would incr the version number. The cache would not be able to overwrite that later. You should handle optimistic locking version error in your app-reload the latest version and maybe try again. This is how I've used ORMs such as Hibernate in the past. It's a standard approach.

                    Bouncing the DB should be an absolute last resort due to needing to refill caches in the middle tier.
                    Last edited by aussielong; 6 January 2013, 23:15.

                    Comment


                      #40
                      Originally posted by aussielong View Post
                      Your architectures dont use optimistic locking then? Are you not using versioning on your rows? Which you usually should be in scalable multiuser systems.

                      The DBA update would incr the version number. The cache would not be able to overwrite that later. You should handle optimistic locking version error in your app-reload the latest version and maybe try again. This is how I've used ORMs such as Hibernate in the past. It's a standard approach.

                      Bouncing the DB should be an absolute last resort due to needing to refill caches in the middle tier.
                      Blooming heck something from aussielong I can 100% agree with
                      merely at clientco for the entertainment

                      Comment

                      Working...
                      X