Skip to main content

Connect various databases using Oracle SQL Developer

Below steps are used to connect to various databases using Oracle SQL Developer.

  1. Install Oracle SQL Developer from the Oracle website here
  2. By default, it can be able to connect with Oracle database. So no explanation needed.
  3. Before connect to databases, need to configure the drivers for the databases into the Oracle SQL Developer.
  4. Go to Tools > Preferences > Third party JDBC drivers, configure all the drivers here.
  5. For Microsoft SQL Server, follow below steps to configure.
    1. Download jtds jar file from here
    2. In SQL Developer, Add entry in the above mentioned page Third party JDBC drivers.
    3. Give all credentials in the SQLServer tab and click the Retrieve database which is like in this image 
  6. For MySQL, follow below steps to configure.
    1. Download MySQL connector from here 
    2. In SQL Developer, Add entry in the above mentioned page Third party JDBC drivers.
    3. Give all credentials in the MySQL tab and click the Retrieve database which is like in this image 
  7. For PostgreSQL, follow below steps.
    1. Download PostgreSQL connector from here
    2. In SQL Developer, Add entry in the above mentioned page Third party JDBC drivers.
    3. For selecting the database, use host name as  like shown in this image, here test is a database name

Comments

Popular posts from this blog

Identify the duplicates in MySQL

To identify the duplicate entries in MySQL, use below query.                      SELECT COUNT(*) as repetitions, group_concat(id, ' (', startTime, ', ', endTime, ') ' SEPARATOR ' | ') as row_data FROM GROUP BY startTime, endTime HAVING repetitions > 1 FYI, id, startTime and endTime columns should be changed based on your table schema. you can change the output format here like alias and the separator.

Exclude or Include table(s) during creating backup from MySQL

 To exclude tables when you are creating database backup from MySQL, execute below query. mysqldump -u root -p<Password> DATABASENAME --ignore-table= DATABASENAME.TABLENAME  > BACKUPFILENAME.sql  To include  tables when you are creating database backup from MySQL, execute below query. mysqldump -u root -p<Password> DATABASENAME TABLENAME1 TABLENAME2  > BACKUPFILENAME.sql Take note that there is no whitespace between -p and the password..