Use SQL Developer to port SQL to Oracle (5)

Source: Internet
Author: User

This section describes how to useSQL DeveloperPort SQLOraclePart 5: transfer data.

In the previous section, the Migration wizard automatically generated the table structure we needed in the Oracle database, but it did not help me to import the data successfully. So we use the method of generating offline data mobile scripts to export data.

On the project page of the migration wizard, select the directory generated by the script to open the directory. You can see a subdirectory named "data movement \ Project name \ Date and Time, the file contains the following files:

We can see that there are four script files, two for Windows and the other two for unix. The data export script named unload_script is used to generate a data export file from the source database. The data import script named oracle_ctl is used.

Open cmd, browse to the current directory, and run the following command to export data:

 
 
  1. >unload_script [server] [username] [password] 

The server is the source database server, and the username and password are the username and password that can access the source database. Wait a moment and prompt that the export is complete. Then run the following command to import data:

 
 
  1. >oracle_ctl [oracleusername] [password] 

You do not need to specify the database name or the like here, because it has already been specified in the script.

Wait for a moment after the import is complete.

At this point, the knowledge about migrating SQL to Oracle by SQL Developer has been introduced. If there is anything wrong with this article, you are welcome to criticize and correct it.

Source: http://www.cnblogs.com/hiizsk/archive/2011/07/10/2102458.html.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.