I've put off this installation since moving from Windows as I knew some people had issues with the de-support of the JRE on Ubuntu by Oracle. After messing about using several different web sites and having to change my translations from forum sites (not everyone has English as their first language!) into hard instructions, I finally got it working on my laptop.
I filtered the instructions into a file then ran them against my desktop. I had one small edit and the result is here for you to have.
Let me know if it helps.
Phiz
- Sign up with Oracle Technical Network and go to download page - http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html
- Accept License Agreement
- Use link Oracle SQL Developer for other platforms (This zip does not include a JDK) for download.
- Use Ubuntu Software Center and download and install Java (as Oracle no longer provide a JRE for Ubuntu, use java-6-openjdk)
- Edit the ~/.bash_profile file and include the following two lines: export JAVA_HOME=/usr/lib/jvm/java-6-sun
export PATH=$PATH:$JAVA_HOME/bin - Create a directory in home directory to hold the binaries – mine was /home/phiz/sqldeveloper
- Copy the downloaded file to the new directory
- Unzip the file in the new directory unzipsqldeveloper-”version_number”-no-jre.zip
- Change the privs on the directory and files
$ chmod -R a+rwx sqldeveloper
- Add the menu bar icon and make sure it works! Enter the following lines at the prompt as they are here:
cat > sqldeveloper.desktop <<EOF
[Desktop Entry]Exec=/usr/local/SQLDev/sqldeveloper/sqldeveloper.sh %U
Terminal=false
StartupNotify=true
Categories=GNOME;Oracle;
Type=Application
Icon=/usr/local/SQLDev/sqldeveloper/icon.png
Name=Oracle SQL Developer
EOF
- Move to the source directory you created earlier:
$ cd sqldeveloper
- Run the startup script
./sqldeveloper.sh - At the prompt to add the location of Java I added my install location:
/usr/lib/jvm/java-1.6.0-openjdk
I'd be pleased to have your feedback.