Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Some Oracle praise?

Some Oracle praise?

Scheduled Pinned Locked Moved The Lounge
csharpdatabasesql-serveroraclecom
74 Posts 21 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Jorgen Andersson

    Sander Rossel wrote:

    I never got a timeout in Oracle and plenty in SQL Server.

    Probably a setting though.

    Sander Rossel wrote:

    his idea was actually that the entire view was selected (and the view didn't have a top 10) and that the top 10 was applied after that)

    He might be right you know, check the plan. That's also why you should avoid views with joins as the plague! I never use views for anything but restricting access or prefiltering tables.

    Wrong is evil and must be defeated. - Jeff Ello

    Sander RosselS Offline
    Sander RosselS Offline
    Sander Rossel
    wrote on last edited by
    #57

    Jörgen Andersson wrote:

    He might be right you know, check the plan.

    HE MIGHT be right that an SP would be faster, but not because the TOP 10 is applied after selecting everything from a view :rolleyes: I did check the plan and it was really pretty hopeless. Basically the view was this: SELECT SomeFields FROM BigTable WHERE ... UNION SELECT SomeOtherFields FROM BigTable WHERE ... Now to get that to work we probably DO need an SP because to get the top 10 the selects on both sides of the union needed to be completely evaluated, then sorted, and then top 10'd. I wouldn't really know how to optimize that in a view. It's probably faster to take both top 10's, union and sort those and take another top 10 :)

    Read my (free) ebook Object-Oriented Programming in C# Succinctly. Visit my blog at Sander's bits - Writing the code you need. Or read my articles here on CodeProject.

    Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

    Regards, Sander

    J 1 Reply Last reply
    0
    • Sander RosselS Sander Rossel

      Jörgen Andersson wrote:

      He might be right you know, check the plan.

      HE MIGHT be right that an SP would be faster, but not because the TOP 10 is applied after selecting everything from a view :rolleyes: I did check the plan and it was really pretty hopeless. Basically the view was this: SELECT SomeFields FROM BigTable WHERE ... UNION SELECT SomeOtherFields FROM BigTable WHERE ... Now to get that to work we probably DO need an SP because to get the top 10 the selects on both sides of the union needed to be completely evaluated, then sorted, and then top 10'd. I wouldn't really know how to optimize that in a view. It's probably faster to take both top 10's, union and sort those and take another top 10 :)

      Read my (free) ebook Object-Oriented Programming in C# Succinctly. Visit my blog at Sander's bits - Writing the code you need. Or read my articles here on CodeProject.

      Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

      Regards, Sander

      J Offline
      J Offline
      Jorgen Andersson
      wrote on last edited by
      #58

      Sander Rossel wrote:

      , but not because the TOP 10 is applied after selecting everything from a view

      Sander Rossel wrote:

      because to get the top 10 the selects on both sides of the union needed to be completely evaluated, then sorted, and then top 10'd.

      That's a bit contradicting you know. :)

      Sander Rossel wrote:

      It's probably faster to take both top 10's, union and sort those and take another top 10

      That's it. And that's exactly why I avoid views. You're forgetting what's happening underneath.

      Wrong is evil and must be defeated. - Jeff Ello

      Sander RosselS 1 Reply Last reply
      0
      • Sander RosselS Sander Rossel

        Do people here actually like the Oracle database? Especially when compared to SQL Server. It seems everything I did so easily in SQL Server seems to be difficult or even impossible in Oracle. So far I like the for loops and the some_table.some_column%type type declarations. I'm not looking for Oracle hate or a religious war. I really just want to know what's so great about Oracle so I can enjoy it too (so far it's been mostly frustration).

        Read my (free) ebook Object-Oriented Programming in C# Succinctly. Visit my blog at Sander's bits - Writing the code you need. Or read my articles here on CodeProject.

        Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

        Regards, Sander

        M Offline
        M Offline
        Mycroft Holmes
        wrote on last edited by
        #59

        I do see a number of benefits to Oracle. It is really good at crunching really huge volumes. It commands extraordinary rates for consultants It takes a DBA to maintain it I think it requires a larger hardware footprint. It is an absolute fucking pain in the arse to develop against.

        Never underestimate the power of human stupidity RAH

        Sander RosselS 1 Reply Last reply
        0
        • Sander RosselS Sander Rossel

          Do people here actually like the Oracle database? Especially when compared to SQL Server. It seems everything I did so easily in SQL Server seems to be difficult or even impossible in Oracle. So far I like the for loops and the some_table.some_column%type type declarations. I'm not looking for Oracle hate or a religious war. I really just want to know what's so great about Oracle so I can enjoy it too (so far it's been mostly frustration).

          Read my (free) ebook Object-Oriented Programming in C# Succinctly. Visit my blog at Sander's bits - Writing the code you need. Or read my articles here on CodeProject.

          Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

          Regards, Sander

          D Offline
          D Offline
          dazfuller
          wrote on last edited by
          #60

          I've worked on a project which used both Oracle and SQL Server, the latter was easy and the former lost me whole weekends trying to get the right DB/Driver combinations. Objectively both have their strong points. Oracle is a very powerful database system whilst SQL Server is more flexible, easier and so _much_ cheaper. If I was to start a new project tomorrow and had to make the decision I'd choose SQL Server, but I'd go to another level of ease and just use Azure SQL because, you know, geo-replication in a few clicks, huge resiliency and easy scale.

          Eagles may soar, but weasels don't get sucked into jet engines

          Sander RosselS 1 Reply Last reply
          0
          • D dazfuller

            I've worked on a project which used both Oracle and SQL Server, the latter was easy and the former lost me whole weekends trying to get the right DB/Driver combinations. Objectively both have their strong points. Oracle is a very powerful database system whilst SQL Server is more flexible, easier and so _much_ cheaper. If I was to start a new project tomorrow and had to make the decision I'd choose SQL Server, but I'd go to another level of ease and just use Azure SQL because, you know, geo-replication in a few clicks, huge resiliency and easy scale.

            Eagles may soar, but weasels don't get sucked into jet engines

            Sander RosselS Offline
            Sander RosselS Offline
            Sander Rossel
            wrote on last edited by
            #61

            dazfuller wrote:

            and the former lost me whole weekends trying to get the right DB/Driver combinations.

            I had some 32/64 bits problem. Basically, because I installed a 64 bits client another 32 bits client refused to work :wtf:

            dazfuller wrote:

            I'd go to another level of ease and just use Azure SQL

            Oracle in the cloud? Now you have two problems ;p

            Read my (free) ebook Object-Oriented Programming in C# Succinctly. Visit my blog at Sander's bits - Writing the code you need. Or read my articles here on CodeProject.

            Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

            Regards, Sander

            D 1 Reply Last reply
            0
            • M Mycroft Holmes

              I do see a number of benefits to Oracle. It is really good at crunching really huge volumes. It commands extraordinary rates for consultants It takes a DBA to maintain it I think it requires a larger hardware footprint. It is an absolute fucking pain in the arse to develop against.

              Never underestimate the power of human stupidity RAH

              Sander RosselS Offline
              Sander RosselS Offline
              Sander Rossel
              wrote on last edited by
              #62

              Mycroft Holmes wrote:

              It is really good at crunching really huge volumes.

              And crunching your bank account.

              Mycroft Holmes wrote:

              It commands extraordinary rates for consultants

              From your bank account.

              Mycroft Holmes wrote:

              It takes a DBA to maintain it

              Who also won't stop to pillage your bank account.

              Mycroft Holmes wrote:

              I think it requires a larger hardware footprint.

              I'm broke and can't pay for better hardware :laugh:

              Read my (free) ebook Object-Oriented Programming in C# Succinctly. Visit my blog at Sander's bits - Writing the code you need. Or read my articles here on CodeProject.

              Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

              Regards, Sander

              1 Reply Last reply
              0
              • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                It is maybe the order I learned things, but I do not find Oracle that difficult (my first was DB2 on mainframe), but it seems to be less advanced than MSSQL these days, so can't see any reason to bother with in the first place (it even seems to me that most free RDBMS offer more than Oracle for some problems)... So. No good words for Oracle...

                Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                Sander RosselS Offline
                Sander RosselS Offline
                Sander Rossel
                wrote on last edited by
                #63

                Kornfeld Eliyahu Peter wrote:

                So. No good words for Oracle...

                It's pretty hard to get some praise for Oracle it seems... :sigh:

                Read my (free) ebook Object-Oriented Programming in C# Succinctly. Visit my blog at Sander's bits - Writing the code you need. Or read my articles here on CodeProject.

                Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

                Regards, Sander

                1 Reply Last reply
                0
                • OriginalGriffO OriginalGriff

                  Sander Rossel wrote:

                  I really just want to know what's so great about Oracle

                  Well, it's got a cooler name...

                  Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                  S Offline
                  S Offline
                  sir_download_alot
                  wrote on last edited by
                  #64

                  The price is higher?

                  1 Reply Last reply
                  0
                  • J Jorgen Andersson

                    Sander Rossel wrote:

                    , but not because the TOP 10 is applied after selecting everything from a view

                    Sander Rossel wrote:

                    because to get the top 10 the selects on both sides of the union needed to be completely evaluated, then sorted, and then top 10'd.

                    That's a bit contradicting you know. :)

                    Sander Rossel wrote:

                    It's probably faster to take both top 10's, union and sort those and take another top 10

                    That's it. And that's exactly why I avoid views. You're forgetting what's happening underneath.

                    Wrong is evil and must be defeated. - Jeff Ello

                    Sander RosselS Offline
                    Sander RosselS Offline
                    Sander Rossel
                    wrote on last edited by
                    #65

                    Jörgen Andersson wrote:

                    That's a bit contradicting you know. :)

                    You can't say "a TOP X is applied after selecting everything from a view" for views in general. It's true for this particular view, but you only know that after looking at the view. Besides, the WHERE clause was still applied even before "selecting everything" :)

                    Read my (free) ebook Object-Oriented Programming in C# Succinctly. Visit my blog at Sander's bits - Writing the code you need. Or read my articles here on CodeProject.

                    Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

                    Regards, Sander

                    J 1 Reply Last reply
                    0
                    • Sander RosselS Sander Rossel

                      dazfuller wrote:

                      and the former lost me whole weekends trying to get the right DB/Driver combinations.

                      I had some 32/64 bits problem. Basically, because I installed a 64 bits client another 32 bits client refused to work :wtf:

                      dazfuller wrote:

                      I'd go to another level of ease and just use Azure SQL

                      Oracle in the cloud? Now you have two problems ;p

                      Read my (free) ebook Object-Oriented Programming in C# Succinctly. Visit my blog at Sander's bits - Writing the code you need. Or read my articles here on CodeProject.

                      Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

                      Regards, Sander

                      D Offline
                      D Offline
                      dazfuller
                      wrote on last edited by
                      #66

                      Oracle in the cloud, who would be that mad! I mean SQL Server in the cloud, Azure SQL

                      Eagles may soar, but weasels don't get sucked into jet engines

                      1 Reply Last reply
                      0
                      • Sander RosselS Sander Rossel

                        Jörgen Andersson wrote:

                        That's a bit contradicting you know. :)

                        You can't say "a TOP X is applied after selecting everything from a view" for views in general. It's true for this particular view, but you only know that after looking at the view. Besides, the WHERE clause was still applied even before "selecting everything" :)

                        Read my (free) ebook Object-Oriented Programming in C# Succinctly. Visit my blog at Sander's bits - Writing the code you need. Or read my articles here on CodeProject.

                        Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

                        Regards, Sander

                        J Offline
                        J Offline
                        Jorgen Andersson
                        wrote on last edited by
                        #67

                        It doesn't have anything to do with the view, it's because the TOP is the last thing to happen in the logical order of execution.

                        Wrong is evil and must be defeated. - Jeff Ello

                        1 Reply Last reply
                        0
                        • Sander RosselS Sander Rossel

                          Do people here actually like the Oracle database? Especially when compared to SQL Server. It seems everything I did so easily in SQL Server seems to be difficult or even impossible in Oracle. So far I like the for loops and the some_table.some_column%type type declarations. I'm not looking for Oracle hate or a religious war. I really just want to know what's so great about Oracle so I can enjoy it too (so far it's been mostly frustration).

                          Read my (free) ebook Object-Oriented Programming in C# Succinctly. Visit my blog at Sander's bits - Writing the code you need. Or read my articles here on CodeProject.

                          Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

                          Regards, Sander

                          L Offline
                          L Offline
                          LaunchpadBS
                          wrote on last edited by
                          #68

                          Take the time to learn Oracle properly and you'll be amazed by just how versatile it is. I've been going back and fourth between Oracle and SQL Server DBs (as well as the new "free" spin-offs) for several years now in a number of different environments, sure each have their merits but if I had to pick one it would be Oracle every day of the week. Now I'm speaking purely from a DB development standpoint, Oracle is much faster, easily scalable and has far more practical, and TBH powerful, functions and program-ability features than any other DB I've come across so far. Yes I'm talking RDBMS. It's performance tuning capabilities are phenomenal. But again I stress, you need to take the time to learn it properly, those people who are "SQL experts" will always complain about how Oracle is so unnecessarily complex blah blah blah, it's because it was never designed for someone with no development experience to write basic reports on.

                          1 Reply Last reply
                          0
                          • Sander RosselS Sander Rossel

                            Do people here actually like the Oracle database? Especially when compared to SQL Server. It seems everything I did so easily in SQL Server seems to be difficult or even impossible in Oracle. So far I like the for loops and the some_table.some_column%type type declarations. I'm not looking for Oracle hate or a religious war. I really just want to know what's so great about Oracle so I can enjoy it too (so far it's been mostly frustration).

                            Read my (free) ebook Object-Oriented Programming in C# Succinctly. Visit my blog at Sander's bits - Writing the code you need. Or read my articles here on CodeProject.

                            Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

                            Regards, Sander

                            K Offline
                            K Offline
                            Kirk 10389821
                            wrote on last edited by
                            #69

                            We were forced to Upgrade from MSSQL to Oracle 7 in order to land a BIG contract. During the process, we found MSSQL Allowed Duplicate keys (Identity Column) to exist. It boggled our mind, it caused us to realize we lost data. From that point forward, I fell in love with Oracle. It was way faster, way more stable. And a bit more complicated. I bemoaned the lack of Autoincrement fields and having to write triggers and use sequences, UNTIL I learned to just do it the Oracle way, and everything got easier, and scaled pretty well... I became a bit of an Oracle Bigot for 10+ years. Until they recently started "License Auditing". Now I have no problem paying for the tools we use. But I watched companies have to full license a development oracle machine (outside of production), and a hot backup server (they want the DB shut off until failover, or pay). For a small DB, you can use the free XE version which is good. But go beyond that and the costs stack up for smaller companies. Friends at Siemens said they will NEVER start a new Oracle Project because of the fines they paid. They will eventually phase most of it out. I am of a similar mindset. I have no interest, after 2 decades of Oracle Specialty of starting a new Oracle Project. MSSQL has gotten a lot better (transactions still grind me, reads being blocked by a write, 2 people can't update master-detail tables at the same time without lock issues)... But I can't justify Extortion...

                            Sander RosselS 1 Reply Last reply
                            0
                            • Sander RosselS Sander Rossel

                              Do people here actually like the Oracle database? Especially when compared to SQL Server. It seems everything I did so easily in SQL Server seems to be difficult or even impossible in Oracle. So far I like the for loops and the some_table.some_column%type type declarations. I'm not looking for Oracle hate or a religious war. I really just want to know what's so great about Oracle so I can enjoy it too (so far it's been mostly frustration).

                              Read my (free) ebook Object-Oriented Programming in C# Succinctly. Visit my blog at Sander's bits - Writing the code you need. Or read my articles here on CodeProject.

                              Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

                              Regards, Sander

                              S Offline
                              S Offline
                              Steve Naidamast
                              wrote on last edited by
                              #70

                              Oracle is an excellent database system but it is hardly for the "faint of heart". It is in many respects overly complex and learning to use it efficiently can be a hurdle. However, Oracle was also not designed to be used at the departmental level of application development. It is for all intents and purposes a database designed for enormous transaction processing, which it does quite well. It is also designed for very heavy database intensive organizations that require speed and the complexities that come with it. Organizations that have been doing well with SQL Server will often find the move to Oracle quite arduous and if the organization is a small or medium sized company they may find the effort not to be worth it. Oracle installations also require experienced DBAs to manage and fine tune it. It is not simply a developer's database. If you need the capabilities that Oracle provides, the database cannot be beat. However, if you are looking to simply upgrade from a good SQL Server implementation the costs will most likely not be justified. For the majority of applications you will develop you will most likely not need the power of Oracle unless of course you are working in such an organization that does.

                              Steve Naidamast Sr. Software Engineer Black Falcon Software, Inc. blackfalconsoftware@outlook.com

                              1 Reply Last reply
                              0
                              • K Kirk 10389821

                                We were forced to Upgrade from MSSQL to Oracle 7 in order to land a BIG contract. During the process, we found MSSQL Allowed Duplicate keys (Identity Column) to exist. It boggled our mind, it caused us to realize we lost data. From that point forward, I fell in love with Oracle. It was way faster, way more stable. And a bit more complicated. I bemoaned the lack of Autoincrement fields and having to write triggers and use sequences, UNTIL I learned to just do it the Oracle way, and everything got easier, and scaled pretty well... I became a bit of an Oracle Bigot for 10+ years. Until they recently started "License Auditing". Now I have no problem paying for the tools we use. But I watched companies have to full license a development oracle machine (outside of production), and a hot backup server (they want the DB shut off until failover, or pay). For a small DB, you can use the free XE version which is good. But go beyond that and the costs stack up for smaller companies. Friends at Siemens said they will NEVER start a new Oracle Project because of the fines they paid. They will eventually phase most of it out. I am of a similar mindset. I have no interest, after 2 decades of Oracle Specialty of starting a new Oracle Project. MSSQL has gotten a lot better (transactions still grind me, reads being blocked by a write, 2 people can't update master-detail tables at the same time without lock issues)... But I can't justify Extortion...

                                Sander RosselS Offline
                                Sander RosselS Offline
                                Sander Rossel
                                wrote on last edited by
                                #71

                                Kirk 10389821 wrote:

                                we found MSSQL Allowed Duplicate keys (Identity Column) to exist

                                I'm not sure what version that was, but that's certainly not possible now :~ SQL Server does allow you to not specify a key though, in which case it IS possible to insert duplicate rows (I really can't recommend it).

                                Kirk 10389821 wrote:

                                But I can't justify Extortion...

                                In a time that lots of databases are free/open-source :) What always struck me with Oracle is that they're arrogant. They're the most expensive. Their security chief wrote that letter[^] basically saying "we know everything, you know nothing". Then there's the whole Oracle vs. Google lawsuit about Java while they're letting the Java EE platform die a slow death... Maybe they're not worse than Google, Microsoft, Facebook, etc., but it sure seems that way (with Apple being a close 2nd) :)

                                Read my (free) ebook Object-Oriented Programming in C# Succinctly. Visit my blog at Sander's bits - Writing the code you need. Or read my articles here on CodeProject.

                                Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

                                Regards, Sander

                                1 Reply Last reply
                                0
                                • Sander RosselS Sander Rossel

                                  Do people here actually like the Oracle database? Especially when compared to SQL Server. It seems everything I did so easily in SQL Server seems to be difficult or even impossible in Oracle. So far I like the for loops and the some_table.some_column%type type declarations. I'm not looking for Oracle hate or a religious war. I really just want to know what's so great about Oracle so I can enjoy it too (so far it's been mostly frustration).

                                  Read my (free) ebook Object-Oriented Programming in C# Succinctly. Visit my blog at Sander's bits - Writing the code you need. Or read my articles here on CodeProject.

                                  Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

                                  Regards, Sander

                                  V Offline
                                  V Offline
                                  vsyam
                                  wrote on last edited by
                                  #72

                                  Did you try CONNECT BY queries in Oracle? So much cooler than the equivalent way of doing it in SQL Server with Common Table Expressions.

                                  Sander RosselS 1 Reply Last reply
                                  0
                                  • V vsyam

                                    Did you try CONNECT BY queries in Oracle? So much cooler than the equivalent way of doing it in SQL Server with Common Table Expressions.

                                    Sander RosselS Offline
                                    Sander RosselS Offline
                                    Sander Rossel
                                    wrote on last edited by
                                    #73

                                    Yes I did! Pretty cool, but it requires a shift in thinking :)

                                    Read my (free) ebook Object-Oriented Programming in C# Succinctly. Visit my blog at Sander's bits - Writing the code you need. Or read my articles here on CodeProject.

                                    Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

                                    Regards, Sander

                                    1 Reply Last reply
                                    0
                                    • Sander RosselS Sander Rossel

                                      Do people here actually like the Oracle database? Especially when compared to SQL Server. It seems everything I did so easily in SQL Server seems to be difficult or even impossible in Oracle. So far I like the for loops and the some_table.some_column%type type declarations. I'm not looking for Oracle hate or a religious war. I really just want to know what's so great about Oracle so I can enjoy it too (so far it's been mostly frustration).

                                      Read my (free) ebook Object-Oriented Programming in C# Succinctly. Visit my blog at Sander's bits - Writing the code you need. Or read my articles here on CodeProject.

                                      Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

                                      Regards, Sander

                                      L Offline
                                      L Offline
                                      Lost User
                                      wrote on last edited by
                                      #74

                                      Besides Windows, it runs on Unix / Linux (if that's your bag).

                                      1 Reply Last reply
                                      0
                                      Reply
                                      • Reply as topic
                                      Log in to reply
                                      • Oldest to Newest
                                      • Newest to Oldest
                                      • Most Votes


                                      • Login

                                      • Don't have an account? Register

                                      • Login or register to search.
                                      • First post
                                        Last post
                                      0
                                      • Categories
                                      • Recent
                                      • Tags
                                      • Popular
                                      • World
                                      • Users
                                      • Groups