Data Pump Import for Oracle Import

Source: Internet
Author: User

1. First, look at the directory object, for viewing only.

SELECT * from Dba_directories;

2. Create directory object: (note D:\APP\EXPDP must have Oh, and will import the DMP method under this folder easy to import OH).

CREATE OR REPLACE DIRECTORY expdp_dir as ' D:\APP\EXPDP ';

3. Create a temporary tablespace (note that the D:\app\oradata must exist or the directory does not correspond to it).

Create temporary tablespace espxmgl_temp
Tempfile ' D:\app\oradata\ESPXMGL_TEMP. DBF '
Size 50m
Autoextend on
Next 50m maxsize 2048m
Extent management Local;

4. Create a tablespace (note that the D:\app\oradata must be true or the directory does not correspond)

Create Tablespace Fmisdbdata
Logging
DataFile ' D:\app\oradata\FMISDBDATA. DBF '
Size 10240M
Autoextend on
Next 500m MaxSize 20480M
Extent management Local;

5. Create a user and give permissions

CREATE USER Fmisdb identified by Fmisdb DEFAULT tablespace fmisdbdata temporary tablespace espxmgl_temp;
ALTER USER fmisdb DEFAULT tablespace fmisdbdata temporary tablespace espxmgl_temp;
GRANT read,write on DIRECTORY expdp_dir to Fmisdb;

Alter user FMISDB account unlock;
Grant DBA to Fmisdb;

6. Import data (Note If you do not have a client installed, the imported statements are different because of the different versions of Oracle.) )

Aaa. DMP is the D:\ORACLE\EXPDP corresponding import file. The first one in Remap_schema is the user name when exporting: The second is the user name that is imported. Remap_tablespace (table space)

IMPDP fmisdb/[email PROTECTED]/ORCL directory=expdp_dir dumpfile=d:\oracle\expdp\aaa. DMP logfile=fedata1124.log remap_schema=fmisdb:fmisdb remap_tablespace= fmisdbdata:fmisdbdata (32-bit client 64-bit Oracle with the above data pump import)

IMPDP Fmisdb/[email protected] directory=expdp_dir dumpfile=d:\oracle\expdp\aaa. DMP logfile=fedata1124.log remap_schema=fmisdb:fmisdb remap_tablespace= fmisdbdata:fmisdbdata (no client installed with this)

Import of data pump imported by Oracle

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.