No fancy words this time, let's start.
Setting Up the Gear
OK, you've decided to learn to develop with ADF. Now is the time to get the minimal environment setup for you. Your toolbox should contain these tools:- JDeveloper - This is the primary tool for developing with ADF, none gives you better support. Get it from OTN.
- Oracle XE Database - To makes things much, much easier, I prefer to use the Oracle XE database. This is a stripped down data base, which behaves a lot like a normal Oracle database, but uses less memory and allows only 4 GB data files. Get it from OTN.
- On Linux you'll need to get a recent JDK 5 before running JDeveloper.
Note: Oracle XE Installation
To speed up the boot time of my environments, I avoid the automatic XE startup. On Windows, I've changed the startup type for the services OracleServiceXE, OracleXETNSListener to Manual. On Linux, while running the post-installation task /etc/init.d/oracle-xe configure, you have to answer the question "Do you want Oracle Database 10g Express Edition to be started on boot (y/n) [y]:" with N.Note: JDeveloper - Which version?
In this series I'll cover both JDeveloper 10.1.3.x and JDeveloper 11 Technical Preview 3 (TP 3). If you've to bet your project on it, start with JDeveloper 10.1.3.3. Migration options will be covered.Installation Verification
Once everything is installed, we need to verify our setup.Verifying XE
First start XE. On Windows and Linux you'll find an Oracle Database 10g Express Edition menu with a Start Database entry. After XE came up, you need to point your browser to the XE Homepage (http://127.0.0.1:8080/apex/). On the XE Homepage you can log in to the XE management console and can check the data base settings. Log in by entering sys and your password value provided during the installation. To finish this step click on the Logout link on the upper right corner.Verifying JDeveloper
Now we're able to start JDeveloper. Depending on your JDeveloper download, you might be asked to supply the location of the JDK. On Windows, a window pops up and lets you browse to the java.exe file of your JDK. On Linux, you have to supply the home directory of the JDK installation (ie. /opt/java/jdk1.5.0_14 on my machine). Next, you'll see the JDeveloper splash screen which will be followed by the JDeveloper main window.Note: JDeveloper 11g TP 3
The JDeveloper 11g TP3 release relies on the setting of the environment variable JDEV_USER_HOME for your user directory. This is by default $HOME/JDeveloper. On Windows this path includes white spaces (ie. c:\Documents and Settings\) which is not recommended for this release.Verifying the Database Connection
The last step for today is the setup of the database connection in JDeveloper.In 10.1.3.x
- Click on the Connections Navigator tab (upper left under the tool bar)
- Select Database
- Open the Context Menu and select New Database Connection...
- A four step wizard appears.
- Step 1 - Enter the Connection Name as sysXE
- Step 2 - Enter the Username as sys, the Password with your value, and the Role as SYDBA
- Step 3 - Enter the Hostname (localhost), the Port (1521), and the SID (XE)
- Step 4 - Test the connection by clicking on the Test Connection button. This should show a Success! message in the text area below.
- Click on the Finish button to close this wizard.
In 11g TP 3
- Find the Resource Palette (if not visible chose View->Resource Palette)
- Once available find the New icon (a folder with a star on the upper right), click on it, a menu will appear.
- Select the New Connection sub-menu and select the Database menu item.
- In the Create Database Connection window fill in the blanks with the similar values as above. Connection Name sysXE, Username sys, Password your value, Role SYSDBA from the drop down, Host Name localhost, JDBC Port 1521, SID XE.
- Click on the Test Connection button and get the Success! message in the text area below the button.
- Before you close the window be sure to have the Create Connection In:IDE Connections (Resource Palette) radio button checked.
- Once everything is correct, click on the OK button to close the window and create the connection in the Resource Palette.
JDeveloper Differences So Far
With this little setup chapter you have already seen a major difference between the JDeveloper 10.1.3.x and 11g TP3 versions:- All connections are available as IDE-global in both versions.
- 11g adds application-specific connections which can differ from the global settings
- In 11g the Create Database Connection is now in one window only and much easier to use.
Comments (1)
Looking forward to a new episode now ;-)
Posted by Mike | February 12, 2008 6:23 AM
Posted on February 12, 2008 06:23