mkdir -p /opt/oracle/barode/backup
SQL> create directory datapump_export as '/opt/oracle/barode/backup';
SQL> grant read,write on directory datapump_export to db_user;
expdp system/password@db_instance_name full=Y directory=datapump_export dumpfile=full_db_backup.dmp logfile=full_db_backup.log impdp system/password@db_instance_name full=Y directory=datapump_export dumpfile=full_db_backup.dmp logfile=full_db_restore.log
expdp system/password@db_instance_name schemas=db_user directory=datapump_export dumpfile=db_user_bkp.dmp logfile=db_user_backup.log impdp system/password@db_instance_name schemas=db_user directory=datapump_export dumpfile=db_user_bkp.dmp logfile=db_user_restore.log
expdp db_user/password@db_instance_name TABLES=MY_TABLE1,MY_TABLE2 directory=datapump_export dumpfile=my_db_tables.dmp logfile=my_db_tables_backup.log impdp db_user/password@db_instance_name TABLES=MY_TABLE1,MY_TABLE2 directory=datapump_export dumpfile=my_db_tables.dmp logfile=my_db_tables_restore.log
impdp db_user1/password@db_instance_name TABLES=MY_TABLE1,MY_TABLE2 directory=datapump_export remap_schema=DB_USER:DB_USER1 dumpfile=my_db_tables.dmp logfile=my_db_tables_restore.log
impdp db_user/password@db_instance_name TABLES=MY_TABLE1,MY_TABLE2 remap_table=db_user.MY_TABLE1:NEW_TABLE1,db_user.MY_TABLE2:NEW_TABLE2 directory=datapump_export dumpfile=my_db_tables.dmp logfile=my_db_tables_restore.log
impdp db_user/password@db_instance_name TABLES=MY_TABLE1,MY_TABLE2 content=data_only directory=datapump_export dumpfile=my_db_tables.dmp logfile=my_db_tables_restore.log
impdp db_user/password@db_instance_name TABLES=MY_TABLE1,MY_TABLE2 remap_tablespace=USER_TBS:USER_TBS1 directory=datapump_export dumpfile=my_db_tables.dmp logfile=my_db_tables_restore.log
expdp system/password@db_instance_name schemas=db_user directory=datapump_export dumpfile=db_user_bkp_%U.dmp paralle=4 logfile=db_user_backup.log impdp system/password@db_instance_name schemas=db_user directory=datapump_export dumpfile=db_user_bkp_%U.dmp paralle=4 logfile=db_user_restore.log
SELECT SID, SERIAL#, USERNAME, CONTEXT, SOFAR, TOTALWORK, ROUND(SOFAR/TOTALWORK*100,2) "%_COMPLETE" FROM V$SESSION_LONGOPS WHERE TOTALWORK != 0 AND SOFAR <> TOTALWORK;