Oracle Import and Export

Source: Internet
Author: User
Tags import database

Export (import)% ORACLE_HOME %/db_1/bin/exp.exe(imp.exe)
You can configure the environment variable path and then directly use the exp command.

Bytes -------------------------------------------------------------------------------------------

· Export: Export tables, export solutions, and export Databases
Export The exp command. Common options include:
Userid: Specifies the username, password, and connection string used to execute the export operation.
Tables: Table to be imported
Owner: solution to be imported
Full-Y: database to be exported
Inctype: incremental type to be exported
Rows: data in the table to be exported
File: Specifies the name of the exported file.

Export table
① Export your own table

Exp userid = username/password @ database instance name tables = (table name 1, table name 2) file = D: \ e1.dmp

② Export tables of other schemes (at least DBA permission is required or exp_full_database permission is required)
Exp userid = system/manager @ orcl tables = (Scott. EMP) file = D: \ e2.dmp

 

Export only the table structure (no data in it)
Exp userid = username/password @ database instance name tables = (table name 1, table name 2) file = D: \ e1.dmp rows = N

 

Direct Export (export of large data volumes, faster)

Exp userid = username/password @ database instance name tables = (table name 1, table name 2) file = D: \ e1.dmp direct = y

 

Export Scheme
Exp userid = username/password @ database instance name owner = (solution name 1, solution name 2) file = D: \ A. dmp

 

Export all solutions in the database (at least DBA permission is required, or exp_full_database permission is required)
Exp userid = username/password @ database instance name full = y inctype = complete file = D: \ A. dmp
Inctype = complete Incremental backup. During the second backup, only different parts are exported, which is faster.

Import: You can import the tables in other schemes to your own directory, but make sure that the imported table has no foreign key dependency in the original scheme.

Bytes -------------------------------------------------------------------------------------------

· Import
Import table to userid user
Import tables to other users
Import table structure
Import Data

Import table to userid user

IMP userid = username/password @ database instance name tables = (table name 1, table name 2) file = D: \ e1.dmp

User name refers to the user name to be imported to. You can import tables in other schemes to the user specified by userid (but the table to be imported cannot have a foreign key relationship)

 

Import tables to other users (userid users must have DBA permissions or imp_full_database)

IMP userid = username/password @ database instance name tables = (table name 1, table name 2) file = D: \ e1.dmp touser = Scott

 

Import table structure

IMP userid = username/password @ database instance name tables = (table name 1) file = D: \ e1.dmp rows = N

 

Import Data

IMP userid = username/password @ database instance name tables = (table name 1) file = D: \ e1.dmpignore = y

 

Solution for importing userid

IMP userid = user name/password file = D: \ XXX. dmp

 

Import other solutions

IMP userid = username/password file = D: \ XX. dmp fromuser = systemtouser = Scott

 

Import Database

IMP userid = username/password full = yfile = D: \ XXX. DM

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.