oracle--Import/Export data: Exp,imp command

Source: Internet
Author: User
Tags import database


The exp,imp command is a command that needs to be executed in the cmd command of Windows, primarily for import and export of data, and is convenient and efficient.


Remote Address--@ip: PORT/ORCL Note: This remote address does not write, which means that the local library is executed.



Oracle's Data export

(1) Prompt mode for exporting data:

Exp Jl_bhps/[email PROTECTED]:1521/ORCL


(2) Table mode: Exports the data for the specified table.

Exp jl_bhps/[email PROTECTED]:1521/ORCL file=d:temp/1.dmp log=d:temp/1.log tables=emp,dept


(3) User mode: Export all objects and data of the specified user.

Exp Jl_bhps/[email PROTECTED]:1521/ORCL file=d:temp/1.dmp log=d:temp/1.log


(4) Full-Library mode: Export/Import all objects in the data (log in with Administrator account)

Exp system/[email PROTECTED]:1521/ORCL file=d:temp/1.dmp log=d:temp/1.log full=y






Data Import for Oracle

(1) Prompt mode for importing data:

Imp Jl_bhps/[email PROTECTED]:1521/ORCL


(2) Import a table or several tables.

Imp jl_bhps/[email protected]:1521/orcl file=d:temp/1.dmp log=d:temp/1.log tables=emp,dept Fromuser=scott touser=jl_b HPS Commit=y Ignore=y


(3) Import the table under User

Imp jl_bhps/[email protected]:1521/orcl file=d:temp/1.dmp log=d:temp/1.log Fromuser=scott Touser=jl_bhps commit=y Ignore=y


(4) Import Database

Imp system/[email protected]:1521/orcl file=d:temp/1.dmp log=d:temp/1.log full=y ignore=y destroy=y;






This article from "Yu elder brother Mighty" blog, please be sure to keep this source http://even2012.blog.51cto.com/5283686/1558203

oracle--Import/Export data: Exp,imp command

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.