Installing SQL Developer on Ubuntu 12.04

 

Quelle: http://www.daniweb.com/hardware-and-software/linux-and-unix/threads/436584/installing-sql-developer-on-ubuntu-12.04

So, if – like me – you find yourself in need of installing SQL Developer on Ubuntu 12.04 and have for some or other reason ended up downloading the rpm instead of the zip from the Oracle site or you already have an rpm of SQL Developer lying around follow these steps to install said software.

Then, to the terminal:

  1. First install alien:
    sudo apt-get install alien
  2. Then, convert the rpm file to a deb file:
    sudo alien –scripts -d sqldeveloper-3.2.10.09.57-1.noarch.rpm
  3. Then we run the deb file generated
    sudo dpkg -i sqldeveloper-3.2.10.09.57-1.noarch.deb
  4. Create the following directory in your home folder, this where it’s going to store path to the jdk in the next step:
    mkdir .sqldeveloper/
  5. Run sqldeveloper once from the terminal
    sudo /opt/sqldeveloper/sqldeveloper.sh
  6. Enter the full path to Java 6

    If you’ve got the openjdk, it’ll be:
    /usr/lib/jvm/java-6-openjdk

    For the official one it’ll be:
    /usr/lib/jvm/java-6-sun

And that’s SQL Developer on Ubuntu 12.04. From here on out, you can now run SQL Developer by clicking the icon in you application menu.