--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