1. First we need to create Database Directory.
CREATE DIRECTORY DB_BACKUP AS 'D:\DATABASEB_BACKUP';
GRANT READ, WRITE ON DIRECTORY DB_BACKUP TO HPP(Schema Name);
2. Provide Export/Import Privilege to Schema User:
GRANT DATAPUMP_EXP_FULL_DATABASE TO HPP;
GRANT DATAPUMP_IMP_FULL_DATABASE TO HPP;
3.Database Export Command For Specific Schema:
EXPDP HPP/HPP@ORCL schemas=HPP DIRECTORY=DATABASE_BACKUP DUMPFILE=MRHS.dmp LOGFILE=full_exp.log FULL=NO;
5.Database Export Command For Multiple Schema:
EXPDP HPP/HPP@ORCL schemas=HPP,HPP_TRAN DIRECTORY=DATABASE_BACKUP DUMPFILE=MRHS.dmp LOGFILE=full_exp.log ;
No comments:
Post a Comment