Installing Sql Developer On Parallels

This short post covers the installation of Oracle SQL Developer and the IP tables change required on OEL 6.4 to open up port 1521 so SQL Developer can connect to the Oracle database.

SQL Developer 4.1 is easy to set up and use, so there is very little setup required to follow the code examples for learning SQL and PL/SQL. The best way to learn is by practice, and for that you'll need a computer with access to an Oracle database and SQL Developer. This article, and indeed the rest of the blog, is written with the assumption that you have a computer with Microsoft. 1.1 SQL Developer System Recommendations. This section describes the recommended.

The illustration below from my earlier post, Host to Install OEL 6.4 as a VirtualBox Guest, shows that I run my Oracle 11g Enterprise Edition spatial learning lab on VirtualBox, but my tools run on the host OS, Ubuntu:

Configure the Hosts File

Add the host name of the Oracle database server to /etc/hosts on the machine running SQL Developer.

Open Port 1521

SQL Developer needs to connect to the TNS listener on the Oracle database server over port 1521 (or some other configured port), so Linux needs to accept traffic on port 1521. Use Telnet to test whether the port is open on the database server. From the machine running SQL Developer issue the following command substituting your Oracle database server host name and listener port.

If telnet cannot get through on that port check the /etc/sysconfig/iptables file on the Oracle database server. Confirm that port 1521 is open. I had to add the rule outlined in red. Please talk to your Systems Administrator about the risks of making this change. My house is behind a firewall appliance and port 1521 is blocked to the outside world, so I felt secure making this change.

If you make changes to /etc/sysconfig/iptables run the following command to restart iptables afterwards:

Download SQL Developer

Download SQL Developer from here: http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html. Pick the appropriate distribution for your system. For OEL 6.4 that is Other Platforms.

Install SQL Developer

The installation itself is very well documented here: https://forums.oracle.com/forums/thread.jspa?threadID=2302774. Follow the instructions found on that page to install SQL Developer.

The SQL Developer software requires Java. The link above includes a step where you have to add the Java installation location to a configuration file. I’ve had to do that in the past on other machines, but I did not have to do that on this machine. Since I’m a Java developer and need to use an older Sun distribution of Java for compatibility reasons I did a separate set-up step not mentioned before in my blog. That included added JAVA_HOME to my .bashrc file.

Add a Database Connection

After installing and launching SQL Developer click the green plus sign to add a new database connection:

Sql

Supply the information displayed when the TNS Listener was started.

Installing sql developer on parallels 2019

Installing Sql Developer On Parallels Windows 10

Connect to the Oracle Database Server

Installing Sql Developer On Parallels 2019

As long as your database is started, your listener is listening to port 1521, and iptables allows traffic on port 1521 you should now be able to connect to the SPATIAL_LEARNING database.

In my next post, I will setup Oracle Map Viewer.