Oralce data export and import

Source: Internet
Author: User

There are many ways to export and import ORACLE data. You can simply record how to use commands.

Method 1. Use PLSQL to export and import data

In this way, you can export and import DMP files, SQL files, and data.

Method 2: Import and Export commands

Run the doscommand
Data Export:
1. Export the database test completely, and the username System Password Manager is exported to D: daochu. dmp.
Exp system/manager @ test file = D: daochu. dmp full = y
2. Export the System user and SYS user tables in the database
Exp system/manager @ test file = D: daochu. dmp owner = (system, sys)
3. Export the inner_noty and noty_staff_relat tables in the database.
Exp aichannel/aichannel @ testdb2 file = D: datasmgnt. dmp tables = (inner_noty, noty_staff_relat)
4. Export the field filed1 in table 1 in the database with the header "00"
Exp system/manager @ test file = D: daochu. dmp tables = (Table1) query = "where filed1 like '201312 '"
The above is a common export. For compression, the DMP file can be well compressed using WinZip.
You can also add compress = Y to the end of the preceding command.

Data Import:
1. import data from D: daochu. dmp to the test database.
IMP system/manager @ test file = D: daochu. dmp
IMP aichannel/aichannel @ HUST full = y file = D: datasmgnt. dmp ignore = y
The table already exists, and an error is reported. The table is not imported.
Add ignore = Y to the end.
2. Import table 1 in D: daochu. dmp
IMP system/manager @ test file = D: daochu. dmp tables = (Table1)

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.