15 ms·
Problems with Oracle SQL
- woodgrainz 5y agoDrop the 'SQL', it's cleaner.
- encryptluks2 5y agoCame here to say the same
- mypastself 5y agoOh man, the infamous “Missing Right Parenthesis”. Many an hour has been spent trying to decipher Oracle’s passive-aggressive - and even actively misinformative - error messages.
- kunagi7 5y agoWell, I used to work with Oracle Databases and that "old man" (Donald Burleson) website has saved me quite a few times. I even remember the "Learn Oracle at the Sea" advertisement. But that's the state of affairs and I try to avoid them as much as I can. Amazon seems to think similar [0]. [0] https://www.youtube.com/watch?v=9yBP5gnnZi4 https://www.youtube.com/watch?v=9yBP5gnnZi4
- qsort 5y agoTo be really fair, have you ever seen SQL error messages that don't suck? I do agree that Oracle's are the worst by far though.
- tomrod 5y agoI feel Postgres and SQL Server are easier to grok error states. Oracle seems to want to be an application platform more than a datastore
- ptrwis 5y agoExactly, Oracle should be chosen when business logic is written in sql/plsql
- yyyk 5y agoI don't have the experience to compare them to Oracle, but SQL Server and Postgres do have their own issues. The infamous MSSQL "string or binary data will be truncated" error (fixed a while ago[0]), or the way either deals with unqualified access to columns which leads to surprises (e.g. in MSSQL subqueries or in Postgres's SECURITY DEFINER procedures). [0] https://docs.microsoft.com/en-us/sql/t-sql/database-console-commands/dbcc-traceon-trace-flags-transact-sql?view=sql-server-ver15#tf460 https://docs.microsoft.com/en-us/sql/t-sql/database-console-...
- tomrod 5y agoOh indeed, they all have quirks. Oracle seems to have more than most, IMO. I have a journeyman data engineering level experience with each. Rare combo I guess, Data Scientist focus.
- kunagi7 5y agoOn Oracle most of the error messages are bad, not precise enough or plainly wrong. Basic things like a wrong error line (failure is on line 3, displays 5 or 6), messages that aren't related to the real issue. You're pretty much on your own. Also, I had to switch to DBeaver since Oracle SQL Developer made things worse with random crashes and freezes. Back when I used it, an easy way to freeze the editor was connecting to a DB via VPN and then suddenly disconnect. The connection gets stuck, parts of the UI get frozen and after a while the whole thing freezes. MySQL/MariaDB and Postgres are better.
- mypastself 5y agoTo be fair, I had to switch to DBeaver for Postgres as well, as pgAdmin’s usability has been steadily decreasing since the first release of version 4. The lack of quality GUI is essentially my only problem with Postgres, though.
- thornygreb 5y agoMy goto was Tom Kyte (https://asktom.oracle.com https://asktom.oracle.com) for learning the 'why'. Burleson is an interesting character, but not always correct either.
- msluyter 5y agoTom Kyte books were great and beyond Oracle, I learned a lot about databases generally from them.
- pantulis 5y agoMy SO was a Oracle DBA and she swore by Kyte's books.
- kubanczyk 5y agoLast I've heard of Tom Kyte: https://archive.is/20150928144011/http://www.oracle.com/technetwork/issue-archive/2015/15-sep/last-asktom-2650480.html https://archive.is/20150928144011/http://www.oracle.com/tech... His answers were sometimes prime examples of what is today known as seriously unwelcoming. But I remember I un-learned the "best practices" meme reading one of his answers. In fact it was just one sentence, some concise version of "if the 'best' setting existed, nobody would bother to make it a configurable option". But it clicked. Burleson's more advanced answers were of limited usefulness, because they have never mentioned the exact oracle version. They often have been only valid for antiques like Oracle 7.
- edgriebel 5y agoTom Kite is/was great, but his answers are the equivalent of "I'm glad you asked, pull up a chair and let me tell you a story about a white whale..."
- recursivedoubts 5y agoLooks like it might be getting hugged, here's an archive if you can't load it: https://archive.is/MS2lJ https://archive.is/MS2lJ
- munk-a 5y agoI've worked with databases for a while now and I've never advocated for moving to Oracle (I have advocated for postgres though). The long term organizational costs is a big factor - but an almost equally large factor is the fact that 1. I have never actually used their dialect and have heard absolutely terrible things about it 2. There is no non-enterprise DBMS available that uses something close to their dialect so I figure actually hiring Oracle DBAs would be a nightmare. These two factors combine to make me absolutely baffled at how completely Oracle has seemed to dominate every market but the private one (i.e. government, especially defense and educational). Have I been missing something about ways to actually get real world experience with Oracle?
- ericbarrett 5y agoOracle sells to executives, not technical staff. Training on Oracle tech is via certified classes, provided “free” by your employer as part of their licensing deal; not online discovery. Source: sold to and worked with Oracle Inc. for several years, got a front row seat at the sausage factory.
- oldsecondhand 5y agoI've got to attend some free Oracle classes at uni (taught by Oracle employees), they were horribly boring. I don't think they'd have any chance at selling to technical staff even if they tried.
- laumars 5y agoIt’s more than that. Oracle is sold off the back of its middleware applications. Which equally suck too…but at least they’re solving difficult problems that most other database vendors don’t both with.
- revscat 5y agoSuch as?
- 5y ago
- the_Devil 5y agoRude!
- jwitthuhn 5y agoThis is missing my favorite oracle quirk: Empty strings are equivalent to null. Trying to insert an empty string into a NOT NULL column will fail, which took me a while to understand the first time I saw it happen.
- vbezhenar 5y agoOne of oracle quirks for me is varchar2. What happened to varchar1? Nobody knows.
- tgv 5y agoTIMESTAMP WITH LOCAL TIMEZONE. Never again.
- beamatronic 5y agoLet me guess, did you get hit with more than one 3:00am?
- tmd83 5y agoLet's not forget that Oracle DB uses the system timezone as the datatype storage (not sure what other database do to be honest) so unless you were running your DB machine as UTC by default their timestamp storage would be ambiguous for DST shift and that's their default. Why wouldn't they store everything in UTC and use the system timezone for parse/formatting I have no clue.
- deleted 5y ago[deleted]
- tracker1 5y agoI've been pushing to run ALL servers as UTC for a few decades now... always store/transmit date+time as UTC as well. If it's mapped to a locale, pair it with that locale... let the client translate to/from local.
- trollied 5y agoThe main gripe the author has is him overlooking how DBMS_OUTPUT works. He's better off either logging to a table, or using UTL_FILE.
- JacKTrocinskI 5y agoI have worked with the Oracle database for six years and haven't had any major issues with error messages, in fact I'd say Oracle did a really great job building an amazing database.
- NoGravitas 5y agoI'm not a DBA, but as a developer who's worked with Oracle off and on for the last 15 years, I can say that the error messages are frequently misleading, and do, indeed, sometimes appear to be actively malicious. With other databases, they're at worst useless.
- _ZeD_ 5y agoyou have been really lucky, then.
- robertlagrant 5y agoReally lucky on commission on Oracle sales :-)
- neilsimp1 5y agoI disagree with you but I'm not sure why you were downvoted.
- mrweasel 5y agoWe run a large number of Oracle database for customers. I mostly help manage the application running on top of the database, and we have a DBA team handling the databases. It's amazing to see how calmly they handle managing Oracle, but their argumentation is also very Oracle-like: It's not a database problem, you're just using it wrong. Which would be a terrible answer, if they weren't right. I think most of us forget that for all the terribleness of Oracle, they actually do build a very stable and performant database, assuming you can afford it.
- collaborative 5y agoOracle was the first DB I did major work with (12 yrs ago). I have fond memories of that time. I created an automated warehouse management system with it Pros: - pl/sql (I like it more than other flavors of sql, maybe because it was the first one I used a lot) -pl sql developer. Not the java one (sql developer). I loved that you could see tabs in a list and in general it was smooth. I still keep a thin client in my spare drive and use it with delight from time to time Cons: -Installing and maintaining Oracle. But it wasn't terrible either -Having to read Burleston posts. Not sure if this has improved I know I am biased by my experience, I've heard many horror stories. I wouldn't choose Oracle today, but having to develop for it wouldn't scare me either
- vjust 5y agoIt seems to be the general rule of thumb that, when you want to google for an oracle error message, then exclusion of both oracle documentation site, and developer forums is your first criteria on the search bar. Same applies to Microsoft (large parts of MSDN), and now Amazon Web Services documentation (at least some parts of it). That's the reason StackOverflow works - it really solves programmer's problems, instead of the strange dialects of English and style that flourish on MS and Oracle and Java docs.
- NeutralForest 5y agoI can't agree with the Java one, there are great examples and docs out there.
- lubonay 5y agoWell, he said Java for Android. The Android SDK is a capricious beast and the documentation is often outdated or sub-par.
- Rd6n6 5y agoThe aws docs aren’t concise, but they have a lot of good information in them if you want to go in depth. I learned a lot back when I was an intern by reading them Iirc, the postgres docs were also good reading in a similar way: not concise, but a lot of good information
- zaat 5y agoIn my experience both Oracle and Microsoft documentation is usually good to excellent,I actually want google to search specifically on ms docs site most of the time. I do find AWS docs to be lengthy and incomprehensible. StackOverflow is mostly useful to quickly (and often dirtly) solve issues that are burning now, without getting deeper understanding of the subject. This isn't universally true, some answers are exceptionally good.
- cyberbanjo 5y agoSomewhat unrelated, the case where I want to "Google search some specific site" is well suited to duckduckgo bangs, if there is a bang for that site. !msdn will search MS's developer network
- deleted 5y ago[deleted]
- uberman 5y agoFrom a security perspective, keep in mind the errors like "access denied" or "password invalid" are typically bad not good when compared to more generic "table does not exist" or "failed logon attempt". These errors tell you something positive about the existence of something you don't have the rights to know about and that is a defect in my opinion. I not saying good error messages are not valuable or that Oracle's are fine, but the answer should never be that error messages tell you information about something you don't have permission to know about.
- lixtra 5y agoUnless "table does not exist" does take precisely the same time as “access denied” you still leak the same information by replacing the latter. For logged in users I would prefer logging with explicit error messages. Like that you can tell if someone is poking around or was hacked. And still get clear error messages.
- uberman 5y agoSure, if "table does not exist" actually means that, which it does not. It means you have no access to such a table if it exists or not
- kristjansson 5y agoThat assumes developers with access to the database are a _threat_, which is not exactly the posture one might expect or prefer. If your database error messages are exposed to users that actually are a threat ... that already seems like a world of pain.
- ntoshev 5y agoCame here to find the thread discussing this. You stated what I'd think is the conventional wisdom and I expected this to be the top thread. However, this thinking comes at the cost of UX (or Developer eXperience). Much more mundane instance of the same thinking is hiding elements of the UI you are not allowed to use. This often gets me thinking - is there a way to do this that I'm not allowed to see, or is it just that I can't find the function in the UI? A solution for the DX issue is logging the real error somewhere only accessible for an admin. Has this been implemeted anywhere in the wild? For UIs, just be honest and show the menu items disabled.
- 29athrowaway 5y agoThere are 2 types of technologies: the ones that people complain about and the ones that nobody uses.
- ok123456 5y agoNo. Some technologies are hostile to the people forced to use them.
- edgriebel 5y agoThat's pretty much what OC is saying, any technology good enough to be commonly used is going to suck and/or have sharp edges
- cultofmetatron 5y agoto a degree thats true but the amount of vitriol expressed to oracle seems a bit warranted. I'm a user of postgres. its widely supported on cloud offerings. Every startup I worked in used it or mysql so it could be argued that postgres is used in a lot more places. While I certainly have a few issues with postgres, It does the job with minimal bullshit and most of the time, just works. I'm at a point where I just trust it to do its damn job. How often do you hear people complain about postgres or mysql the way you hear people complain about oracle's enterprise db offerrings?
- Someone 5y ago“But how in the world is it okay for Oracle to throw me for a loop as I try to pinpoint why the existing grants aren’t sufficient, debugging the whole program to see which user credentials are used – only to find out that it was neither a table nor a view, but rather the SEQUENCE used to increment the ID column that needed grants for the user?“ Probably a security issue. If you tell a user “table T exists, but you don’t have rights to write to it because you can’t increase sequence S”, you’re leaking the information that a sequence with that name exists. It’s the same reason a good login system will say “invalid username or password” instead of “invalid password” and its recovery screen “if that’s a valid user name, a mail has been sent to the address associated with it”.
- Someone 5y ago“But how in the world is it okay for Oracle to throw me for a loop as I try to pinpoint why the existing grants aren’t sufficient, debugging the whole program to see which user credentials are used – only to find out that it was neither a table nor a view, but rather the SEQUENCE used to increment the ID column that needed grants for the user?“ Probably a security issue. If you tell a user”“table T exists, but you don’t have rights to write to it because you can’t increase sequence S”, you’re leaking the information that a sequence with that name exists. It’s the same reason a good login system will say “invalid username or password” instead of “invalid password” and its recovery screen “if that’s a valid user name, a mail has been sent to the address associated with it”.
- ryanmarsh 5y agoThe author looks young (judging from his picture). I'm honestly sorry to the younger generation that we didn't do a better job of passing down what we learned. Yes Virginia, Oracle is the Devil.
- ivolimmen 5y agoIt is also the only database that has a precision parameter when calling spacial functions. Like 1 and 1 can sometimes be 1.9. Never again.
- forinti 5y agoOracle SQL and PL/SQL is the better side of Oracle. Having to install and maintain Oracle software is the real hell. You sometimes need a patch for the installer (I kid you not, the OAM 12.2.1.4 installer needs a patch to work on Oracle Linux). The syntax for Advanced Rules in OAM is not completely described in the manual, the examples are wrong, and you have to disable the parser in version 12.2.1.4 because it is doesn't work. It seems every little task turns into an investigation into a series of bugs, errors, and undocumented features.
- tracker1 5y agoI hate that you have to install the Oracle Client, which is its' own byzantine exercise in frustration to use an application that talks to Oracle. Most other databases, the application includes a library that communicates to the DB via a protocol implementation... Oracle doesn't want this kind of use case.
- orthoxerox 5y agoThere are rather usable clients for Java and .Net that do not require that. Well, the .Net one silently converts async calls to sync, but Oracle wouldn't be Oracle without nasty surprises.
- sebazzz 5y agoWe had an extra optional curriculum on university, and to pass you had to successfully install Oracle.
- chasil 5y agoThe Oracle 19.3 installer must be used to install on RedHat/Oracle Linux 8, but nothing lower that 19.6 will run on this OS. Two patch sets must be applied to the nonfunctional installer before it will work, which was quite hostile to learn and master. At least with 11.2, a new install set was issued for RedHat 7.
- btilly 5y agoIn theory, Oracle is able to store timestamps down to the microsecond. In practice it rounds off to the nearest second if you try to touch it in any way, or even look at it slightly funny. So much so that the microseconds are practically unusable.
- elygre 5y agoWith which data type do you experience this?
- btilly 5y agoTIMESTAMP WITH TIME ZONE when I tried to do some date arithmetic on an ETL job to load into Postgres. Eventually I gave up, and fetched it back into Python and did the arithmetic there before sending it on. It may have been that there is an obvious answer which I simply failed to find due to the fact that I hadn't used Oracle in a decade. But I went down a number of dead ends before coming up with an approach that worked. (And the person before me had simply not noticed the problem...)
- hyperpape 5y agoI share the author's opinion, though I haven't used other DBs in anger much, so I don't know if they're better. When I think about why it works this way, I'm sure product decisions and backwards compatibility are issues, but I also remember an amazing comment on writing code for Oracle: https://news.ycombinator.com/item?id=18442941 https://news.ycombinator.com/item?id=18442941
- croes 5y agoShouldn't it be "Oracle is the Devil"?
- kbsspl 5y agoJust someone who wants Oracle to be something else without understanding it's nature. Vehemently disagree with the 'access denied' error message. Why would you want some one who does not have access to a table to know it exists.
- ndm000 5y agoThe biggest problems I've had with Oracle databases are getting CDC data out of it. There's conflicting technologies with their own tradeoffs - LogMiner vs. Flashback, neither of which cover all use cases well, licensing is ambiguous, and docs are conflated with information you don't need.
- thornygreb 5y agoOracle has quirks, yes. Oracle the company is...yes. We all get it. Oracle RDBMS has been around for longer than most of us have been alive and has amazing backwards compatibility. It has features I wish PostgreSQL had and vice versa. Nothing is perfect.
- bgidley 5y agoMy favourite oracle issue was an older version would not install on Linux if you had number lock key on!
- treypitt 5y agoAnecdotal, but wanted to mention positive experience with Oracle support. I have posted questions on SO relating to Oracle SQL and SqlDeveloper, and Oracle staff responded quickly with a solution I accepted. Shoutout to ThatJeffSmith for contributing to the community!
- chasil 5y agoOracle support is always good when escalated. Without escalation, sometimes tickets bounce between groups. I filed a ticket on getting sqlplus to work in a chroot, and finally figured it out myself with strace. I didn't think it warranted escalation.
- dragosion 5y agoWe need simple 2 line explainers with 10 lines of explainer codes. Show the codes enough fluff and padding. Give the juice. A wall of text with options and no actual code example that you can try isn't going to help so much. Options and parameters everywhere.
- JaggerFoo 5y agoOracle SQL is not the devil. I can code up SQL easily and find errors. I use sqldeveloper and granted It's not as helpful as say coding Dart on Android Studio IDE in pinpointing where a problem is and making suggestions. But I've been able maintain single sql statements 800 lines long, perform knapsack in a single sql statement, and develop complex packages in Oracle. If you really want to see super complexity, download and create an Oracle EBS 12.2 virtualbox instance and checkout the PL/SQL packages in the APPS schema and the schemas themselves of which there are over 200. I've used NoSQL and other SQL databases, each which had their challenges. I like the free tooling that Oracle provides - The APEX app builder and XE database are nice, if not hosted on Oracle Cloud - try the libvirt instance to evade Oracle's cloud grip. I think the problem here is developer experience and a negative bias toward Oracle, which is understandable and prevalent in the developer community. Cheers
- robertlagrant 5y agoAPEX just exists to lock people even further into the database. A literal antipattern of a product.
- zip1234 5y agoThat is completely true, but the product is actually very cool. I wish there was a database agnostic version of the product as it is such a great concept for many business apps.
- robertlagrant 5y agoI sort of agree, but then the data structures get basically fixed forever, as lots of UI code is written directly against them. It's not the end of the world, but it does require data model maturity.
- irrational 5y agoYou really should try Postgres. I was a professional Oracle developer for 15 years, then we had to move to Postgres since we simply couldn't afford the Oracle licensing fees anymore. It took 2 years to move our database over - mainly because we had to rewrite thousands of queries from Oracle sql syntax into standard-compliant sql syntax. Anyway, I truly expected Postgres to by worse than Oracle. I was wrong. The performance has been equal to or greater than Oracle. The documentation in Postgres is so good it almost makes me weep. I had no idea the Oracle documentation was so bad until I had something to compare it with. Installing and managing Postgres is so much easier. Backups, replication, etc. are far far easier and less error prone than Oracle. I've literally not found a single thing to complain about in Postgres. Now I wish we had moved years earlier.
- orf 5y agoThe biggest WTF for me is that you can't put parameters in `EXPLAIN` queries. This killed support for `Queryset.explain()` on Oracle in Django. Seems like such a weird limitation, and the error messages definitely where not helpful.
- submeta 5y agoThe title should rather be: „Oracle Is the Devil“.
- tartoran 5y agoBeside the regular complaints or praises I find oracle extremely ugly, unaesthetic and inconsistent. I understand it is old and has backwards compatibility but why would anyone choose oracle over a newer modern RBDMS such as PostgreSQL or MSSQL for a new project? Besides, Oracle is very expensive and very hard to get rid of. It is also a bit of an issue that they don't have a default IDE, I worked with Rapid SQL which is a clunky, slow and riddled with bugs IDE. I think the Rapid part of its name is pure gaslighting.
- cygned 5y ago> MSSQL T-SQL is just so a weirdly ugly language and the feature set of SQL Server is super weird. If we can, we go with Postgres or MySQL.
- tracker1 5y agoThere are definitely aspects of MSSQL I don't like... for the most part I don't mind it. I will say, if you're willing to pay the cost, getting advanced features setup and running in MSSQL is easier than any other RDBMS I've ever tried. That said, still inclined to use PostgreSQL. I do not like MySQL at all, and every single time I've used it, I feel cringes of absolute pain... starting with "utf8" isn't UTF8, "utf8mb4" is. Or that indexing a binary field isn't case-insensitive (ie, binary) by default.
- tracker1 5y agoisn't case-sensitive/binary... that one got me when migrating data and had converted from older identifiers to a UUID map.
- pas 5y agoThere's Oracle SQL Developer :D but as others mentioned, it's sold to executives, not to technical personnel.
- zip1234 5y ago
- nimbius 5y agofun fact: if youve ever wondered why performance benchmarks dont really seem to exist between things like mysql or postgres and Oracle, its because this is expressly forbidden in your license.
- winrid 5y agoThe thing that kills me about Oracle is that since the license does not allow benchmarking, we (or at least I) don't know how it actually stacks up to the competition. Of course, that's the idea, but it would be cool to have that data.
- Longhanks 5y agoSomeone who has performance worth the money would not inhibit the benchmarking of it.
- winrid 5y agoIndeed. You could do it, just can't publish the results without backlash.
- SCLeo 5y agoWhat?! How do they disallow people from benchmarking it? Do they just forbid people from benchmarking in legal terms? That sounds so fishy.
- winrid 5y agoThat is my understanding. [0] [0] https://www.brentozar.com/archive/2018/05/the-dewitt-clause-why-you-rarely-see-database-benchmarks/ https://www.brentozar.com/archive/2018/05/the-dewitt-clause-...
- sbierwagen 5y agoBoth Microsoft and Oracle prohibit benchmarking: https://danluu.com/anon-benchmark/ https://danluu.com/anon-benchmark/ Wikipedia article: https://en.wikipedia.org/wiki/David_DeWitt#The_%22DeWitt_Clause%22 https://en.wikipedia.org/wiki/David_DeWitt#The_%22DeWitt_Cla... It's plainly illegal, but nobody who has built their business on Oracle DB wants to piss off Oracle the company with a lawsuit, and it doesn't appear any legal activists want to either.
- ufmace 5y agoSeems it's in the license agreement. What's unusual is that actually matters here. If someone tried to prevent benchmarking Postgresql by licensing terms, someone else would promptly ignore them and do it anyways, since Postgresql is free to download. Oracle licenses are very expensive, so anybody who has access to it also has money and a lot to lose by flouting license terms.
- edgriebel 5y agoThat old Burleson Computing guy lives in my nightmares...
- smartmic 5y agoA completely prejudiced and highly reduced view on SQL implementations, but one that could reflect the general mood: in the camp of the good: PostgreSQL, SQLite; in that of the bad: Oracle SQL, MSSQL. Somewhere in between with a tendency to good: MariaDB
- tracker1 5y agoI'm not sure I'd include SQLite as particularly good... Same goes for mySQL/MariaDB, too many oddities. I do like PostgreSQL. MSSQL neutral to positive (nice to administer/setup).
- tracker1 5y agoFor clarification, I really do like SQLite, it's probably the best option for what it is... I just don't consider it particularly good. I also like FirebirdSQL quite a lot, but it's more difficult in general to work with (embedded licensing, etc).
- TruthWillHurt 5y agoI remember automating the deployment of Oracle DB to OpenStack using Ansible. Finished playbook took 45 minutes to run, and that's starting from a pre-configured snapshot! Plus, Oracle charges per-cpu core used, so we had to license an entire portion of our datacenter...
- simonw 5y agoThere was a comment on here a few years ago from a developer with experience working on the Oracle database codebase which put me off it for life: https://news.ycombinator.com/item?id=18442941 https://news.ycombinator.com/item?id=18442941
- tux3 5y agoOh no. What fresh biblical hell is this codebase.
- isoprophlex 5y agoMalbolge: the enterprise edition
- sschueller 5y agoOMG, comment right after would explain why we have a chip shortage.... "Sounds like ASML, except that Oracle has automated tests. (ASML makes machines that make chips. They got something like 90% of the market. Intel, Samsung, TSMC etc are their customers) ASML has 1 machine available for testing, maybe 2. These are machines that are about to be shipped, but not totally done being assembled yet, but done enough to run software tests on. This is where changes to their 20 million lines of C code can be tested on. Maybe tonight, you get 15 minutes for your team's work. Then again tomorrow, if you're lucky. Oh but not before the build is done, which takes 8 hours. Otherwise pretty much the same story as Oracle. Ah no wait. At ASML, when you want to fix a bug, you first describe the bugfix in a Word document. This goes to various risk assessment managers. They assess whether fixing the bug might generate a regression elsewhere. There's no tests, remember, so they do educated guesses whether the bugfix is too risky or not. If they think not, then you get a go to manually apply the fix in 6+ product families. Without automated tests. (this is a market leader through sheer technological competence, not through good salespeople like oracle. nobody in the world can make machines that can do what ASML's machines can do. they're also among the hottest tech companies on the dutch stock market. and their software engineering situation is a 1980's horror story times 10. it's quite depressing, really)"
- abledon 5y ago
- irrational 5y agoHow can he write that long of a blog post about Oracle SQL and not mention the number one sin? Null is equal to empty string.
- q-big 5y ago> Null is equal to empty string. marcosdumay disagrees: https://news.ycombinator.com/item?id=28484963 https://news.ycombinator.com/item?id=28484963 NULL and empty string are often equal, but sometimes not. Life would be boring otherwise.
- roflc0ptic 5y agoI think I've found 5 bugs in the Oracle database in the last 4 months, including multiple queries that returned incorrect results. They end up being in weird edge cases - one was... you needed to be casting something as JSON, parsing it, and have a WHERE clause that included a compound predicate. A similar but slightly different query simply threw an error. I made a full reproduction and everything. Got bounced around between a couple of departments until we finally reached an engineer who said, and I lightly paraphrase: "um, that seems weird. I don't see anything in the docs about it." The solution to that was updating from oracle 19.3 to 19.12. But _that_ broke our INSERT IF NOT EXISTS style queries. We were using this "hint" they have, "ignore_row_on_dupkey_index", which is a comment that goes before your query which actually affects the code execution (WTF?). Batch queries via JDBC return an array of integers: the length is how many different queries you batched together, and each element represents how many rows were affected by each batch. Unfortunately, when using this ignore_row_on_dupkey_index, the array sometimes both 1. has the wrong length, and 2. has invalid integers: stuff like -1203214. So we switched over to using MERGE INTO WHEN NOT MATCHED style syntax, and everything was hunky dory, right? Wrong. We started getting UNIQUE CONSTRAINT VIOLATED errors. As near as we can tell, MERGE INTO WHEN NOT MATCHED can still run into a race condition - if you have two queries that try to insert the same non-existent row, the database will check that the row doesn't exist, execute the queries, and then blow up one of them. But as far as we can tell, only on batch queries. As I'm not paid to figure out WTF is wrong with oracle, just get it to work, I didn't end up doing a full repro of this stuff. But there's a couple of weeks I'm not getting back.
- godshatter 5y agoI've been working with Oracle SQL for years, and it definitely has it's idiosyncrasies. Part of their problem is (in my opinion) an unwillingness to upgrade older programs and processes. I do a lot of work in Pro*C, which is C with pre-compiled Oracle SQL and PL/SQL embedded in normal C code. The SQL you can use in that tool, for some reason, is a small subset of what you can use in an SQL tool like PL/SQL Developer. You can't bring back subselects in the select list, and you can't use inline views, among others. Which baffles me, because it should all be SQL once you hit their database. Their sqlplus command-line tool for linux program was written in 1982 it says, and it still doesn't allow for use of the up arrow to retrieve history, and is very quirky with how it handles editing of code. Their Oracle Forms product is very klunky, too. I'm happy I don't need to set up Web Logic servers, because that looks like a nightmare, too. A little work on tooling would go a long way. I am partial to using joins in where clauses instead of ansi sql join statements, so I guess there's that.
- chasil 5y agoThe up arrow works in sqlplus on Windows. A java remake called SQLcmd fixes some of the other problems. Forms? Didn't that go out of support?
- mormegil 5y agoMy "favorite" Oracle experience (not): > select count(*) from mytbl; ORA-12986: columns in partially dropped state. Submit ALTER TABLE DROP COLUMNS CONTINUE Well, OK then... > ALTER TABLE mytbl DROP COLUMNS CONTINUE; SQL Error: ORA-00604: error occurred at recursive SQL level 1 ORA-01654: unable to extend index SYS.I_OBJ4 by 128 in tablespace SYSTEM The table was completely unusable, we needed to restore the DB from backup.
- chasil 5y agoJust curious - did you try an AS OF clause for flashback?
- capitainenemo 5y agoI have a special level of hate for oracle full text searches as well, which requires embedding an additional complex search syntax into a text string, so you can't use binds in any reliable way without sanitisation. There is no interface that I can see that takes a temp table or set of parameters. I've also grown to dislike their (+) syntax. Super convenient but mixing the left joins into the WHERE clauses makes them get lost pretty easily. I've also spent a ton of time with mystery crashes in large queries in PHP and Java where the crash only seemed to occur if the prepared statements had \r\n instead of \n, or went away on clearing statement cache until next time a set of statements were loaded. Oh, and the annoying VARCHAR limits - thankfully higher than the 4000 it was at for a long time, but still irritating even now. Trivial example: select listagg(level,',') from dual connect by level <= 8000
- approxim8ion 5y agoSo I've used MySQL at a very basic level but for the last couple of years almost solely been on Oracle because that's what my org uses. I sporadically dabble in the db stuff but am mostly working on front end. What's the db most people use now, Postgres? Could someone point me towards a good resource for it?
- JoeOfTexas 5y agoPostGres is fine I guess, but MySQL setup is streamlined better. If MySQL is fine for big corps its fine for me too.
- kiliancs 5y agoThe official documentation is exceptionally good https://www.postgresql.org/docs/ https://www.postgresql.org/docs/
- halz 5y agoOracle spelled backwards, "El Caro", is Spanish for "expensive". I can never forget this tidbit when dealing with Oracle.
- worik 5y agoSo many comments here about MS and Oracle. Mēh! I have an intellectual affinity for the suffering. But it has been 20 years since I wrestled with the Beast from Seattle. Most of those twenty years were spent doing my own things in Linux, Perl, and R. In glorious ivory tower isolation from the real world consequences of serving a master who's goal was to extract revenue... Here I am for the last year serving Apple (the Beast from Cupertino?). The problems are the same with documentation. Yesterday I found an example in some Apple documentation. It saved me half a day, and I almost dies from shock. I have never before seen an actual example... Their main documentation is videos. Fucking videos. Videos of what looks like actors pretending to be developers, that go on for ages, have no transcripts.... And then the tools: At least the MS and Oracle tools work! (Do they?) In Apple you cannot believe what the debugger tells you about the state of your programme with out double checking in at least two other ways, because their tool chain is very buggy, and they will not fix it. There is no money in fixing tools. We developers pay them SFA money, brighter colours on the App store, deeper dark arts in getting you to fork over $XX for shiny apps that is where their development resources are going. SO... They are all the same: APple, MS, Oracle, Google.... We developers are their bitches, we will crawl over broken glass to get things done, so there is no need to spend any resources on us.... Come back RMS!! All is forgiven!!!
- zionic 5y agoThe best HN posts really do start around 5PM EST
- jelling 5y agoThis comment smells like mead and dwarves.
- Abishek_Muthian 5y agoWhen I started developing for Apple platform(Objective C) I wondered why there are no examples in the documentation, I used to think may be all other Apple platform developers are just smarter than me and the SO answers almost always referred to a WWDC video. Thanks to you now I feel vindicated that even (Sr.?) Apple internal developer seems to feels that Apple Documentation should have examples although it's likely you were developing some obscure OS feature. TBH I don't develop for the platform anymore, So I'm glad I don't have to put up with it anymore. I assume Swift has made development easier.
- pdkl95 5y ago> Oracle hates giving error details > Oracle even prints malicious error messages From the ancient humorous internet textfile hacktest.text[1] ("THE HACKER TEST - Version 1.0") 0241 Is your job secure? 0242 ... Do you have code to prove it? [1] http://www.hungry.com/~jamie/hacker-test.html http://www.hungry.com/~jamie/hacker-test.html
- r00tanon 5y agoOh yeah. Been there and still have faded T's. But then there's the licensing and the sales guys. Talk about pure evil.
- conductr 5y ago> You lose hope for humanity’s continued existence, and start adding log outputs after each and every function call to finally figure out where the script stops working Good to know I’m not the only one doing it this way. Sometimes it’s the only way.
- deleted 5y ago[deleted]
- deleted 5y ago[deleted]
- deleted 5y ago[deleted]
- deleted 5y ago[deleted]
- deleted 5y ago[deleted]
- deleted 5y ago[deleted]
- deleted 5y ago[deleted]