Oracle recommends optimizer_mode=choose

Here is a challenge: Find the place in the latest Oracle product documentation that states the following “To improve response time, verify that the optimizer_mode Oracle initialization parameter is set to choose.”

The first person to tell me in person where Oracle is recommending this, wins a beer. E-mail doesn’t count, because I can’t e-mail the prize ;-)

I realize that this gives an unfair advantage to my colleagues and customers in Denmark, but since I’ll be at the UKOUG Conference 2008 in Birmingham this Monday and Tuesday, you can beat the Danes by telling me after one of my presentations. You can find me presenting What’s Hot and What’s Not – an Overview of Oracle Development Tools on Monday at 11:00 and Oracle portal products - should everyone migrate to WebCenter? on Tuesday at 12:10.

No Comments »

ODTUG podcast, SQL Developer Data Modeling

Did you know that ODTUG is podcasting? I hear a couple of podcasts on the way to work the other day, and they’re good. I encourage you to sign up at odtug.podhead.net.

The latest episode was an interview with Sue Harper about the upcoming SQL Developer 2.0, which will include data modeling, both at the conceptual (entity) and relational (table) level. It will offer a file-based and a database-based repository, import from Designer and even data flow diagrams. It seems that Oracle is re-building the parts of Designer that 90% of all users were using: The data modeling part.

There’s an early adopter release available for download. You can also find Sue Harper presenting SQL Developer at the UKOUG 2008 Conference  in Birmingham December 1-5. (I’ll be presenting there as well.)

No Comments »

Being unreasonable (Bug in PL/SQL Web Services)

If you have a lot of PL/SQL packages, it should be real easy to publish them as Web Services - after all, JDeveloper contains a nice wizard for exactly this purpose.

I expected that a lot of people were already using this functionality, so I was very surprised to find a fairly trivial bug in the code built by JDeveloper. I found it reasonable enough to have a stored procedure taking a PL/SQL VARCHAR2 collection as input and calling it with non-ascii characters in the collection elements, but my application server disagreed. The message was ORA-01460: unimplemented or unreasonable conversion requested.

After some investigation, we found that this is caused by defective code built by the JDeveloper wizard. It builds a call to OracleCallableStatement.setPlsqlIndexTable() where the last parameter (elemMaxLen) is set to zero. This is a request for the JDBC driver to automatically figure out the max length - but it doesn’t work. You can fix it by manually changing the zero to a large value like 4000.

Oracle has registered this issue as bug 7503269.

No Comments »

Oracle OpenWorld Presentation Online

It seems that there has been some mixup with the Oracle OpenWorld presentations - several people have written to me complaining that the slides that could be downloaded from the OOW site were not mine. So here are the slides from my presentation “Choose Your Weapon - an Overview of Oracle Development Tools

This year Oracle actually sent a person around to pick up every presentation from the speaker on a memory stick. That of course get past the problem that the pre-uploaded presentation is out of date (all speakers seem to like to tweak their presentation on the evening before presenting). On the other hand, it does open up the possibility of mixing up some of the 2000+ memory sticks…

Anyway, my presentation is on the Papers page now.

No Comments »

Oracle Portal users meeting Thursday at 2 p.m.

I’ve booked an Unconference slot today, Thursday at 2 p.m. for a meeting of Oracle Portal users. I’m not going to be presenting anything, but with all the WebCenter and Beehive hype here, it might be useful to meet other Oracle Portal users and discuss where we go from here.

So if you’re in San Francisco, head over to Moscone West, 3rd floor and look for Overlook 3C.

No Comments »

Oracle OpenWorld, Wednesday

Wednesday morning I spent the morning in the ADF Methodology Group unconference session. Fellow Oracle ACE Director Chris Muir had convened the meeting and explained the rationale for the ADF Methodology group. We discussed several aspects of ADF methodology: Eric Marcoux spoke on ADF testing, Steve Muench discussed how to advocate ADF, I spoke on the role of the database in ADF, Robert Nocera presented some ADF standards, John Flack spoke on reporting options and Avrom Roy-Faderman made some interesting points about reusability. You can find our work on assorted blogs and gathered on the ADF Methodology page on the Oracle Wiki. If you are interested in ADF and want to join the discussion, you are encouraged to join the ADF Methodology Google Group.

In the afternoon, I went to Larrys keynote. The big announcement was Oracle  hardware products: The Exadata Storage Server and the HP Oracle Database Machine. It was billed as Oracle’s first hardware products, which is wrong on two counts: Oracle tried hardware before (”Raw Iron” about 6 years ago), and the hardware is actually by HP. But the Exadata server looks interesting - by adding CPUs and including Oracle Parallel Query software right next to the disks, the storage server can return data instead of just blocks. Oracle claims a speed-up of between 10 and 30 times in large, real-life data warehouse applications.

He did not announce that there will be an Oracle XE 11g, but that is persistently rumoured here.

1 Comment »

Oracle OpenWorld, Tuesday

In the morning, I heard Robert Nocera from Vgo present on redeveloping Oracle Forms applications in ADF BC and ADF Faces. They have been doing this for years and used to convert stacked canvases in Forms to PanelGroups in ADF. However, with JDeveloper 11g, stacked canvases can be converted into ADF Task Flows pages and page fragments. This is actually a much more accurate representation of what the application needs - the only reason to be toggling canvases on and off in Forms is that it’s the only way offered by Forms. It was also interesting to hear that they are using Groovy expressions for validation - this is another new feature in 11g. Now all they need to go live is for JDeveloper 11g to actually be released…

I discussed their redeveloping approach with Robert afterwards and agree with him that the idea of (semi-) automatically “migrating” a Client/Server Forms application to a JEE architecture is not desirable. You will most likely end up some code that might technically be implemented in Java, but with a structure completely alien to Java programmers. 

In the afternoon, I heard the Thomas Kurians Keynote. He presented Oracle Data Integrator, which increases throughput by turning ETL into ELT (ie. the transformation step actually happens in the target database). He talked about BI Publisher, which has an improved web client to allow you to build reports without designing them in MS Word. 

He then presented Oracle UCM, which pretty much looks like it did last year. New points was the integration of scanning solutions and that UCM is now integrated with Secure Enterprise Search. WebCenter also looks like it did last year - only now it’s integrated with the new Oracle Beehive product. The whirlwind demo used features from all three products, but exactly which product does what was not clear. 

The day was wrapped up with one of the yearly conference highlights - the Oracle ACE dinner. This year, I had some interesting discussions with Peter Koletzke  and Chris Ostrowski 

No Comments »

Oracle OpenWorld, Monday

In the morning, I saw fellow ACE Director Eric Marcoux present an overview of all Oracle Portal Products - an ambitions undertaking, given that Oracle has four portals and Eric also covered Universal Content Management. With such a wide topic, it is probably unavoidable that some errors creep in - for example, I noticed that he erroneously claimed that Oracle Portal does not support JSR-168 and WSRP, which since 10.1.4 it does. But while I feel he showed Oracle Portal in too negative a light, there can be no doubt that Oracle WebCenter is the strategic product.

In the Unconference, I heard Bex Huff (another ACE Director) present on Enterprise 2.0. His sobering observation was that most Enterprise 2.0 initiatives fail (at least initially), and the failures are more likely to be cultural than technical. But that’s supposedly OK, because nobody know how to build an Enterprise 2.0, so you’ll have to accept some failures along the way.

In the Middleware General Session, Thomas Kurian once more announced the imminent release of JDeveloper 11g. One interesting focus area of JDev11g is Application Lifecycle Management, which includes integration with all kinds of third-party tools for version control, build, bug tracking etc.

Oracle is into process modeling (again - remember Oracle Designer?) with both Business Process Analysis and Business Process Management. While I understand where BPEL fits in, the distribution of work between BPA and BPM is unclear. But Oracle claims round-trip engineering between BPA/BPM and BPEL, so you can supposedly let an analyst draw a flowchart and give it to the BPEL developer, at least as a starting point.

With JRockit (a Java VM that doesn’t freeze every once in a while to do garbage collection) and Oracle Coherence (middle-tier long-term object cache), it seems that Oracle has now purchased the technology for some very high throughput middleware architectures. The performance metrics they presented on fairly modest hardware were impressive.

In the Database General Session, Andy Mendelsohn went through all the reasons people should move to 11g - for example you can now use compression on everything, sometimes even getting a performance benefit, because you need to read fewer blocks from disk. There was also the fact that you can now read and write files as fast to/from the database as from a file system - amazing! And there’s a graphical Explain plan in Grid Control (coming to DB Manager), data modeling and E-R diagrams in SQL Developer (another point were we’re getting what we had in Designer…), and a wizard in Application Express that you can feed a Forms XML file and let it build an ApEx application with similar functionality.

It has also become much easier to upgrade. If you have the luxury of a separate environment, you can record your actual workload and play it back on the upgraded environment to see how it performs. And for those (most people), who do upgrade-in-place, you can set the wonderful parameter OPTIMIZER_FEATURES_ENABLE to your current version. This means that your 11g database will use the same execution plans as the old one would. You can then set OPTIMIZER_CAPTURE_SQL_PLAN_BASELINE to capture how your SQL is being executed. Once you have a baseline, you can then keep the plans from the baseline, but let the Oracle optimizer store all the alternatives it comes up with. A DBA can then review the suggested new plans and decide whether to implement them. Cool.

No Comments »

Oracle OpenWorld, Sunday

Sunday at OracleWorld was filled by the Oracle ACE Director briefing. Unfortunately most of the information given out is embargoed until the relevant Oracle VIP makes the official announcement during the week. Stay tuned…But we did have some of the usual interesting discussions about Oracle pricing, especially in the light of Oracle having just posted record profits.

On one hand, we heard Mark Townsend, VP of Product Management for the Database say that Oracle will increasingly be placing the most useful (”differentiating”) new features of the database in extra-price options. And Vince Casarez, another VP of Product Management, stoutly defended the extravagant pricing of Oracle WebCenter.

On the other hand, Senior Director of Product Management for Application Development Tools Duncan Mills mused about the possibility of making Oracle ADF license-free for deployment on non-oracle application servers. I sure hope this comes to pass - it would be an important step forward for the general adoption of Oracle ADF, which is an under-utilized gem in the Oracle product stack. If more Java projects used good frameworks like Oracle ADF instead of building their own, we would see fewer spectacular project failures.

No Comments »

Interested in ADF?

If you’re in San Francisco for Oracle OpenWorld next week, be sure to check out the OpenWorld Unconference session on ADF. Some of the luminaries from the ADF Methodology Group are presenting and discussing best practice on Overlook 1, 3rd Floor, Moscone West on Wednesday September 24th 9am-11am. I’ll be there!

No Comments »

Next »