- Data import and export pump expdp / impdp (export and import by the user) Create Directory dpbak AS ' D: / Data / dpbak ' ; - create a backup file storage directory (dpbak logical directory as the physical path to built) Grant Read , the Write ON directory dpdir to public ; - to grant access to the directory where the backup files (public can be changed to specify a user name) su - the Oracle sqlplus / AS sysdba drop the user username Cascade ; - delete user data - export statement (logfile export statement (username / password) when exporting log) disable useless sysdba login can be replaced with \ "/ aS sysdba \" expdp username / password directory= Dpbak schemas = username dumpfile = szpt_dp_20190806.dmp logfile = szpt_dp_20190806. Log - import statements impdp \ " / AS sysdba \" Directory = dpbak schemas = username dumpfile = szpt_dp_20190806.dmp logfile = . Szpt_dp_20190806 log - ordinary import and export exp / IMP SELECT ' ALTER Table ' || table_name || ' the allocate extents; ' from USER_TABLES WHERE NUM_ROWS = 0 ornum_rows IS null ; - Query empty table statement processing statement exp username / password @ 127 . 0.0 . 1 : 1521 / ORCL File = / usr / rdsys / the Oracle / 20,190,228 .dmp imp username / password @ 127 . 0.0 . 1 : 1521 / ORCL File = E: \ 20190314_ . 1 .dmp Full = the Y