Monday, April 16, 2007

Collab07 - Day 0 - Registration and Welcome

There were some sessions of Oracle Education on Sunday, but I didn't follow them. It were 8h presentations and hands-on on specific topics.

In the morning I did my registration. I was lucky as there wasn't a queu to register yet. I also heard that there wouldn't come 6.000 people to this conference... but 7.000! It's not yet comparable to OOW, but it's getting nevertheless a big event.

We got a badge and a bag with some papers (schedules and ads) in. As a speaker I also got a special blue/white t-shirt.

I also searched for the "Speakers Ready Room", a room where all speakers can (need to) go to, to test the beamer (and connection with laptop) and sign up for presence. It's my first time as a speaker on a conference, so it's all a bit new to me. I also met some other speakers, had a chat with some of them and walked around to get to know the locations of the different rooms. The Mandalay Bay hotel is so big! The Collaborate event covers two floors with rooms and an exhibition hall.

In the late afternoon I had two sessions for speakers. One because I'm new: some tips and techniques to present, the other one with some practical info.

If you're new into presenting here were some tips they gave:

  • speak slowly and clear
  • repeat the question (as some others may not have heard it)
  • tell the audience what your session will give back for their time
  • relax
  • ...
  • and Have Fun!
After these sessions there was a special SIG drink. Every SIG had 5 minutes to present themselves. Steve Howard, President of the APEX SIG, spoke for our SIG.

In the evenings there were some other welcome receptions with food and drinks... I didn't stay that long as I became tired. So that ended my Sunday.

Saturday, April 14, 2007

Arrived in Las Vegas (Collab07 - Day -1)

On Thursday night I arrived in the Luxor hotel in Las Vegas. The hotels in Las Vegas are so big and all with different themes! Impressive, as also the sound of the gambling machines ;-)

I didn't gamble yet, but before I leave I must have tried it! The weather is fine, but I thought it would be better. A week ago it was over 30 degrees, where it's now only 24 with a lot of wind.
Yesterday I met up with John. We had a lovely evening with some nice food in the hotel.

Today I'll register for Collaborate, a day before the 6000 others.


During the last week I did a little trip through Nevada, Arizona and Utah. I saw Bryce Canyon, Lake Powell, Glenn Canyon Dam, the Grand Canyon, Route 66 and Hoverdam. I was really impressed by all that!

Here you see some of my pictures:

Saturday, April 07, 2007

Heading off to Las Vegas (Collab)

Tomorrow morning I'll leave for Collaborate 07 in Las Vegas.

The first days I won't be online so often, but as soon as the conference starts, you may expect daily reports!

I already blogged about the APEX presentations at Collab and the APEX meet-up we're organizing. Here're the sessions where I'm on stage:

Doing my presentation about Shared Components will be a challenge! There are so many different Shared Components in APEX! To fit all that in one hour, will be impossible, but I'll try. Some of them are already well known, so I'll go really fast on these ones, as for others I'll do real demos.
And it won't only be a challenge for me! Also for the ones following it, as they should raise early on the last day! I'll try to make it fun, so you don't fall asleep again ;-)

Hope to see you there!

Friday, April 06, 2007

Reset INTERNAL password in APEX 3.0

Well, it can happen... You use so many different passwords that you forget one of them.
If you forget your APEX password of the INTERNAL workspace, here's what you can do:

  1. Connect to your database AS SYS DBA (or a user with high privileges): sqlplus sys as sysdba
  2. SQL> alter user FLOWS_030000 account unlock;
  3. Connect to your database as FLOWS_030000: sqlplus flows_030000/password@your_db
  4. Run following procedure from SQL>
    begin
    www.flow_api.set_security_group_id (p_security_group_id => 10);
    www.flow_fnd_user_api.create_fnd_user(
    p_user_name => 'admin1',
    p_email_address => 'email@ae.com',
    p_web_password => 'admin1');
    end;
    /
    commit;
  5. Connect again AS SYS DBA
  6. SQL> alter user FLOWS_030000 account lock;
That should have fixed your problem. Try again to login into APEX.

APEX Evangelist meets PL/SQL Evangelist

Yesterday evening I went to the Steven Feuerstein (aka PL/SQL Evangelist) event, organized by Ordina and Quest Software, in the Netherlands. It took me a while to get there (as I come from Belgium), but it was worth it!

I've already seen Steven presenting a few times and I always liked it soooo much! The energy, the flair, the jokes, the charisma, really nice!

I'll start with some feedback about the presentation itself, titled: "Best Practice PL/SQL - Ideas for writing the best PL/SQL code of your life".

Stevens 4 top tips for development:

  1. Drink lots of water
  2. Write tiny chunks of code
  3. Stop writing so much SQL
  4. Start testing your code - for real
As an "APEX Evangelist", I can agree with almost all of them! But I don't really agree with statement 3. If I can write something with SQL I'll do it, I don't use PL/SQL until I really need to... but I don't think that was really his point.

He gave some arguments to stop writing so much SQL, as he states: "SQL are always hard-codings", so he prefers table APIs.

After the presentation I had a quick chat about that with him, you'll see some more about that in the next weeks.

Another part of the presentation was about the Quest Code Tester for Oracle. I also find testing software really necessary (but also a pain in the a**) This tool should help you with it.

A last thing I wanted to say about the presentation, which he also mentioned a lot: "playing games improves your development skills"! Why didn't Steven tell this to my father when I was still studying?! ;-)

This event was also an opportunity to meet some of my Dutch colleagues. I not only met some nice Ordina NL people, but also some online (virtual) friends and bloggers.

I had my camera with me, so here are some pictures of the friends I met at the event.


On the picture you see Jornica (left), me (middle) and Patrick Barel (right). The right picture is of Alex Nuijten of AMIS and me. Nice to meet you guys! Thanks for the wonderful evening.

Tuesday, April 03, 2007

DGT updated with QF

The UEFA Champions League starts again tonight!
There're some great matches...

I added the schedule of the Quarter final in DG Tournament.

So, you can start betting now!

Good luck to everyone and may the best win ;-)

Monday, April 02, 2007

We shall not use APEX!?

During the weekend John Scott and I were discussing an article on Chris Muir's blog. John commented on the article and posted his opinion on his blog (Carl Backstrom and Scott Spendolini posted also a very nice comment). I also added a comment to Chris' post and promised to go into more detail on my blog soon.

Chris' article "A career path for Oracle developers - consider JDeveloper!" is about the choice for JDeveloper as *the* tool for next generation Oracle development.

Do I share Chris' opinion? No. I believe in all Oracle tools but IF I had to go to a deserted island with only one Oracle tool, I would choose the Oracle Database (as I get APEX free of charge with it ;-))!

If one tool was best for everything, Oracle wouldn't have more tools... I strongly believe that APEX can do most of the development and is a true solution for most of the business problems of today. I also believe JDeveloper is a great tool and ADF has its place in this world too.
In my APEX projects I use also other tools like SQL Developer and JDeveloper! I really like the ERD, UML and PL/SQL-tools in JDeveloper.
Some years ago I made a production application in BC4J with JDeveloper. I liked this "new technology", but when I look back, BC4J is already "old" and today you should probably go for ADF or JSF (if you would like to stay in the JAVA arena). Just to say that the JAVA arena is changing quickly, as for APEX it's proven technology (SQL, PL/SQL, JavaScript, CSS, ...)

The comparison.

Last week I read this article (in Dutch). That company did an internal competition: 4 teams, each team uses his favourite technology. They got one day and a half to develop a business case with as much functionalities as possible (in the time frame of that 1,5 day).

The goal of the game

  • find the most suited tool to do RAD (Rapid Application Development).
The technology choices of the teams
  • Oracle Designer, Oracle JDeveloper (with ADF), Adobe Flex Builder and APEX.
Most important area's of the game
  • user friendliness and security.
How could a team score points
  • 80 business rules to implement from webservices, lovs, printing of pdf documents, authentication, calculation of positions etc.
The Game
  • Oracle Designer / Developer Suite
    They got the back-end nicely up and running, but at the front-end there was still some work to do
  • APEX
    The jury was impressed by their application, as they asked how much time they still need to make it a full application ;-) They got almost all back-end done and I can imagine that the front-end was nice and slick.
  • JDeveloper and ADF
    They needed a lot of time to make their data controls (webservices, java-beans, pl/sql functions etc.). They would use these data controls as components in their application (by drag-drop). They also needed a lot of time to make all pages individual, as also multi-record and master-detail screens. Their architecture was nice, but 1,5 day was a bit too short for these guys, I think ;-)
  • Flexbuilder
    This is a new tool of Adobe (I also did some testing with it, as you find in some other posts on this blog). It's a nice tool, but these guys made such a complex architecture that they couldn't get the prototype finished. So they retreated out of competition, but showed what it could do.
The Results
  • The jury was unanimous on this: APEX won the match, but the jury added that changing the templates to a custom lay-out would take some time, which would compensate some of the time they were ahead of the others.

So, shall we *not* use APEX? Hell no!!

The people reading this blog more often know I'm a big fan of Oracle and APEX.
That won't change that fast ;-)

Tuesday, March 27, 2007

Somebody to get you introduced

A friend sent me this link. Have a look at that video, it's unbelievable!!

I really would like to hire him to begin our Apex Evangelists training days!
When somebody like that introduces us... oh boy, I'm sure you won't forget our trainings ;-)

APEX getting famous

Last week, a new version of APEX came out.
A lot of us blogged about it (my blog-roll intercepted these):

Before, "the world" didn't care much about it, but today I get the impression that APEX is getting serious business! Following articles proof this statement:
Probably a lot more articles will follow!

Thursday, March 22, 2007

Adobe Flex and Oracle

A few weeks ago I tried to run the sample Adobe Flex application on an Oracle Application Server (Fusion Middleware) and an Oracle Database.

It's not that difficult to get it running. I got a hint of Marc M. which parameters I should use in the startup of my oc4j and from that moment it worked really nice.

You should start the oc4j as:

"%JAVA_HOME%\bin\java" %JVMARGS% -Xmx1024m -Doc4j.jmx.security.proxy.off=true -jar "%OC4J_JAR%" -userThreads %CMDARGS%

What did I use and why? (my configuration):

  1. Oracle Database 10gR2 - data
  2. Oracle Application Server 10g (stand-alone - 10.1.3.1) - hosting app and monitoring
  3. Adobe Flex Data Services - binding with data
  4. Adobe Flex Builder (with sample apps) - building Flex app
  5. JDeveloper (10.1.3.1) - deploying app

A screenshot to show you the proof ;-)

Friday, March 16, 2007

APEX 2.2.1 upgraded to 3.0 with success

As you can see below, the upgrade to APEX 3.0 on my local instance was successful.
It took me about 56 minutes to have the upgrade running.

(During the upgrade I received an ORA-00257 = problem with archiver - if you've the same error, look at Note:278308.1 in Metalink to solve it)

The first tests were successful... To get pdf printing working, a bit more is necessary, as BI Publisher or an XSL-FO server is necessary. You find the integration steps here.


The new version of APEX 3 on my local machine, exact version Application Express 3.0.0.00.20

The screen after installing APEX 3.0


Thanks APEX-Dev team! This new version is great!

APEX 3.0 out! Get it now!

I'm downloading APEX 3.0 at this very moment! You find the download here, it's about 75MB.

Also, the APEX OTN page is restyled!

Even before I finished my blog post, the download is finished ;-)
Now it's time to get it installed... I also saw that there's something specified about web 2.0.
In the next hours I'll post about the installation/upgrade to APEX 3.0 ;-)

Wednesday, March 14, 2007

Apex Evangelists goes live!

Today John Scott and myself are launching Apex Evangelists, we formed the idea for an Application Express services company during one of our many discussions at Oracle Openworld and over the last few months have honed our idea of what we are going to provide.


The idea behind Apex Evangelists is that we will use our knowledge and experience of Application Express to provide a range of services, some of which are listed here -

  • Application & Website Development (plus of course hosting)
  • Training & Coaching (onsite and in our European Training Days)
  • Application and Database Migrations
  • Support Services

Our primary goal is to be able to provide these services to the European market and to generally evangelise (hence the name!) about how beneficial using APEX can be to European companies. We also decided that in order to take on bigger projects than just two of us could handle and to also cover more of the European market we would also need to involve other great enthusiastic APEX developers, so we're pleased to announce that Dietmar Aust, Patrick Wolf, Denes Kubicek will be helping us in our quest.

These are very exciting times and I'm sure that there are busy times ahead!

APEX 3.0 public (online)

Well, as expected... APEX 3.0 is already on the public APEX site.
I'm sure the downloadable version will be available soon!


I suppose I don't need to say that APEX 3.0 is so, soooo great ;-)

Saturday, March 10, 2007

The history (I know) of APEX

During one of my chats with John Scott, the question popped up how long we were already playing with APEX. I began searching in my archives...

A short overview of how I got in touch with APEX (aka HTMLDB aka Project Marvel).

In 2000 (I was working at Oracle) I saw a demo of an application made in WEB DB. I didn't play that much with WEB DB, but some of my (ex-)Oracle colleagues really loved it. Nevertheless in some projects around that time I used mod_plsql...

A few years later I saw a powerpoint presentation of "Project Marvel". From the beginning I thought, "waaaw" this looks very good and promissing. I think it was around February 2003 I got more information about this project. I even found a screenshot in my archives from that time.


In September 2003 I first heard the name HTML DB. That was the first time I really played with it, I think it was v1.3. I still have a zip of version 1.4 ;-)
I think my first message about APEX (HTMLDB) in the OTN forum was on Oct 1, 2003 2:06 AM. Apparently at that time I was working with v1.4: http://forums.oracle.com/forums/thread.jspa?messageID=554340
Raj, at that time one of the HTMLDB developers, answered me!


The rest you know, as it was public: HTML DB v1.5 -> v1.6 -> v2 -> APEX.
I also found a pdf describing the history.

To show you the difference, a screenshot of the current APEX version
(but that you know, I suppose)

Friday, March 09, 2007

Document management in ApEx

A lot of people still think that ApEx is just a replacement of Excel or Access.
But come on! That's changed already for a long time. ApEx is a real development framework! The community already released a lot of applications and sample code. A lot of the people in the ApEx community are sharing their knowledge and experience...

Still not convinced? Have a look at the below application... It's a free application that you can download on the OTN site. The roll-over menu when you click on readme.txt is very nice, as is all the rest in there. This is just one example of what ApEx can do.

You can login as dg_docm/dg_docm (username/password)

Tuesday, March 06, 2007

Getting to know yourself

I'm currently looking into myself. I really want to know who I am and where I stand for.
The more and better you know yourself, the more and better you can be there for others.
Thanks to somebody I really appreciate I got in touch with Enneagrams.
This is a really nice theory about a person... It's nothing IT or Oracle related, but I thought to blog about it, as this can maybe help some others to find themselves.

An Enneagram looks like this:


Not sure if this is "well-known" in the world of IT and Consulting.

Saturday, March 03, 2007

SQL injection? No, Cursor injection

Just came across a paper called "Cursor Injection - A New Method for Exploiting PL/SQL Injection and Potential Defences" of David Litchfield.

It shows once more that writing proper code is important, as is getting your database to the right patch level.

--
Off topic: Carl Backstrom blogged about a music clip called "Code Monkey" here. You should see it, it's fantastic!
--

Friday, March 02, 2007

Doing a whitepaper? Begin early enough!

This will probably be my last night working on my whitepaper for Collaborate 07. I look forward to get a long night in the weekends!

This night I was not alone! My friend John Scott was also working on his presentation ;-) When you know you're not alone doing these things that need to be done, it's a bit easier. We also triggered each other once and a while. Thanks John to keep me alive!

It's my first whitepaper for a big event, so I thought I should blog about my experience doing that and also to warn the others not to make the same mistake.

I submitted my extract, that's easy... I had also my presentation in my "head" (I thought), so writing this whitepaper shouldn't take that long. That was a *big* mistake, or should I say a miscalculation. ;-)

I started with the concept of what I wanted to tell: ApEx Shared Components, what can they do? and why and how I used them in DG Tournament. A manual is great, but it doesn't show you that specific thing working in a real environment, so I wanted to cover that area.
Of course I love some screenshots, as an image says more then thousand words, so I made a lot of them and included it in the whitepaper.

When I was writing things down, I thought: "Will this be interesting enough for the public?", "Does all this get fit in an one hour presentation?" etc.

So, I asked John Scott and Doug Gault to have a look at the very first draft of the paper. They sent me some comments and tips how to improve (thanks guys).
That's something I learned from Tom Kyte, he told once that it's important to have good reviewers.
I realize now I should have asked more people to read my whitepaper or let them reread the current version. Well, next time I'll try to do better and think about what happened this week.

Finally my Tips & Hints when you want to do your first whitepaper:
  1. Prepare yourself
  2. Know what you want to write about
  3. Know what you want to tell to the audience
  4. Start early
  5. Let good people review your paper
  6. Adapt accordingly
  7. If time becomes an issue: get enough coffee ;-)

This is my advice so far, I wish I had followed all of that myself!
If you're having some other tips for me, don't hesitate to put a comment.

Thursday, March 01, 2007

Session State Protection and URL Tampering in ApEx

For the third night in a row I'm working on my whitepaper "APEX by Example: Shared Components" for the IOUG Collaborate 07 conference. I need to upload it tomorrow, so no time to loose! Nevertheless I wanted to blog about URL Tampering, which I was investigating when I came to "Session State Protection" in the Shared Components area of ApEx.

For the moment I described it like this in my whitepaper (comments to make it better are welcome):

Session State Protection

Enabling Session State Protection can prevent hackers from tampering with the URLs within your application. URL tampering can adversely affect program logic, session state contents, and information privacy.

In DG Tournament


Why?

For security reasons! URL Tampering - Web based applications, including those developed in Oracle Application Express often pass values from one page to another through a URL. A clever enough user may observe this and override a value by typing his own value in the location field of his browser. For example in DG Tournament, when logged in as Admin, I can see a list of all users. When I click on that user for his details I see the same screen as a normal user would see in the “Your Profile” page. The URL that’s doing that call looks like this:

f?p=103:10:240848379705417::NO::P10_USER_ID:70

My application is 103, on page 10 with session id 240848379705417 (my session has a unique nr) you see at the end: P10_USER_ID:70 which means that my record (Dimitri Gielis) is user_id 70. By putting this in the url, the session knows about this value.
When “Session State Protection” is disabled you can easily see another user by changing the url to

f?p=103:10:240848379705417::NO::P10_USER_ID:71

This will give me the record (user) with user_id 71, without passing through the application I can obtain other information.
When “Session State Protection” is enabled you get a message like on the above screenshot, which tells you that the session state protection is violated.

How?

  1. At the moment the Session State Protection is disabled.


  2. To enable, disable, or configure Session State Protection using a wizard, click Set Protection.


  3. Click the Enable Session State Protection button


  4. We can see that the Session State Protection is now Enabled


  5. By clicking on the Page button you get following screen


  6. Select the page you want to protect, in DG Tournament for ex. User Detail and change the Page Access Protection.You can also go onto Item level to set the protections.


  7. That will add to the end of the url a checksum. An example of the previous url, but protected:
    f?p=103:10:240848379705417::NO::P10_USER_ID:70&cs=3831E8EB498FF406064BE08337E72A9DF When you try to change the user_id from 70 to 71 you get a message that the session state protection is violated.