Oracle Database EXPDP/IMPDP and Exp/imp

Source: Internet
Author: User
Tags create directory sqlplus

--EXPDP export, requires system user rights, generally do not use
--sqlplus
--1, creating a DMP export logical directory
Create directory directory name as ' directory path '

Create  as ' d:/expdp_dmp ';

--2, view all currently created DMP export Directories (verify that the creation was successful)

SELECT * FROM Dba_directories

Select *  from Dba_directories;

--3, log on to the system user, assign permissions to the created directory

Grant Read,write on directory directory name to the user name to which you want to assign a value

Grant Read  on  to Pqm_adm;

Execute under--dos, not in Sqlplus
--4, export the data under the Pqm_adm user

EXPDP username/password @ DB instance name directory= Export directory dumpfile= exported file name. DMP logfile= The log name of the export.

EXPDP pqm_adm/pqm123456zf@foctestdb Directory=expdp_dmp dumpfile=pqm_ Adm20180209expdp.dmp logfile=PQM_ADM20180209EXPDP. log;

===================================================================================================
--EXP Export

exp pqm_adm/pqm123456zf@foctestdbfile=log=E:\PQM _admexp. Log

--imp Import

Imp mffms/mffms@AERO68full=FILE=log =E:\mffms. Log

Table Space Error:
--View the table space storage address in the database

Select Tablespace_name,file_namefromwhere tablespace_name='pqmdata  ';

--Create the same table space name

Create -- tablespace name, typically preceded by a user name prefixed with Tbs_ ' D:\ORACLE11\ORADATA\MYORACLE\PQMDATA. DBF'--test data path, tablespace name,-- size of initial tablespace on Next -- When the tablespace is low, increase the size maxsize unlimited- The largest size of the table space each time

Oracle Database EXPDP/IMPDP and Exp/imp

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: [email protected] 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.