Oracle-dmp file Export Import, get a look?

Source: Internet
Author: User
Tags dba

Oracle Exports DMP Files:

1, fully export database Oracle, export to C:\daochu.dmp
Exp User/[email protected] file=c:\xxx.dmp full=y or exp user/[email PROTECTED]:1521/ORCL file=e:\xxx.dmp

2, export the tables of RfD users and JYZGCX users in the database
Exp User/[email protected] file=d:\xxx.dmp owner= (RFD,JYZGCX)

3, export the table T_user, t_role in the database
Exp User/[email protected] file= d:\data\xxxx.dmp tables= (t_user,t_role)

Oracle Import DMP File:

1, first, we can first create their own user table space, the format of creating table space is as follows:

Create Tablespace Test (the name of the tablespace)
DataFile ' D:\oracle\product\10.2.0\userdata\test.dbf ' (this side can be written under one of Oracle's paths)
Size 50m (initial size)
Autoextend on; (Auto-expand)

2. Next, we can create a user of our own, creating the following format:

CREATE user utest (user name)
Identified by Upassword (password)
DEFAULT tablespace Test (table space created above)
Temporary tablespace temp; (Temporary tablespace will write temp)

3. Then we need to give our users permission to manage their tablespaces

GRANT CONNECT to Utest;
GRANT RESOURCE to Utest;
GRANT DBA to Utest;--dba is the highest-level permission to create databases, tables, and so on.

The execution environment of the above three statements needs to enter Oralce

How to enter Oracle under CMD

Sqlplus system/Password Enter

4, Next we can import our DMP file into our own table space, import mode

Imp usename/[email protected] full=y file= d:\data\xxxx.dmp ignore=y

Oracle-dmp file Export Import, get a look?

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.