Union vs Union All

Posted by Patch on August 4th, 2008

Do you know the difference between the UNION and the UNION ALL part of a statement? In short, UNION does a sort-unique on both collections. UNION ALL just retrieves all rows, regardless of any double values.

Read the rest of this entry »

Testing Rulegen using Codetester

Posted by Patch on May 31st, 2008

When I was confronted with the possibilities of Rulegen it made me wonder: How can these rulescodetest-logo be RuleGen_Logotested. I have some experience using CodeTester but as the name says, it’s a code tester where rulegen builds rules in the database that can actually only be tested using SQL statements (insert, update, delete).

Read the rest of this entry »

Triggers…

Posted by Patch on May 1st, 2008

I ran into an issue at a customer site where certain triggers were disabled in the database where they should be enabled. It appeared that an update script, that is run every night, first disables all triggers on a couple of tables. Then does what it needs to do, without the overhead of the trigger code. and then, when it’s done, it enables all triggers again.

If the update code fails for whatever reason, then the re-enabling of the triggers is not performed, leaving the triggers in disabled state on the database, which can cause problems in everyday use. What you would actually want is a situation where you can disable the triggers, but just for the current session. Any other session should have the triggers enabled at all times. Unfortunately Oracle doesn’t support this kind of enabling/disabling of triggers. We do however have access to all the possibilities of PL/SQL in triggers so we can build a solution to this problem ourselves.

Read the rest of this entry »

Writing code…

Posted by Patch on April 14th, 2008

I am writing lots of code again. Building a package that imports different files into the database. I thought I should share a bit of my working experience with you. As you may (or may not) know, I am a big fan of Allround Automations PL/SQL Developer, so that’s my main tool for this job. Along with some of the plug-ins I built I think I have a nice toolbox on my hands.

Read the rest of this entry »

My SOA architecture and webservices mindset…

Posted by Patch on March 14th, 2008

At AMIS they are working on teaching a lot of us about the fundamentals of SOA. We just had the first couple of events in which Lucas and Peter taught us stuff about XML and BPEL. To get an idea of what SOA and webservices actually are and how we should work with them.

Read the rest of this entry »