Oracle Database Import Export DMP file

Source: Internet
Author: User

First ask the table space name and size of the other database, then create the appropriate tablespace in your Oracle, and finally use the command to import and export the data.
Add:
1. To create a new database;

Oracle data import and export imp/exp is equivalent to Oracle data restore and backup. The EXP command can be

To export data from the remote database server to a local DMP file, the IMP command can take the DMP file from the

To a remote database server. With this feature you can build two identical databases, one

one for testing and one for formal use.
example: Imp command import data:
imp username/[email  Protected] File=xxx.dmp fromuser=xxx touser=xxx tables= (xxx,xxx)

fromuser If the table space is multiple, use () to enclose it: fromuser= (A, B),
touser parameter Imitation fromuser parameter;
data export:
1 full export of database test, user Name System Password Manager Export to D:\daochu.dmp
[email protected]  file=d:\daochu.dmp full=y

2 Exporting the system user in the database to the SYS user's table
Exp system/[email protected] file=d:\daochu.dmp owner= (System,sys)

3 Exporting Tables Inner_notify, Notify_staff_relat in the database
Exp aichannel/[email protected] file= d:\data\newsmgnt.dmp tables=

(Inner_notify,notify_staff_relat)


import of data
1 Import data from D:\daochu.dmp Test database.
   imp system/[email protected]  file=d:\daochu.dmp
   imp aichannel/[email protected]  full=y file=file= d:\data\newsmgnt.dmp

Ignore=y
There may be a problem, because some tables already exist, and then it will error, the table will not be guided

Into.
Add Ignore=y to the back.

2 the table table1 in D:\daochu.dmp into
imp system/[email protected]  file=d:\daochu.dmp tables= (table1)  

Basically the above import and export is enough. In many cases, you must first delete the table and then import it.

note:
The database can be connected. You can use tnsping test to get the database test to connect.

Appendix I:
First, start SQL*PULS
Second, System/manager landed
Third, create user username identified by password (if you have already created a user, this step

can be omitted)
IV, GRANT CREATE user,drop user,alter USER, create any VIEW,
   DROP any view,exp_full_database,imp_full_database,
       dba,connect,resource,create SESSION to User name  
      Imp userid=system/ Manager full=y file=*.dmp
      or Imp userid=system/ Manager Full=y File=filename.dmp

Example execution:
F:\work\oracle_data\backup>imp userid=test/test full=y

File=inner_notify.dmp

Screen display
Import:release 8.1.7.0.0-production on Thu February 16 16:50:05 2006
(c) Copyright: Oracle Corporation. All rights reserved.

Connected to: Oracle8i Enterprise Edition Release 8.1.7.0.0-production
With the partitioning option
Jserver Release 8.1.7.0.0-production

Export files created by export:v08.01.07 through a regular path
Import is completed in ZHS16GBK character set and ZHS16GBK NCHAR character set
The export server uses the UTF8 NCHAR character set (possible ncharset conversions)
. Importing Aichannel objects into Aichannel
. . Importing table "Inner_notify" 4 rows are imported
Prepare to enable constraints ...
The import was terminated successfully, but a warning appears.


This article is from the "No Water Fish" blog, please be sure to keep this source http://javaqun.blog.51cto.com/10687700/1727321

Oracle Database Import Export DMP file

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.