Starting with Oracle DB on AWS and Oracle SQL developer remotely
What you need to complete this installation
This gist was made on a
Ubuntu 18.04 LTS.
A. Default OpenJDK - installed on your local machine
B. Oracle SQL Developer - Linux RPM installed on your local machine
C. Oracle DB instance hosted on AWS using RDS
D. Remote connection to your DB using Oracle SQL Developer
A. Install the Default OpenJDK
$ sudo apt-get update $ sudo apt install default-jdk $ java -version
B. Install Oracle SQL Developer - Linux RPM
Linux RPM click on Download.
Open your Terminal, create a folder oracleSQL and move the "sqldeveloper-220.127.116.11.2212.noarch.rpm" file you've downloaded in that folder.
Alien converts an RPM package file into a Debian package file or Alien can install an RPM file directly.
Open a new Terminal window, and use as follows:
sudo add-apt-repository universe sudo apt-get update sudo apt-get install alien
Go to your oracleSQL folder, and use as follows:
sudo alien <name_of_package>.rpm (e.g: I'm using sqldeveloper-18.104.22.168.2212.noarch.rpm).
Once command completed...
$ ls $ sudo dpkg -i <name_of_package>.deb
Your directory should now look like this ...
The executable should be located in the opt/sqldeveloper ...
Launch Oracle SQL Developer
C. Connect to a database remotely
If you have an
GCPaccount, you can connect to your database using Oracle SQL Developer.
I'm here using an
Oracle RDS instance on my
3. Create an Oracle DB instance hosted on AWS with RDS
AWS Management Console, go to Services > RDS.
Go to Databases > Create database > Choose Standard create > Configuration: Oracle as engine type
Edition: choose Oracle Standard Edition Two
Version: select Oracle 22.214.171.124.v2
Templates: choose Dev/Test
DB instance identifier: ORCL-DB-Test
Master username: choose a username
Master password: choose a password
DB instance size: choose Burstable classes > select db.t3.micro
DB instance size: select Burstable classes (includes t classes) > db.t3.small
Storage > Allocated storage: 20 GiB
Disable "storage Auto Scaling"
Connectivity: set Publicaly accessible to Yes
Then Create database. When your DB is up and running...
4. Connect and provision your DB remotely using Oracle SQL DB
Go back to
Oracle SQL Developer locally and connect to your DB credentials.
On Connections click on the "plus" button.
Connect with the information provided upon the DB creation on RDS.
Here you go! You are now connected to your Oracle DB remotely using Oracle SQL Developer.
In your left panel, you are connected to a database. Now you can create tables and start interracting with your DB.
Basic SQL syntax
We are here using basic SQL syntax to show how our DB works.
CREATE TABLE students ( contact_id NUMBER(10) NOT NULL, last_name VARCHAR2(50) NOT NULL, first_name VARCHAR2(50) NOT NULL, address VARCHAR2(50), city VARCHAR2(50), uni_assignment VARCHAR2(50), CONSTRAINT students_pk PRIMARY KEY (contact_id) );
You can create and provision tables in Oracle DB using PL/SQL syntax for more advanced needs.
If you enjoyed this gist, feel free to fork and share it! Thanks.
- Isaac Arnault - Start with Oracle SQL Developer on Linux.