Skip to main content

Oracle

How to Export Oracle DB Schemas Using SQL Developer

This is part of a blog series on migrating data from Oracle Databases into Oracle Autonomous Data Warehouse (ADW). This blog will discuss how to export Oracle Database Schemas using the SQL Developer.

Quick links to other posts in this series:

Summary Blog Post

  1. Export Data into Dump Files
    1. Option 1: Export DB Schemas Using SQL Developer (this post)
    2. Option 2: Export DB Schemas Using Data Pump Command
  2. Transfer Data Dump Files over to Oracle Cloud Object Storage
    1. Option 1: Swift REST Interface to Upload Files to Oracle Object Storage
    2. Option 2: OCI CLI Utility to Upload Files to Oracle Object Storage
  3. Import Data Dump Files into ADW Using SQL Developer

In this blog post I demonstrate how to export Oracle Database schemas into dump files. These dump files can then be imported into another Oracle DB or Autonomous Data Warehouse (ADW). In this post, I use SQL Developer to run the Data Export Wizard.
In order to access the Data Pump export Wizard, first display the DBA window from the View menu. Add the connection to the source database to export from. Then under that connection, navigate down to Data Pump -> Export Jobs. Right click and select the Run Data Export Wizard.
There are a few different types of data pump exports. In this example, I chose to do a Schema export. This allows me to merge several schemas from different source databases into the same target ADW.
SQL Developer Data Pump
We can export one or multiple schemas at the same time by selecting them.
SQL Developer Data Pump
If the purpose of the export is to later import the data dump into ADW, it is recommended to exclude certain database objects that are not necessary on ADW. For example, performance is likely better without creating indexes on ADW, and that is why we exclude them from the export. The following type of objects are recommended to be excluded for ADW purposes: Index, Index Type, Cluster, Materialized View, Materialized View Log, Materialized Zonemap, and DB Link.
SQL Developer Data Pump
SQL Developer Data Pump
Note the VERSION dropdown in the following screen. If you are going to import later into a lower version Oracle DB, you want to set the version number to that of the target database. Since my aim here is to later import into ADW, I kept it to the default value of Compatible.
SQL Developer Data Pump
On the following screen, select the DIRECTORY that will contain the output dump files. This directory needs to be created before you continue, in case you don’t already have a directory setup with the proper permissions to export files to. Use the following SQL command to create a directory if you don’t already have one. You can run this using SQL Developer:
In the following example, the name of the DIRECTORY is DP_FROM_ONPREM:

CREATE DIRECTORY DP_FROM_ONPREM AS ‘/u01/app/oracle/admin/ORCL/dpdump/files’;

Notice that my File Name in the following screenshot ends with %U. This tells the wizard to use a numeric increment on the suffix of the file name, in case I end up with an export that consists of more than one file. This will happen if the export is large in size. You can control how large each of the export files can be. In my example, I set it to be ~2GB for each file.
SQL Developer Data Pump
SQL Developer Data Pump
Once you finish the wizard, you will see a new export job added in the DBA window. When you click on the job it shows whether it is still executing or if it’s stopped. You can also see the log of the execution in the lower window. As the export is running, navigate to the directory that you set for the dump files and verify that they are created in there.

Thoughts on “How to Export Oracle DB Schemas Using SQL Developer”

  1. Great post. Great help!
    One question – Do we need to keep the SQLDeveloper open when exporting data

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Mazen Manasseh, Director of Business Analytics

Mazen is a Director of Business Analytics at Perficient and an accomplished professional services leader with 20 years of being a customer advocate. An analytics solutions delivery expert in functional domains covering Supply Chain, Financials, HCM, Projects and Customer Experience. Being a thought leader in the business analytics space, he conducted numerous business training sessions and spoke at technology conferences around analytics and machine learning.

More from this Author

Follow Us