Import and Export Oracle databases using exp/imp

Source: Internet
Author: User


Before using exp/imp to import and export data starting with exp/imp, pay attention to the following points: 1) This section uses Oracle 10g as an example. 2) exp. imp is the next executable file in the operating system and is stored in the/ORACLE_HOME/bin directory. So execute the command in cmd command mode. (You do not need to connect to sqlplus first) 3) exp. Do not add ";" after the imp command line. Otherwise, an error similar to the following will be reported: About to export specified users... EXP-00010: dbuser; is not a valid usernameExport terminated successfully with warnings. 1. exports the table of the specified user. instance: [SQL] exp system/password @ orcl file = d: \ dbuser. dmp owner = dbuser www.2cto.com 2. import the specified user's table imp system/password @ orcl file = d: \ work \ bak \ dbuser. dmp fromuser = dbuser full = y ignore = y if the imported db does not have the corresponding user and tablespace, you must first create: [SQL] create USER dbuserIdentified by password DEFAULT TABLESPACE "DBUSERSPACE" ACCOUNT UNLOCK; create tablespace DBUSERSPACE datafile 'd: \ oracle \ product \ 10.2.0 \ db_1 \ dbs \ DBUSERSPACE. DBF 'size 30 m autoextend on next 10 m maxsize 100 m extent management local; Author: oscar999

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.