Common Oracle Import and Export commands

Source: Internet
Author: User

 Common Oracle Import and Export commands

 

Run this command in "Start Menu> RUN> cmd ".

One-stop data export (exp.exe)

1. Export the database orcl completely, username system, and password accp to the d: \ daochu. dmp file.
Exp system/ACCP @ orcl file = D: \ daochu. dmp full = y
 
2. Export Scott user objects in the database orcl
Exp Scott/ACCP @ orcl file = D: \ daochu. dmp owner = (Scott)
 
3. Export the table EMP and Dept of Scott in the database orcl.
Exp Scott/ACCP @ orcl file = D: \ daochu. dmp tables = (EMP, Dept)

 

4. Export the tablespace testspace in the database orcl
Exp system/ACCP @ orcl file = D: \ daochu. dmp tablespaces = (testspace)

 

Binary data import (imp.exe)

1. import data from D: \ daochu. dmp to the orcl database.
IMP system/ACCP @ orcl file = D: \ daochu. dmp full = y

 

2. If the data table already exists during import, an error will be reported and the table will not be imported. Add ignore = y to ignore the existing table and append records to the existing table.
IMP Scott/ACCP @ orcl file = D: \ daochu. dmp full = y ignore = y

 

3. Import the table EMP in D: \ daochu. dmp
IMP Scott/ACCP @ orcl file = D: \ daochu. dmp tables = (EMP)

 

 

 

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.