Showing posts with label Oracle. Show all posts
Showing posts with label Oracle. Show all posts

Java EE 7 Is About To Coming?

Java EE 7 AKA The Cloud some feature: multi-tenancy, application versioning, support for NRDBMS stores but also about modularity, trying to leverage what will be done at the JavaSE level. Of all the APIs up for a new version, JAX-RS and JPA seem to be the closest to being filed as JSRs.


It's been one year since Java EE 6 was released (December 2009) and it's now time to start talking about Java EE 7. In fact at JavaOne San Francisco in September, at Devoxx in November and at JavaOne Sao Paulo and Beijing in December, the technical keynotes have gradually introduced what Oracle would like to see addressed in this release.


Credit: Oracle newsletter

Oracle Magazine November/December 2009

Oracle Magazine November/December 2009 ready for download.

This issue includes the following feature articles:

Portraits of Excellence
Each year the editors of Oracle Magazine present Editors' Choice Awards to people who exemplify leadership, vision, and dedication in working with and managing Oracle technology. This year, we are pleased to present the winners of our eighth annual Editors’ Choice Awards, and we are honored to feature them in our pages.

Announcing Oracle Exadata V2
Oracle unveils Oracle Exadata V2, the first database machine for online transaction processing.

Better for Business
Andy Mendelsohn, senior vice president of Database Server Technologies at Oracle, talks about how Oracle Database 11g Release 2 answers customer challenges and reduces costs.

Oracle Database 11g Release 2: Consolidate. Compress. Control.
While managing exponentially increasing data volumes and meeting demands for high availability, DBAs are also tasked with delivering ever greater service with ever greater efficiency. Find out how Oracle Database 11g Release 2 can help DBAs address these challenges and help companies control and manage their information—while lowering costs.

Online version click here

Offline version click here

Enjoy.

ADF Bugs

I'm not sure if this ADF or JSF or Java VM bugs, but i'm having this bugs while using JDeveloper 10g and ADF Toplink technology. So i assume this is ADF bugs.


How to produce this bugs ?
1. Open JDeveloper IDE
2. Create new JSF page
3. Add a lot of component ex 1000 command button just like this

ADF Bugs

4. Run


The console will throw error like this :
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d741046, pid=3156, tid=1616
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode)
# Problematic frame:
# V  [jvm.dll+0x61046]
#
# An error report file with more information is saved as hs_err_pid3156.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
Process exited with exit code 1.

ADF How To Clear or Reset Search Form in Jdev10g

Google Blogger does not allow me to upload attachment so wait for 4 images loaded.

Credits :

Olaf Heimburger
Frank Nimphius
OTN Forum


The problem :
Let say my application based on HR schema. I've search form for employees and departments.
For employee we can search by first name, last name, email and so on.
For departments we can search by department name and manager.

So i enter employee search form and search employee first name Steven. I got 2 records, thats fine.
I leave to another form and now the riddiculous thing are when you come back to employee search form again,
you'll see your previous first name parameter Steven and your previous result which is 2 records.

Thats mean to me Oracle does not clear / reset input value in the form.

Toplink Jdev10g How To Delete Child Record

The problem :
Recently i've found problem when trying to delete the record with child record programmaticly using Toplink in Jdev10g.

For example imagine i'm about to delete IT Department in HR schema.

Here is my piece of code in SessionBean to do that :

uow.deleteObject(itDept);

And my embedded OC4J thrown me
Exception TOPLINK-4002 (Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061214)): oracle.toplink.exceptions.DatabaseException
Internal Exception: java.sql.BatchUpdateException: error occurred during batching: ORA-02292: integrity constraint (FK_CHILD_PARENT) violated - child record found

Oracle ADF Faces Template in JDev 10g

My project (maybe almost project need this) require a template so when developing user interface, developer no need repeat adding banner, logo, application title, footer, etc. SRDemo example teach me to create template.jspx file and then copy paste this template to another jspx file. This is bad idea, because if somehow my logo changed, then i need to modified ALL of my jspx file.


So i'm start Googling to research about this. But sadly Oracle does not officially support ADF template in JDev 10g. JDev 11g does, but after some consideration we,re using JDev 10g.


After a bit research led me to ADF Region. But like i said, this is not supported so it's not covered in Oracle ADF Developer Guide book. Thanks to Edwin Biemond blog and AMIS blog to contribute great article about ADF Region.

Oracle JDeveloper 10g Review

After 2 weeks using Oracle JDeveloper 10g, more spesific JDev 10.1.3.3, i'll share my opinion about this tools.


Here is JDev editor in my computer.
JDev 10.1.3.3 Editor

The Real Story Why Microsoft Needs Yahoo

So one day, Scott McNealy, founder and chairman of Sun, read in his morning newspaper how the use of Java was rapidly diminishing, courtesy of something called 'The LAMP Stack'. Furiously, he called his accountant.

Scott: "I knew this Java thing was a bad idea in the first place! I see only one solution. We need to buy this Lamp!"
Accountant: "Euh, LAMP is not a company. It's an acronym. It's Linux , Apache, MySQL and PHP"
Scott: "Then buy me Linux!"
Accountant: "But we still have this Solaris thing.."
Scott: "Then buy me Apache!"
Accountant: "That's a foundation. Nothing to buy there."
Scott: "Then buy me MySQL!"
Accountant: "We don't do databases."
Scott: "It's a database?"
Accountant: "What rock have you been living under?"
Scott: "Sweet. I can own the Lamp AND piss off Oracle at the same time!" (waves fake plastic magic wand) "Make it so!"


And so it happened.

Ten days later, Microsoft CEO Steve Ballmer was reading the CIO Magazine, and read about this interesting thing called PHP, that according to the author you could use to write "WHAT?!". "WHAT?!", obviously a highly advanced and evolved version of "Hello World", caught his attention. So he called Bill Gates.

Steve: "Hey, you heard about this PHP thing?"
Bill: "Pee Age Pee? You're not that old yet, are you?"
Steve: "What? No, wait, it's a programming language, apparently better than ASP.NET."
Bill: "Who cares if it's better. I mean; we made the worst operating systems ever and still rule. (Checked out Leopard yet? It is SO cool.)"
Steve: "I don't know Bill... remember that internet thing that we didn't know about years ago? Kind of nearly missed the boat there."
Bill: "Right. Didn't we solve that in the same way? Worst browser, highest market share, that sort of thing?"
Steve: "Yes we did, but then we also didn't know about this 'mp3' thing until it was too late."
Bill: "We did manage to make Zune the worst player, but somehow we're not market leader. Guess we got sloppy?"
Steve: "Maybe it's just different times. Maybe we should have a different strategy."
Bill: "Ok, so let's just buy PHP then."
Steve: "It's not a company. But Encarta says it's written by a Rasmus Lerdorf."
Bill: "So let's hire him."
Steve: "Tried that. Didn't want to join. Can't blame him, works at Yahoo."
Bill: "Then I guess we'll have to buy Yahoo."


So it happened.

Two of the most controversial announcements of this month, and both appear to be part of devious plots to take over the LAMP stack. What's next? My prediction: Red-Hat buys Zend; Oracle buys Red-Hat; Sun and IBM join forces to buy Oracle, Microsoft buys Sun, kills IBM and peace is restored in the galaxy.

P.S. Can you imagine Microsoft running sites like Flickr? These guys invented MS Paint!

Reference http://www.jansch.nl/2008/02/02/microsoft-and-sun-the-real-story/

Bugs in Oracle Query ?

I want to query a data with date condition. Guess what ? This similiar query give a different result.

1st query give the exact result that i wanted.
SELECT * FROM my_table
WHERE TO_CHAR(date_time, 'DD/MM/YYYY') BETWEEN '01/10/2007' and '6/11/2007'

2nd query result nothing
SELECT * FROM my_table
WHERE TO_CHAR(date_time, 'DD/MM/YYYY') BETWEEN '01/10/2007' and '06/11/2007'

The different is, the 1st query use 6-11-2007 instead of 06/11/2007.

FYI, i use Oracle database 9i and running query in Toad for Oracle 8.5.3.2

Any idea why this can happen ?

Oracle Fusion Middleware Event

Oracle Fusion Middleware Forum September 5th 2007 at Intercontinental Hotel, Jakarta


Oracle FMW, Gunawan Loekito
Welcome speech by Mr Gunawan Loekito


Oracle FMW, Akhmad Makki
Mr Akhmad Makki, Oracle Senior Consultan


Oracle FMW, Frans Thamura JUG Indonesia
Mr Frans Thamura, Oracle FMW advocate


Oracle Fusion Middleware
lunch break


Oracle Fusion Middleware
lunch break


Unfortunally picture quality for David Forden, Oracle Director Sales ASEAN is too bad, so i can't upload here.