Oracle Export Import table (. SQL,. dmp file) two methods,. SQL. dmp

Source: Internet
Author: User

Oracle Export Import table (. SQL,. dmp file) two methods,. SQL. dmp

Two ways to export an import table (. SQL and. dmp files) from Oracle

Method 1: Export and Import SQL files

Export procedure

5. Select the table for data export from the list, select SQL insert, select an SQL file, and click Export. This step exports the data to the database.

6. In this way, two SQL statements are used to back up the data structure and data.

Import Procedure

In the plsql tool, click File-new-command window to paste the two. SQL File statements and execute them twice.

 

Method 2: Export and Import dmp files

1. Export the table structure:

Expdp system/admincss @ WSYDBSPT directory = DATA_PUMP_DIR schemas = hx_xt dumpfile = WSYDBS. dmp

Note: system/admincss @ WSYDBSPT administrator username and password, Database Service name, directory = DATA_PUMP_DIR (query by select * from dba_directories), schemas = hx_xt export table structure data from this username

2. Import table structure

Impdp system/admincss @ WSYDBSPT directory = DATA_PUMP_DIR schemas = hx_xt dumpfile = WSYDBS. dmp

 

 

 

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.